From 422b7bd963e8d02e3d1aec17755ca8dae393530e Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期六, 30 三月 2024 17:09:21 +0800
Subject: [PATCH] 修改销售明细单状态值
---
src/views/sales/salesDetails/index.vue | 54 ++++--------------------------------------------------
1 files changed, 4 insertions(+), 50 deletions(-)
diff --git a/src/views/sales/salesDetails/index.vue b/src/views/sales/salesDetails/index.vue
index a11be66..0bf6b3b 100644
--- a/src/views/sales/salesDetails/index.vue
+++ b/src/views/sales/salesDetails/index.vue
@@ -795,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("纭鍙戣揣瀹屾垚")
@@ -858,8 +813,7 @@
},
// 鍏抽棴
closeClick(row) {
- console.log(row, "鍏抽棴")
- this.updateStatus(row.id, 4)
+ this.updateStatus(row.id, 6)
},
// 淇敼鐘舵��
async updateStatus(id, status) {
@@ -941,7 +895,7 @@
},
// 鐘舵��
getStatus(val) {
- return val === 1 ? "寰呯‘璁�" : val === 2 ? "寰呭垎瑙�" : val === 3 ? "澶囪揣涓�" : val === 4 ? "寰呭嚭搴�" : val === 5 ? "鍑哄簱瀹屾垚" : val === 6 ? "宸插叧闂�" : "--"
+ return val === 1 ? "寰呯‘璁�" : val === 2 ? "寰呭叆搴�" : val === 3 ? "宸插叆搴�" : val === 4 ? "宸插畬鎴�" : val === 5 ? "宸插彇娑�" : val === 6 ? "寰呮敹璐�" : val === 7 ? "閮ㄥ垎鏀惰揣" : val === 8 ? "寰呰川妫�" : "--"
},
// top 琛岀偣鍑�
tableRowClick(row) {
--
Gitblit v1.8.0