From ff2689625e555bbb61a26e0b50bc653f9430e68b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Fri, 11 Nov 2022 17:27:04 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=B1=9E=E6=80=A7?=
=?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/main/Customer/editForm.vue | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/views/main/Customer/editForm.vue b/src/views/main/Customer/editForm.vue
index 9eb005a..e3ca80a 100644
--- a/src/views/main/Customer/editForm.vue
+++ b/src/views/main/Customer/editForm.vue
@@ -312,8 +312,20 @@ export default {
mounted() {
DjyCustomerDetail({ id: this.RowData.id }).then(res => {
this.Data = res.data
+ console.log(res.data)
+ let WpropString = []
+ res.data.propString.split(']').forEach(item => {
+ if (item.split('[')[1]) {
+ WpropString.push(item.split('[')[1])
+ }
+ })
+ res.data.contacts.forEach((item, index) => {
+ item.WebKey = index + 1
+ })
+ this.ContactsData = res.data.contacts
this.form.setFieldsValue({
- ...res.data
+ ...res.data,
+ WpropString
})
})
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346103538081861' }).then(res => {
@@ -387,7 +399,14 @@ export default {
values[key] = JSON.stringify(values[key])
}
}
- DjyCustomerEdit({ ...this.Data, ...values, contacts: this.ContactsData })
+ let propString = ''
+ values.WpropString.split('["')[1]
+ .split('"]')[0]
+ .split('","')
+ .forEach(item2 => {
+ propString == '' ? (propString = `[${item2}]`) : (propString = `${propString}[${item2}]`)
+ })
+ DjyCustomerEdit({ ...this.Data, ...values, propString: propString, contacts: this.ContactsData })
.then(res => {
if (res.success) {
this.$message.success('编辑成功')
From 5e9ed1d01f970c570d1034e63a296baeea2cd0f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Fri, 11 Nov 2022 17:55:51 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=AD=97=E7=AC=A6?=
=?UTF-8?q?=E4=B8=B2=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/main/Customer/index.vue | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/views/main/Customer/index.vue b/src/views/main/Customer/index.vue
index 624934c..df7303b 100644
--- a/src/views/main/Customer/index.vue
+++ b/src/views/main/Customer/index.vue
@@ -88,7 +88,11 @@
:title="item.title"
:align="item.align"
v-if="item.checked"
- >
+ >
+
+ {{ FnRpropString(row) }}
+
+
编辑
@@ -303,6 +307,20 @@ export default {
this.init()
},
methods: {
+ FnRpropString(data) {
+ let propString = ''
+ if (data.propString) {
+ data.propString.split(']').forEach(item => {
+ if (item.split('[')[1]) {
+ propString == ''
+ ? (propString = `${item.split('[')[1]}`)
+ : (propString = `${propString},${item.split('[')[1]}`)
+ }
+ })
+ console.log(propString)
+ }
+ return propString
+ },
cellDBLClickEvent({ row }) {
this.TabsEdit(row)
},
From fd1a243a12507a307a56082ec6a2d334010e2f6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Fri, 11 Nov 2022 17:57:19 +0800
Subject: [PATCH 3/7] 11/11
---
src/views/main/Customer/editForm.vue | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/main/Customer/editForm.vue b/src/views/main/Customer/editForm.vue
index e3ca80a..460b3dd 100644
--- a/src/views/main/Customer/editForm.vue
+++ b/src/views/main/Customer/editForm.vue
@@ -314,11 +314,14 @@ export default {
this.Data = res.data
console.log(res.data)
let WpropString = []
- res.data.propString.split(']').forEach(item => {
- if (item.split('[')[1]) {
- WpropString.push(item.split('[')[1])
- }
- })
+ if (res.data.propString) {
+ res.data.propString.split(']').forEach(item => {
+ if (item.split('[')[1]) {
+ WpropString.push(item.split('[')[1])
+ }
+ })
+ }
+
res.data.contacts.forEach((item, index) => {
item.WebKey = index + 1
})
From fd64bd5b71e4f3314da6ff5b0b619249e04d9f82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Fri, 11 Nov 2022 18:12:44 +0800
Subject: [PATCH 4/7] 11/11
---
src/views/main/Customer/addForm.vue | 14 ++++++++------
src/views/main/Customer/editForm.vue | 14 ++++++++------
src/views/main/Customer/index.vue | 15 ++++++---------
3 files changed, 22 insertions(+), 21 deletions(-)
diff --git a/src/views/main/Customer/addForm.vue b/src/views/main/Customer/addForm.vue
index 4a1e908..1624b92 100644
--- a/src/views/main/Customer/addForm.vue
+++ b/src/views/main/Customer/addForm.vue
@@ -117,11 +117,9 @@
placeholder="请选择属性字符串"
v-decorator="['WpropString', { rules: [{ required: true, message: '请选择属性字符串!' }] }]"
>
- 委托单位
- 车队
- 报关行
- 订舱管理
- 代理
+ {{
+ item.value
+ }}
@@ -305,13 +303,17 @@ export default {
confirmLoading: false,
form: this.$form.createForm(this),
ContactsData: [],
- TypeData: []
+ TypeData: [],
+ propStringData: []
}
},
mounted() {
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346103538081861' }).then(res => {
this.TypeData = res.data.rows
})
+ sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346100897906757' }).then(res => {
+ this.propStringData = res.data.rows
+ })
},
methods: {
removeCheckboxRow() {
diff --git a/src/views/main/Customer/editForm.vue b/src/views/main/Customer/editForm.vue
index 460b3dd..730715b 100644
--- a/src/views/main/Customer/editForm.vue
+++ b/src/views/main/Customer/editForm.vue
@@ -117,11 +117,9 @@
placeholder="请选择属性字符串"
v-decorator="['WpropString', { rules: [{ required: true, message: '请选择属性字符串!' }] }]"
>
- 委托单位
- 车队
- 报关行
- 订舱管理
- 代理
+ {{
+ item.value
+ }}
@@ -306,7 +304,8 @@ export default {
form: this.$form.createForm(this),
ContactsData: [],
Data: {},
- TypeData: []
+ TypeData: [],
+ propStringData: []
}
},
mounted() {
@@ -334,6 +333,9 @@ export default {
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346103538081861' }).then(res => {
this.TypeData = res.data.rows
})
+ sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '346100897906757' }).then(res => {
+ this.propStringData = res.data.rows
+ })
},
methods: {
removeCheckboxRow() {
diff --git a/src/views/main/Customer/index.vue b/src/views/main/Customer/index.vue
index df7303b..78e0d74 100644
--- a/src/views/main/Customer/index.vue
+++ b/src/views/main/Customer/index.vue
@@ -89,9 +89,6 @@
:align="item.align"
v-if="item.checked"
>
-
- {{ FnRpropString(row) }}
-
@@ -220,12 +217,12 @@ const columns = [
width: '80',
dataIndex: 'addrEN'
},
- {
- title: '属性字符串',
- align: 'center',
- width: '100',
- dataIndex: 'propString'
- },
+ // {
+ // title: '属性字符串',
+ // align: 'center',
+ // width: '100',
+ // dataIndex: 'propString'
+ // },
{
title: '发票抬头',
align: 'center',
From 702c07d21936797af604eebd955aaebc73641a0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Mon, 14 Nov 2022 09:34:34 +0800
Subject: [PATCH 5/7] 11/14
---
src/views/main/Customer/addForm.vue | 6 ++---
src/views/main/Customer/editForm.vue | 6 ++---
src/views/main/Customer/index.vue | 2 +-
src/views/main/EDI/addForm.vue | 24 ++++++++++++-----
src/views/main/EDI/editForm.vue | 33 ++++++++++++++++-------
src/views/main/EDI/index.vue | 10 ++++---
src/views/main/WebSiteaccount/addForm.vue | 2 +-
7 files changed, 55 insertions(+), 28 deletions(-)
diff --git a/src/views/main/Customer/addForm.vue b/src/views/main/Customer/addForm.vue
index 1624b92..40a0e9d 100644
--- a/src/views/main/Customer/addForm.vue
+++ b/src/views/main/Customer/addForm.vue
@@ -111,11 +111,11 @@
-
+
{{
item.value
diff --git a/src/views/main/Customer/editForm.vue b/src/views/main/Customer/editForm.vue
index 730715b..26310f7 100644
--- a/src/views/main/Customer/editForm.vue
+++ b/src/views/main/Customer/editForm.vue
@@ -111,11 +111,11 @@
-
+
{{
item.value
diff --git a/src/views/main/Customer/index.vue b/src/views/main/Customer/index.vue
index 78e0d74..e6317e4 100644
--- a/src/views/main/Customer/index.vue
+++ b/src/views/main/Customer/index.vue
@@ -218,7 +218,7 @@ const columns = [
dataIndex: 'addrEN'
},
// {
- // title: '属性字符串',
+ // title: '客户属性',
// align: 'center',
// width: '100',
// dataIndex: 'propString'
diff --git a/src/views/main/EDI/addForm.vue b/src/views/main/EDI/addForm.vue
index 671f3f9..7be76d6 100644
--- a/src/views/main/EDI/addForm.vue
+++ b/src/views/main/EDI/addForm.vue
@@ -11,11 +11,15 @@
-
-
+
+
+ {{
+ item.value
+ }}
+
@@ -156,7 +160,7 @@