From 37630069ea5db733bd8d20fd6b10b5000fb99eb9 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 08 四月 2024 10:55:57 +0800
Subject: [PATCH] 发货单关联发货仓库
---
src/views/sales/salesDetails/index.vue | 73 +++++++-----------------------------
1 files changed, 14 insertions(+), 59 deletions(-)
diff --git a/src/views/sales/salesDetails/index.vue b/src/views/sales/salesDetails/index.vue
index 80dde63..a6acc06 100644
--- a/src/views/sales/salesDetails/index.vue
+++ b/src/views/sales/salesDetails/index.vue
@@ -33,11 +33,11 @@
<!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">鍒犻櫎</el-button> -->
<el-button @click.stop="closeClick(scope.row)" type="text" size="small">鍏抽棴</el-button>
</template>
- <template v-if="scope.row.status === 3 || scope.row.status === 4">
+ <template v-if="scope.row.status === 3">
<el-button @click.stop="shipmentsClick(scope.row)" type="text" size="small">鍙戣揣</el-button>
</template>
- <template v-if="scope.row.status === 3 || scope.row.status === 4">
- <el-button @click.stop="confirmClick(scope.row)" type="text" size="small">纭瀹屾垚</el-button>
+ <template v-if="scope.row.status === 3">
+ <el-button @click.stop="confirmClick(scope.row)" type="text" size="small">鍙戣揣瀹屾垚</el-button>
</template>
</template>
</el-table-column>
@@ -192,15 +192,15 @@
label: "閲囪喘鏁伴噺",
isClass: true,
getClassName: this.getFinishAmountClassName,
- prop: "purchaseAmount2",
+ prop: "purchaseAmount",
},
{
- label: "鐢熶骇鏁伴噺", prop: "makeAmount2",
+ label: "鐢熶骇鏁伴噺", prop: "makeAmount",
isClass: true,
getClassName: this.getFinishAmountClassName,
},
{
- label: "濮斿鏁伴噺", prop: "outsourcingAmount2",
+ label: "濮斿鏁伴噺", prop: "outsourcingAmount",
isClass: true,
getClassName: this.getFinishAmountClassName,
},
@@ -630,6 +630,7 @@
},
// 鑾峰彇鍒堕�犱俊鎭�
async getProductOrderInfo(number) {
+ console.log(number,this.TabsIndex,"number")
if (number) {
if (this.TabsIndex == 0) {
// 浜у搧淇℃伅鍒楄〃
@@ -694,7 +695,7 @@
let b1 = number1 || number1 == 0 ? number1 : "--";
string1 = b1 + "/" + a1;
}
- item.purchaseAmount2 = string1
+ item.purchaseAmount = string1
let string2 = "--";
let number2 = item.makeFinishAmount;
let val2 = item.makeAmount
@@ -703,7 +704,7 @@
let b2 = number2 || number2 == 0 ? number2 : "--";
string2 = b2 + "/" + a2;
}
- item.makeAmount2 = string2
+ item.makeAmount = string2
let string3 = "--";
let number3 = item.outsourcingFinishAmount;
let val3 = item.outsourcingAmount
@@ -712,7 +713,7 @@
let b3 = number3 || number3 == 0 ? number3 : "--";
string3 = b3 + "/" + a3;
}
- item.outsourcingAmount2 = string3
+ item.outsourcingAmount = string3
}))
}
this.productTableList.tableInfomation = res.data && res.data.productInfo ? res.data.productInfo : []
@@ -784,7 +785,7 @@
this.editShipmentsConfig.infomation.saleDetailID = row.id
this.editShipmentsConfig.infomation.deliverType = row.deliverType ? row.deliverType : 1
this.editShipmentsConfig.infomation.saleDetailNumber = row.number
- this.editShipmentsConfig.infomation.projectId = row.projectId
+ // this.editShipmentsConfig.infomation.projectId = row.projectId
},
// 纭鍙戣揣瀹屾垚
async confirmClick(row) {
@@ -794,60 +795,15 @@
console.log(res, "resss")
if (res.data) {
this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : []
- // let accumulator=res.data
- // const reducedArray = array.reduce((accumulator, currentItem) => {
- // // 鏌ユ壘褰撳墠number鏄惁宸插瓨鍦ㄤ簬accumulator涓�
- // const existingItem = accumulator.find(item => item.number === currentItem.number);
- // if (existingItem) {
- // // 濡傛灉瀛樺湪锛岀疮鍔爊um
- // existingItem.amount += currentItem.amount;
- // } else {
- // // 濡傛灉涓嶅瓨鍦紝灏嗗綋鍓嶉」娣诲姞鍒癮ccumulator涓�
- // accumulator.push(currentItem);
- // }
- // return accumulator;
- // }, []); // 鍒濆鍖朼ccumulator涓轰竴涓┖鏁扮粍
-
- // console.log(reducedArray,"鏂版暟缁�");
}
this.loading = false
})
- // let obj=[
- // {
- // name:"灏忔槑",
- // id:1,
- // num:10
- // },
- // {
- // name:"灏忔槑",
- // id:1,
- // num:20
- // },
- // {
- // name:"灏忔槑",
- // id:1,
- // num:5
- // },
- // {
- // name:"灏忕孩",
- // id:1,
- // num:5
- // },
- // {
- // name:"灏忕孩",
- // id:1,
- // num:10
- // },
- // {
- // name:"灏忔埧",
- // id:5,
- // num:3
- // },
- // ]
.catch(() => {
this.productTableList.tableInfomation = []
this.loading = false
})
+
+ this.updateStatus(row.id, 4)
// await confirmOutputOver({saleDetailNumber:row.number}).then((res)=>{
// if(res&&res.code===200){
// this.$message.success("纭鍙戣揣瀹屾垚")
@@ -857,8 +813,7 @@
},
// 鍏抽棴
closeClick(row) {
- console.log(row, "鍏抽棴")
- this.updateStatus(row.id, 4)
+ this.updateStatus(row.id, 6)
},
// 淇敼鐘舵��
async updateStatus(id, status) {
--
Gitblit v1.8.0