优化代码

This commit is contained in:
wuxw 2024-05-12 11:38:38 +08:00
parent 9c8f791002
commit 8a8fc342c1
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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
}

View File

@ -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;
}