From 3143af8ed01e8cc3e12a31fb0166590967c53b22 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:32:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=A2=E6=88=B7=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../detail/modules/basicInfo.vue | 91 +++++++++++--------
1 file changed, 51 insertions(+), 40 deletions(-)
diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
index ec9acf9..c1b6f5c 100644
--- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
@@ -171,7 +171,7 @@
v-model="details.etd"
@change="changeEtd"
>
-
+
W{{ etdWeek || '--' }}
@@ -194,7 +194,7 @@
placeholder="实际开船"
v-model="details.atd"
>
-
+
@@ -348,20 +348,26 @@
import { XCard } from '@/components'
import { AutoComplete } from 'ant-design-vue'
-import { DjyCustomerpage, GetCarrierlist, GetVessellist, GetSysUserPage, GetForwarderlist } from '@/api/modular/main/BookingLedger'
+import {
+ DjyCustomerpage,
+ GetCarrierlist,
+ GetVessellist,
+ GetSysUserPage,
+ GetForwarderlist
+} from '@/api/modular/main/BookingLedger'
export default {
name: 'BookingDetail',
components: {
XCard,
- AutoComplete,
+ AutoComplete
},
props: {
details: {
type: Object,
default: () => {
return {}
- },
+ }
},
ishd: {
type: Boolean,
@@ -374,12 +380,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'],
@@ -400,14 +406,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,
@@ -418,7 +424,7 @@ export default {
// 全选改变事件
selectedAllChange: ({ isSelected, selectedRowKeys }) => {
console.log('全选', isSelected, selectedRowKeys)
- },
+ }
},
columns: [
{
@@ -428,7 +434,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 },
@@ -443,12 +449,12 @@ export default {
return (
{
+ on-change={val => {
console.log(val)
}}
/>
)
- },
+ }
},
{
field: 'col6',
@@ -459,12 +465,12 @@ export default {
return (
{
+ on-change={val => {
console.log(val)
}}
/>
)
- },
+ }
},
{
field: 'col7',
@@ -475,16 +481,16 @@ export default {
return (
{
+ on-change={val => {
console.log(val)
}}
/>
)
- },
- },
+ }
+ }
],
tableData: [],
- etdWeek: '',
+ etdWeek: ''
// 选择客户 / 关系人弹窗 - end
}
},
@@ -634,7 +640,7 @@ export default {
} else {
return []
}
- },
+ }
},
watch: {
details: {
@@ -642,11 +648,11 @@ export default {
// console.log('数据改变', nval)
this.$emit('changeDetail', {
detail: nval,
- type: 'baseInfo',
+ type: 'baseInfo'
})
},
- deep: true,
- },
+ deep: true
+ }
},
created() {
this.init()
@@ -673,15 +679,15 @@ export default {
SearchValue: name,
PropString: key
})
- .then((res) => {
+ .then(res => {
if (res.code === 200) {
// this.customerData = res.data.rows
this[`${type}Data`] = res.data.rows
- console.log(this[`${type}DataArr`])
+ console.log(this[`${type}DataArr`])
this.$forceUpdate()
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -706,15 +712,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)
})
},
@@ -731,15 +737,15 @@ export default {
// 船代 - start
getForwarderlist(name = '') {
GetForwarderlist({
- Name: name,
+ Name: name
})
- .then((res) => {
+ .then(res => {
if (res.code === 200) {
this.shipagencyData = res.data
this.$forceUpdate()
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -755,15 +761,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)
})
},
@@ -808,9 +814,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
@@ -823,7 +829,7 @@ export default {
}
}
})
- .catch((err) => {
+ .catch(err => {
console.log(err)
})
},
@@ -872,8 +878,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()