feature-JimuReport-1106-yjl
sunzehua 4 weeks ago
parent 573099031c
commit 1307c1d7f1

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

@ -105,7 +105,7 @@
<a-radio value="BLQuery">提单查询</a-radio> <a-radio value="BLQuery">提单查询</a-radio>
<a-radio value="CheckInQuery">可签入</a-radio> <a-radio value="CheckInQuery">可签入</a-radio>
<a-radio value="CheckOutQuery">可签出</a-radio> <a-radio value="CheckOutQuery">可签出</a-radio>
<a-radio value="4">已签出</a-radio> <a-radio value="HasCheckOutQuery">已签出</a-radio>
<a-radio value="BLModifyQuery">改签</a-radio> <a-radio value="BLModifyQuery">改签</a-radio>
<a-radio value="BLSeizeQuery">已扣单</a-radio> <a-radio value="BLSeizeQuery">已扣单</a-radio>
</a-radio-group> </a-radio-group>

Loading…
Cancel
Save