From 8a8fc342c1162a8c5e3d03ecad604c1fc51114f4 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Sun, 12 May 2024 11:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/resource/view-resource-store-info.vue | 2 +- manifest.json | 4 ++-- pages/resource/addItemOut.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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; }