Commit 9c14ab9f authored by 黄奎's avatar 黄奎

页面修改

parent df693643
...@@ -371,13 +371,13 @@ ...@@ -371,13 +371,13 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="限购数量"> <el-form-item label="限购数量">
<el-input :disabled="BuyGoodsNumState" v-model="addMsg.LimitBuyGoodsNum" type="number" min="1" size="small" placeholder="请输入内容" <el-input :disabled="BuyGoodsNumState" v-model="addMsg.LimitBuyGoodsNum" type="number" min="1"
class="input-with-select"> size="small" placeholder="请输入内容" class="input-with-select">
<el-button slot="append"></el-button> <el-button slot="append"></el-button>
</el-input> </el-input>
<el-checkbox v-model="BuyGoodsNumState" <el-checkbox v-model="BuyGoodsNumState"
@change="BuyGoodsNumState==true? addMsg.LimitBuyGoodsNum=-1:addMsg.LimitBuyGoodsNum=0">不限制 @change="BuyGoodsNumState==true? addMsg.LimitBuyGoodsNum=-1:addMsg.LimitBuyGoodsNum=0">不限制
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -604,11 +604,8 @@ ...@@ -604,11 +604,8 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="是否选择服务人员"> <el-form-item label="是否选择服务人员">
<el-switch <el-switch v-model="addMsg.IsChooseServicePerson" active-color="#409EFF" :active-value="1"
v-model="addMsg.IsChooseServicePerson" :inactive-value="0">
active-color="#409EFF"
:active-value="1"
:inactive-value="0">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item label="门店"> <el-form-item label="门店">
...@@ -1158,7 +1155,7 @@ ...@@ -1158,7 +1155,7 @@
DepositMoney: '', //定金 DepositMoney: '', //定金
GoodsClassify: 3, //商品分类 0正常商品 1司导商品 2教育商品,3-线下服务产品 GoodsClassify: 3, //商品分类 0正常商品 1司导商品 2教育商品,3-线下服务产品
StoresIds: '', //门店编号 StoresIds: '', //门店编号
IsChooseServicePerson:0 //是否选择服务人员 0-不选 1选择 IsChooseServicePerson: 0 //是否选择服务人员 0-不选 1选择
}, },
predefineColors: [ predefineColors: [
'#000000', '#000000',
...@@ -1261,7 +1258,7 @@ ...@@ -1261,7 +1258,7 @@
companyCommission: 0, companyCommission: 0,
FXlevelList: [], FXlevelList: [],
giveDate: false, giveDate: false,
Stores:'', Stores: '',
StoreList: [], //门店下拉数据 StoreList: [], //门店下拉数据
}; };
}, },
...@@ -1791,7 +1788,7 @@ ...@@ -1791,7 +1788,7 @@
// return // 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);
} }
...@@ -1854,7 +1851,7 @@ ...@@ -1854,7 +1851,7 @@
this.addMsg.MarketingLogo.wordsBack = ''; this.addMsg.MarketingLogo.wordsBack = '';
} }
this.addMsg.MarketingLogo = JSON.stringify(this.addMsg.MarketingLogo) this.addMsg.MarketingLogo = JSON.stringify(this.addMsg.MarketingLogo)
this.apipost("/api/OSGoods/SetProductGoodsInfo", this.addMsg, res => { this.apipost("/api/OSGoods/SetGoodsInfo", this.addMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.CommonJump("serviceProductList"); this.CommonJump("serviceProductList");
...@@ -2064,11 +2061,10 @@ ...@@ -2064,11 +2061,10 @@
getcode() { //编码获取详情 getcode() { //编码获取详情
this.GoodsId = this.addMsg.Id; this.GoodsId = this.addMsg.Id;
this.getData() this.getData()
}, },
getData() { getData() {
this.apipost( this.apipost(
"/api/OSGoods/GetOfflineGoodsPageList", { "/api/OSGoods/GetGoodsInfo", {
GoodsId: this.GoodsId GoodsId: this.GoodsId
}, },
res => { res => {
...@@ -2086,7 +2082,7 @@ ...@@ -2086,7 +2082,7 @@
this.initShareSettings(); this.initShareSettings();
this.SpecificationPriceList = this.addMsg.SpecificationPriceList; this.SpecificationPriceList = this.addMsg.SpecificationPriceList;
this.ComTreeList = 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;
} }
if (this.SpecificationList.length > 0) { //根据编码来的详情 重新调用这个方法 否则分销详情设置没有数据 if (this.SpecificationList.length > 0) { //根据编码来的详情 重新调用这个方法 否则分销详情设置没有数据
...@@ -2099,7 +2095,7 @@ ...@@ -2099,7 +2095,7 @@
} }
} }
if(this.addMsg.StoresIds){ if (this.addMsg.StoresIds) {
this.Stores = JSON.parse(this.addMsg.StoresIds); this.Stores = JSON.parse(this.addMsg.StoresIds);
} }
...@@ -2116,10 +2112,13 @@ ...@@ -2116,10 +2112,13 @@
this.defaultMsg = this.addMsg.GoodsDetails; this.defaultMsg = this.addMsg.GoodsDetails;
} }
this.NewCategoryList = []; this.NewCategoryList = [];
this.addMsg.CategoryList.forEach(item => { if (this.addMsg.CategoryList && this.addMsg.CategoryList.length > 0) {
item.Name = item.CategoryName; this.addMsg.CategoryList.forEach(item => {
this.NewCategoryList.push(item.CategoryId); item.Name = item.CategoryName;
}); this.NewCategoryList.push(item.CategoryId);
});
}
if (this.hpState == 1) { if (this.hpState == 1) {
this.addMsg.SeparateDistribution = 0; this.addMsg.SeparateDistribution = 0;
} }
......
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