Commit 610cc728 authored by zhengke's avatar zhengke

修改

parent 69ca0af2
<template> <template>
<div class="goodsListEdit"> <div class="goodsListEdit">
<div class="head-title"> <div class="head-title">
<span @click="CommonJump('goodsList')" class="blue point">商品列表</span> <span @click="CommonJump('serviceProductList')" class="blue point">商品列表</span>
/ 添加商品 / 添加商品
</div> </div>
<div style="background:#fff;margin-top:10px;padding:10px 20px 20px"> <div style="background:#fff;margin-top:10px;padding:10px 20px 20px">
...@@ -210,10 +210,6 @@ ...@@ -210,10 +210,6 @@
<el-button slot="append"></el-button> <el-button slot="append"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="商品总库存" prop="InventoryNum" style="display:none;">
<el-input v-model="addMsg.InventoryNum" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select"></el-input>
</el-form-item>
<el-form-item label="默认规则名" style="display:none;"> <el-form-item label="默认规则名" style="display:none;">
<el-input :disabled="SpecificationList.length > 0" v-model="addMsg.DefaultSpecificationName" <el-input :disabled="SpecificationList.length > 0" v-model="addMsg.DefaultSpecificationName"
size="small" placeholder="请输入内容" class="input-with-select"></el-input> size="small" placeholder="请输入内容" class="input-with-select"></el-input>
...@@ -1152,7 +1148,7 @@ ...@@ -1152,7 +1148,7 @@
SendArea: '', //发货仓库 SendArea: '', //发货仓库
VideoType: 1, //视频填充方式(0默认,1-填充) VideoType: 1, //视频填充方式(0默认,1-填充)
Remark: '', //备注 Remark: '', //备注
DepositMoney: '', //定金 DepositMoney: 0, //定金
GoodsClassify: 3, //商品分类 0正常商品 1司导商品 2教育商品,3-线下服务产品 GoodsClassify: 3, //商品分类 0正常商品 1司导商品 2教育商品,3-线下服务产品
StoresIds: '', //门店编号 StoresIds: '', //门店编号
IsChooseServicePerson: 0 //是否选择服务人员 0-不选 1选择 IsChooseServicePerson: 0 //是否选择服务人员 0-不选 1选择
...@@ -1783,11 +1779,6 @@ ...@@ -1783,11 +1779,6 @@
if (this.SpecificationList.length == 0) { if (this.SpecificationList.length == 0) {
this.addMsg.IsCustomSpecification = 2; this.addMsg.IsCustomSpecification = 2;
} }
// if (this.addMsg.IsCustomSpecification != 1 && this.SpecificationList.length == 0) {
// this.Error("请选择规格项目!");
// return
// }
if (this.Stores.length > 0) { if (this.Stores.length > 0) {
this.addMsg.StoresIds = JSON.stringify(this.Stores); this.addMsg.StoresIds = JSON.stringify(this.Stores);
} }
...@@ -2063,11 +2054,13 @@ ...@@ -2063,11 +2054,13 @@
this.getData() this.getData()
}, },
getData() { getData() {
console.log('进入1');
this.apipost( this.apipost(
"/api/OSGoods/GetGoodsInfo", { "/api/OSGoods/GetGoodsInfo", {
GoodsId: this.GoodsId GoodsId: this.GoodsId
}, },
res => { res => {
console.log(res,'进入2');
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg = res.data.data; this.addMsg = res.data.data;
if (!this.$route.query.GoodsId) { if (!this.$route.query.GoodsId) {
...@@ -2080,8 +2073,12 @@ ...@@ -2080,8 +2073,12 @@
this.BuyOrderNumState = false this.BuyOrderNumState = false
} }
this.initShareSettings(); this.initShareSettings();
this.SpecificationPriceList = this.addMsg.SpecificationPriceList; if(this.addMsg.SpecificationPriceList){
this.ComTreeList = this.addMsg.DistributionCommissionTreeList; this.SpecificationPriceList = this.addMsg.SpecificationPriceList;
}
if(this.addMsg.DistributionCommissionTreeList){
this.ComTreeList = this.addMsg.DistributionCommissionTreeList;
}
if (this.addMsg.SpecificationList) { if (this.addMsg.SpecificationList) {
this.SpecificationList = this.addMsg.SpecificationList; this.SpecificationList = this.addMsg.SpecificationList;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment