From 1bb8ff9ed6cb948ae1baf8cb1c10098d1d219e32 Mon Sep 17 00:00:00 2001 From: anthonyywj2 <353682448@qq.com> Date: Thu, 10 Nov 2022 11:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A9=E5=B9=B3=E5=8F=B0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/BussinessTypeLoclModify.vue | 2 +- src/views/purchase/purPlanEditDialog.vue | 43 +- src/views/purchase/pureApplyDetailDialog.vue | 989 ++++++++++--------- src/views/thrsys/thrOrderNew.vue | 1 + 4 files changed, 589 insertions(+), 446 deletions(-) diff --git a/src/views/basic/BussinessTypeLoclModify.vue b/src/views/basic/BussinessTypeLoclModify.vue index 8289850..bf3e71b 100644 --- a/src/views/basic/BussinessTypeLoclModify.vue +++ b/src/views/basic/BussinessTypeLoclModify.vue @@ -393,7 +393,7 @@ export default { key: query, onlyMain: true, } - + getOriginBusType(tQuery) .then((response) => { this.originTypes = response.data.list || []; diff --git a/src/views/purchase/purPlanEditDialog.vue b/src/views/purchase/purPlanEditDialog.vue index de750cc..99f3eb4 100644 --- a/src/views/purchase/purPlanEditDialog.vue +++ b/src/views/purchase/purPlanEditDialog.vue @@ -54,6 +54,27 @@ + + +
+ 采购类型: +
+
+ + + + + {{ item.originName }} + + + + +
采购仓库: @@ -85,6 +106,10 @@ + + + +
采购说明: @@ -197,6 +222,7 @@ import stockOrderNewSelectProduct from "../business/stockOrderNewSelectProduct"; import {inserThrOrderWeb, delApplyDetail, listApplyDetail} from "@/api/purchase/purPlan"; import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterSubByInv} from "@/api/basic/invSubWarehouse"; +import {getBusChange} from "@/api/basic/busTypeChange"; export default { name: "idQuery", @@ -371,7 +397,9 @@ export default { if (this.orderEditor) { this.detailLoading = true; if (this.$isNotBlank(row.id)) { - delApplyDetail(row.id) + let delIds = []; + delIds.push(row.id) + delApplyDetail(delIds) .then(response => { this.detailLoading = false; if (response.code === 20000) { @@ -450,6 +478,18 @@ export default { this.formData.locStorageCode = item; this.findSubInvs(); }, + getBusType() { + let query = { + enable: false, + type: 3, + }; + getBusChange(query) + .then((response) => { + this.busTypes = response.data.list || []; + }) + .catch(() => { + }); + }, }, filters: {}, mounted() { @@ -480,6 +520,7 @@ export default { this.orderEditor = false; } this.getStorage(); + this.getBusType(); this.codeArray = []; }, }; diff --git a/src/views/purchase/pureApplyDetailDialog.vue b/src/views/purchase/pureApplyDetailDialog.vue index 4a6e369..2be73b0 100644 --- a/src/views/purchase/pureApplyDetailDialog.vue +++ b/src/views/purchase/pureApplyDetailDialog.vue @@ -1,191 +1,239 @@ diff --git a/src/views/thrsys/thrOrderNew.vue b/src/views/thrsys/thrOrderNew.vue index e57713f..ed0a823 100644 --- a/src/views/thrsys/thrOrderNew.vue +++ b/src/views/thrsys/thrOrderNew.vue @@ -916,6 +916,7 @@ export default { }, getBusType() { let query = { + type: 1, enable: false, }; getBusChange(query)