From 4a63f03516cc177ad60ebbe28a65e80587846b3e Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 24 八月 2023 14:56:45 +0800
Subject: [PATCH] 新增销售退款单增加选择退货单及其他bug
---
src/views/sales/contractManage/index.vue | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/src/views/sales/contractManage/index.vue b/src/views/sales/contractManage/index.vue
index 4b4bf52..001d21c 100644
--- a/src/views/sales/contractManage/index.vue
+++ b/src/views/sales/contractManage/index.vue
@@ -8,6 +8,7 @@
:search-options="searchOptions"
@searchClick="searchClick"
@resetClick="resetClick"
+ :search-sel="searchSel"
/>
<div class="btn-pager">
<PublicFunctionBtnView
@@ -93,11 +94,22 @@
infomation: {}
},
selValueList: [],
- search_map: {}
+ search_map: {},
+ searchSel: {
+ value: "number",
+ label: "鍗曟嵁缂栧彿"
+ }
}
},
created() {
this.setTable()
+ if (!this.isDetail) {
+ this.search_map = {}
+ } else {
+ this.search_map = {
+ [this.addConfig.id_name]: this.addConfig.client_name
+ }
+ }
this.getData()
},
methods: {
@@ -106,16 +118,17 @@
tableInfomation: [],
tableColumn: [
{ label: "鍗曟嵁缂栧彿", prop: "number", min: 120, isCommonClick: true },
- { label: "璐熻矗浜�", prop: "memberId", min: 90 },
- { label: "瀹℃壒鐘舵��", prop: "approvalStatus" },
+ { label: "璐熻矗浜�", prop: "member_name", min: 90 },
+ // { label: "瀹℃壒鐘舵��", prop: "approvalStatus" },
{ label: "鍒涘缓浜�", prop: "creator", min: 100 },
- { label: "鍒涘缓鏃堕棿", prop: "createTime" }
+ { label: "鍒涘缓鏃堕棿", prop: "created_at" }
]
}
this.searchOptions = []
for (let i = 0; i < this.tableList.tableColumn.length; i++) {
const label = this.tableList.tableColumn[i].label
- this.searchOptions.push({ value: (i + 1).toString(), label: label })
+ const value = this.tableList.tableColumn[i].prop
+ this.searchOptions.push({ value: value, label: label })
}
},
// 璇锋眰鏁版嵁
@@ -132,7 +145,10 @@
if (res.data.list && res.data.list.length > 0) {
const list = res.data.list.map((item) => {
return {
- ...item
+ ...item,
+ member_name: item.member.username,
+ client_name: item.client.name,
+ quotation_number: item.quotation.number
}
})
this.tableList.tableInfomation = list || []
--
Gitblit v1.8.0