diff --git a/src/api/wms/finishedShipmentDetail/index.ts b/src/api/wms/finishedShipmentDetail/index.ts new file mode 100644 index 000000000..fffcf28ee --- /dev/null +++ b/src/api/wms/finishedShipmentDetail/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface FinishedShipmentDetailVO { + id: number + masterId: number + materialCode: string + materialName: string + backNumber: string + materialDescription: string + shipmentQuantity: number + unitPrice: number + lockedQuantity: number + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询已发未结发货记录子列表 +export const getFinishedShipmentDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/finished-shipment-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/finished-shipment-record-detail/page`, params }) + } +} + +// 查询已发未结发货记录子详情 +export const getFinishedShipmentDetail = async (id: number) => { + return await request.get({ url: `/wms/finished-shipment-record-detail/get?id=` + id }) +} + +// 新增已发未结发货记录子 +export const createFinishedShipmentDetail = async (data: FinishedShipmentDetailVO) => { + return await request.post({ url: `/wms/finished-shipment-record-detail/create`, data }) +} + +// 修改已发未结发货记录子 +export const updateFinishedShipmentDetail = async (data: FinishedShipmentDetailVO) => { + return await request.put({ url: `/wms/finished-shipment-record-detail/update`, data }) +} + +// 删除已发未结发货记录子 +export const deleteFinishedShipmentDetail = async (id: number) => { + return await request.delete({ url: `/wms/finished-shipment-record-detail/delete?id=` + id }) +} + +// 导出已发未结发货记录子 Excel +export const exportFinishedShipmentDetail = async (params) => { + return await request.download({ url: `/wms/finished-shipment-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/finished-shipment-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/finishedShipmentMain/index.ts b/src/api/wms/finishedShipmentMain/index.ts new file mode 100644 index 000000000..b3b1666e9 --- /dev/null +++ b/src/api/wms/finishedShipmentMain/index.ts @@ -0,0 +1,56 @@ +import request from '@/config/axios' + +export interface FinishedShipmentMainVO { + id: number + orderNumber: string + shipmentRecordNumber: string + shipmentType: string + customerOrderNumber: string + available: string + deletionTime: Date + deleterId: string + extraProperties: string + concurrencyStamp: number + siteId: string +} + +// 查询已发未结发货记录主列表 +export const getFinishedShipmentMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/finished-shipment-record-main/senior', data }) + } else { + return await request.get({ url: `/wms/finished-shipment-record-main/page`, params }) + } +} + +// 查询已发未结发货记录主详情 +export const getFinishedShipmentMain = async (id: number) => { + return await request.get({ url: `/wms/finished-shipment-record-main/get?id=` + id }) +} + +// 新增已发未结发货记录主 +export const createFinishedShipmentMain = async (data: FinishedShipmentMainVO) => { + return await request.post({ url: `/wms/finished-shipment-record-main/create`, data }) +} + +// 修改已发未结发货记录主 +export const updateFinishedShipmentMain = async (data: FinishedShipmentMainVO) => { + return await request.put({ url: `/wms/finished-shipment-record-main/update`, data }) +} + +// 删除已发未结发货记录主 +export const deleteFinishedShipmentMain = async (id: number) => { + return await request.delete({ url: `/wms/finished-shipment-record-main/delete?id=` + id }) +} + +// 导出已发未结发货记录主 Excel +export const exportFinishedShipmentMain = async (params) => { + return await request.download({ url: `/wms/finished-shipment-record-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/finished-shipment-record-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/supplierinvoiceRequestDetail/index.ts b/src/api/wms/supplierinvoiceRequestDetail/index.ts index cab62a1d5..a5a8f8ea0 100644 --- a/src/api/wms/supplierinvoiceRequestDetail/index.ts +++ b/src/api/wms/supplierinvoiceRequestDetail/index.ts @@ -80,3 +80,8 @@ export const exportSupplierinvoiceRequestDetail = async (params) => { export const importTemplate = () => { return request.download({ url: '/wms/supplierinvoice-request-detail/get-import-template' }) } + +// 模具分摊单价 +export const handleAllocationPrice = async (data) => { + return await request.post({ url: `/wms/supplierinvoice-request-detail/handleAllocationPrice`, data }) +} diff --git a/src/api/wms/suppliperMoldCostDetail/index.ts b/src/api/wms/suppliperMoldCostDetail/index.ts new file mode 100644 index 000000000..bd87e852d --- /dev/null +++ b/src/api/wms/suppliperMoldCostDetail/index.ts @@ -0,0 +1,18 @@ +import request from '@/config/axios' +export const getSupplierMoldCostDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/supplier-tool-apport-statement-detail/senior', data }) + } else { + return await request.get({ url: `/wms/supplier-tool-apport-statement-detail/page`, params }) + } +} +export const exportSupplierMoldCostDetail = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/supplier-tool-apport-statement-detail/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/wms/supplier-tool-apport-statement-detail/export-excel`, params }) + } +} diff --git a/src/api/wms/suppliperMoldCostMain/index.ts b/src/api/wms/suppliperMoldCostMain/index.ts new file mode 100644 index 000000000..c017c1541 --- /dev/null +++ b/src/api/wms/suppliperMoldCostMain/index.ts @@ -0,0 +1,49 @@ +import request from '@/config/axios' +// 从客户对账单中获取客户代码 -- 销售申请 +export const getCustomerList = async () => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/getCustomerList`}) +} +export const getSupplierMoldCostMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/supplier-tool-apport-statement-main/senior', data }) + } else { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/page`, params }) + } +} +export const exportSupplierMoldCostMain = async (params) => { + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/supplier-tool-apport-statement-main/export-excel-senior`, data }) + }else{ + return await request.download({ url: `/wms/supplier-tool-apport-statement-main/export-excel`, params }) + } +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/supplier-tool-apport-statement-main/get-import-template' }) +} +// 导入客户对账单前校验是否有相同客户代码和年月的数据存在 +export const verifyDataExist = async (yearsMonthStr: String,supplierCode:String) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/verifyDataExist?yearsMonthStr=` + yearsMonthStr+'&supplierCode='+supplierCode }) +} + + + + +// 发布 +export const publish = async (id: number) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/publish?id=` + id }) +} + +// 废除 +export const nodeAbrogate = async (id: number) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/nodeAbrogate?id=` + id }) +} + +// 退回 +export const sendBack = async (id: number) => { + return await request.get({ url: `/wms/supplier-tool-apport-statement-main/sendBack?id=` + id }) +} \ No newline at end of file diff --git a/src/components/ImportForm/src/ImportFormOnlyAdd.vue b/src/components/ImportForm/src/ImportFormOnlyAdd.vue index c3c38f032..db90740ea 100644 --- a/src/components/ImportForm/src/ImportFormOnlyAdd.vue +++ b/src/components/ImportForm/src/ImportFormOnlyAdd.vue @@ -259,6 +259,11 @@ const props = defineProps({ type:Boolean, default:false }, + rules:{ + type:Object, + required: false, + default: () => ({}) + }, }) const importTemplateData = ref(props.importTemplateData) const accept = ref(props.accept) @@ -319,6 +324,8 @@ const submitForm = async () => { const elForm = unref(formRef)?.getElFormRef() if (!elForm) return const valid = await elForm.validate() + console.log(valid) + console.log(props.r) if (!valid) return if (fileList.value.length == 0) { diff --git a/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue b/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue new file mode 100644 index 000000000..d916e4e2b --- /dev/null +++ b/src/components/ImportForm/src/ImportSupplierMoldCostForm.vue @@ -0,0 +1,467 @@ + + + + + + + + + + + + + + + + + + + + + + {{t('ts.将文件拖到此处,或')}}{{t('ts.点击上传')}} + + + + + + + + {{ t('ts.下载模板') }} + + + {{ t('ts.确 定') }} + {{ t('ts.取 消') }} + + + + + + + diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index d021328a9..0f323f45d 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -106,7 +106,7 @@ export default defineComponent({ if (!wsCache.get('ShowPackingNumber')) { if (columns) { - columns = columns.filter(item => item.field != 'packingNumber') + columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber') } } for (const v of columnsChildren || columns) { @@ -347,7 +347,7 @@ export default defineComponent({ } = unref(getProps) if (!wsCache.get('ShowPackingNumber')) { if (columns) { - columns = columns.filter(item => item.field != 'packingNumber') + columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber') } } //默认排序 diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 6c6b30820..5e7924a15 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1315,7 +1315,8 @@ export default { 退回成功: 'Returned successfully', 是否确认分摊金额: 'Do you want to confirm the allocation amount?', 创建开票申请: 'Create an invoice request?', - 详情:'Detail' + 详情:'Detail', + 退回:'Return' }, diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 597143fcf..2ffb5015d 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1316,7 +1316,8 @@ export default { 退回成功: '退回成功', 是否确认分摊金额: '是否确认分摊金额?', 创建开票申请: '创建开票申请', - 详情:'详情' + 详情:'详情', + 退回:'退回', }, } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 845be7f91..a9fa2e771 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -415,4 +415,8 @@ export enum DICT_TYPE { DELIVER_METHOD = 'deliver_method', CUSTOMER_SALE_INVOICE_TYPE = 'customer_saleInvoice_type', // 销售开票 LEADERSHIP_MATERIAL_TYPE = 'leadership_material_type', + SUPPLIER_TOOL_APPORT_STATEMENT_MAIN = 'supplier_tool_apport_statement_main', // 供应商模具费用主 + SUPPLIER_TOOL_APPORT_STATEMENT_DETAIL = 'supplier_tool_apport_statement_detail', // 供应商模具费用子 + + } diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts index 805d3d286..f1399603c 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts @@ -38,7 +38,7 @@ export const CallmaterialsRules = reactive({ workStationCode: [required], uom: [required], callmaterialQty: [required], - project: [{ max: 64, message: '最多50字符', trigger: 'blur'}] + project: [{ max: 64, message: '最多64字符', trigger: 'blur'}] }) export const Callmaterials = useCrudSchemas(reactive([ diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue index 1b9035c0a..f75ecb889 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue @@ -104,22 +104,14 @@ :key="'供应商OperatorOption'+cur.value" /> - - - + + + + + + + @@ -149,6 +141,10 @@ + \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts index 48a011078..4d3d7ceab 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts @@ -409,8 +409,10 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ field: 'allocationPrice', sort: 'custom', form: { + component: 'InputNumber', componentProps: { - disabled: true + disabled: true, + precision: 2 } }, tableForm: { @@ -424,6 +426,7 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ field: 'sumPrice', sort: 'custom', form: { + component: 'InputNumber', componentProps: { disabled: true } @@ -437,6 +440,12 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ label: '未税金额', field: 'beforeTaxAmount', sort: 'custom', + form: { + component: 'InputNumber', + componentProps: { + precision: 2 + } + }, tableForm: { type: 'InputNumber', precision: 2, @@ -447,8 +456,8 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ field: 'taxAmount', sort: 'custom', form: { + component: 'InputNumber', componentProps: { - type: 'InputNumber', precision: 2, disabled: true } @@ -464,6 +473,7 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ field: 'afterTaxAmount', sort: 'custom', form: { + component: 'InputNumber', componentProps: { disabled: true, precision: 2, @@ -472,12 +482,14 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive([ tableForm: { disabled: true, type: 'InputNumber', + precision: 2, } }, { label: '操作', field: 'action', isForm: false, + isTableForm: false, table: { width: 150, fixed: 'right' diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue index 332003adb..fd63549de 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue @@ -57,6 +57,21 @@ :detailButtonIsShowDelete="false" :detailButtonIsShowAdd="false" :otherHeadButttonData = "[defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-request-main:export` })]" + :sumFormDataByForm=" + (formRef, formModel) => {console.log('formModel====',formModel) + const { beforeTaxAmount = 0, taxAmount = 0 , qty=0,price,allocationPrice,taxRate=1} = formModel + formRef.value.setValues({ + // 含税金额 = 未税价格+税额,四舍五入保留2位小数 + afterTaxAmount: Number((Number(beforeTaxAmount) + Number(taxAmount)).toFixed(2)), + // 模具分摊单价 默认从模具分摊对账单带出,未税金额修改后重新计算,等于未税金额/数量-销售单价 + allocationPrice: Number(Number(Number(beforeTaxAmount)/Number(qty)) - Number(price)), + // 合计单价 = 销售单价 + 模具分摊单价 + sumPrice:Number(Number(price)+Number(allocationPrice)), + // 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 + taxAmount: Number((Number(beforeTaxAmount) * Number(taxRate)))/100 //含税金额 + }) + } + " @buttonBaseClick="detailButtonBaseClick" @searchTableSuccessDetail="searchTableSuccessDetail" /> @@ -117,7 +132,7 @@ const detailButtonBaseClick = async (val, item,tableObject) => { loadStart() const excelTitle = ref(route.meta.title) const data = await CustomerSaleInvoiceDetailApi.exportCustomerSaleInvoiceRequestDetail(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) + download.excel(data, `【${excelTitle.value}】子表明细【${formatDate(new Date())}】.xlsx`) } catch { } finally { @@ -151,7 +166,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultAddBtn({hasPermi:`wms:customer-sale-invoice-request-main:create` }), // 新增 - defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-request-main:import` }), // 导入 + //defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-request-main:import` }), // 导入 defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-request-main:export` }), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 @@ -217,7 +232,7 @@ const buttonTableClick = async (val, row) => { await message.confirm('确认要发布吗?') tableObject.loading = true CustomerSaleInvoiceMainApi.publish(row.id).then(() => { - message.success(t('common.updateSuccess')) + message.success('发布成功') tableObject.loading = false buttonBaseClick('refresh',null) }).catch(err => { @@ -265,7 +280,7 @@ const handleExport = async () => { loadStart() const excelTitle = ref(route.meta.title) const data = await CustomerSaleInvoiceMainApi.exportCustomerSaleInvoiceMain(tableObject.params) - download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) + download.excel(data, `【${excelTitle.value}】主表【${formatDate(new Date())}】.xlsx`) } catch { } finally { loadDone() diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts index 050cecee8..3a58640c4 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts @@ -168,6 +168,13 @@ export const CustomerreturnRequestMain = useCrudSchemas( isSearch: true, // 使用自定义拼接条件 isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 }, + { + key: 'businessType', // 查询列表中字段 + value: 'Deliver', // 指查询具体值 + action: '==', // 查询拼接条件 + isSearch: true, // 使用自定义拼接条件 + isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 + }, { key: 'createTime', // 查询列表中字段 value: dateTime - 30 * 24 * 60 * 60 * 1000 + ',' + dateTime, // 指查询具体值 diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index 3f0d487bf..9648aeb67 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -690,7 +690,8 @@ export const DeliverRequestMainRules = reactive({ { required: true, message: '请选择客户月台代码', trigger: 'change' } ], customerOrderNumber: [ - { required: true, message: '请输入客户订单号', trigger: 'blur' } + { required: true, message: '请输入客户订单号', trigger: 'blur' }, + { max: 64, message: '最多64个字符', trigger: 'blur' }, ], departmentCode: [ { required: true, message: '请输入部门', trigger: 'blur' } diff --git a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts index 259cb490d..8967fdf67 100644 --- a/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts @@ -25,7 +25,7 @@ export const DeliverRecordMain = useCrudSchemas( table: { width: 180 }, - isSearch: true + isSearch: false }, { label: '任务单号', @@ -74,7 +74,7 @@ export const DeliverRecordMain = useCrudSchemas( }, isTable: true, isForm: true, - isSearch: true, + isSearch: false, search: { component: 'Input', componentProps: { @@ -88,20 +88,20 @@ export const DeliverRecordMain = useCrudSchemas( } } }, - { - label: '状态', - field: 'status', - dictType: DICT_TYPE.REQUEST_STATUS, - dictClass: 'string', - isSearch: false, - isTable: false, - isForm: false, - isDetail: false, - sort: 'custom', - table: { - width: 150 - } - }, + // { + // label: '状态', + // field: 'status', + // dictType: DICT_TYPE.REQUEST_STATUS, + // dictClass: 'string', + // isSearch: false, + // isTable: false, + // isForm: false, + // isDetail: false, + // sort: 'custom', + // table: { + // width: 150 + // } + // }, { label: '客户代码', field: 'customerCode', @@ -130,7 +130,8 @@ export const DeliverRecordMain = useCrudSchemas( table: { width: 150 }, - isTable: false + isTable: true, + isSearch:true, }, { label: '承运商', @@ -999,7 +1000,8 @@ export const DeliverRecordImport = useCrudSchemas(reactive([ // 导入表单校验 export const DeliverRecordImportRules = reactive({ customerOrderNumber: [ - { required: true, message: '请输入订单号', trigger: 'blur' } + { required: true, message: '请输入订单号', trigger: 'blur' }, + { max: 64, message: '最多64字符', trigger: 'blur' } ], startDate: [ { required: true, message: '请选择开始日期', trigger: 'change' } diff --git a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts index 2b61a8290..124616c97 100644 --- a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts +++ b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts @@ -1,5 +1,5 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' +import { dateFormatter,dateFormatterYM } from '@/utils/formatTime' import { validateTwoNum } from '@/utils/validator' import * as CustomerSaleInvoiceMainApi from '@/api/wms/customerSaleInvoiceMain' const { t } = useI18n() // 国际化 @@ -68,32 +68,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, }, - { - label: '年月', - field: 'yearsMonth', - sort: 'custom', - formatter: dateFormatter, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] - } - }, - detail: { - dateFormat: 'YYYY-MM' - }, - isTable:false, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'YYYY-MM' - } - }, - }, + // { // label: '年月', // field: 'yearsMonthStr', @@ -120,7 +95,31 @@ export const CustomerStatementMain = useCrudSchemas(reactive([ } }, }, - + { + label: '年月', + field: 'yearsMonth', + sort: 'custom', + formatter: dateFormatterYM, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + detail: { + dateFormat: 'YYYY-MM' + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'YYYY-MM' + } + }, + }, { label: '创建者', field: 'creator', @@ -164,7 +163,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive([ field: 'action', isForm: false, table: { - width: 360, + width: 400, fixed: 'right' } } diff --git a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue index 66fdd1265..c1e6d7c39 100644 --- a/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue +++ b/src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue @@ -131,10 +131,14 @@ :importTemplateData="importShareTemplateData" @success="importSuccess" /> + + + + \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts b/src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts new file mode 100644 index 000000000..395b8c2ab --- /dev/null +++ b/src/views/wms/deliversettlementManage/moldAllocation/supplierMoldCostMain/supplierMoldCostMain.data.ts @@ -0,0 +1,189 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter , dateFormatterYM } from '@/utils/formatTime' +import { validateTwoNum } from '@/utils/validator' + + +export const SupplierMoldCostMain = useCrudSchemas(reactive([ + { + label: '单据号', + field: 'number', + sort: 'custom', + fixed: 'left', + isSearch: true, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + dictType: DICT_TYPE.SUPPLIER_TOOL_APPORT_STATEMENT_MAIN, + dictClass: 'string', + form: { + //value: '',//可以添加默认值 有无都可 + component: 'Select', + }, + isSearch: true, + search:{ + component:'Select', + componentProps: { + multiple:true, + } + + }, + }, + { + label: '版本号', + field: 'versionNumber', + sort: 'custom', + isTable: false + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '供应商名称', + field: 'supplierName', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '年月', + field: 'yearsMonth', + sort: 'custom', + formatter: dateFormatterYM, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + detail: { + dateFormat: 'YYYY-MM' + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'YYYY-MM' + } + }, + }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + isDetail:true, + isForm: false, + isTable:true + }, + { + label: '创建时间', + 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')] + } + }, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + isTable:true, + isForm: false, + table:{ + width:180 + } + }, + { + label: '更新者', + field: 'updater', + sort: 'custom', + isDetail:true, + isForm: false, + isTable:false + }, + { + label: '更新时间', + field: 'updateTime', + 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')] + } + }, + detail: { + dateFormat : 'YYYY-MM-DD HH:mm:ss' + }, + isTable:false, + isForm: false, + table:{ + width:180 + } + }, + { + label: '操作', + field: 'action', + isForm: false, + isTable:true, + isDetail:false, + table: { + width: 180, + fixed: 'right' + } + } +])) + + +export const SupplierMoldCostDetail = useCrudSchemas(reactive([ + { + label: '物料品号', + field: 'articleNumber', + sort: 'custom', + isForm: false, + }, + { + label: '车型', + field: 'vehicleType', + sort: 'custom', + isForm: false, + }, + { + label: '金额', + field: 'amount', + sort: 'custom', + isSearch: true, + isForm: false, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + dictType: DICT_TYPE.SUPPLIER_TOOL_APPORT_STATEMENT_DETAIL, + dictClass: 'string', + form: { + //value: '',//可以添加默认值 有无都可 + component: 'Select', + }, + }, +])) + + diff --git a/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts new file mode 100644 index 000000000..d3861ace2 --- /dev/null +++ b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/finishedShipmentMain.data.ts @@ -0,0 +1,219 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const FinishedShipmentMainRules = reactive({ + orderNumber: [required], + shipmentRecordNumber: [required], + shipmentType: [required], + customerOrderNumber: [required], + available: [required], + concurrencyStamp: [required] +}) + +export const FinishedShipmentMain = useCrudSchemas(reactive([ + + { + label: '单据号', + field: 'number', + sort: 'custom', + table: { + width: 150, + }, + isSearch: true + }, + { + label: '已发未结记录单号', + field: 'unfinishedNumber', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '发货记录单号', + field: 'shipmentRecordNumber', + sort: 'custom', + table: { + width: 150, + }, + isSearch: true + }, + { + label: '发货类型', + field: 'shipmentType', + sort: 'custom', + table: { + width: 150, + }, + dictType: DICT_TYPE.DELIVER_METHOD, + dictClass: 'string', + form: { + component: 'SelectV2' + } + }, + { + label: '客户订单号', + field: 'customerOrderNumber', + sort: 'custom', + table: { + width: 150, + }, + isSearch: true + }, + { + label: '操作', + field: 'action', + isForm: false, + isDetail: false, + isTable: false, + table: { + width: 150, + fixed: 'right' + } + } +])) + + +// 表单校验 +export const FinishedShipmentDetailRules = reactive({ + materialCode: [required], + materialName: [required], + backNumber: [required], + materialDescription: [required], + shipmentQuantity: [required], + unitPrice: [required], + lockedQuantity: [required], + available: [required], + concurrencyStamp: [required] +}) + +export const FinishedShipmentDetail = useCrudSchemas(reactive([ + + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '背番', + field: 'backNumber', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '物料描述', + field: 'itemDescription', + sort: 'custom', + table: { + width: 150, + }, + form: { + component: 'Editor', + componentProps: { + valueHtml: '', + height: 200 + } + } + }, + // { + // label: '发货数量', + // field: 'shipmentQuantity', + // sort: 'custom', + // table: { + // width: 150, + // }, + // form: { + // component: 'InputNumber', + // value: 0 + // } + // }, + + // { + // label: '锁定数量', + // field: 'lockedQuantity', + // sort: 'custom', + // table: { + // width: 150, + // }, + // form: { + // component: 'InputNumber', + // value: 0 + // } + // }, + { + label: '已结数量', + field: 'qty', + sort: 'custom', + table: { + width: 150, + }, + form: { + component: 'InputNumber', + value: 0 + } + }, + { + label: '销售单价', + field: 'unitPrice', + sort: 'custom', + table: { + width: 150, + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + table: { + width: 150 + }, + formatter: dateFormatter, + isSearch: true, + 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')] + } + }, + isForm: false, + hiddenInMain:true + }, + { + label: '创建人', + field: 'creator', + sort: 'custom', + table: { + width: 150 + }, + isTable: true, + hiddenInMain:true + + }, + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) diff --git a/src/views/wms/deliversettlementManage/unfinishedShipmentDetail/index.vue b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue similarity index 70% rename from src/views/wms/deliversettlementManage/unfinishedShipmentDetail/index.vue rename to src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue index 9da66a534..23f0d3730 100644 --- a/src/views/wms/deliversettlementManage/unfinishedShipmentDetail/index.vue +++ b/src/views/wms/deliversettlementManage/saleEstimate/finishedShipmentMain/index.vue @@ -1,7 +1,7 @@ - + @@ -11,7 +11,8 @@ :routeName="routeName" @updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" - :allSchemas="UnfinishedShipmentDetail.allSchemas" + :allSchemas="FinishedShipmentMain.allSchemas" + :detailAllSchemas="FinishedShipmentDetail.allSchemas" /> @@ -27,9 +28,9 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > - - - {{ row.code }} + + + {{ row.number }} @@ -42,31 +43,39 @@ - + - + diff --git a/src/views/wms/deliversettlementManage/unfinishedShipmentMain/index.vue b/src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/index.vue similarity index 97% rename from src/views/wms/deliversettlementManage/unfinishedShipmentMain/index.vue rename to src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/index.vue index 38b07140c..d93c09d87 100644 --- a/src/views/wms/deliversettlementManage/unfinishedShipmentMain/index.vue +++ b/src/views/wms/deliversettlementManage/saleEstimate/unfinishedShipmentMain/index.vue @@ -67,10 +67,9 @@