diff --git a/src/api/wms/customerSaleInvoiceDetail/index.ts b/src/api/wms/customerSaleInvoiceDetail/index.ts index 19d594304..774630b37 100644 --- a/src/api/wms/customerSaleInvoiceDetail/index.ts +++ b/src/api/wms/customerSaleInvoiceDetail/index.ts @@ -27,6 +27,17 @@ export const getCustomerSaleInvoiceDetailPage = async (params) => { return await request.get({ url: `/wms/customer-sale-invoice-detail/page`, params }) } } +// 查询客户销售开票子信息表(WMS)列表 +export const getCustomerSaleInvoiceRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/customer-sale-invoice-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/customer-sale-invoice-record-detail/page`, params }) + } +} + // 查询客户销售开票子信息表(WMS)详情 export const getCustomerSaleInvoiceDetail = async (id: number) => { @@ -49,8 +60,22 @@ export const deleteCustomerSaleInvoiceDetail = async (id: number) => { } // 导出客户销售开票子信息表(WMS) Excel -export const exportCustomerSaleInvoiceDetail = async (params) => { - return await request.download({ url: `/wms/customer-sale-invoice-detail/export-excel`, params }) +export const exportCustomerSaleInvoiceRequestDetail = async (params) => { + if (params.isSearch) { + const data = { ...params } + return await request.downloadPost({ url: `/wms/customer-sale-invoice-detail/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customer-sale-invoice-detail/export-excel`, params }) + } +} +// 导出客户销售开票子信息表(WMS) Excel +export const exportCustomerSaleInvoiceRecordDetail = async (params) => { + if (params.isSearch) { + const data = { ...params } + return await request.downloadPost({ url: `/wms/customer-sale-invoice-record-detail/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customer-sale-invoice-record-detail/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/customerSaleInvoiceMain/index.ts b/src/api/wms/customerSaleInvoiceMain/index.ts index 991113b7d..7bad6f0c0 100644 --- a/src/api/wms/customerSaleInvoiceMain/index.ts +++ b/src/api/wms/customerSaleInvoiceMain/index.ts @@ -48,11 +48,24 @@ export const deleteCustomerSaleInvoiceMain = async (id: number) => { return await request.delete({ url: `/wms/customer-sale-invoice-main/delete?id=` + id }) } -// 导出客户销售开票主信息表(WMS) Excel +// 导出设备制造商 Excel export const exportCustomerSaleInvoiceMain = async (params) => { - return await request.download({ url: `/wms/customer-sale-invoice-main/export-excel`, params }) + if (params.isSearch) { + const data = { ...params } + return await request.downloadPost({ url: `/wms/customer-sale-invoice-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customer-sale-invoice-main/export-excel`, params }) + } +} +// 导出销售开票记录 Excel +export const exportCustomerSaleInvoiceRecordMain = async (params) => { + if (params.isSearch) { + const data = { ...params } + return await request.downloadPost({ url: `/wms/customer-sale-invoice-record-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/customer-sale-invoice-record-main/export-excel`, params }) + } } - // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/customer-sale-invoice-main/get-import-template' }) @@ -62,9 +75,27 @@ export const importTemplate = () => { export const getCustomerSaleInvoiceRecodeMainPage = async (params) => { if (params.isSearch) { delete params.isSearch - // const data = {...params} - // return await request.post({ url: '/wms/customer-sale-invoice-main/senior', data }) + const data = {...params} + return await request.post({ url: '/wms/customer-sale-invoice-record-main/senior', data }) } else { return await request.get({ url: `/wms/customer-sale-invoice-record-main/page`, params }) } +} +// 销售开票申请 发布功能 +export const publish = async (id: number) => { + return await request.get({ url: `/wms/customer-sale-invoice-main/publish?id=` + id}) +} + +// 销售开票申请 作废功能 +export const nodeAbrogate = async (id: number) => { + return await request.get({ url: `/wms/customer-sale-invoice-main/nodeAbrogate?id=` + id}) +} + +// 从客户对账单中获取客户代码 -- 销售申请 +export const getCustomerList = async () => { + return await request.get({ url: `/wms/customer-statement-main/getCustomerList`}) +} +// 从客户对账单中获取客户代码 -- 销售记录 +export const getRecordCustomerList = async () => { + return await request.get({ url: `/wms/customer-sale-invoice-record-main/getCustomerList`}) } \ No newline at end of file diff --git a/src/api/wms/purchaseClaimRequestDetail/index.ts b/src/api/wms/purchaseClaimRequestDetail/index.ts index 807f97df5..0d4a45117 100644 --- a/src/api/wms/purchaseClaimRequestDetail/index.ts +++ b/src/api/wms/purchaseClaimRequestDetail/index.ts @@ -15,29 +15,29 @@ export const getPurchaseClaimRequestDetailList = async (supplierCode) => { } // 创建采购索赔子 export const createPurchaseClaimRequestDetail = async (data) => { - return await request.post({ url: `/wms/purchase-claim-request-detail/create`, data }) + return await request.post({ url: `/wms/purchaseClaim-request-detail/create`, data }) } // 修改采购索赔子 export const updatePurchaseClaimRequestDetail = async (data) => { - return await request.put({ url: `/wms/purchase-claim-request-detail/update`, data }) + return await request.put({ url: `/wms/purchaseClaim-request-detail/update`, data }) } // 删除采购索赔子 export const deletePurchaseClaimRequestDetail = async (id) => { - return await request.delete({ url: `/wms/purchase-claim-request-detail/delete?id=` + id }) + return await request.delete({ url: `/wms/purchaseClaim-request-detail/delete?id=` + id }) } // 获得采购索赔子 export const getPurchaseClaimRequestDetail = async (id) => { - return await request.get({ url: `/wms/purchase-claim-request-detail/get?id=` + id }) + return await request.get({ url: `/wms/purchaseClaim-request-detail/get?id=` + id }) } // 导出采购索赔子 Excel export const exportPurchaseClaimRequestDetailExcel = async (params) => { if (params.isSearch) { const data = {...params} - return await request.downloadPost({url: `/wms/purchase-claim-request-detail/export-excel-senior`, data}) + return await request.downloadPost({ url: `/wms/purchaseClaim-request-detail/export-excel-senior`, data}) } else { - return await request.download({ url: `/wms/purchase-claim-request-detail/export-excel`, params }) + return await request.download({ url: `/wms/purchaseClaim-request-detail/export-excel`, params }) } } diff --git a/src/api/wms/purchaseClaimRequestMain/index.ts b/src/api/wms/purchaseClaimRequestMain/index.ts index 9a7356333..e9805950d 100644 --- a/src/api/wms/purchaseClaimRequestMain/index.ts +++ b/src/api/wms/purchaseClaimRequestMain/index.ts @@ -44,6 +44,15 @@ export const deletePurchaseClaimRequestMain = async (id: number) => { return await request.delete({ url: `/wms/purchaseClaim-request-main/delete?id=` + id }) } +// 关闭审批采购索赔 +export const closePurchaseClaimRequestMain = async (id: number) => { + return await request.put({ url: `/wms/purchaseClaim-request-main/close?id=` + id }) +} +// 关闭审批采购索赔 +export const reAddPurchaseClaimRequestMain = async (id: number) => { + return await request.put({ url: `/wms/purchaseClaim-request-main/reAdd?id=` + id }) +} + // 提交审批采购索赔 export const subPurchaseClaimRequestMain = async (id: number) => { return await request.post({ url: `/wms/purchaseClaim-request-main/sub?id=` + id }) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index ba1ba9f05..f465845f0 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -476,6 +476,12 @@ const props = defineProps({ required: false, default: 8 }, + // 根据状态判断是否自定义子表弹窗 + isChangeDetailDrawer:{ + type:Array, + required: false, + default: () => [] + }, }) const allSchemas = ref(props.allSchemas) const detailAllSchemasRef = ref(props.detailAllSchemas) @@ -1015,9 +1021,23 @@ const buttonTableClick = async (val, row) => { } } /** 添加/修改操作 */ +// 根据状态返回判断详情是否显示自定义弹窗 +const isShowChangeDetailDrawer = (row, val) => { + if(!val || val &&val.length == 0) return false; + if (val.indexOf(row.status) > -1) { + return true + } else { + return false + } +} const openForm = async (type: string, row?: number) => { - formRef.value.open(type, row, masterParmas.value) - emit('detailOpenForm', type, row) + // 自定义弹框 + if (isShowChangeDetailDrawer(curRow.value,props.isChangeDetailDrawer)) { + emit('detailOpenForm', type, row, masterParmas.value) + }else{ + formRef.value.open(type, row, masterParmas.value) + emit('detailOpenForm', type, row) + } } // form 提交 const submitForm = async (formType, data) => { diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 1db5931f7..57bdadce7 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -283,6 +283,7 @@ export enum DICT_TYPE { CONTAINER_STATUS = 'container_status', // 容器状态 PREDICT_TIME_TYPE = 'predict_time_type', // 预测时间类型 PACK_UNIT_TYPE = 'pack_unit_type', // 包装规格类型 + PACK_DATA_SOURCE = 'pack_data_source', // 物料包装数据来源 TRANSFER_REASON = 'transfer_reason', // 调拨出入库原因 PURCHASERECEIPT_SOURCE_TYPE = 'purchasereceipt_source_type', //采购收货数据来源 PLAN_PRODUCTION_TYPE = 'plan_production_type', // 生产计划类型 @@ -410,5 +411,7 @@ export enum DICT_TYPE { RECEIVE_STATUS = 'receive_status', // 收货确认状态 LINE_SCRAP_REASON = 'Reason_or_scrapping_of_production_line', // 线边报废原因(现场史力维护的字典) CUSTOMER_STATEMENT_TYPE = 'customer_statement_type', // wms客户对账单 模具分摊状态 - DELIVER_METHOD = 'deliver_method' + DELIVER_METHOD = 'deliver_method', + CUSTOMER_SALE_INVOICE_TYPE = 'customer_saleInvoice_type' // 销售开票 + } diff --git a/src/views/infra/outerApiHis/index.vue b/src/views/infra/outerApiHis/index.vue index 2751182d7..d0b555db2 100644 --- a/src/views/infra/outerApiHis/index.vue +++ b/src/views/infra/outerApiHis/index.vue @@ -128,7 +128,7 @@ const butttondata = (row) =>{ return [ // defaultButtons.mainListEditBtn({hasPermi:'wms:outerApiHis:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:outerApiHis:delete'}), // 删除 - defaultButtons.retryBtn({hide: row.times >= 3}), // 重试 + defaultButtons.retryBtn({hide: row.times >= 3 || row.success}), // 重试 ] } diff --git a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts index 9c1472a0a..800f1e5dc 100644 --- a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts @@ -18,6 +18,16 @@ export const Customer = useCrudSchemas(reactive([ fixed: 'left' }, }, + { + label: '顺引代码', + field: 'shunyinCode', + isSearch: true, + sort: 'custom', + table: { + width: 150, + fixed: 'left' + }, + }, { label: '名称', field: 'name', @@ -294,6 +304,9 @@ export const CustomerRules = reactive({ { max: 50, message: '不得超过50个字符', trigger: 'blur' }, { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], + shunyinCode: [ + { max: 50, message: '不得超过50个字符', trigger: 'blur' } + ], name: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], diff --git a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts index 2b03e0a20..4d9eee3a4 100644 --- a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts +++ b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts @@ -151,6 +151,7 @@ export const Bom = useCrudSchemas(reactive([ label: '层级', field: 'layer', sort: 'custom', + isTable:false, // form: { // component: 'Input', // componentProps: { diff --git a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue index da269f299..078117066 100644 --- a/src/views/wms/basicDataManage/itemManage/itembasic/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itembasic/index.vue @@ -371,11 +371,14 @@ const changeTabs = (item) => { tabsExtend.value = false allSchemas.value = Itembasic.allSchemas } - detailAllSchemas.value.tableColumns.map((item,index) => { + if (detailAllSchemas.value && detailAllSchemas.value.tableColumns) { + detailAllSchemas.value.tableColumns.map((item,index) => { if (item.field == 'action') { detailAllSchemas.value.tableColumns.splice(index,1) } }) + } + // 当前物料代码作为条件 tableObjectExtend.value = [{ key: 'itemCode', diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue index 6037ec1dc..358c4d3ef 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue @@ -357,6 +357,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { const setV = {} setV[formField] = val[0][searchField] if('itemCode'==formField){ + setV['itemName'] = val[0]['name'] setV['uom'] = val[0]['uom'] } if('packUnit'==formField){ diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts index 2fed930a9..e9004c76c 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts @@ -46,6 +46,24 @@ export const Itempackaging = useCrudSchemas(reactive([ } } }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + isSearch: false, + table: { + width: 120 + }, + form: { + componentProps: { + disabled: true + } + }, + isTable:true, + isTableForm:true, + isForm:true, + isDetail:true + }, { label: '计量单位', field: 'uom', @@ -56,7 +74,8 @@ export const Itempackaging = useCrudSchemas(reactive([ isTable: true, table: { width: 120 - },form: { + }, + form: { // labelMessage: '信息提示说明!!!', componentProps: { disabled: true @@ -231,10 +250,25 @@ export const Itempackaging = useCrudSchemas(reactive([ field: 'dataSource', sort: 'custom', isForm:false, + dictType: DICT_TYPE.PACK_DATA_SOURCE, + dictClass: 'string', table: { width: 180 }, }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: false, + table: { + width: 120 + }, + isTable:true, + isTableForm:true, + isForm:true, + isDetail:true + }, { label: '创建时间', field: 'createTime', diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue index 8fa8ae8a9..d942b9216 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue @@ -167,14 +167,13 @@ v-else-if="item.ParamCode == 'Project'" :disabled="formData.priority==0&&formType=='update'" /> - + + + @@ -483,6 +482,8 @@ import * as TransactiontypeApi from '@/api/wms/transactiontype' import { Transactiontype } from '@/views/wms/basicDataManage/documentSetting/transactiontype/transactiontype.data' import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' import * as ProductionlineApi from '@/api/wms/productionline' +import * as ItembasicApi from '@/api/wms/itembasic' +import { Itembasic} from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' import { Customer, CustomerRules } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' import * as CustomerApi from '@/api/wms/customer' @@ -605,7 +606,7 @@ const options = reactive({ { value: 'ItemType', label: '物料类型' }, { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, - { value: 'Project', label: '项目' }, + // { value: 'Project', label: '项目' }, { value: 'AbcClass', label: 'ABC类' }, { value: 'ItemStatus', label: '物料状态' } ], @@ -853,6 +854,21 @@ const blurCustomerList = async ()=>{ } } } + +//物料 +const searchItemCode = ()=>{ + searchTableRef.value.open( + '请选择物料', + Itembasic.allSchemas, + ItembasicApi.getItembasicPage, + 'ItemCode', + 'code', + true, + undefined, + undefined, + undefined + ) +} // 生产线 const searchTransactionType = ()=>{ searchTableRef.value.open( @@ -960,6 +976,14 @@ const searchTableSuccess = (formField, searchField, val, type, row) => { } return } + if(formField=='ItemCode'){ + // 条件规则--物料 + let itemCode = formData.value.condition.find(item=>item['ParamCode']=='ItemCode') + if(itemCode){ + itemCode.Value = val.map(item=>(item['code'])).join(',') + } + return + } // let searchTableTitle = warehouseType.value == 'WarehouseCode'?'请选择仓库':warehouseType.value == 'AreaCode'?'请选择库区':warehouseType.value == 'LocationGroupCode'?'请选择库位组':warehouseType.value == 'LocationCode'?'请选择库位':'' console.log('searchTableSuccess',formField, searchField, val, type, row) console.log(val.map(item=>(item['code'])).join(',')) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index 0435b7bcb..2cf69dc8d 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -215,14 +215,13 @@ v-else-if="item.ParamCode == 'Project'" :disabled="formData.priority==0&&formType=='update'" /> - + + + @@ -680,7 +679,8 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import * as TransactiontypeApi from '@/api/wms/transactiontype' import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' import * as ProductionlineApi from '@/api/wms/productionline' - +import * as ItembasicApi from '@/api/wms/itembasic' +import { Itembasic} from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 @@ -792,7 +792,7 @@ const options = reactive({ { value: 'ItemType', label: '物料类型' }, { value: 'ItemGroup', label: '物料分组' }, { value: 'ItemCode', label: '物料' }, - { value: 'Project', label: '项目' }, + // { value: 'Project', label: '项目' }, { value: 'AbcClass', label: 'ABC类' }, { value: 'ItemStatus', label: '物料状态' } ], @@ -1009,6 +1009,23 @@ const blurWarehouse = async ()=>{ }) } + + +//物料 +const searchItemCode = ()=>{ + searchTableRef.value.open( + '请选择物料', + Itembasic.allSchemas, + ItembasicApi.getItembasicPage, + 'ItemCode', + 'code', + true, + undefined, + undefined, + undefined + ) +} + //事务类型 const searchTransactionType = ()=>{ searchTableRef.value.open( @@ -1108,6 +1125,14 @@ const searchTableSuccess = (formField, searchField, val, type, row) => { } return } + if(formField=='ItemCode'){ + // 条件规则--物料 + let itemCode = formData.value.condition.find(item=>item['ParamCode']=='ItemCode') + if(itemCode){ + itemCode.Value = val.map(item=>(item['code'])).join(',') + } + return + } // let searchTableTitle = warehouseType.value == 'WarehouseCode'?'请选择仓库':warehouseType.value == 'AreaCode'?'请选择库区':warehouseType.value == 'LocationGroupCode'?'请选择库位组':warehouseType.value == 'LocationCode'?'请选择库位':'' console.log('searchTableSuccess',formField, searchField, val, type, row) console.log(val.map(item=>(item['code'])).join(',')) diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue index 9e5525a12..05a68ebac 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue @@ -82,7 +82,7 @@ @@ -1045,6 +1045,7 @@ const blurWarehouse = async ({module='config',type})=>{ return } let verifyRes = [] + console.log(222,warehouseValue) if(module=='condition'&&type=='WarehouseCode' || module=='config'&&warehouseType.value == 'WarehouseCode'){ // 仓库 verifyRes = await WarehouseApi.verifyWarehouse({ @@ -1059,13 +1060,13 @@ const blurWarehouse = async ({module='config',type})=>{ console.log('库区verifyRes',verifyRes) }else if(module=='condition'&&type=='LocationGroupCode' || module=='config'&&warehouseType.value == 'LocationGroupCode'){ // 库位组 - let verifyRes = await LocationgroupApi.verifyLocationgroup({ + verifyRes = await LocationgroupApi.verifyLocationgroup({ code:warehouseValue }) console.log('库位组verifyRes',verifyRes) }else if(module=='condition'&&type=='LocationCode' || module=='config'&&warehouseType.value == 'LocationCode'){ // 库位 - let verifyRes = await LocationApi.verifyLocation({ + verifyRes = await LocationApi.verifyLocation({ code:warehouseValue }) console.log('库位verifyRes',verifyRes) @@ -1240,7 +1241,11 @@ const open = async (type: string, strategyCode: string, id?: number) => { formData.value.condition = JSON.parse(data.condition) formData.value.condition.forEach((item, index) => { if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& !Array.isArray(item.Value)) { - item.Value = item.Value.split(',') + if (item.ParamCode != 'WarehouseCode' && item.ParamCode != 'AreaCode' && item.ParamCode != 'LocationGroupCode' && item.ParamCode != 'LocationCode') { + if (item.Value) { + item.Value = item.Value.split(',') + } + } } }) } diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts index 500d5d257..a3c7a12e7 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts @@ -4,7 +4,23 @@ import { CustomerStatementMain, } from '../moldAllocation/customerStatement/customerStatementMain.data' import * as CustomerStatementMainApi from '@/api/wms/customerStatementMain' +import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' +const { t } = useI18n() // 国际化 + +let custormList = [] +try { + custormList = await CustomerSaleInvoiceMainApi.getRecordCustomerList() + if(custormList.length>0){ + custormList.unshift({ + customerCode:'ALL', + customerName:t('ts.全选'), + }) + } + console.log('custormList11',custormList) +} catch (error) { + +} // 表单校验 export const CustomerSaleInvoiceMainRules = reactive({ customerStatementNumber: [required], @@ -25,12 +41,13 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ isForm: false, }, { - label: '状态', - field: 'status', + label: '申请单号', sort: 'custom', isSearch: true, - isForm:false, - // 0:新增1:已发布2已作废 + field: 'requestNumber', + table:{ + width:150 + } }, { label: '客户对账单', @@ -52,6 +69,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ isMainValue: false }] } + }, + table:{ + width:180 } }, { @@ -59,10 +79,30 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ field: 'customerCode', sort: 'custom', isSearch: true, + isDetail:false, form: { componentProps: { disabled:true } + }, + search:{ + component:'Select', + value:custormList.length>1?[custormList[0]['customerCode']]:[], + componentProps: { + showAll:true,// 备用做全选 + multiple:true, + // emptyValues:[null, undefined], + valueOnClear:null, + options:custormList.length>0?custormList.map(item=>({ + label:item.customerName, + value:item.customerCode + })):[] + + } + + }, + table:{ + width:150 } }, { @@ -73,6 +113,10 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ componentProps: { disabled: true } + }, + isDetail:false, + table:{ + width:150 } }, { @@ -83,6 +127,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ componentProps: { disabled: true } + }, + table:{ + width:150 } }, { @@ -114,12 +161,18 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ componentProps: { disabled: true } + }, + table:{ + width:150 } }, { label: '金税票号', field: 'goldenTaxInvoiceNumber', sort: 'custom', + table:{ + width:150 + } }, { label: '开票日期', @@ -141,6 +194,9 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ valueFormat: 'x' } }, + table:{ + width:180 + } }, { @@ -153,13 +209,22 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive([ field: 'createTime', sort: 'custom', formatter: dateFormatter, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } + isTable:false, + isDetail:true, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + isForm: false, + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + formatter: dateFormatter, + isTable:false, + isDetail:true, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' }, isForm: false, }, @@ -237,22 +302,6 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ field: 'qty', sort: 'custom', isSearch: true, - form: { - componentProps: { - enterSearch: true, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择客户对账单', // 输入框占位文本 - searchField: '', // 查询弹窗赋值字段 - searchTitle: '客户对账单信息', // 查询弹窗标题 - searchAllSchemas: CustomerStatementMain.allSchemas, // 查询弹窗所需类 - searchPage: CustomerStatementMainApi.getCustomerStatementMainPage, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - }] - } - }, tableForm: { type: 'InputNumber', precision: 2, diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue index 180cc887c..e5e9c8d30 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/index.vue @@ -1,7 +1,7 @@