From a1e19f1e83fd9298bb99275b09c5cb8890e52057 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com>
Date: Wed, 23 Nov 2022 11:03:29 +0800
Subject: [PATCH] 11/23
---
.../detail/modules/basicInfo.vue | 77 ++++++++++---------
1 file changed, 41 insertions(+), 36 deletions(-)
diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
index 8f5687f..f5e276f 100644
--- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
@@ -163,7 +163,7 @@
v-model="details.etd"
@change="changeEtd"
>
-
+
W{{ etdWeek || '--' }}
@@ -186,7 +186,7 @@
placeholder="实际开船"
v-model="details.atd"
>
-
+
@@ -339,14 +339,14 @@ export default {
name: 'BookingDetail',
components: {
XCard,
- AutoComplete,
+ AutoComplete
},
props: {
details: {
type: Object,
default: () => {
return {}
- },
+ }
},
ishd: {
type: Boolean,
@@ -359,12 +359,12 @@ export default {
labelCol: {
xs: { span: 24 },
sm: { span: 8 },
- md: { span: 10 },
+ md: { span: 10 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 15 },
- md: { span: 13 },
+ md: { span: 13 }
},
form: this.$form.createForm(this),
dataSource: ['Burns Bay Road', 'Downing Street', 'Wall Street'],
@@ -383,14 +383,14 @@ export default {
customerModelconfirm: false,
rowStyleOption: {
clickHighlight: false,
- hoverHighlight: false,
+ hoverHighlight: false
},
cellAutofillOption: true,
editOption: {
// cell value change
cellValueChange: ({ row, column }) => {
console.log('编辑', row, column)
- },
+ }
},
checkboxOption: {
hideSelectAll: false,
@@ -401,7 +401,7 @@ export default {
// 全选改变事件
selectedAllChange: ({ isSelected, selectedRowKeys }) => {
console.log('全选', isSelected, selectedRowKeys)
- },
+ }
},
columns: [
{
@@ -411,7 +411,7 @@ export default {
title: '',
width: 50,
operationColumn: true,
- align: 'center',
+ align: 'center'
},
{ field: 'col1', key: 'col1', title: '联系人', edit: true },
{ field: 'col2', key: 'col2', title: '邮箱', edit: true },
@@ -426,12 +426,12 @@ export default {
return (
{
+ on-change={val => {
console.log(val)
}}
/>
)
- },
+ }
},
{
field: 'col6',
@@ -442,12 +442,12 @@ export default {
return (
{
+ on-change={val => {
console.log(val)
}}
/>
)
- },
+ }
},
{
field: 'col7',
@@ -458,16 +458,16 @@ export default {
return (
{
+ on-change={val => {
console.log(val)
}}
/>
)
- },
- },
+ }
+ }
],
tableData: [],
- etdWeek: '',
+ etdWeek: ''
// 选择客户 / 关系人弹窗 - end
}
},
@@ -591,7 +591,7 @@ export default {
} else {
return []
}
- },
+ }
},
watch: {
details: {
@@ -599,11 +599,11 @@ export default {
// console.log('数据改变', nval)
this.$emit('changeDetail', {
detail: nval,
- type: 'baseInfo',
+ type: 'baseInfo'
})
},
- deep: true,
- },
+ deep: true
+ }
},
created() {
this.init()
@@ -627,15 +627,15 @@ export default {
// 客户 - start
getCustomer(name = '') {
DjyCustomerpage({
- ShortName: name,
+ ShortName: name
})
- .then((res) => {
+ .then(res => {
if (res.code === 200) {
this.customerData = res.data.rows
this.$forceUpdate()
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -650,15 +650,15 @@ export default {
// 船公司 - start
getCarrier(name = '') {
GetCarrierlist({
- CnName: name,
+ CnName: name
})
- .then((res) => {
+ .then(res => {
if (res.code === 200) {
this.carrierData = res.data
this.$forceUpdate()
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -675,15 +675,15 @@ export default {
// 船名 - start
getVessel(name = '') {
GetVessellist({
- Name: name,
+ Name: name
})
- .then((res) => {
+ .then(res => {
if (res.code === 200) {
this.vesselData = res.data
this.$forceUpdate()
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -728,9 +728,9 @@ export default {
// 团队成员 - start
getUserList(name = '', type) {
GetSysUserPage({
- SearchValue: name,
+ SearchValue: name
})
- .then((res) => {
+ .then(res => {
if (res.code === 200) {
if (type === 'sale') {
this.saleUserList = res.data.rows
@@ -743,7 +743,7 @@ export default {
}
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -792,8 +792,13 @@ export default {
// 关系人弹窗 - start
changeCustomer(type) {
- this.customerType = type
- this.customerVisible = true
+ if (type == 'add') {
+ this.$router.push({ name: 'CustomerInformationManagementAdd' })
+ localStorage.setItem('CustomerInformationManagementAdd', 'new')
+ } else {
+ this.customerType = type
+ this.customerVisible = true
+ }
},
handleModelSubmit() {
this.handleModelCancel()