From 0ec635d5e432be07c3103ac2e9bd25edb941f775 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 18 十月 2023 17:12:21 +0800
Subject: [PATCH] 跟进记录,销售明细单,退货单客户关联修改
---
src/views/sales/salesDetails/AddSalesDetailsDialog.vue | 69 +++++++++++++++++++++-------------
1 files changed, 43 insertions(+), 26 deletions(-)
diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
index d41ffc8..6de4c84 100644
--- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
+++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -24,7 +24,7 @@
<div class="basic-info-view">
<el-row>
<el-col :span="12">
- <el-form-item label="璁㈠崟缂栧彿" prop="number">
+ <el-form-item label="鏄庣粏鍗曠紪鍙�" prop="number">
<WordInput
v-if="codenumer && (explain != '' || isIdDisabled) && method == 0"
:codenumer="codenumer"
@@ -488,7 +488,8 @@
editSelectChanceConfig: {
editVisible: false,
title: "",
- infomation: {}
+ infomation: {},
+ search_map: {}
},
editSelCommonConfig: {
editVisible: false,
@@ -496,7 +497,7 @@
infomation: {}
},
clientId: this.editCommonConfig.infomation.client_id,
- saleChanceId: this.editCommonConfig.infomation.saleChanceId,
+ saleChanceId: this.editCommonConfig.infomation.sale_chance_id,
subbillId: this.editCommonConfig.infomation.subbillId,
productId: 1,
isNoProduct: true,
@@ -547,7 +548,7 @@
getAllData()
.then((res) => {
this.memberOptions = res.data.member
- this.dataProcess()
+ // this.dataProcess()
})
.catch((err) => {
console.log(err)
@@ -563,6 +564,7 @@
// 淇濆瓨
saveClick(formName) {
this.$refs[formName].validate((valid) => {
+ this.validateFormNumber()
if (valid) {
console.log(this.editConfig.infomation)
for (let i = 0; i < this.tableData.length; i++) {
@@ -672,33 +674,42 @@
}
}
},
- async handleSelectClient(value, item) {
+ // 閿�鍞満浼氬垪琛�
+ async getSaleChanceList(item) {
+ await getSaleChanceList({
+ page: 1,
+ pageSize: 15,
+ search_map: {
+ client_id: item.id
+ }
+ }).then((res) => {
+ console.log(res)
+ this.saleChancelist = res.data.list
+ })
+ },
+ // 閿�鍞瓙鍗曞垪琛�
+ async getSubOrderList(item) {
+ await getSubOrderList({
+ page: 1,
+ pageSize: 15,
+ search_map: {
+ client_id: item.id
+ }
+ }).then((res) => {
+ this.subOrderList = res.data.list
+ })
+ },
+ handleSelectClient(value, item) {
if (value === "client") {
+ this.editConfig.infomation.subbill_name =""
+ this.editConfig.infomation.sale_chance_name=""
this.clientId = item.id
this.editConfig.infomation.client_name = item.name
- // 闇�瑕佷慨鏀�
- await getSaleChanceList({
- page: 1,
- pageSize: 15,
- search_map: {
- client_id: item.id
- }
- }).then((res) => {
- console.log(res)
- this.saleChancelist = res.data.list
- })
- await getSubOrderList({
- page: 1,
- pageSize: 15,
- search_map: {
- client_id: item.id
- }
- }).then((res) => {
- this.subOrderList = res.data.list
- })
+ this.getSaleChanceList(item)
+ this.getSubOrderList(item)
} else if (value === "chance") {
this.saleChanceId = item.id
- this.editConfig.infomation.client_name = item.name
+ this.editConfig.infomation.sale_chance_name = item.name
} else if (value === "subbill") {
console.log("涓嬫媺妗嗙偣鍑�", item)
this.subbillId = item.id
@@ -719,8 +730,12 @@
},
selClient(row, value) {
if (value === "client") {
+ this.editConfig.infomation.sale_chance_name=""
+ this.editConfig.infomation.subbill_name=""
this.editConfig.infomation.client_name = row.name
this.clientId = row.id
+ this.getSaleChanceList(row)
+ this.getSubOrderList(row)
} else if (value === "chance") {
this.editConfig.infomation.sale_chance_name = row.name
this.saleChanceId = row.id
@@ -732,7 +747,9 @@
// 娓呴櫎宸查�夋嫨鐢ㄦ埛
clearupClient(value) {
if (value === "client") {
+ this.editConfig.infomation.sale_chance_name=""
this.editConfig.infomation.client_name = ""
+ this.editConfig.infomation.subbill_name =""
this.clientId = 0
} else if (value === "chance") {
this.editConfig.infomation.sale_chance_name = ""
--
Gitblit v1.8.0