diff --git a/components/resource/view-resource-store-info.vue b/components/resource/view-resource-store-info.vue index ce07ade..45c6515 100644 --- a/components/resource/view-resource-store-info.vue +++ b/components/resource/view-resource-store-info.vue @@ -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; diff --git a/manifest.json b/manifest.json index 4f53fa3..6972234 100644 --- a/manifest.json +++ b/manifest.json @@ -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协议的代理 } diff --git a/pages/resource/addItemOut.vue b/pages/resource/addItemOut.vue index 1763836..7b54ce9 100644 --- a/pages/resource/addItemOut.vue +++ b/pages/resource/addItemOut.vue @@ -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; }