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

页面修改

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