| | |
| | | <!-- <Input v-model="baseInfoForm.commission" max="100" min="0" clearable placeholder="抽成比例" style="width: 260px" type="number"/>--> |
| | | <InputNumber v-model="baseInfoForm.commission" :formatter="value => `${value}%`" |
| | | :parser="value => value.replace('%', '')" :max="100" :min="0" clearable |
| | | :active-change="false" |
| | | placeholder="抽成比例" style="width: 260px" type="number"/> |
| | | </FormItem> |
| | | |
| | |
| | | overflow-x: hidden; |
| | | } |
| | | "> |
| | | <template slot="sn" slot-scope="{ row }"> |
| | | <Input v-model="row.sn" clearable placeholder="请输入货号" |
| | | @on-change="updateSkuTable(row, 'sn')"/> |
| | | <template slot="sn" slot-scope="{ row, index }"> |
| | | <Input v-model="row.sn" placeholder="请输入货号" disabled |
| | | @on-change="updateSkuTable(row, 'sn')" /> |
| | | </template> |
| | | <div v-if="baseInfoForm.goodsType !== 'VIRTUAL_GOODS'" slot="weight" slot-scope="{ row }"> |
| | | <Input v-model="row.weight" clearable placeholder="请输入重量" |
| | |
| | | </div> |
| | | <FormItem class="form-item-view-el" label="PC商品描述" prop="intro" style="width: 100%"> |
| | | <editor |
| | | :show-upload="false" |
| | | :show-upload="true" |
| | | ref="editor" |
| | | v-model="baseInfoForm.intro" |
| | | height="800px" |
| | |
| | | |
| | | <FormItem class="form-item-view-el" label="移动端描述" prop="skuList" style="width: 100%"> |
| | | <editor |
| | | :show-upload="false" |
| | | :show-upload="true" |
| | | ref="introEditor" |
| | | v-model="baseInfoForm.mobileIntro" |
| | | height="800px" |
| | |
| | | preSaleTime:[], |
| | | preSaleBeginDate:'', |
| | | preSaleEndDate:'', |
| | | commission:5 |
| | | }, |
| | | /** 表格头 */ |
| | | skuTableColumn: [], |
| | |
| | | this.baseInfoForm.regeneratorSkuFlag = true; |
| | | this.newSkuValues[$index] = ""; |
| | | } |
| | | this.renderTableData(this.skuTableData); |
| | | }, |
| | | handleClearSku() { |
| | | this.skuInfo = []; |
| | |
| | | ); |
| | | } |
| | | // 预售模式 |
| | | if (this.baseInfoForm.salesModel !== "PRESALE") { |
| | | pushData.push( |
| | | { |
| | | title: "预售时间", |
| | | slot: "price", |
| | | } |
| | | ); |
| | | } |
| | | // if (this.baseInfoForm.salesModel !== "PRESALE") { |
| | | // pushData.push( |
| | | // { |
| | | // title: "预售时间", |
| | | // slot: "price", |
| | | // } |
| | | // ); |
| | | // } |
| | | if (this.baseInfoForm.salesModel === "WHOLESALE" && this.wholesaleData) { |
| | | this.wholesaleData.forEach((item, index) => { |
| | | pushData.push({ |
| | |
| | | * array spec数据 |
| | | */ |
| | | specIterator(result, spec, skus) { |
| | | |
| | | let table = result; |
| | | if (spec.length > 0) { |
| | | //清除当前循环的分组 |
| | |
| | | } else { |
| | | this.skuIndex++; |
| | | } |
| | | |
| | | table.forEach((item,index) =>{ |
| | | console.log("元素:" + item +"index:" + (index +1)) |
| | | item.sn = index + 1; |
| | | }) |
| | | return table; |
| | | }, |
| | | /** 根据分类id获取系统设置规格信息*/ |
| | |
| | | return; |
| | | } |
| | | } |
| | | |
| | | // else if (item === "alertQuantity") { |
| | | // if ( |
| | | // !/^[0-9]\d*$/.test(row[item]) || |
| | |
| | | this.$Message.error("请上传商品图片"); |
| | | return; |
| | | } |
| | | if (!submit.goodsVideo){ |
| | | this.submitLoading = false; |
| | | this.$Message.error("请上传商品视频"); |
| | | return; |
| | | } |
| | | // if (!submit.goodsVideo){ |
| | | // this.submitLoading = false; |
| | | // this.$Message.error("请上传商品视频"); |
| | | // return; |
| | | // } |
| | | if (submit.templateId === "") submit.templateId = 0; |
| | | let flag = false; |
| | | let paramValue = ""; |