mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化代码
This commit is contained in:
parent
9c8f791002
commit
8a8fc342c1
@ -107,7 +107,7 @@
|
||||
if (item.times && item.times.length > 0) {
|
||||
item.timesId = item.times[0].timesId;
|
||||
item.selectedTimesIndex = 1;
|
||||
item.selectedTimesStock = 1;
|
||||
item.selectedTimesStock = item.times[0].stock;
|
||||
} else {
|
||||
item.selectedTimesIndex = 0;
|
||||
item.selectedTimesStock = 0;
|
||||
|
||||
@ -87,12 +87,12 @@
|
||||
"disableHostCheck" : true,
|
||||
"proxy" : {
|
||||
"/app" : {
|
||||
"target" : "http://192.168.100.108:8088", //目标接口域名http://192.168.1.16:8012
|
||||
"target" : "http://property.hn0739.cn", //目标接口域名http://192.168.1.16:8012
|
||||
"changeOrigin" : true, //是否跨域
|
||||
"secure" : true // 设置支持https协议的代理
|
||||
},
|
||||
"/callComponent" : {
|
||||
"target" : "http://192.168.100.108:8088", //目标接口域名http://192.168.1.16:8012
|
||||
"target" : "http://property.hn0739.cn", //目标接口域名http://192.168.1.16:8012
|
||||
"changeOrigin" : true, //是否跨域
|
||||
"secure" : true // 设置支持https协议的代理
|
||||
}
|
||||
|
||||
@ -149,8 +149,8 @@
|
||||
msg = item.resName + ",未选择价格";
|
||||
return;
|
||||
}
|
||||
if (this.resOrderType == '20000' && (item.quantity > parseInt(item
|
||||
.selectedTimesStock))) {
|
||||
if (this.resOrderType == '20000' && (item.quantity > parseInt(item.selectedTimesStock))) {
|
||||
console.log(item.quantity,parseInt(item.selectedTimesStock))
|
||||
msg = item.resName + ",库存不足";
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user