lijingjia 3 weeks ago
parent 5edd58df42
commit ba2592e80c

@ -65,6 +65,8 @@ enum Api {
GetClientListByCode = '/mainApi/ClientCommon/GetClientListByCode', GetClientListByCode = '/mainApi/ClientCommon/GetClientListByCode',
// 供应商客户类型 // 供应商客户类型
GetSupplierListByCode = '/mainApi/ClientCommon/GetSupplierListByCode', GetSupplierListByCode = '/mainApi/ClientCommon/GetSupplierListByCode',
// 全部单位下拉
GetSupplierAndClientListByCode = '/mainApi/ClientCommon/GetSupplierAndClientListByCode',
// 费用名称下拉数据 // 费用名称下拉数据
GetFeeCodeSelectList = '/mainApi/ClientCommon/GetFeeCodeSelectList', GetFeeCodeSelectList = '/mainApi/ClientCommon/GetFeeCodeSelectList',
// 获取箱型下拉数据 // 获取箱型下拉数据
@ -205,7 +207,14 @@ export function GetSupplierListByCode(params) {
params, params,
}) })
} }
// 全部单位下拉
export function GetSupplierAndClientListByCode(params) {
return request<DataResult>({
url: Api.GetSupplierAndClientListByCode,
method: 'get',
params,
})
}
// 获取费用名称下拉数据 // 获取费用名称下拉数据
export function GetFeeCodeSelectList() { export function GetFeeCodeSelectList() {
return request<DataResult>({ return request<DataResult>({

@ -19,7 +19,7 @@ enum Api {
GetPrintInfo = '/feeApi/FeeRecord/GetPrintInfo', GetPrintInfo = '/feeApi/FeeRecord/GetPrintInfo',
GetFees = '/feeApi/PaymentApplication/GetFees', GetFees = '/feeApi/PaymentApplication/GetFees',
ApplyBusinessAudit = '/feeApi/FeeRecord/ApplyBusinessAudit', ApplyBusinessAudit = '/feeApi/FeeRecord/ApplyBusinessAudit',
WithdrawBusiness = '/feeApi/FeeRecordWithdrawBusiness', WithdrawBusiness = '/feeApi/FeeRecord/WithdrawBusiness',
SubmitWithAudit = '/feeApi/FeeRecord/SubmitWithAudit' SubmitWithAudit = '/feeApi/FeeRecord/SubmitWithAudit'
} }
// 列表 (Auth) // 列表 (Auth)

@ -62,7 +62,7 @@
import { feeStatusList } from './columns' import { feeStatusList } from './columns'
import { GetList, SubmitFee, DeleteFee, ApplyAudit, Withdraw, SubmitWithAudit } from './api' import { GetList, SubmitFee, DeleteFee, ApplyAudit, Withdraw, SubmitWithAudit } from './api'
// //
import { GetClientListByCode } from '/@/api/common' import { GetSupplierAndClientListByCode } from '/@/api/common'
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
// //
import { getDictOption } from '/@/utils/dictUtil' import { getDictOption } from '/@/utils/dictUtil'
@ -239,7 +239,7 @@
visible: true, visible: true,
source: async (query, process) => { source: async (query, process) => {
if (query && query.indexOf('~') > -1) query = query.split('~')[1] if (query && query.indexOf('~') > -1) query = query.split('~')[1]
GetClientListByCode({ queryKey: query }).then((res) => { GetSupplierAndClientListByCode({ queryKey: query }).then((res) => {
const { data } = res const { data } = res
data.forEach((item) => { data.forEach((item) => {
item['label'] = item.shortName item['label'] = item.shortName

@ -28,6 +28,7 @@
size="mini" size="mini"
:loading="getBindValues.loading" :loading="getBindValues.loading"
@cell-dblclick="dbclickVxeRow" @cell-dblclick="dbclickVxeRow"
@checkbox-change="vxeCheckBoxChange"
> >
<vxe-column type="checkbox" width="40"></vxe-column> <vxe-column type="checkbox" width="40"></vxe-column>
<vxe-column <vxe-column
@ -77,7 +78,6 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import type { BasicTableProps, TableActionType, SizeType, ColumnChangeParam } from './types/table' import type { BasicTableProps, TableActionType, SizeType, ColumnChangeParam } from './types/table'
import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect } from 'vue' import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect } from 'vue'
import { Table, Pagination } from 'ant-design-vue' import { Table, Pagination } from 'ant-design-vue'
import { BasicForm, useForm } from '/@/components/Form/index' import { BasicForm, useForm } from '/@/components/Form/index'
@ -375,12 +375,16 @@ export default defineComponent({
emit('row-dbClick', row) emit('row-dbClick', row)
// props.rowDbClick(row) // props.rowDbClick(row)
} }
const vxeCheckBoxChange = (v) => {
console.log(v)
}
return { return {
formRef, formRef,
tableElRef, tableElRef,
getBindValues, getBindValues,
getLoading, getLoading,
registerForm, registerForm,
vxeCheckBoxChange,
handleSearchInfoChange, handleSearchInfoChange,
getEmptyDataIsShowTable, getEmptyDataIsShowTable,
handleTableChange, handleTableChange,

@ -131,8 +131,6 @@
} }
onMounted(() => { onMounted(() => {
emitter.on('sendBaseInfo', (v) => { emitter.on('sendBaseInfo', (v) => {
console.log(v)
console.log(changeType)
if (changeType == 'controller') { if (changeType == 'controller') {
setFieldsValue({ setFieldsValue({
customerName: v.customerName || null, customerName: v.customerName || null,
@ -143,7 +141,7 @@
customerId: v.forwarderId, customerId: v.forwarderId,
customerName: v.forwarder customerName: v.forwarder
}) })
} else if (changeType == 'shipper') { } else if (changeType == 'shippercn') {
setFieldsValue({ setFieldsValue({
customerName: v.shipperCn, customerName: v.shipperCn,
customerId: v.shipperCnId customerId: v.shipperCnId

Loading…
Cancel
Save