|
|
|
@ -163,7 +163,7 @@
|
|
|
|
|
v-model="details.etd"
|
|
|
|
|
@change="changeEtd"
|
|
|
|
|
>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none;"/>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none;" />
|
|
|
|
|
</a-date-picker>
|
|
|
|
|
<span class="week" v-if="etdWeek">W{{ etdWeek || '--' }}</span>
|
|
|
|
|
</div>
|
|
|
|
@ -186,7 +186,7 @@
|
|
|
|
|
placeholder="实际开船"
|
|
|
|
|
v-model="details.atd"
|
|
|
|
|
>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none;"/>
|
|
|
|
|
<a-icon slot="suffixIcon" type="time" style="display: none;" />
|
|
|
|
|
</a-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
@ -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 (
|
|
|
|
|
<a-checkbox
|
|
|
|
|
value={row['BC']}
|
|
|
|
|
on-change={(val) => {
|
|
|
|
|
on-change={val => {
|
|
|
|
|
console.log(val)
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'col6',
|
|
|
|
@ -442,12 +442,12 @@ export default {
|
|
|
|
|
return (
|
|
|
|
|
<a-checkbox
|
|
|
|
|
value={row['col6']}
|
|
|
|
|
on-change={(val) => {
|
|
|
|
|
on-change={val => {
|
|
|
|
|
console.log(val)
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'col7',
|
|
|
|
@ -458,16 +458,16 @@ export default {
|
|
|
|
|
return (
|
|
|
|
|
<a-checkbox
|
|
|
|
|
value={row['col7']}
|
|
|
|
|
on-change={(val) => {
|
|
|
|
|
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()
|
|
|
|
|