From ce247af69bdbd81f50213e637cab608ba1bb6938 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 03 十一月 2026 16:49:40 +0800
Subject: [PATCH] feat(outsourcing): 新增外协订单管理模块及配套功能优化
---
src/views/business/materialOrder/customsInspectionOrder.vue | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/src/views/business/materialOrder/customsInspectionOrder.vue b/src/views/business/materialOrder/customsInspectionOrder.vue
index 64d350e..17292ed 100644
--- a/src/views/business/materialOrder/customsInspectionOrder.vue
+++ b/src/views/business/materialOrder/customsInspectionOrder.vue
@@ -632,13 +632,8 @@
// },
isOutsourcing:{
deep: true,
- handler(newVal){
- if(newVal && newVal==='t'){
- this.addObj.appointed = dateFormat(new Date(),'yyyy-MM-dd')
- this.addObj.testQuantity = this.customsInspection.qtyArrived
- this.addObj.orderType = '杩涘巶妫�楠�'
- this.addObj.typeSource = 0
- }
+ handler(){
+ this.initOrderSource()
}
},
productList: {
@@ -674,6 +669,7 @@
this.currentId = this.$route.query.currentId
this.isReport = this.$route.query.isReport
this.customsInspection = this.$route.query.customsInspection
+ this.initOrderSource()
this.getInfo();
},
activated() {
@@ -683,12 +679,23 @@
this.currentId = this.$route.query.currentId
this.isReport = this.$route.query.isReport
this.customsInspection = this.$route.query.customsInspection
+ this.initOrderSource()
this.getInfo();
},
// getInfo() {
// this.getInfo() // 鑾峰彇鏁版嵁
// },
methods: {
+ // 姣忔杩涘叆涓嬪崟椤甸潰鏄庣‘璁剧疆鏉ユ簮锛岄伩鍏嶅鐢ㄧ紦瀛橀〉闈㈡椂娌跨敤涓婁竴寮犺鍗曘��
+ initOrderSource() {
+ if (this.active !== 1) return
+ this.addObj.typeSource = this.isOutsourcing === 't' ? 0 : 1
+ if (this.isOutsourcing === 't') {
+ this.addObj.appointed = dateFormat(new Date(),'yyyy-MM-dd')
+ this.addObj.testQuantity = this.customsInspection.qtyArrived
+ this.addObj.orderType = '杩涘巶妫�楠�'
+ }
+ },
goBackAdd () {
this.cableConfigShow = false
},
--
Gitblit v1.9.3