From ca2f8ec80605b35350c21a0534b8f72fb74e7378 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Mon, 13 May 2024 16:54:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E4=BC=98=E5=8C=96-0513-=E7=94=B3=E8=B4=AD=E3=80=81=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E3=80=81=E5=90=88=E5=90=8C=E3=80=81=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E5=88=B0=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purApply/purApply.vue | 11 +++++++---- src/views/purchase/purApply/purApplyEditDiaolog.vue | 6 ++++++ src/views/purchase/purApply/pureApplyAudit.vue | 11 ++++++----- src/views/purchase/purApply/pureApplyMySearch.vue | 7 ++++--- src/views/purchase/purApply/pureApplySearch.vue | 7 ++++--- .../purchase/purApply/pureApplySearchDetails.vue | 7 ++++--- src/views/purchase/purContract/purContract.vue | 13 ++++++++----- .../purContract/purContractDetailDialog.vue | 6 ++++++ .../purchase/purContract/purContractEditDialog.vue | 6 ++++++ .../purchase/purContract/purContractFinish.vue | 11 ++++++----- .../purchase/purContract/purContractReviewed.vue | 10 +++++++--- .../purchase/purContract/purContractSelectPlan.vue | 5 +++++ .../purchase/purContract/selectPurContract.vue | 5 +++++ src/views/purchase/purOrder/purOrder.vue | 10 ++++++---- src/views/purchase/purOrder/purOrderAudit.vue | 7 ++++--- .../purchase/purOrder/purOrderDetailDialog.vue | 6 ++++++ src/views/purchase/purOrder/purOrderEditDialog.vue | 6 ++++++ src/views/purchase/purOrder/purOrderSearch.vue | 4 ++++ .../purchase/purOrder/purOrderSearchDetails.vue | 4 ++++ src/views/purchase/purPlan/purPlan.vue | 12 +++++++----- src/views/purchase/purPlan/purPlanAudit.vue | 8 ++++++-- src/views/purchase/purPlan/purPlanDetailDialog.vue | 6 ++++++ src/views/purchase/purPlan/purPlanEditDialog.vue | 6 ++++++ src/views/purchase/purPlan/purPlanSearch.vue | 7 ++++--- src/views/purchase/purPlan/purPlanSearchDetails.vue | 7 ++++--- src/views/purchase/purPlan/selectPlanListDialog.vue | 10 ++++++---- 26 files changed, 143 insertions(+), 55 deletions(-) diff --git a/src/views/purchase/purApply/purApply.vue b/src/views/purchase/purApply/purApply.vue index 810d4cf3..58018b85 100644 --- a/src/views/purchase/purApply/purApply.vue +++ b/src/views/purchase/purApply/purApply.vue @@ -404,6 +404,7 @@ :before-close="handleClose" > @@ -200,6 +202,7 @@ export default { name: "purContract", data() { return { + pageType:null, defaultSort: {prop: 'createTime', order: 'desc'}, showSearch: true, pId: null, @@ -217,7 +220,8 @@ export default { editStatus: 1, emergency: '', deptCode: '', - invCode: null + invCode: null, + pageType: this.$route.query.pageType }, invCodebe: null, formName: null, @@ -359,9 +363,6 @@ export default { return obj }, onReset() { - this.$router.push({ - path: "", - }); this.filterQuery = { billNo: "", thirdSysFk: "", @@ -376,7 +377,8 @@ export default { status: 11, editStatus: 1, deptCode: this.invCodebe, - invCode: null + invCode: null, + pageType: this.pageType }; this.actDateRange = []; this.getInvList() @@ -601,6 +603,7 @@ export default { created() { this.getList(); this.getInvList(); + this.pageType = this.$route.query.pageType; } , } diff --git a/src/views/purchase/purContract/purContractDetailDialog.vue b/src/views/purchase/purContract/purContractDetailDialog.vue index 3ea3f46c..8f5762bf 100644 --- a/src/views/purchase/purContract/purContractDetailDialog.vue +++ b/src/views/purchase/purContract/purContractDetailDialog.vue @@ -170,6 +170,10 @@ import {auditOrder, delApplyDetail, listApplyDetail} from "@/api/purchase/purCon export default { name: "idQuery", props: { + pageType: { + type: Object, + required: true, + }, closeDialog: { type: Function, required: true, @@ -204,6 +208,7 @@ export default { targetInv: 1000, targetSubInv: null, targetBillAction: null, + pageType: null, }, formRules: {}, codeArray: [], @@ -264,6 +269,7 @@ export default { submitFunction(status) { let tMessage = status === '1' ? '保存' : '提交'; this.loading = true; + this.formData.pageType = this.pageType let tQuery = { autoPurchase: this.formData.autoPurchase, targetSubInv: this.formData.targetSubInv, diff --git a/src/views/purchase/purContract/purContractEditDialog.vue b/src/views/purchase/purContract/purContractEditDialog.vue index a811e7d7..c0fa5000 100644 --- a/src/views/purchase/purContract/purContractEditDialog.vue +++ b/src/views/purchase/purContract/purContractEditDialog.vue @@ -301,6 +301,10 @@ import {findInvByUser} from "@/api/system/invSubWarehouse"; export default { name: "idQuery", props: { + pageType: { + type: Object, + required: true, + }, closeDialog: { type: Function, required: true, @@ -354,6 +358,7 @@ export default { payAmount: null, payType: null, payDate: null, + pageType: null, }, pId: null, formRules: {}, @@ -492,6 +497,7 @@ submitFunction(status) let tMessage = status === '1' ? '保存' : '提交'; this.loading = true; this.formData.id = this.pId; + this.formData.pageType = this.pageType let tQuery = { editStatus: status, purContractEntity: this.formData, diff --git a/src/views/purchase/purContract/purContractFinish.vue b/src/views/purchase/purContract/purContractFinish.vue index e78aedc9..4ff90933 100644 --- a/src/views/purchase/purContract/purContractFinish.vue +++ b/src/views/purchase/purContract/purContractFinish.vue @@ -200,6 +200,7 @@ export default { name: "purContract", data() { return { + pageType:null, defaultSort: {prop: 'createTime', order: 'desc'}, showSearch: true, pId: null, @@ -217,7 +218,8 @@ export default { editStatus: 1, emergency: '', deptCode: '', - invCode: null + invCode: null, + pageType: this.$route.query.pageType }, invCodebe: null, formName: null, @@ -359,9 +361,6 @@ export default { return obj }, onReset() { - this.$router.push({ - path: "", - }); this.filterQuery = { billNo: "", thirdSysFk: "", @@ -376,7 +375,8 @@ export default { status: 12, editStatus: 1, deptCode: this.invCodebe, - invCode: null + invCode: null, + pageType: this.pageType }; this.actDateRange = []; this.getInvList() @@ -601,6 +601,7 @@ export default { created() { this.getList(); this.getInvList(); + this.pageType = this.$route.query.pageType; } , } diff --git a/src/views/purchase/purContract/purContractReviewed.vue b/src/views/purchase/purContract/purContractReviewed.vue index b4c1adad..e0f90a3f 100644 --- a/src/views/purchase/purContract/purContractReviewed.vue +++ b/src/views/purchase/purContract/purContractReviewed.vue @@ -94,7 +94,7 @@ 删除 审批详情 + v-show=" scope.row.status != 1 && scope.row.status !='' ">审批 @@ -200,6 +200,7 @@ export default { name: "purContract", data() { return { + pageType:null, defaultSort: {prop: 'createTime', order: 'desc'}, showSearch: true, pId: null, @@ -217,7 +218,8 @@ export default { editStatus: 1, emergency: '', deptCode: '', - invCode: null + invCode: null, + pageType: this.$route.query.pageType }, invCodebe: null, formName: null, @@ -376,7 +378,8 @@ export default { status: 10, editStatus: 1, deptCode: this.invCodebe, - invCode: null + invCode: null, + pageType: this.pageType }; this.actDateRange = []; this.getInvList() @@ -601,6 +604,7 @@ export default { created() { this.getList(); this.getInvList(); + this.pageType = this.$route.query.pageType; } , } diff --git a/src/views/purchase/purContract/purContractSelectPlan.vue b/src/views/purchase/purContract/purContractSelectPlan.vue index 7b8aca9c..15659d5d 100644 --- a/src/views/purchase/purContract/purContractSelectPlan.vue +++ b/src/views/purchase/purContract/purContractSelectPlan.vue @@ -123,6 +123,10 @@ import {importPlan} from "@/api/purchase/purContract"; export default { name: "purContractSelectPlan", props: { + pageType: { + type: Object, + required: true, + }, closeDialog: { type: Function, required: true, @@ -166,6 +170,7 @@ export default { total:0, page: 1, limit: 10, + pageType: this.pageType, } } }, diff --git a/src/views/purchase/purContract/selectPurContract.vue b/src/views/purchase/purContract/selectPurContract.vue index 0932b2bb..127bef93 100644 --- a/src/views/purchase/purContract/selectPurContract.vue +++ b/src/views/purchase/purContract/selectPurContract.vue @@ -121,6 +121,10 @@ import {listPlan, listApplyDetail} from "@/api/purchase/purContract"; export default { name: "purContractSelectPlan", props: { + pageType: { + type: Object, + required: true, + }, closeDialog: { type: Function, required: true, @@ -174,6 +178,7 @@ export default { total:0, page: 1, limit: 10, + pageType: this.pageType, }, detailquery: { diff --git a/src/views/purchase/purOrder/purOrder.vue b/src/views/purchase/purOrder/purOrder.vue index 31e26f38..28818a7c 100644 --- a/src/views/purchase/purOrder/purOrder.vue +++ b/src/views/purchase/purOrder/purOrder.vue @@ -389,6 +389,7 @@ :before-close="handleClose" >