From 846794055111fc62e23bcaa5c36ec587aae2aba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Thu, 16 Mar 2023 16:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=94=B3=E8=B4=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=A2=86=E7=94=A8=E5=8D=95=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inout/receiveOrder.js | 9 + .../inout/receive/selectReveiceListDialog.vue | 335 ++++++++++++++++++ src/views/purchase/purApply/purApply.vue | 3 +- .../purchase/purApply/purApplyEditDiaolog.vue | 50 ++- 4 files changed, 387 insertions(+), 10 deletions(-) create mode 100644 src/views/inout/receive/selectReveiceListDialog.vue diff --git a/src/api/inout/receiveOrder.js b/src/api/inout/receiveOrder.js index d9f2c070..8dc9b0f5 100644 --- a/src/api/inout/receiveOrder.js +++ b/src/api/inout/receiveOrder.js @@ -1,4 +1,5 @@ import axios from '@/utils/request' +import request from "@/utils/request"; //--------------获取领用单据------------------- export function getReceiveOrder(query) { @@ -35,6 +36,14 @@ export function getAudit(query) { }); } +// 根据领用单单添加详情表 +export function addOrderDetailAndApply(data) { + return request({ + url: "/receive/order/addOrderDetailAndApply", + method: 'post', + data: data + }) +} diff --git a/src/views/inout/receive/selectReveiceListDialog.vue b/src/views/inout/receive/selectReveiceListDialog.vue new file mode 100644 index 00000000..af357302 --- /dev/null +++ b/src/views/inout/receive/selectReveiceListDialog.vue @@ -0,0 +1,335 @@ + + + + + diff --git a/src/views/purchase/purApply/purApply.vue b/src/views/purchase/purApply/purApply.vue index 837f09a9..d7c4dc1b 100644 --- a/src/views/purchase/purApply/purApply.vue +++ b/src/views/purchase/purApply/purApply.vue @@ -209,6 +209,7 @@ export default { }, getId(id){ if( this.formName=='add' && id!=null){ + debugger var data={ id:id } @@ -268,7 +269,7 @@ export default { }); }, handleClose(){ - if( this.formName=='add' && this.pId!=null){ + if( this.formName=='add'){ this.isChang=!this.isChang }else{ this.newSpDistributionVisible=false diff --git a/src/views/purchase/purApply/purApplyEditDiaolog.vue b/src/views/purchase/purApply/purApplyEditDiaolog.vue index 7005a0cc..66785344 100644 --- a/src/views/purchase/purApply/purApplyEditDiaolog.vue +++ b/src/views/purchase/purApply/purApplyEditDiaolog.vue @@ -63,17 +63,14 @@ + - 产品录入 - + + 产品录入 + 选入计划单 + + @@ -121,6 +118,23 @@ :purType="1" > + + + + + @@ -136,6 +150,8 @@ import { updateDetail } from "@/api/purchase/purApply"; import {filterSubByInv} from "@/api/system/invSubWarehouse"; +import {addPlanId} from "@/api/purchase/purPlan"; +import SelectRecelveListDialog from "@/views/inout/receive/selectReveiceListDialog"; export default { name: "idQuery", @@ -195,6 +211,7 @@ export default { 2: "普通采购", }, orderEditor: true, + selectApplyVisible:false, sOptions: [], sValue: [], sList: [], @@ -218,6 +235,7 @@ export default { components: { draggable, purApplyProducts, + SelectRecelveListDialog }, methods: { saveOrder(status) { @@ -304,6 +322,7 @@ export default { }, closeDialogC2(rData) { this.selectProductVisible = false; + this.selectApplyVisible = false; this.query={ orderIdFk:rData } @@ -344,6 +363,19 @@ export default { this.getList(); } }, + selectApply() { + this.selectApplyVisible = true; + //当父id为空的时候生成id + if(this.pId==null){ + addApplyId().then(response => { + if (response.code === 20000) { + this.pId=response.data + } + }).catch(() => { + this.loading = false; + }) + } + }, deleteCodeArray(index, row) { this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", { confirmButtonText: "确定",