Commit 9110b13e authored by 黄奎's avatar 黄奎

页面修改

parent d6f2eed4
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
<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="定金"> <el-form-item label="定金" v-if="IsOfflinePay">
<el-input v-model="addMsg.DepositMoney" type="number" min="1" size="small" placeholder="请输入内容" <el-input v-model="addMsg.DepositMoney" type="number" min="1" size="small" placeholder="请输入内容"
class="input-with-select"> class="input-with-select">
</el-input> </el-input>
...@@ -1241,6 +1241,7 @@ ...@@ -1241,6 +1241,7 @@
giveDate: false, giveDate: false,
Stores: [], Stores: [],
StoreList: [], //门店下拉数据 StoreList: [], //门店下拉数据
IsOfflinePay: false, //是否开启线上付款
}; };
}, },
created() { created() {
...@@ -1266,8 +1267,23 @@ ...@@ -1266,8 +1267,23 @@
} else { } else {
this.getTree(); this.getTree();
} }
this.getConfig();
}, },
methods: { methods: {
//获取基础配置
getConfig() {
this.apipost(
"/api/Reserve/GetReserveBaseInfo", {},
res => {
if (res.data.resultCode == 1) {
var jsonData = res.data.data;
if (jsonData && jsonData.PayTypeList) {
this.IsOfflinePay = jsonData.PayTypeList.indexOf(2) >= 0;
}
}
}
);
},
setMemberData() { setMemberData() {
if (this.memberList1 && this.memberList1.length > 0 && this.addMsg.MemberPriceList && this.addMsg if (this.memberList1 && this.memberList1.length > 0 && this.addMsg.MemberPriceList && this.addMsg
.MemberPriceList.length > 0) { .MemberPriceList.length > 0) {
...@@ -1832,6 +1848,10 @@ ...@@ -1832,6 +1848,10 @@
this.addMsg.MarketingLogo.wordsBack = ''; this.addMsg.MarketingLogo.wordsBack = '';
} }
this.addMsg.MarketingLogo = JSON.stringify(this.addMsg.MarketingLogo) this.addMsg.MarketingLogo = JSON.stringify(this.addMsg.MarketingLogo)
//没有开启线上付款
if (!this.IsOfflinePay) {
this.addMsg.DepositMoney = 0;
}
this.apipost("/api/OSGoods/SetGoodsInfo", 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);
...@@ -2129,7 +2149,6 @@ ...@@ -2129,7 +2149,6 @@
ico: "" ico: ""
} }
} }
console.log(this.Stores, 'Stores');
this.getSuggestPrice(); this.getSuggestPrice();
this.getFXDGradeList2(); this.getFXDGradeList2();
this.getTree(); this.getTree();
......
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