| | |
| | | components: { GlobalAlertWindow, UploadAvatarImage }, |
| | | data () { |
| | | let positionRule = (rule, value, callBack) => { |
| | | debugger |
| | | if (!value) { |
| | | callBack(new Error(rule.message)) |
| | | } else { |
| | |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | |
| | | |
| | | </el-form> |
| | | </GlobalAlertWindow> |
| | | </template> |
| | |
| | | components: { GlobalAlertWindow }, |
| | | data () { |
| | | let rule = (rule, value, callBack) => { |
| | | debugger |
| | | console.log(rule, value); |
| | | callBack() |
| | | } |
| | |
| | | id: null, |
| | | mark: '', |
| | | }, |
| | | |
| | | |
| | | // 验证规则 |
| | | rules: { |
| | | |
| | | |
| | | mark: [ |
| | | { required: true, message: '请输入内容', tigger: 'blur' } |
| | | ] |
| | |
| | | }, |
| | | methods: { |
| | | open (title, target) { |
| | | debugger |
| | | this.title = title |
| | | this.visible = true |
| | | this.cities = [] |
| | |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules" label-width="120px" label-suffix=":" inline> |
| | | <div class="title-style"><div>SKU配置</div><div class="btn" @click="addSku">添加规格</div></div> |
| | | <el-table |
| | | :data="skiuList" |
| | |
| | | <template slot-scope="scope"> |
| | | <!-- skiuList.splice(scope.$index, 1) --> |
| | | <el-button slot="append" @click="deleteSku(scope.$index)">X</el-button> |
| | | |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | } |
| | | return newItem |
| | | }) |
| | | debugger |
| | | } else { |
| | | let tempAttr = [...attr] |
| | | attr = [] |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | this.skuAttr = attr |
| | | }, |
| | | |
| | | uploadSuccess(file, row) { |
| | | row.imgurlfull=file.imgurlfull |
| | | row.imgurl=file.imgurl |
| | |
| | | font-weight: 500; |
| | | font-size: 20px; |
| | | height: 20px; |
| | | |
| | | |
| | | line-height: 20px; |
| | | vertical-align: middle; |
| | | margin-bottom: 20px; |
| | |
| | | v-trim |
| | | /> |
| | | </el-form-item> |
| | | |
| | | |
| | | </el-form> |
| | | </GlobalAlertWindow> |
| | | </template> |
| | |
| | | components: { GlobalAlertWindow }, |
| | | data () { |
| | | let rule = (rule, value, callBack) => { |
| | | debugger |
| | | console.log(rule, value); |
| | | callBack() |
| | | } |
| | |
| | | mark: '', |
| | | |
| | | }, |
| | | |
| | | |
| | | // 验证规则 |
| | | rules: { |
| | | |
| | | |
| | | mark: [ |
| | | { required: true, message: '请输入内容', tigger: 'blur' } |
| | | ] |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="parentName" label="专区名称" align="center" min-width="140px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="goodsName" label="关联产品" align="center" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="goodsNum" label="关联产品数" align="center" min-width="100px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="sortnum" label="排序码(升序)" align="center" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="创建时间" align="center" min-width="140px"></el-table-column> |
| | | <el-table-column |
| | |
| | | <el-form-item label="申请人昵称" prop="nikeName"> |
| | | <el-input v-model="searchForm.nikeName" placeholder="请输入申请人昵称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item label="审核状态" prop="status"> |
| | | <el-select |
| | | v-model="searchForm.type" |
| | |
| | | <el-option v-for="item in status" :key="item.id" :value="item.id" :label="item.label"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | |
| | | approveAgree(id) { |
| | | this.$dialog.messageApprove('确定通过审核?') |
| | | .then(() => { |
| | | debugger |
| | | }) |
| | | }, |
| | | approveRefuse(id) { |
| | |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | v-model="row.status" |
| | | :active-value="1" |
| | | :inactive-value="0" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | @change="statusChange(row)" |
| | |
| | | <el-table-column prop="labels" label="商品标签集合,多个用英文逗号隔开" min-width="100px"></el-table-column> --> |
| | | <!-- v-if="containPermissions(['business:goods:update', 'business:goods:delete'])" --> |
| | | <el-table-column |
| | | |
| | | label="操作" |
| | | min-width="120" |
| | | fixed="right" |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | |
| | | |
| | | labelList({ |
| | | capacity: 999, |
| | | model: { |
| | |
| | | |
| | | }, |
| | | /** |
| | | * |
| | | * |
| | | * @param {上下状态} status 0上架 1下架 |
| | | */ |
| | | issued(status) { |
| | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | statusChange(row) { |
| | | updateById(row) |
| | | .then(() => { |
| | |
| | | @ApiModelProperty(value = "商品标签集合,多个用英文逗号隔开") |
| | | @ExcelColumn(name="商品标签集合,多个用英文逗号隔开") |
| | | private String labels; |
| | | @ApiModelProperty(value = "所属专区ID集合,([1],[2])") |
| | | @ExcelColumn(name="所属专区ID集合,([1],[2])") |
| | | private String zhuanquIds; |
| | | @ApiModelProperty(value = "适用品牌ID集合,([1],[2])") |
| | | @ExcelColumn(name="适用品牌ID集合,([1],[2])") |
| | | private String brandIds; |
| | | @ApiModelProperty(value = "适用品牌系列ID集合,([1],[2])") |
| | | @ExcelColumn(name="适用品牌系列ID集合,([1],[2])") |
| | | private String serialIds; |
| | | |
| | | @ApiModelProperty(value = "一级分类") |
| | | @ExcelColumn(name="一级分类") |