|
|
|
@ -34,13 +34,14 @@
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="">
|
|
|
|
|
<div>委托单位</div>
|
|
|
|
|
<a-select show-search v-model:value="item.customerId"
|
|
|
|
|
<a-select show-search v-model:value="item.customerName"
|
|
|
|
|
:default-active-first-option="false" :show-arrow="false"
|
|
|
|
|
:filter-option="false" :not-found-content="null"
|
|
|
|
|
@search="SearchCustomer">
|
|
|
|
|
:filter-option="false" :not-found-content="null" @change="e => {
|
|
|
|
|
ChangeUser(e, 'customerId', 5, index)
|
|
|
|
|
}" @search="SearchCustomer">
|
|
|
|
|
<a-select-option v-for="(item1, index1) in CustomerList" :key="index1"
|
|
|
|
|
:value="item1.id">
|
|
|
|
|
{{ item1.shortName }}
|
|
|
|
|
:value="item1.pinYinCode">
|
|
|
|
|
{{ item1.pinYinCode }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
@ -48,15 +49,15 @@
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="">
|
|
|
|
|
<div>客服</div>
|
|
|
|
|
<a-select show-search v-model:value="item.custServiceId"
|
|
|
|
|
<a-select show-search v-model:value="item.custService"
|
|
|
|
|
:default-active-first-option="false" :show-arrow="false"
|
|
|
|
|
:filter-option="false" :not-found-content="null" allowClear
|
|
|
|
|
@search="SearchUser($event, 0)" @change="e => {
|
|
|
|
|
ChangeUser(e, 'custserviceName', 0, index)
|
|
|
|
|
ChangeUser(e, 'custServiceId', 0, index)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item1 in UserListCus" :key="item1.id"
|
|
|
|
|
:value="item1.id">
|
|
|
|
|
:value="item1.pinYinCode">
|
|
|
|
|
{{ item1.pinYinCode }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
@ -65,15 +66,15 @@
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="">
|
|
|
|
|
<div>销售</div>
|
|
|
|
|
<a-select show-search v-model:value="item.saleId"
|
|
|
|
|
<a-select show-search v-model:value="item.sale"
|
|
|
|
|
:default-active-first-option="false" :show-arrow="false"
|
|
|
|
|
:filter-option="false" :not-found-content="null" allowClear
|
|
|
|
|
@search="SearchUser($event, 1)" @change="e => {
|
|
|
|
|
ChangeUser(e, 'sale', 1, index)
|
|
|
|
|
ChangeUser(e, 'saleId', 1, index)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item1 in UserListSale" :key="item1.id"
|
|
|
|
|
:value="item1.id">
|
|
|
|
|
:value="item1.pinYinCode">
|
|
|
|
|
{{ item1.pinYinCode }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
@ -82,15 +83,15 @@
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="">
|
|
|
|
|
<div>操作</div>
|
|
|
|
|
<a-select show-search v-model:value="item.opId"
|
|
|
|
|
<a-select show-search v-model:value="item.op"
|
|
|
|
|
:default-active-first-option="false" :show-arrow="false" allowClear
|
|
|
|
|
:filter-option="false" :not-found-content="null"
|
|
|
|
|
@search="SearchUser($event, 2)" @change="e => {
|
|
|
|
|
ChangeUser(e, 'op', 2, index)
|
|
|
|
|
ChangeUser(e, 'opId', 2, index)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserListOp" :key="item.id"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
:value="item.pinYinCode">
|
|
|
|
|
{{ item.pinYinCode }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
@ -99,15 +100,15 @@
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="">
|
|
|
|
|
<div>单证</div>
|
|
|
|
|
<a-select show-search v-model:value="item.docId" allowClear
|
|
|
|
|
<a-select show-search v-model:value="item.doc" allowClear
|
|
|
|
|
:default-active-first-option="false" :show-arrow="false"
|
|
|
|
|
:filter-option="false" :not-found-content="null"
|
|
|
|
|
@search="SearchUser($event, 3)" @change="e => {
|
|
|
|
|
ChangeUser(e, 'doc', 3, index)
|
|
|
|
|
ChangeUser(e, 'docId', 3, index)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserListDoc" :key="item.id"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
:value="item.pinYinCode">
|
|
|
|
|
{{ item.pinYinCode }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
@ -116,15 +117,15 @@
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="">
|
|
|
|
|
<div>商务</div>
|
|
|
|
|
<a-select show-search v-model:value="item.businessId" allowClear
|
|
|
|
|
<a-select show-search v-model:value="item.business" allowClear
|
|
|
|
|
:default-active-first-option="false" :show-arrow="false"
|
|
|
|
|
:filter-option="false" :not-found-content="null"
|
|
|
|
|
@search="SearchUser($event, 4)" @change="e => {
|
|
|
|
|
ChangeUser(e, 'business', 4, index)
|
|
|
|
|
ChangeUser(e, 'businessId', 4, index)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
|
<a-select-option v-for="item in UserListBus" :key="item.id"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
:value="item.pinYinCode">
|
|
|
|
|
{{ item.pinYinCode }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
@ -629,7 +630,7 @@ function getDetail() {
|
|
|
|
|
optionsStore.getOptionsByCodeAsync('GetCustomerServiceList').then(res => {
|
|
|
|
|
UserListCus.value = res
|
|
|
|
|
})
|
|
|
|
|
GetControllerClientList().then(res => {
|
|
|
|
|
GetClientListByCode({ queryKey: '', code: 'controller' }).then(res => {
|
|
|
|
|
CustomerList.value = res.data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -646,36 +647,43 @@ function ChangeUser(e, Tname, type, index) {
|
|
|
|
|
if (e) {
|
|
|
|
|
if (type === 0) {
|
|
|
|
|
UserListCus.value.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.name
|
|
|
|
|
if (item.pinYinCode == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 1) {
|
|
|
|
|
UserListSale.value.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.name
|
|
|
|
|
if (item.pinYinCode == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 2) {
|
|
|
|
|
UserListOp.value.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.name
|
|
|
|
|
if (item.pinYinCode == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 3) {
|
|
|
|
|
UserListDoc.value.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.name
|
|
|
|
|
if (item.pinYinCode == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 4) {
|
|
|
|
|
UserListDoc.value.forEach(item => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.name
|
|
|
|
|
if (item.pinYinCode == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type === 4) {
|
|
|
|
|
CustomerList.value.forEach(item => {
|
|
|
|
|
if (item.pinYinCode == e) {
|
|
|
|
|
form.value.bookingSlotSaleInfoList[index][Tname] = item.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -744,10 +752,10 @@ const useFlag = ref(false)
|
|
|
|
|
function handleOpenUse() {
|
|
|
|
|
setFieldsValueUse({
|
|
|
|
|
useType: 'add',
|
|
|
|
|
useToValShow:'',
|
|
|
|
|
useTo:'',
|
|
|
|
|
useToVal:'',
|
|
|
|
|
useToName:''
|
|
|
|
|
useToValShow: '',
|
|
|
|
|
useTo: '',
|
|
|
|
|
useToVal: '',
|
|
|
|
|
useToName: ''
|
|
|
|
|
})
|
|
|
|
|
useFlag.value = true
|
|
|
|
|
}
|
|
|
|
@ -780,10 +788,10 @@ function editUse(row, index) {
|
|
|
|
|
row.useType = 'edit'
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
setFieldsValueUse({
|
|
|
|
|
...row
|
|
|
|
|
})
|
|
|
|
|
...row
|
|
|
|
|
})
|
|
|
|
|
}, 100)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 点击箱
|
|
|
|
|