diff --git a/src/views/wmsManagement/WmGoodsOutProduction.vue b/src/views/wmsManagement/WmGoodsOutProduction.vue index 22614b7..0cc467a 100644 --- a/src/views/wmsManagement/WmGoodsOutProduction.vue +++ b/src/views/wmsManagement/WmGoodsOutProduction.vue @@ -198,13 +198,19 @@ - + - + + + + + + + {{ (form.goodsNumLogic - form.goodsNumAction) }} @@ -328,8 +334,10 @@ export default { this.loading = true listWmGoodsOutProduction(this.queryParams).then((res) => { if (res.code == 200) { - this.dataList = res.data.result - this.total = res.data.totalNum + // this.dataList = res.data.result + // this.total = res.data.totalNum + this.dataList = res.data.item1 + this.total = res.data.item2 this.loading = false } }) @@ -434,8 +442,6 @@ export default { console.log(JSON.stringify(this.form)) this.$refs['form'].validate((valid) => { if (valid) { - - if (this.form.id != undefined && this.opertype === 2) { updateWmGoodsOutProduction(this.form) .then((res) => { @@ -503,14 +509,17 @@ export default { this.PackageCodeOptions = [] } }, - PackageCodeChange(select){ - console.log(select); - this.form.partnumber = select.partnumber; - this.form.goodsNumLogic = select.goodsNumLogic; - this.form.locationCode = select.locationCode; - this.form.goodsNumAction = select.goodsNumAction; + PackageCodeChange(select) { + console.log('select', select) + this.form.fkNowProductionId = select.id + this.form.partnumber = select.partnumber + // 原仓库库存 + this.form.goodsNumLogic = select.goodsNumAction + this.form.locationCode = select.locationCode + // 出库数量 + this.form.goodsNumAction = select.goodsNumAction this.form.packageCodeClient = select.packageCodeClient - } + }, }, } diff --git a/vue.config.js b/vue.config.js index 4c977c3..ca532eb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,7 +40,7 @@ module.exports = { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: 'http://192.168.60.251:8888/', // 后端接口地址 + target: 'http://192.168.90.92:8888', // 后端接口地址 // target: 'http://192.168.0.31:8888/', // 后端接口地址 changeOrigin: true, pathRewrite: { @@ -49,7 +49,7 @@ module.exports = { }, msgHub: { - target: 'http://192.168.60.251:8888/msgHub', + target: 'http://192.168.90.92:8888/msgHub', // target: 'http://192.168.0.31:8888/msgHub', ws: true, changeOrigin: true,