dev
张同海 2 years ago
parent c2b6abb2b4
commit 2fe9eae8b4

@ -11,7 +11,7 @@
:allowClear="true" :allowClear="true"
class="customer-input" class="customer-input"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
v-model="details.customername" v-model="details.customername"
:data-source="customerDataArr" :data-source="customerDataArr"
@select="customerSelect" @select="customerSelect"
@ -62,7 +62,7 @@
:allowClear="true" :allowClear="true"
class="customer-input" class="customer-input"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
v-model="details.forwarder" v-model="details.forwarder"
:data-source="forwarderDataArr" :data-source="forwarderDataArr"
@select="forwarderSelect" @select="forwarderSelect"
@ -129,7 +129,7 @@
v-model="details.vessel" v-model="details.vessel"
:data-source="vesselDataArr" :data-source="vesselDataArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="vesselSelect" @select="vesselSelect"
@change="vesselChange" @change="vesselChange"
@focus="vesselChange" @focus="vesselChange"
@ -175,7 +175,7 @@
v-model="details.voynoinner" v-model="details.voynoinner"
:data-source="voynoinnerDataArr" :data-source="voynoinnerDataArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="voynoinnerSelect" @select="voynoinnerSelect"
@change="voynoinnerChange" @change="voynoinnerChange"
@focus="voynoinnerChange" @focus="voynoinnerChange"
@ -224,7 +224,7 @@
v-model="details.lanename" v-model="details.lanename"
:data-source="lanenameDataArr" :data-source="lanenameDataArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="lanenameSelect" @select="lanenameSelect"
@change="lanenameChange" @change="lanenameChange"
@focus="lanenameChange" @focus="lanenameChange"
@ -239,7 +239,7 @@
v-model="details.shipagency" v-model="details.shipagency"
:data-source="shipagencyDataArr" :data-source="shipagencyDataArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="shipagencySelect" @select="shipagencySelect"
@change="shipagencyChange" @change="shipagencyChange"
@focus="shipagencyChange" @focus="shipagencyChange"
@ -276,7 +276,7 @@
v-model="details.sale" v-model="details.sale"
:data-source="saleUserListArr" :data-source="saleUserListArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="saleSelect" @select="saleSelect"
@change="saleChange" @change="saleChange"
@focus="saleChange" @focus="saleChange"
@ -297,7 +297,7 @@
v-model="details.op" v-model="details.op"
:data-source="opUserListArr" :data-source="opUserListArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="opSelect" @select="opSelect"
@change="opChange" @change="opChange"
@focus="opChange" @focus="opChange"
@ -318,7 +318,7 @@
v-model="details.doc" v-model="details.doc"
:data-source="docUserListArr" :data-source="docUserListArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="docSelect" @select="docSelect"
@change="docChange" @change="docChange"
@focus="docChange" @focus="docChange"
@ -339,7 +339,7 @@
v-model="details.custservice" v-model="details.custservice"
:data-source="custserviceUserListArr" :data-source="custserviceUserListArr"
:dropdown-match-select-width="false" :dropdown-match-select-width="false"
:dropdown-style="{ width: '200px'}" :dropdown-style="{ width: '200px' }"
@select="custserviceSelect" @select="custserviceSelect"
@change="custserviceChange" @change="custserviceChange"
@focus="custserviceChange" @focus="custserviceChange"
@ -601,7 +601,8 @@ export default {
{ field: 'email', key: 'email', title: '邮箱', edit: true }, { field: 'email', key: 'email', title: '邮箱', edit: true },
{ field: 'tel', key: 'tel', title: '电话', edit: true }, { field: 'tel', key: 'tel', title: '电话', edit: true },
{ field: 'remark', key: 'remark', title: '备注', edit: true }, { field: 'remark', key: 'remark', title: '备注', edit: true },
{ field: 'roleCode', {
field: 'roleCode',
key: 'roleCode', key: 'roleCode',
title: '角色', title: '角色',
edit: false, edit: false,
@ -615,7 +616,7 @@ export default {
style="width: 240px" style="width: 240px"
placeholder="请选择角色" placeholder="请选择角色"
on-change={val => { on-change={val => {
row['roleCode'] = val row['roleCode'] = val
}} }}
> >
{this.ContactType.map((item, index) => { {this.ContactType.map((item, index) => {
@ -623,7 +624,8 @@ export default {
})} })}
</a-select> </a-select>
) )
} } }
}
], ],
tableData: [], tableData: [],
etdWeek: '', etdWeek: '',
@ -924,6 +926,18 @@ export default {
}) })
}, },
customerSelect(value) { customerSelect(value) {
this.customerData.forEach(item => {
if (item.shortName == value) {
this.details.op = item.op
this.details.opid = item.opid
this.details.sale = item.sale
this.details.saleid = item.saleid
this.details.doc = item.doc
this.details.docid = item.docid
this.details.custservice = item.custservice
this.details.custserviceid = item.custserviceid
}
})
this.details.customername = value this.details.customername = value
const index = this['customerDataArr'].indexOf(value) const index = this['customerDataArr'].indexOf(value)
this.details.customerid = this.customerData[index].id this.details.customerid = this.customerData[index].id
@ -1173,31 +1187,33 @@ export default {
DjyCustomerdetail({ id: this.details.customerid }).then(res => { DjyCustomerdetail({ id: this.details.customerid }).then(res => {
this.customerContactsData = res.data.contacts this.customerContactsData = res.data.contacts
}) })
BookingOrderContactPage({ id: this.details.customerid, BookingId: this.$route.query.id, pageSize: 999 }).then(res => { BookingOrderContactPage({ id: this.details.customerid, BookingId: this.$route.query.id, pageSize: 999 }).then(
res.data.rows.forEach(item => { res => {
let WroleCode = [] res.data.rows.forEach(item => {
if (item.roleCode) { let WroleCode = []
item.roleCode.split(']').forEach(e => { if (item.roleCode) {
if (e) { item.roleCode.split(']').forEach(e => {
e.split('[').forEach(i => { if (e) {
if (i) { e.split('[').forEach(i => {
this.ContactType.forEach(item2 => { if (i) {
if (item2.code == i) { this.ContactType.forEach(item2 => {
WroleCode.push(item2.name) if (item2.code == i) {
} WroleCode.push(item2.name)
}) }
} })
}) }
} })
}) }
} })
item.roleCode = WroleCode }
}) item.roleCode = WroleCode
res.data.rows.map((item, index) => { })
item.rowKey = index res.data.rows.map((item, index) => {
}) item.rowKey = index
this.tableData = res.data.rows })
}) this.tableData = res.data.rows
}
)
} else { } else {
this.$message.warning('请先选择客户!') this.$message.warning('请先选择客户!')
} }
@ -1330,7 +1346,7 @@ export default {
.table-no-data { .table-no-data {
text-align: center; text-align: center;
} }
/deep/ .date-box{ /deep/ .date-box {
padding-top: 7px !important; padding-top: 7px !important;
} }

@ -146,6 +146,8 @@ export default {
}) })
}, },
handleCancel() { handleCancel() {
this.file = {}
this.fileList = []
this.form.resetFields() this.form.resetFields()
this.visible = false this.visible = false
} }

@ -164,6 +164,8 @@ export default {
}) })
}, },
handleCancel() { handleCancel() {
this.file = {}
this.fileList = []
this.form.resetFields() this.form.resetFields()
this.visible = false this.visible = false
} }

Loading…
Cancel
Save