diff --git a/src/api/wms/productionreturnRecordDetail/index.ts b/src/api/wms/productionreturnRecordDetail/index.ts index f9ffcd4a4..910cb941e 100644 --- a/src/api/wms/productionreturnRecordDetail/index.ts +++ b/src/api/wms/productionreturnRecordDetail/index.ts @@ -44,6 +44,26 @@ export const getProductionreturnRecordDetailPage = async (params) => { return await request.get({ url: `/wms/productionreturn-record-detail/page`, params }) } } +// 查询生产退料记录子列表 +export const getProductionreturnRecordDetailPageStore = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/productionreturn-record-detail-store/senior', data }) + } else { + return await request.get({ url: `/wms/productionreturn-record-detail-store/page`, params }) + } +} +// 查询隔离退料记录子列表 +export const getProductionreturnRecordDetailPageHold = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/productionreturn-record-detail-hold/senior', data }) + } else { + return await request.get({ url: `/wms/productionreturn-record-detail-hold/page`, params }) + } +} // 查询生产退料记录子详情 export const getProductionreturnRecordDetail = async (id: number) => { diff --git a/src/api/wms/purchasePlanDetail/index.ts b/src/api/wms/purchasePlanDetail/index.ts index a436ab74a..d09baf96a 100644 --- a/src/api/wms/purchasePlanDetail/index.ts +++ b/src/api/wms/purchasePlanDetail/index.ts @@ -20,10 +20,12 @@ const getPageParams = (params)=>{ console.log('params.status',params.status) // 状态 - if(params.status&¶ms.status.length>0){ - params.statuss = params.status.join(',') + if(Array.isArray(params.status)){ + if(params.status&¶ms.status.length>0){ + params.statuss = params.status.join(',') + } + params.status = '' } - params.status = '' return params } // 查询要货计划子列表 diff --git a/src/views/qms/inspectionJob/addForm.vue b/src/views/qms/inspectionJob/addForm.vue index 9d92b889c..7fcdee9ed 100644 --- a/src/views/qms/inspectionJob/addForm.vue +++ b/src/views/qms/inspectionJob/addForm.vue @@ -6,6 +6,7 @@ :width="dialogWidth" :close-on-click-modal="false" :vLoading="formLoading" + :before-close="handleClose" >
{ } } } +const handleClose =async (done: () => void) => { + await InspectionJobMainApi.abandonInspectionJobMain(data.value.id) + emit('close') + done() +} - diff --git a/src/views/qms/inspectionJobProduction/detail.vue b/src/views/qms/inspectionJobProduction/detail.vue deleted file mode 100644 index 3dc132caf..000000000 --- a/src/views/qms/inspectionJobProduction/detail.vue +++ /dev/null @@ -1,194 +0,0 @@ - - - - - diff --git a/src/views/qms/inspectionJobProduction/index.vue b/src/views/qms/inspectionJobProduction/index.vue deleted file mode 100644 index 04c960c99..000000000 --- a/src/views/qms/inspectionJobProduction/index.vue +++ /dev/null @@ -1,442 +0,0 @@ - - - diff --git a/src/views/qms/inspectionJobProduction/inspectionJobMain.data.ts b/src/views/qms/inspectionJobProduction/inspectionJobMain.data.ts deleted file mode 100644 index 802586cd9..000000000 --- a/src/views/qms/inspectionJobProduction/inspectionJobMain.data.ts +++ /dev/null @@ -1,885 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter2 } from '@/utils/formatTime' -import { validateHanset, validateEmail } from '@/utils/validator' -import { dateFormatter } from '@/utils/formatTime' -import { validateTwoNum, validateSixNum } from '@/utils/validator' -const { t } = useI18n() // 国际化 -import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' -const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY) -const featureTypeList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE) -const isCanUpdateList = [ - { - label: '是', - value: true - }, - { - label: '否', - value: false - } -] - -/** - * @returns {Array} 检验任务主表 - */ -export const InspectionJobMain = useCrudSchemas( - reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 200, - fixed: 'left' - } - }, - { - label: '申请单号', - field: 'requestNumber', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 200 - } - }, - { - label: '发货单号', - field: 'asnNumber', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 180 - } - }, - { - label: '供应商编码', - field: 'supplierCode', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 175 - } - }, - { - label: '供应商名称', - field: 'supplierName', - sort: 'custom', - isSearch: false, - table: { - width: 175 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料编码', - field: 'itemCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料名称', - field: 'itemName', - sort: 'custom', - isSearch: false, - table: { - width: 175 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料批次', - field: 'batch', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考订单号', - field: 'referenceOrderCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考订单行', - field: 'referenceOrderRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考凭证号', - field: 'referenceCertificateCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考凭证行', - field: 'referenceCertificateRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验方案编码', - field: 'inspectionSchemeCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 200 - } - }, - { - label: '批次', - field: 'inspectionBatch', - sort: 'custom', - isSearch: false, - isDetail: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '供应商批次', - field: 'supplierBatch', - sort: 'custom', - isSearch: false, - isDetail: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验批数量', - field: 'inspectionBatchAmount', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - // { - // label: '采样总数量', - // field: 'sampleTotalAmount', - // sort: 'custom', - // isSearch: false, - // form: { - // componentProps:{ - // disabled:true - // } - // }, - // table: { - // width: 150 - // } - // }, - { - label: '检验类型', - field: 'inspectionType', - sort: 'custom', - dictType: DICT_TYPE.INSPECTION_TYPE, - dictClass: 'string', - isSearch: false, - form: { - component: 'Select', - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '完成人', - field: 'completeUser', - sort: 'custom', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - isTable: false, - isDetail: false, - isSearch: true, - isTableForm: false, - isForm: false - }, - // { - // label: '检验批来源', - // field: 'inspectionBatchSource', - // sort: 'custom', - // isSearch: false, - // dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE, - // dictClass: 'string', - // form:{ - // componentProps:{ - // disabled:true - // } - // }, - // table: { - // width: 150 - // } - // }, - { - label: '检验阶段', - field: 'inspectionStage', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验严格性', - field: 'inspectionStringency', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.INSPECTION_SEVERITY, - dictClass: 'string', - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '计划开始时间', - field: 'planStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '计划结束时间', - field: 'planEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '检验水平', - field: 'inspectionLevel', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.INSPECTION_LEVEL, - dictClass: 'string', - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: 'AQL值', - field: 'aqlValue', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.BASIC_AQL, - dictClass: 'string', - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - // { - // label: '使用决策', - // field: 'usageDecision', - // sort: 'custom', - // isSearch: false, - // dictType: DICT_TYPE.USAGE_DECISION, - // form:{ - // componentProps:{ - // } - // } - // }, - // { - // label: '是否可用', - // field: 'available', - // dictType: DICT_TYPE.TRUE_FALSE, - // dictClass: 'string', - // isTable: true, - // sort: 'custom', - // table: { - // width: 150 - // }, - // form: { - // component: 'Switch', - // value: 'TRUE', - // componentProps: { - // inactiveValue: 'FALSE', - // activeValue: 'TRUE', - // disabled:true - // } - // } - // }, - { - label: '承接人', - field: 'acceptUserName', - table: { - width: 130 - }, - isForm: false, - isTable: false, - isDetail: true - }, - { - label: '承接时间', - field: 'acceptTime', - isForm: false, - table: { - width: 180 - }, - isTable: false, - isDetail: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - - { - label: '收货时间', - field: 'deliveryTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - - { - label: '完成人', - field: 'completeUserName', - table: { - width: 130 - }, - isForm: false, - isTable: true, - isDetail: true - }, - { - label: '完成时间', - field: 'completeTime', - isForm: false, - table: { - width: 180 - }, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - { - label: '状态', - field: 'status', - dictType: DICT_TYPE.JOB_STATUS, - dictClass: 'string', - isForm: false, - isTable: true, - sort: 'custom', - table: { - width: 150 - } - }, - { - label: '是否可用', - field: 'available', - sort: 'custom', - isSearch: true, - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - search: { - value: 'TRUE' - }, - form: { - component: 'Switch', - value: 'TRUE', - componentProps: { - inactiveValue: 'FALSE', - activeValue: 'TRUE' - } - }, - table: { - width: 110 - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - isTable: false, - isForm: false, - tableForm: { - disabled: false - } - }, - { - label: '创建时间', - field: 'createTime', - isForm: false, - isTable: true, - table: { - width: 180 - }, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - }, - 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')] - } - } - }, - { - label: '创建者', - field: 'creator', - table: { - width: 130 - }, - isForm: false, - isTable: true - }, - { - label: '最后更新时间', - field: 'updateTime', - sort: 'custom', - isDetail: true, - isForm: false, - isTable: false, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - { - label: '最后更新者', - field: 'updater', - isDetail: true, - isForm: false, - isTable: false, - table: { - width: 150 - } - }, - - { - label: '操作', - field: 'action', - isForm: false, - isDetail: false, - table: { - width: 300, - fixed: 'right' - } - } - ]) -) - -//表单校验 -export const InspectionJobMainRules = reactive({ - // usageDecision: [required], -}) - -/** - * @returns {Array} 检验任务子表 - */ -export const InspectionJobDetail = useCrudSchemas( - reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true - }, - { - label: '检验方案模板编码', - field: 'inspectionCode', - sort: 'custom', - isSearch: true - }, - { - label: '描述', - field: 'processDescribe', - sort: 'custom', - isSearch: true - }, - { - label: '顺序号', - field: 'sequenceCode', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - } - }, - { - label: '检验特性编号', - field: 'inspectionCharCode', - sort: 'custom', - isSearch: true - }, - { - label: '检验特性编码', - field: 'inspectionJobCharacteristicsRespVO.number', - sort: 'custom' - }, - { - label: '检验特性描述', - field: 'inspectionJobCharacteristicsRespVO.description', - sort: 'custom' - }, - { - label: '检验方法', - field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode', - sort: 'custom' - }, - { - label: '采样过程编码', - field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode', - sort: 'custom' - }, - { - label: '动态修改规则编码', - field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode', - sort: 'custom' - }, - { - label: '是否允许修改特征值', - field: 'inspectionJobCharacteristicsRespVO.isCanUpdate', - sort: 'custom', - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return isCanUpdateList.find((account) => account.value == cellValue)?.label - } - }, - { - label: '结果录入方式', - field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod', - sort: 'custom', - // dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY, - // dictClass: 'string', - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return resultEntryMethodList.find((account) => account.value == cellValue)?.label - } - }, - { - label: '特征类型', - field: 'inspectionJobCharacteristicsRespVO.featureType', - sort: 'custom', - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return featureTypeList.find((account) => account.value == cellValue)?.label - } - } - ]) -) - -//表单校验 -export const InspectionJobDetailRules = reactive({ - taskCode: [required], - processCode: [required], - sequenceCode: [required], - available: [required] -}) -/** - * @returns {Array} 检验任务包装 - */ -export const InspectionJobPackage = useCrudSchemas( - reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 200 - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 200 - } - }, - { - label: '包装规格', - field: 'packageSpecificationCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 180 - } - }, - { - label: '数量', - field: 'amount', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - tableForm: { - disabled: true - }, - table: { - width: 150 - } - }, - { - label: '计量单位', - field: 'measuringUnit', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 150 - } - }, - { - label: '采样数量', - field: 'sampleAmount', - sort: 'custom', - isSearch: true, - isTable: false, - table: { - width: 150 - } - } - ]) -) -//表单校验 -export const InspectionJobPackageRules = reactive({ - sampleAmount: [required, { validator: validateSixNum, trigger: 'blur' }] -}) diff --git a/src/views/qms/inspectionJobPurchase/addForm.vue b/src/views/qms/inspectionJobPurchase/addForm.vue deleted file mode 100644 index 6b2e16b28..000000000 --- a/src/views/qms/inspectionJobPurchase/addForm.vue +++ /dev/null @@ -1,1552 +0,0 @@ - - - - diff --git a/src/views/qms/inspectionJobPurchase/detail.vue b/src/views/qms/inspectionJobPurchase/detail.vue deleted file mode 100644 index 3dc132caf..000000000 --- a/src/views/qms/inspectionJobPurchase/detail.vue +++ /dev/null @@ -1,194 +0,0 @@ - - - - - diff --git a/src/views/qms/inspectionJobPurchase/index.vue b/src/views/qms/inspectionJobPurchase/index.vue deleted file mode 100644 index 3b9d26dd4..000000000 --- a/src/views/qms/inspectionJobPurchase/index.vue +++ /dev/null @@ -1,442 +0,0 @@ - - - diff --git a/src/views/qms/inspectionJobPurchase/inspectionJobMain.data.ts b/src/views/qms/inspectionJobPurchase/inspectionJobMain.data.ts deleted file mode 100644 index fa86592bf..000000000 --- a/src/views/qms/inspectionJobPurchase/inspectionJobMain.data.ts +++ /dev/null @@ -1,885 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter2 } from '@/utils/formatTime' -import { validateHanset, validateEmail } from '@/utils/validator' -import { dateFormatter } from '@/utils/formatTime' -import { validateTwoNum, validateSixNum } from '@/utils/validator' -const { t } = useI18n() // 国际化 -import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' -const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY) -const featureTypeList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE) -const isCanUpdateList = [ - { - label: '是', - value: true - }, - { - label: '否', - value: false - } -] - -/** - * @returns {Array} 检验任务主表 - */ -export const InspectionJobMain = useCrudSchemas( - reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 200, - fixed: 'left' - } - }, - { - label: '申请单号', - field: 'requestNumber', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 200 - } - }, - { - label: '发货单号', - field: 'asnNumber', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 180 - } - }, - { - label: '供应商编码', - field: 'supplierCode', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 175 - } - }, - { - label: '供应商名称', - field: 'supplierName', - sort: 'custom', - isSearch: false, - table: { - width: 175 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料编码', - field: 'itemCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料名称', - field: 'itemName', - sort: 'custom', - isSearch: false, - table: { - width: 175 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料批次', - field: 'batch', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考订单号', - field: 'referenceOrderCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考订单行', - field: 'referenceOrderRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考凭证号', - field: 'referenceCertificateCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考凭证行', - field: 'referenceCertificateRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验方案编码', - field: 'inspectionSchemeCode', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 200 - } - }, - { - label: '批次', - field: 'inspectionBatch', - sort: 'custom', - isSearch: false, - isDetail: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '供应商批次', - field: 'supplierBatch', - sort: 'custom', - isSearch: false, - isDetail: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验批数量', - field: 'inspectionBatchAmount', - sort: 'custom', - isSearch: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - // { - // label: '采样总数量', - // field: 'sampleTotalAmount', - // sort: 'custom', - // isSearch: false, - // form: { - // componentProps:{ - // disabled:true - // } - // }, - // table: { - // width: 150 - // } - // }, - { - label: '检验类型', - field: 'inspectionType', - sort: 'custom', - dictType: DICT_TYPE.INSPECTION_TYPE, - dictClass: 'string', - isSearch: false, - form: { - component: 'Select', - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '完成人', - field: 'completeUser', - sort: 'custom', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - isTable: false, - isDetail: false, - isSearch: true, - isTableForm: false, - isForm: false - }, - // { - // label: '检验批来源', - // field: 'inspectionBatchSource', - // sort: 'custom', - // isSearch: false, - // dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE, - // dictClass: 'string', - // form:{ - // componentProps:{ - // disabled:true - // } - // }, - // table: { - // width: 150 - // } - // }, - { - label: '检验阶段', - field: 'inspectionStage', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验严格性', - field: 'inspectionStringency', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.INSPECTION_SEVERITY, - dictClass: 'string', - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '计划开始时间', - field: 'planStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '计划结束时间', - field: 'planEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '检验水平', - field: 'inspectionLevel', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.INSPECTION_LEVEL, - dictClass: 'string', - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: 'AQL值', - field: 'aqlValue', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.BASIC_AQL, - dictClass: 'string', - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - // { - // label: '使用决策', - // field: 'usageDecision', - // sort: 'custom', - // isSearch: false, - // dictType: DICT_TYPE.USAGE_DECISION, - // form:{ - // componentProps:{ - // } - // } - // }, - // { - // label: '是否可用', - // field: 'available', - // dictType: DICT_TYPE.TRUE_FALSE, - // dictClass: 'string', - // isTable: true, - // sort: 'custom', - // table: { - // width: 150 - // }, - // form: { - // component: 'Switch', - // value: 'TRUE', - // componentProps: { - // inactiveValue: 'FALSE', - // activeValue: 'TRUE', - // disabled:true - // } - // } - // }, - { - label: '承接人', - field: 'acceptUserName', - table: { - width: 130 - }, - isForm: false, - isTable: false, - isDetail: true - }, - { - label: '承接时间', - field: 'acceptTime', - isForm: false, - table: { - width: 180 - }, - isTable: false, - isDetail: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - - { - label: '收货时间', - field: 'deliveryTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - - { - label: '完成人', - field: 'completeUserName', - table: { - width: 130 - }, - isForm: false, - isTable: true, - isDetail: true - }, - { - label: '完成时间', - field: 'completeTime', - isForm: false, - table: { - width: 180 - }, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - { - label: '状态', - field: 'status', - dictType: DICT_TYPE.JOB_STATUS, - dictClass: 'string', - isForm: false, - isTable: true, - sort: 'custom', - table: { - width: 150 - } - }, - { - label: '是否可用', - field: 'available', - sort: 'custom', - isSearch: true, - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', // 默认都是字符串类型其他暂不考虑 - search: { - value: 'TRUE' - }, - form: { - component: 'Switch', - value: 'TRUE', - componentProps: { - inactiveValue: 'FALSE', - activeValue: 'TRUE' - } - }, - table: { - width: 110 - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - isTable: false, - isForm: false, - tableForm: { - disabled: false - } - }, - { - label: '创建时间', - field: 'createTime', - isForm: false, - table: { - width: 180 - }, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - }, - isTable: true, - 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')] - } - } - }, - { - label: '创建者', - field: 'creator', - table: { - width: 130 - }, - isForm: false, - isTable: true - }, - { - label: '最后更新时间', - field: 'updateTime', - sort: 'custom', - isDetail: true, - isForm: false, - isTable: false, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - { - label: '最后更新者', - field: 'updater', - isDetail: true, - isForm: false, - isTable: false, - table: { - width: 150 - } - }, - - { - label: '操作', - field: 'action', - isForm: false, - isDetail: false, - table: { - width: 300, - fixed: 'right' - } - } - ]) -) - -//表单校验 -export const InspectionJobMainRules = reactive({ - // usageDecision: [required], -}) - -/** - * @returns {Array} 检验任务子表 - */ -export const InspectionJobDetail = useCrudSchemas( - reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true - }, - { - label: '检验方案模板编码', - field: 'inspectionCode', - sort: 'custom', - isSearch: true - }, - { - label: '描述', - field: 'processDescribe', - sort: 'custom', - isSearch: true - }, - { - label: '顺序号', - field: 'sequenceCode', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - } - }, - { - label: '检验特性编号', - field: 'inspectionCharCode', - sort: 'custom', - isSearch: true - }, - { - label: '检验特性编码', - field: 'inspectionJobCharacteristicsRespVO.number', - sort: 'custom' - }, - { - label: '检验特性描述', - field: 'inspectionJobCharacteristicsRespVO.description', - sort: 'custom' - }, - { - label: '检验方法', - field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode', - sort: 'custom' - }, - { - label: '采样过程编码', - field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode', - sort: 'custom' - }, - { - label: '动态修改规则编码', - field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode', - sort: 'custom' - }, - { - label: '是否允许修改特征值', - field: 'inspectionJobCharacteristicsRespVO.isCanUpdate', - sort: 'custom', - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return isCanUpdateList.find((account) => account.value == cellValue)?.label - } - }, - { - label: '结果录入方式', - field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod', - sort: 'custom', - // dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY, - // dictClass: 'string', - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return resultEntryMethodList.find((account) => account.value == cellValue)?.label - } - }, - { - label: '特征类型', - field: 'inspectionJobCharacteristicsRespVO.featureType', - sort: 'custom', - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return featureTypeList.find((account) => account.value == cellValue)?.label - } - } - ]) -) - -//表单校验 -export const InspectionJobDetailRules = reactive({ - taskCode: [required], - processCode: [required], - sequenceCode: [required], - available: [required] -}) -/** - * @returns {Array} 检验任务包装 - */ -export const InspectionJobPackage = useCrudSchemas( - reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 200 - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 200 - } - }, - { - label: '包装规格', - field: 'packageSpecificationCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 180 - } - }, - { - label: '数量', - field: 'amount', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - tableForm: { - disabled: true - }, - table: { - width: 150 - } - }, - { - label: '计量单位', - field: 'measuringUnit', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true - }, - table: { - width: 150 - } - }, - { - label: '采样数量', - field: 'sampleAmount', - sort: 'custom', - isSearch: true, - isTable: false, - table: { - width: 150 - } - } - ]) -) -//表单校验 -export const InspectionJobPackageRules = reactive({ - sampleAmount: [required, { validator: validateSixNum, trigger: 'blur' }] -}) diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue index d437324cf..75bc47e35 100644 --- a/src/views/qms/inspectionRecord/index.vue +++ b/src/views/qms/inspectionRecord/index.vue @@ -4,11 +4,8 @@ + @reset="setSearchParams" + /> @@ -94,14 +91,14 @@ :detailAllSchemasRules="InspectionRecordPackageRules" :list="list" /> - - + + @@ -202,7 +199,7 @@ const buttonBaseClick = (val, item) => { // 其他按钮 console.log('其他按钮', item) } -} +} const isShowMainButton = (row, val) => { if (!row.callbackRequestNumber) { @@ -292,7 +289,7 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainOrderPub') { //发布 handleOrderPub(row) - }else if (val == 'mainPlanCheckQualityReport') { + } else if (val == 'mainPlanCheckQualityReport') { // 查看质检报告 checkQualityReport(row) } else if (val == 'edit') { @@ -308,7 +305,7 @@ const showQualityReport = ref(false) const qualityReport = ref('') const checkQualityReport = async (row) => { showQualityReport.value = true - qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}` + qualityReport.value = getReportUrl() + '/purchasereceiptReport?asnNumber=' + row.asnNumber } /** 添加/修改操作 */ const basicFormRef = ref() @@ -318,8 +315,10 @@ const basicFormRef = ref() // } /** 使用决策操作操作 */ const formRef = ref() +const rowData = ref() const openUseForm = async (type: string, row?: number) => { tableData.value = [] // 重置明细数据 + rowData.value = row formRef.value.open(type, row) } @@ -396,6 +395,7 @@ const submitForm = async (formType, data) => { message.success(t('common.updateSuccess')) } formRef.value.dialogVisible = false + handleOrderPub(rowData.value) // 刷新当前列表 getList() } finally { @@ -429,12 +429,35 @@ const submitFormExecute = async (formType, data) => { const searchFormClick = (searchData) => { let isHave = searchData?.filters?.some((item) => item.column == 'inspectionType') if (!isHave) { - searchData.filters.push({ + if (route.name == 'inspectionRecordPurchaseMain') { + searchData.filters.push({ + action: '==', + column: 'inspectionType', + value: '1' + },{ + action: '==', + column: 'available', + value: true + }) + } else if (route.name == 'inspectionRecordProductionMain') { + searchData.filters.push({ + action: '==', + column: 'inspectionType', + value: '4' + },{ + action: '==', + column: 'available', + value: true + }) + } else { + searchData.filters.push({ action: 'notIn', column: 'inspectionType', value: '1,4,11' }) } + + } tableObject.params = { isSearch: true, filters: searchData.filters @@ -444,10 +467,43 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { - tableObject.params = { - available: true, - excludeInspectionType: '1,4,11' + if (route.name == 'inspectionRecordPurchaseMain') { + tableObject.params = { + available: true, + inspectionType: '1' + } + } else if (route.name == 'inspectionRecordProductionMain') { + tableObject.params = { + available: true, + inspectionType: '4' + } + } else { + tableObject.params = { + available: true, + excludeInspectionType: '1,4,11' + } } + + getList() +}) +onActivated(() => { + if (route.name == 'inspectionRecordPurchaseMain') { + tableObject.params = { + available: true, + inspectionType: '1' + } + } else if (route.name == 'inspectionRecordProductionMain') { + tableObject.params = { + available: true, + inspectionType: '4' + } + } else { + tableObject.params = { + available: true, + excludeInspectionType: '1,4,11' + } + } + getList() }) diff --git a/src/views/qms/inspectionRecordFirst/index.vue b/src/views/qms/inspectionRecordFirst/index.vue index 3ad3462ac..f9c4c06bf 100644 --- a/src/views/qms/inspectionRecordFirst/index.vue +++ b/src/views/qms/inspectionRecordFirst/index.vue @@ -7,7 +7,6 @@ inspectionType:'11' })" /> - /> diff --git a/src/views/qms/inspectionRecordProduction/addForm.vue b/src/views/qms/inspectionRecordProduction/addForm.vue deleted file mode 100644 index 037c9456b..000000000 --- a/src/views/qms/inspectionRecordProduction/addForm.vue +++ /dev/null @@ -1,1571 +0,0 @@ - - - - diff --git a/src/views/qms/inspectionRecordProduction/detail.vue b/src/views/qms/inspectionRecordProduction/detail.vue deleted file mode 100644 index 4b27eddbf..000000000 --- a/src/views/qms/inspectionRecordProduction/detail.vue +++ /dev/null @@ -1,402 +0,0 @@ - - - - - diff --git a/src/views/qms/inspectionRecordProduction/index.vue b/src/views/qms/inspectionRecordProduction/index.vue deleted file mode 100644 index 59c7e9b79..000000000 --- a/src/views/qms/inspectionRecordProduction/index.vue +++ /dev/null @@ -1,450 +0,0 @@ - - - diff --git a/src/views/qms/inspectionRecordProduction/inspectionRecordMain.data.ts b/src/views/qms/inspectionRecordProduction/inspectionRecordMain.data.ts deleted file mode 100644 index 9c106671b..000000000 --- a/src/views/qms/inspectionRecordProduction/inspectionRecordMain.data.ts +++ /dev/null @@ -1,964 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter2 } from '@/utils/formatTime' -import { validateHanset, validateEmail } from '@/utils/validator' -import { dateFormatter } from '@/utils/formatTime' -import { validateTwoNum, validateSixNum } from '@/utils/validator' -const { t } = useI18n() // 国际化 - -/** - * @returns {Array} 检验任务主表 - */ -export const InspectionRecordMain = useCrudSchemas( - reactive([ - { - label: '记录编码', - field: 'number', - sort: 'custom', - isSearch: true, - table: { - width: 200, - fixed: 'left' - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '申请编码', - field: 'requestNumber', - sort: 'custom', - isSearch: true, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '任务编码', - field: 'jobNumber', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '发货单号', - field: 'asnNumber', - sort: 'custom', - isSearch: true, - isForm: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 180 - } - }, - { - label: '供应商编码', - field: 'supplierCode', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '供应商名称', - field: 'supplierName', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料编码', - field: 'itemCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料名称', - field: 'itemName', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '批次', - field: 'batch', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '供应商批次', - field: 'supplierBatch', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '检验方案编码', - field: 'inspectionSchemeCode', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '检验批次', - field: 'inspectionBatch', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '检验批数量', - field: 'inspectionBatchAmount', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - // { - // label: '采样总数量', - // field: 'sampleTotalAmount', - // sort: 'custom', - // isSearch: false, - // isForm:false, - // table: { - // width: 150 - // } - // }, - { - label: '检验类型', - field: 'inspectionType', - dictType: DICT_TYPE.INSPECTION_TYPE, - sort: 'custom', - isSearch: false, - form: { - component: 'Select', - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考订单号', - field: 'referenceOrderCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '参考订单行', - field: 'referenceOrderRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考凭证号', - field: 'referenceCertificateCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - // reference_certificate_row - label: '参考凭证行', - field: 'referenceCertificateRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验阶段', - field: 'inspectionStage', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验严格性', - field: 'inspectionStringency', - dictType: DICT_TYPE.INSPECTION_SEVERITY, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '计划开始时间', - field: 'planStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '计划结束时间', - field: 'planEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '实际开始时间', - field: 'realStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '实际结束时间', - field: 'realEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - - { - label: '收货时间', - field: 'deliveryTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '检验水平', - field: 'inspectionLevel', - dictType: DICT_TYPE.INSPECTION_LEVEL, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: 'AQL值', - field: 'aqlValue', - dictType: DICT_TYPE.BASIC_AQL, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '使用决策', - field: 'useDecision', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.USAGE_DECISION, - table: { - width: 150 - }, - isForm: false - }, - { - label: '执行结果', - field: 'estimateCode', - dictType: DICT_TYPE.EVALUATION_CODE, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - isTable: false, - isForm: false, - tableForm: { - disabled: false - } - }, - { - label: '创建时间', - field: 'createTime', - isForm: false, - table: { - width: 180 - }, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - }, - 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')] - } - } - }, - { - label: '创建者', - field: 'creator', - table: { - width: 130 - }, - isForm: false, - isTable: true - }, - { - label: '最后更新时间', - field: 'updateTime', - sort: 'custom', - isDetail: true, - isForm: false, - isTable: false, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - { - label: '最后更新者', - field: 'updater', - isDetail: true, - isForm: false, - isTable: false, - table: { - width: 150 - } - }, - { - label: '操作', - field: 'action', - isForm: false, - isDetail: false, - table: { - width: 300, - fixed: 'right' - } - } - ]) -) - -//表单校验 -export const InspectionRecordMainRules = reactive({ - useDecision: [required], - -}) - -/** - * @returns {Array} 检验任务子表 - */ -export const InspectionRecordDetail = useCrudSchemas(reactive([ - { - label: 'id', - field: 'id', - sort: 'custom', - isTable: false, - isSearch: false, - isForm: false, - }, - { - label: '记录编码', - field: 'recordCode', - sort: 'custom', - isSearch: false, - }, - { - label: '工序编码', - field: 'processCode', - sort: 'custom', - isSearch: false, - }, - { - label: '工序描述', - field: 'processDescribe', - sort: 'custom', - isSearch: false, - }, - { - label: '顺序号', - field: 'sequenceCode', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0 - }, - }, - { - label: '是否破坏性检验', - field: 'isDestroyInspection', - sort: 'custom', - isSearch: false, - form: { - component: 'Radio' - }, - }, - { - label: '检验开始时间', - field: 'inspectionStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '检验结束时间', - field: 'inspectionEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '检验人', - field: 'inspectionOperator', - sort: 'custom', - isSearch: false, - }, - { - label: '检验特性编码', - field: 'inspectionFeaturesCode', - sort: 'custom', - isSearch: false, - }, - // { - // label: '是否可用', - // field: 'available', - // sort: 'custom', - // isSearch: false, - // }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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, - }, - - { - label: '操作', - field: 'action', - isDetail: false, - isForm: false, - table: { - width: 150, - fixed: 'right' - }, - isTableForm: false, - } -])) - -//表单校验 -export const InspectionRecordDetailRules = reactive({ - recordCode: [required], - processCode: [required], - sequenceCode: [required], - isDestroyInspection: [required], - available: [required], -}) - -/** - * @returns {Array} 检验记录包装 - */ -export const InspectionRecordPackage = useCrudSchemas(reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 200 - }, - table: { - width: 150 - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 160 - }, - table: { - width: 150 - } - }, - { - label: '包装规格', - field: 'packageSpecificationCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 150 - }, - table: { - width: 150 - } - }, - { - label: '数量', - field: 'amount', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - tableForm: { - disabled: true, - width: 120 - }, - table: { - width: 150 - } - }, - { - label: '计量单位', - field: 'measuringUnit', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 120 - }, - table: { - width: 150 - } - }, - { - label: '采样数量', - field: 'sampleAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '合格数量', - field: 'qualifiedAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '不合格数量', - field: 'noQualifiedAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '破坏数量', - field: 'destroyAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '冻结数量', - field: 'frozenAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - } -])) - -//表单校验 -export const InspectionRecordPackageRules = reactive({ - qualifiedAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], - frozenAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], - destroyAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], - noQualifiedAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], -}) - - -//表单校验 -export const InspectionRecordUserRules = reactive({ - useDecision: [required], - -}) - -/** - * @returns {Array} 检验任务子表 - */ -export const InspectionRecordUser = useCrudSchemas(reactive([ - { - label: '发货单号', - field: 'asnNumber', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 180 - } - }, - { - label: '使用决策', - field: 'useDecision', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.USAGE_DECISION, - table: { - width: 150 - } - }, -])) diff --git a/src/views/qms/inspectionRecordProduction/useAddForm.vue b/src/views/qms/inspectionRecordProduction/useAddForm.vue deleted file mode 100644 index c430495c8..000000000 --- a/src/views/qms/inspectionRecordProduction/useAddForm.vue +++ /dev/null @@ -1,312 +0,0 @@ - - - - - diff --git a/src/views/qms/inspectionRecordPurchase/addForm.vue b/src/views/qms/inspectionRecordPurchase/addForm.vue deleted file mode 100644 index 037c9456b..000000000 --- a/src/views/qms/inspectionRecordPurchase/addForm.vue +++ /dev/null @@ -1,1571 +0,0 @@ - - - - diff --git a/src/views/qms/inspectionRecordPurchase/detail.vue b/src/views/qms/inspectionRecordPurchase/detail.vue deleted file mode 100644 index 4b27eddbf..000000000 --- a/src/views/qms/inspectionRecordPurchase/detail.vue +++ /dev/null @@ -1,402 +0,0 @@ - - - - - diff --git a/src/views/qms/inspectionRecordPurchase/index.vue b/src/views/qms/inspectionRecordPurchase/index.vue deleted file mode 100644 index 652820c96..000000000 --- a/src/views/qms/inspectionRecordPurchase/index.vue +++ /dev/null @@ -1,450 +0,0 @@ - - - diff --git a/src/views/qms/inspectionRecordPurchase/inspectionRecordMain.data.ts b/src/views/qms/inspectionRecordPurchase/inspectionRecordMain.data.ts deleted file mode 100644 index 9c106671b..000000000 --- a/src/views/qms/inspectionRecordPurchase/inspectionRecordMain.data.ts +++ /dev/null @@ -1,964 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter2 } from '@/utils/formatTime' -import { validateHanset, validateEmail } from '@/utils/validator' -import { dateFormatter } from '@/utils/formatTime' -import { validateTwoNum, validateSixNum } from '@/utils/validator' -const { t } = useI18n() // 国际化 - -/** - * @returns {Array} 检验任务主表 - */ -export const InspectionRecordMain = useCrudSchemas( - reactive([ - { - label: '记录编码', - field: 'number', - sort: 'custom', - isSearch: true, - table: { - width: 200, - fixed: 'left' - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '申请编码', - field: 'requestNumber', - sort: 'custom', - isSearch: true, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '任务编码', - field: 'jobNumber', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '发货单号', - field: 'asnNumber', - sort: 'custom', - isSearch: true, - isForm: false, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 180 - } - }, - { - label: '供应商编码', - field: 'supplierCode', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '供应商名称', - field: 'supplierName', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料编码', - field: 'itemCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '物料名称', - field: 'itemName', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '批次', - field: 'batch', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '供应商批次', - field: 'supplierBatch', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '检验方案编码', - field: 'inspectionSchemeCode', - sort: 'custom', - isSearch: false, - table: { - width: 200 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '检验批次', - field: 'inspectionBatch', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '检验批数量', - field: 'inspectionBatchAmount', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - // { - // label: '采样总数量', - // field: 'sampleTotalAmount', - // sort: 'custom', - // isSearch: false, - // isForm:false, - // table: { - // width: 150 - // } - // }, - { - label: '检验类型', - field: 'inspectionType', - dictType: DICT_TYPE.INSPECTION_TYPE, - sort: 'custom', - isSearch: false, - form: { - component: 'Select', - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考订单号', - field: 'referenceOrderCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '参考订单行', - field: 'referenceOrderRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '参考凭证号', - field: 'referenceCertificateCode', - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - // reference_certificate_row - label: '参考凭证行', - field: 'referenceCertificateRow', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验阶段', - field: 'inspectionStage', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0, - componentProps: { - disabled: true - } - }, - table: { - width: 150 - } - }, - { - label: '检验严格性', - field: 'inspectionStringency', - dictType: DICT_TYPE.INSPECTION_SEVERITY, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '计划开始时间', - field: 'planStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '计划结束时间', - field: 'planEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '实际开始时间', - field: 'realStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '实际结束时间', - field: 'realEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x', - disabled: true - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - - { - label: '收货时间', - field: 'deliveryTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 175 - } - }, - { - label: '检验水平', - field: 'inspectionLevel', - dictType: DICT_TYPE.INSPECTION_LEVEL, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: 'AQL值', - field: 'aqlValue', - dictType: DICT_TYPE.BASIC_AQL, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '使用决策', - field: 'useDecision', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.USAGE_DECISION, - table: { - width: 150 - }, - isForm: false - }, - { - label: '执行结果', - field: 'estimateCode', - dictType: DICT_TYPE.EVALUATION_CODE, - sort: 'custom', - isSearch: false, - table: { - width: 150 - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - isTable: false, - isForm: false, - tableForm: { - disabled: false - } - }, - { - label: '创建时间', - field: 'createTime', - isForm: false, - table: { - width: 180 - }, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - }, - 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')] - } - } - }, - { - label: '创建者', - field: 'creator', - table: { - width: 130 - }, - isForm: false, - isTable: true - }, - { - label: '最后更新时间', - field: 'updateTime', - sort: 'custom', - isDetail: true, - isForm: false, - isTable: false, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - style: { width: '100%' }, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x' - } - } - }, - { - label: '最后更新者', - field: 'updater', - isDetail: true, - isForm: false, - isTable: false, - table: { - width: 150 - } - }, - { - label: '操作', - field: 'action', - isForm: false, - isDetail: false, - table: { - width: 300, - fixed: 'right' - } - } - ]) -) - -//表单校验 -export const InspectionRecordMainRules = reactive({ - useDecision: [required], - -}) - -/** - * @returns {Array} 检验任务子表 - */ -export const InspectionRecordDetail = useCrudSchemas(reactive([ - { - label: 'id', - field: 'id', - sort: 'custom', - isTable: false, - isSearch: false, - isForm: false, - }, - { - label: '记录编码', - field: 'recordCode', - sort: 'custom', - isSearch: false, - }, - { - label: '工序编码', - field: 'processCode', - sort: 'custom', - isSearch: false, - }, - { - label: '工序描述', - field: 'processDescribe', - sort: 'custom', - isSearch: false, - }, - { - label: '顺序号', - field: 'sequenceCode', - sort: 'custom', - isSearch: false, - form: { - component: 'InputNumber', - value: 0 - }, - }, - { - label: '是否破坏性检验', - field: 'isDestroyInspection', - sort: 'custom', - isSearch: false, - form: { - component: 'Radio' - }, - }, - { - label: '检验开始时间', - field: 'inspectionStartTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '检验结束时间', - field: 'inspectionEndTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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')] - } - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - valueFormat: 'x' - } - }, - }, - { - label: '检验人', - field: 'inspectionOperator', - sort: 'custom', - isSearch: false, - }, - { - label: '检验特性编码', - field: 'inspectionFeaturesCode', - sort: 'custom', - isSearch: false, - }, - // { - // label: '是否可用', - // field: 'available', - // sort: 'custom', - // isSearch: false, - // }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isSearch: false, - 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, - }, - - { - label: '操作', - field: 'action', - isDetail: false, - isForm: false, - table: { - width: 150, - fixed: 'right' - }, - isTableForm: false, - } -])) - -//表单校验 -export const InspectionRecordDetailRules = reactive({ - recordCode: [required], - processCode: [required], - sequenceCode: [required], - isDestroyInspection: [required], - available: [required], -}) - -/** - * @returns {Array} 检验记录包装 - */ -export const InspectionRecordPackage = useCrudSchemas(reactive([ - { - label: '编码', - field: 'number', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 200 - }, - table: { - width: 150 - } - }, - { - label: '包装号', - field: 'packageCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 160 - }, - table: { - width: 150 - } - }, - { - label: '包装规格', - field: 'packageSpecificationCode', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 150 - }, - table: { - width: 150 - } - }, - { - label: '数量', - field: 'amount', - sort: 'custom', - isSearch: true, - form: { - component: 'InputNumber', - value: 0 - }, - tableForm: { - disabled: true, - width: 120 - }, - table: { - width: 150 - } - }, - { - label: '计量单位', - field: 'measuringUnit', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 120 - }, - table: { - width: 150 - } - }, - { - label: '采样数量', - field: 'sampleAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '合格数量', - field: 'qualifiedAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '不合格数量', - field: 'noQualifiedAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '破坏数量', - field: 'destroyAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - }, - { - label: '冻结数量', - field: 'frozenAmount', - sort: 'custom', - isSearch: true, - tableForm: { - disabled: true, - width: 100 - }, - table: { - width: 150 - } - } -])) - -//表单校验 -export const InspectionRecordPackageRules = reactive({ - qualifiedAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], - frozenAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], - destroyAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], - noQualifiedAmount: [ - required, - { validator: validateSixNum, message: '小数点后最多6位', trigger: 'blur' } - ], -}) - - -//表单校验 -export const InspectionRecordUserRules = reactive({ - useDecision: [required], - -}) - -/** - * @returns {Array} 检验任务子表 - */ -export const InspectionRecordUser = useCrudSchemas(reactive([ - { - label: '发货单号', - field: 'asnNumber', - sort: 'custom', - isSearch: true, - form: { - componentProps: { - disabled: true - } - }, - table: { - width: 180 - } - }, - { - label: '使用决策', - field: 'useDecision', - sort: 'custom', - isSearch: false, - dictType: DICT_TYPE.USAGE_DECISION, - table: { - width: 150 - } - }, -])) diff --git a/src/views/qms/inspectionRecordPurchase/useAddForm.vue b/src/views/qms/inspectionRecordPurchase/useAddForm.vue deleted file mode 100644 index c430495c8..000000000 --- a/src/views/qms/inspectionRecordPurchase/useAddForm.vue +++ /dev/null @@ -1,312 +0,0 @@ - - - - - diff --git a/src/views/system/serialNumber/index.vue b/src/views/system/serialNumber/index.vue index 3dec54e48..2095c5d07 100644 --- a/src/views/system/serialNumber/index.vue +++ b/src/views/system/serialNumber/index.vue @@ -99,6 +99,9 @@ import download from '@/utils/download' import * as SerialNumberApi from '@/api/system/serialNumber' import SerialNumberForm from './SerialNumberForm.vue' +import { formatDate } from '@/utils/formatTime' + +const route = useRoute() //路由信息 defineOptions({ name: 'SerialNumber' }) @@ -168,7 +171,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SerialNumberApi.exportSerialNumber(queryParams) - download.excel(data, '流水号规则.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/system/tenant/index.vue b/src/views/system/tenant/index.vue index e2650dbe4..aba13417d 100644 --- a/src/views/system/tenant/index.vue +++ b/src/views/system/tenant/index.vue @@ -104,6 +104,8 @@ import download from '@/utils/download' import * as TenantApi from '@/api/system/tenant' import * as TenantPackageApi from '@/api/system/tenantPackage' import TenantForm from './TenantForm.vue' +import { formatDate } from '@/utils/formatTime' +const route = useRoute() //路由信息 defineOptions({ name: 'SystemTenant' }) @@ -177,7 +179,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await TenantApi.exportTenant(queryParams) - download.excel(data, '租户列表.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/agvManage/agvLocationrelation/index.vue b/src/views/wms/agvManage/agvLocationrelation/index.vue index 0119205df..11bc4ff83 100644 --- a/src/views/wms/agvManage/agvLocationrelation/index.vue +++ b/src/views/wms/agvManage/agvLocationrelation/index.vue @@ -69,6 +69,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'AgvLocationrelation' }) @@ -243,7 +244,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await AgvLocationrelationApi.exportAgvLocationrelation(tableObject.params) - download.excel(data, 'AGV库位转换.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -258,7 +259,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: 'AGV库位转换导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts index e99169502..7f0add9a9 100644 --- a/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customer/customer.data.ts @@ -244,7 +244,7 @@ export const Customer = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -267,7 +267,7 @@ export const Customer = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts b/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts index 4ece20cf8..55f5941d9 100644 --- a/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts @@ -296,7 +296,7 @@ export const Customerdock = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -319,7 +319,7 @@ export const Customerdock = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts index 396528e7b..5372ea34b 100644 --- a/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts +++ b/src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts @@ -284,7 +284,7 @@ export const Customeritem = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -307,7 +307,7 @@ export const Customeritem = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/customerManage/project/project.data.ts b/src/views/wms/basicDataManage/customerManage/project/project.data.ts index 70b4ca87c..d54cd7751 100644 --- a/src/views/wms/basicDataManage/customerManage/project/project.data.ts +++ b/src/views/wms/basicDataManage/customerManage/project/project.data.ts @@ -163,7 +163,7 @@ export const Project = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -186,7 +186,7 @@ export const Project = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts b/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts index f298961eb..6b01575b9 100644 --- a/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts +++ b/src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts @@ -222,7 +222,7 @@ export const Saleprice = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -245,7 +245,7 @@ export const Saleprice = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue b/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue index b5ddadaa5..6160bd6dd 100644 --- a/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/businesstype/index.vue @@ -78,6 +78,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +import { formatDate } from '@/utils/formatTime' // 业务类型 defineOptions({ name: 'Businesstype' }) @@ -365,7 +366,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await BusinesstypeApi.exportBusinesstype(tableObject.params) - download.excel(data, '业务类型.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -380,7 +381,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '业务类型导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue b/src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue index 0d2e5e767..9c663adfc 100644 --- a/src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Documentsetting' }) @@ -213,7 +214,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DocumentsettingApi.exportDocumentsetting(tableObject.params) - download.excel(data, '单据设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -228,7 +229,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '单据设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue b/src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue index 9132137cb..b210a0d47 100644 --- a/src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Jobsetting' }) @@ -213,7 +214,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await JobsettingApi.exportJobsetting(tableObject.params) - download.excel(data, '任务单设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -228,7 +229,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '任务单设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/plansetting/index.vue b/src/views/wms/basicDataManage/documentSetting/plansetting/index.vue index 48405deac..2c24c8bc4 100644 --- a/src/views/wms/basicDataManage/documentSetting/plansetting/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/plansetting/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Plansetting' }) @@ -214,7 +215,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await PlansettingApi.exportPlansetting(tableObject.params) - download.excel(data, '计划单设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -229,7 +230,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '计划单设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue b/src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue index ecce4f292..90c93f87f 100644 --- a/src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Recordsetting' }) @@ -214,7 +215,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await RecordsettingApi.exportRecordsetting(tableObject.params) - download.excel(data, '记录单设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -229,7 +230,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '记录单设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue b/src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue index 34bb3745b..e5ea8a81b 100644 --- a/src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Requestsetting' }) @@ -214,7 +215,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await RequestsettingApi.exportRequestsetting(tableObject.params) - download.excel(data, '申请单设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -229,7 +230,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '申请单设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/switch/index.vue b/src/views/wms/basicDataManage/documentSetting/switch/index.vue index 66339989c..50cf76a72 100644 --- a/src/views/wms/basicDataManage/documentSetting/switch/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/switch/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Switch' }) @@ -189,7 +190,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await SwitchApi.exportSwitch(tableObject.params) - download.excel(data, '单据开关.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -204,7 +205,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '单据开关导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/documentSetting/switch/switch.data.ts b/src/views/wms/basicDataManage/documentSetting/switch/switch.data.ts index 3acd75e5b..e55807042 100644 --- a/src/views/wms/basicDataManage/documentSetting/switch/switch.data.ts +++ b/src/views/wms/basicDataManage/documentSetting/switch/switch.data.ts @@ -25,7 +25,7 @@ export const Switch = useCrudSchemas(reactive([ sort: 'custom', form: { componentProps: { - disabled: true + disabled: false } } }, diff --git a/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue b/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue index cdd17db2f..877409fff 100644 --- a/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue +++ b/src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Transactiontype' }) @@ -215,7 +216,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await TransactiontypeApi.exportTransactiontype(tableObject.params) - download.excel(data, '事务类型.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -230,7 +231,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '事务类型导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts b/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts index dfa823146..257a5f71a 100644 --- a/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts @@ -214,7 +214,7 @@ export const Area = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -237,7 +237,7 @@ export const Area = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue b/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue index 6be85ba6b..b6f94685a 100644 --- a/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue @@ -68,6 +68,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Area' }) @@ -247,7 +248,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await AreaApi.exportArea(tableObject.params) - download.excel(data, '库区.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -262,7 +263,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '库区导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts index dbbc72a7a..11a7c465a 100644 --- a/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts @@ -252,7 +252,7 @@ export const Dock = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -275,7 +275,7 @@ export const Dock = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/dock/index.vue b/src/views/wms/basicDataManage/factoryModeling/dock/index.vue index 9adc80970..d002a2475 100644 --- a/src/views/wms/basicDataManage/factoryModeling/dock/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/dock/index.vue @@ -70,6 +70,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import * as LocationApi from '@/api/wms/location' import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Dock' }) @@ -261,7 +262,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DockApi.exportDock(tableObject.params) - download.excel(data, '月台.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -276,7 +277,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '月台导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue b/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue index 2567a8018..14700c5cb 100644 --- a/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/enterprise/index.vue @@ -59,6 +59,7 @@ import download from '@/utils/download' import { Enterprise,EnterpriseRules } from './enterprise.data' import * as EnterpriseApi from '@/api/wms/enterprise' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Enterprise' }) @@ -229,7 +230,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await EnterpriseApi.exportEnterprise(tableObject.params) - download.excel(data, '企业.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/basicDataManage/factoryModeling/location/index.vue b/src/views/wms/basicDataManage/factoryModeling/location/index.vue index 98f0c1283..2ac2ee173 100644 --- a/src/views/wms/basicDataManage/factoryModeling/location/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/location/index.vue @@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' // 基础信息——库位 defineOptions({ name: 'Location' }) @@ -265,7 +266,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await LocationApi.exportLocation(tableObject.params) - download.excel(data, '库位.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -280,7 +281,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '库位导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts b/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts index 1a74eea06..07ef0409c 100644 --- a/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/location/location.data.ts @@ -392,7 +392,7 @@ export const Location = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -415,7 +415,7 @@ export const Location = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue b/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue index db65ec6f0..40785ee97 100644 --- a/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue @@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' // 库位组管理 defineOptions({ name: 'Locationgroup' }) @@ -246,7 +247,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await LocationgroupApi.exportLocationgroup(tableObject.params) - download.excel(data, '库位组.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -261,7 +262,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '库位组导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts b/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts index da5fdfbd5..70ee060af 100644 --- a/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts @@ -214,7 +214,7 @@ export const Locationgroup = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -237,7 +237,7 @@ export const Locationgroup = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/process/index.vue b/src/views/wms/basicDataManage/factoryModeling/process/index.vue index b112d1837..40731066f 100644 --- a/src/views/wms/basicDataManage/factoryModeling/process/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/process/index.vue @@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Process' }) @@ -253,7 +254,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ProcessApi.exportProcess(tableObject.params) - download.excel(data, '工序.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -268,7 +269,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '工序导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts b/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts index 7f4690a51..6db2fb2f5 100644 --- a/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/process/process.data.ts @@ -217,7 +217,7 @@ export const Process = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -240,7 +240,7 @@ export const Process = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue b/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue index b1a2b22cd..3a916a03c 100644 --- a/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/productionline/index.vue @@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' // 生产线管理 defineOptions({ name: 'Productionline' }) @@ -246,7 +247,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ProductionlineApi.exportProductionline(tableObject.params) - download.excel(data, '生产线.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -261,7 +262,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '生产线导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts index 1e17db6d5..72cee3e30 100644 --- a/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts @@ -227,7 +227,7 @@ export const Productionline = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -250,7 +250,7 @@ export const Productionline = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue b/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue index bc20bb421..c1549165d 100644 --- a/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Warehouse' }) @@ -226,7 +227,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await WarehouseApi.exportWarehouse(tableObject.params) - download.excel(data, '仓库.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -241,7 +242,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '仓库导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data.ts b/src/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data.ts index ffb93df3e..3f82b7907 100644 --- a/src/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data.ts @@ -156,7 +156,7 @@ export const Warehouse = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -179,7 +179,7 @@ export const Warehouse = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue b/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue index f086a1428..3a8fc9f96 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/workshop/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Workshop' }) @@ -228,7 +229,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await WorkshopApi.exportWorkshop(tableObject.params) - download.excel(data, '车间.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -243,7 +244,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '车间导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts b/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts index b7ea81be4..569ded4e1 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts @@ -124,7 +124,7 @@ export const Workshop = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -147,7 +147,7 @@ export const Workshop = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue b/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue index 5c963542e..d200d5f0a 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue +++ b/src/views/wms/basicDataManage/factoryModeling/workstation/index.vue @@ -66,6 +66,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' // 工位管理 defineOptions({ name: 'Workstation' }) @@ -255,7 +256,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await WorkstationApi.exportWorkstation(tableObject.params) - download.excel(data, '工位.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -270,7 +271,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '工位导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts index b8da1ff1c..cebf01a68 100644 --- a/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts +++ b/src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts @@ -302,7 +302,7 @@ export const Workstation = useCrudSchemas(reactive([ sort: 'custom', isDetail: true, isForm: false, - isTable: false, + isTable: true, formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -325,7 +325,7 @@ export const Workstation = useCrudSchemas(reactive([ field: 'updater', isDetail: true, isForm: false, - isTable: false, + isTable: true, table: { width: 150 } diff --git a/src/views/wms/basicDataManage/labelManage/barcode/index.vue b/src/views/wms/basicDataManage/labelManage/barcode/index.vue index 91ea8cbab..62e73fd39 100644 --- a/src/views/wms/basicDataManage/labelManage/barcode/index.vue +++ b/src/views/wms/basicDataManage/labelManage/barcode/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Barcode' }) @@ -218,7 +219,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await BarcodeApi.exportBarcode(tableObject.params) - download.excel(data, '条码片段.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -234,7 +235,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '条码片段导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue index 0350c674a..602801310 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue @@ -79,6 +79,7 @@ import * as PackageApi from '@/api/wms/package' import * as ItembasicApi from '@/api/wms/itembasic' import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 叫料标签 defineOptions({ name: 'Callmaterials' }) @@ -290,7 +291,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CallmaterialsApi.exportCallmaterials(tableObject.params) - download.excel(data, '叫料标签.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -338,7 +339,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '叫料标签导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue index b39ba8e44..50c977fc7 100644 --- a/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue +++ b/src/views/wms/basicDataManage/labelManage/locationLabel/index.vue @@ -54,6 +54,7 @@ import * as PackageApi from '@/api/wms/package' import { formatTime } from '@/utils/index' import * as Itempackaging from '@/api/wms/itempackaging' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 库位标签 defineOptions({ name: 'LocationLabel' }) @@ -177,7 +178,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await BarbasicApi.exportBarbasic(tableObject.params) - download.excel(data, '库位标签.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue index 6aa6e2db1..bda0f5106 100644 --- a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue +++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue @@ -67,6 +67,7 @@ import * as PackageApi from '@/api/wms/package' import { formatTime } from '@/utils/index' import * as Itempackaging from '@/api/wms/itempackage' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 采购标签 defineOptions({ name: 'PurchasePackage' }) @@ -154,6 +155,7 @@ const buttonBaseClick = (val, item) => { } else if (val == 'import') { // 导入 handleImport() } else if (val == 'export') { // 导出 + debugger handleExport() } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { @@ -241,12 +243,13 @@ const handleDelete = async (id: number) => { const exportLoading = ref(false) // 导出的加载中 const handleExport = async () => { try { + debugger // 导出的二次确认 await message.exportConfirm() // 发起导出 exportLoading.value = true const data = await BarbasicApi.exportBarbasic(tableObject.params) - download.excel(data, '制造件件标签.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -318,7 +321,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '包装导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue b/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue index c13cfd8d5..a755d2bea 100644 --- a/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue +++ b/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue @@ -68,6 +68,7 @@ import * as PackageApi from '@/api/wms/package' import { formatTime } from '@/utils/index' import * as Itempackaging from '@/api/wms/itempackage' import { getJmreportBaseUrl } from '@/utils/systemParam' +import { formatDate } from '@/utils/formatTime' // 采购标签 defineOptions({ name: 'PurchasePackage' }) @@ -247,7 +248,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await BarbasicApi.exportBarbasic(tableObject.params) - download.excel(data, '采购件标签.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -314,7 +315,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '包装导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue b/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue index bf41d8eac..68424897e 100644 --- a/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue +++ b/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue @@ -64,6 +64,7 @@ import { getAccessToken } from '@/utils/auth' import { Package,PackageRules } from './utensilPackage.data' import * as BarbasicApi from '@/api/wms/barbasic' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import { formatDate } from '@/utils/formatTime' // 器具标签 defineOptions({ name: 'UtensilPackage' }) @@ -229,7 +230,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await BarbasicApi.exportBarbasic(tableObject.params) - download.excel(data, '器具标签.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -252,7 +253,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '包装导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 diff --git a/src/views/wms/basicDataManage/orderManage/carrier/index.vue b/src/views/wms/basicDataManage/orderManage/carrier/index.vue index 6e087650c..84931c430 100644 --- a/src/views/wms/basicDataManage/orderManage/carrier/index.vue +++ b/src/views/wms/basicDataManage/orderManage/carrier/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Carrier' }) @@ -233,7 +234,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await CarrierApi.exportCarrier(tableObject.params) - download.excel(data, '承运商.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -248,7 +249,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '承运商导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/orderManage/owner/index.vue b/src/views/wms/basicDataManage/orderManage/owner/index.vue index 8c999e712..d217f2ac4 100644 --- a/src/views/wms/basicDataManage/orderManage/owner/index.vue +++ b/src/views/wms/basicDataManage/orderManage/owner/index.vue @@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Owner' }) @@ -234,7 +235,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await OwnerApi.exportOwner(tableObject.params) - download.excel(data, '货主.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -249,7 +250,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '货主导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/orderManage/team/index.vue b/src/views/wms/basicDataManage/orderManage/team/index.vue index 36770fa22..c6892a584 100644 --- a/src/views/wms/basicDataManage/orderManage/team/index.vue +++ b/src/views/wms/basicDataManage/orderManage/team/index.vue @@ -68,6 +68,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import TeamForm from "@/views/wms/basicDataManage/orderManage/team/teamForm.vue"; import {sync} from "rimraf"; +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Team' }) @@ -228,7 +229,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await TeamApi.exportTeam(tableObject.params) - download.excel(data, '班组.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -243,7 +244,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '班组导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue b/src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue index c4737a072..86836632c 100644 --- a/src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/configurationsetting/index.vue @@ -75,6 +75,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Configurationsetting' }) @@ -210,7 +211,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ConfigurationsettingApi.exportConfigurationsetting(tableObject.params) - download.excel(data, '配置设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -225,7 +226,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '配置设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue b/src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue index 7638fafb5..3b2c0b61d 100644 --- a/src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/paramsetting/index.vue @@ -66,6 +66,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Paramsetting' }) @@ -181,7 +182,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ParamsettingApi.exportParamsetting(tableObject.params) - download.excel(data, '参数设置.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -196,7 +197,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '参数设置导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/strategySetting/rule/index.vue b/src/views/wms/basicDataManage/strategySetting/rule/index.vue index e79792b66..5061b5315 100644 --- a/src/views/wms/basicDataManage/strategySetting/rule/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/rule/index.vue @@ -74,6 +74,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' import TableHead from '@/components/TableHead/src/TableHead.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import Detail from '@/components/Detail/src/Detail.vue' +import { formatDate } from '@/utils/formatTime' defineOptions({ name: 'Rule' }) @@ -213,7 +214,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await RuleApi.exportRule(tableObject.params) - download.excel(data, '规则.xlsx') + download.excel(data, `【${route.meta.title}】【${formatDate(new Date())}】.xlsx`) } catch { } finally { exportLoading.value = false @@ -228,7 +229,7 @@ const handleImport = () => { // 导入附件弹窗所需的参数 const importTemplateData = reactive({ templateUrl: '', - templateTitle: '规则导入模版.xlsx' + templateTitle: `【${route.meta.title}】导入模版.xlsx` }) // 导入成功之后 const importSuccess = () => { diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue index 7034e3a20..47ed9e9e9 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue @@ -310,7 +310,6 @@ v-model="warehouseType" placeholder="" style="width: 110px; margin-right: 10px" - @change="changeWarehouse" > - + + + + + + + + + + + + + + + + + + + + @@ -560,6 +597,10 @@ +