From 108ac6e0c6a08f981c81e6e3307e16523d9920bb Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Tue, 13 Aug 2024 13:24:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E8=AE=B0=E5=BD=95=E4=B8=89?=
=?UTF-8?q?=E4=B8=AA=E9=A1=B5=E9=9D=A2=E5=90=88=E5=B9=B6=E4=B8=80=E4=B8=AA?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/qms/inspectionJob/addForm.vue | 6 +
src/views/qms/inspectionJob/index.vue | 2 +-
src/views/qms/inspectionRecord/index.vue | 95 +-
src/views/qms/inspectionRecordFirst/index.vue | 1 -
.../inspectionRecordProduction/addForm.vue | 1571 -----------------
.../qms/inspectionRecordProduction/detail.vue | 402 -----
.../qms/inspectionRecordProduction/index.vue | 450 -----
.../inspectionRecordMain.data.ts | 964 ----------
.../inspectionRecordProduction/useAddForm.vue | 312 ----
.../qms/inspectionRecordPurchase/addForm.vue | 1571 -----------------
.../qms/inspectionRecordPurchase/detail.vue | 402 -----
.../qms/inspectionRecordPurchase/index.vue | 450 -----
.../inspectionRecordMain.data.ts | 964 ----------
.../inspectionRecordPurchase/useAddForm.vue | 312 ----
14 files changed, 81 insertions(+), 7421 deletions(-)
delete mode 100644 src/views/qms/inspectionRecordProduction/addForm.vue
delete mode 100644 src/views/qms/inspectionRecordProduction/detail.vue
delete mode 100644 src/views/qms/inspectionRecordProduction/index.vue
delete mode 100644 src/views/qms/inspectionRecordProduction/inspectionRecordMain.data.ts
delete mode 100644 src/views/qms/inspectionRecordProduction/useAddForm.vue
delete mode 100644 src/views/qms/inspectionRecordPurchase/addForm.vue
delete mode 100644 src/views/qms/inspectionRecordPurchase/detail.vue
delete mode 100644 src/views/qms/inspectionRecordPurchase/index.vue
delete mode 100644 src/views/qms/inspectionRecordPurchase/inspectionRecordMain.data.ts
delete mode 100644 src/views/qms/inspectionRecordPurchase/useAddForm.vue
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/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 @@
-
-
-
-
-
- {{ titleValueRef }} {{ titleNameRef }}
-
-
-
-
-
-
-
-
- 检验工序
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 检验特性
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ row.number }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
- {{ titleValueRef }} {{ titleNameRef }}
-
-
-
-
-
-
-
-
- 检验工序
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 检验特性
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ row.number }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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 @@
-
-
-
-
-
-
-