Browse Source

申请和记录

master_hella_20240701
zhang_li 8 months ago
parent
commit
83ac68f5db
  1. 71
      src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts
  2. 125
      src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts
  3. 6
      src/views/qms/inspection/inspectionRequest/index.vue
  4. 70
      src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts

71
src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts

@ -28,6 +28,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '申请单号',
@ -39,6 +42,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '供应商编码',
@ -50,6 +56,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '物料编码',
@ -61,6 +70,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '物料批次',
@ -72,6 +84,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '订单号',
@ -83,6 +98,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '订单行',
@ -96,6 +114,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '凭证号',
@ -107,6 +128,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '凭证行',
@ -120,6 +144,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '检验方案编码',
@ -131,6 +158,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
// {
// label: '检验方案Json',
@ -148,6 +178,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '检验批数量',
@ -159,6 +192,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '采样总数量',
@ -170,6 +206,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '检验类型',
@ -184,6 +223,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '检验批来源',
@ -196,6 +238,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled:true
}
},
table: {
width: 150
}
},
{
@ -210,6 +255,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '检验严格性',
@ -222,6 +270,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled:true
}
},
table: {
width: 150
}
},
{
@ -233,6 +284,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled:true
}
},
table: {
width: 150
}
},
{
@ -244,6 +298,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled:true
}
},
table: {
width: 150
}
},
{
@ -268,6 +325,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '计划结束时间',
@ -291,6 +351,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled:true
}
},
table: {
width: 150
}
},
{
label: '检验水平',
@ -303,6 +366,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled:true
}
},
table: {
width: 150
}
},
{
@ -316,6 +382,9 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps:{
disabled:true
}
},
table: {
width: 150
}
},
// {
@ -347,7 +416,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE',
disabled:true
}
},
}
},
{
label: '操作',

125
src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts

@ -13,101 +13,145 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number',
sort: 'custom',
isSearch: true,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '申请编码',
field: 'applicationCode',
sort: 'custom',
isSearch: true,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '任务编码',
field: 'taskCode',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '供应商编码',
field: 'supplierCode',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '物料编码',
field: 'materialCode',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '检验方案编码',
field: 'inspectionSchemeCode',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '检验方案Json',
field: 'inspectionSchemeJson',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
isTable:false,
table: {
width: 150
}
},
{
label: '检验批次',
field: 'inspectionBatch',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '检验批数量',
field: 'inspectionBatchAmount',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '采样总数量',
field: 'sampleTatalAmount',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '检验类型',
field: 'inspectionType',
dictType: DICT_TYPE.INSPECTION_TYPE,
sort: 'custom',
isSearch: false,
isForm:false,
form: {
component: 'Select'
},
table: {
width: 150
}
},
{
label: '检验批来源',
field: 'inspectionBatchSource',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '订单号',
field: 'orderCode',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '订单行',
@ -119,13 +163,19 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber',
value: 0
},
table: {
width: 150
}
},
{
label: '凭证号',
field: 'certificateCode',
sort: 'custom',
isSearch: false,
isForm:false
isForm:false,
table: {
width: 150
}
},
{
label: '凭证行',
@ -137,6 +187,9 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber',
value: 0
},
table: {
width: 150
}
},
{
label: '检验阶段',
@ -148,20 +201,20 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber',
value: 0
},
table: {
width: 150
}
},
{
label: '检验严格性',
field: 'inspectionStringency',
dictType: DICT_TYPE.INSPECTION_SEVERITY,
sort: 'custom',
isSearch: false,
isForm:false,
},
{
label: '使用决策',
field: 'useDecision',
sort: 'custom',
isSearch: false,
isForm:false
table: {
width: 150
}
},
{
label: '计划开始时间',
@ -185,6 +238,9 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '计划结束时间',
@ -208,6 +264,9 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '实际开始时间',
@ -231,6 +290,9 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '实际结束时间',
@ -254,27 +316,42 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '检验水平',
field: 'inspectionLevel',
dictType: DICT_TYPE.INSPECTION_LEVEL,
sort: 'custom',
isSearch: false,
isForm:false,
table: {
width: 150
}
},
{
label: 'AQL值',
field: 'aqlValue',
dictType: DICT_TYPE.BASIC_AQL,
sort: 'custom',
isSearch: false,
isForm:false,
table: {
width: 150
}
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
sort: 'custom',
isSearch: false,
isForm:false,
table: {
width: 150
}
},
{
label: '使用决策',
@ -282,6 +359,9 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.USAGE_DECISION,
table: {
width: 150
}
},
{
@ -299,6 +379,9 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}
},
isForm: false,
table: {
width: 150
}
},
{

6
src/views/qms/inspection/inspectionRequest/index.vue

@ -15,9 +15,9 @@
total: tableObject.total
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
<template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row }">

70
src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts

@ -24,6 +24,10 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number',
sort: 'custom',
isSearch: true,
table: {
width: 200,
fixed: 'left'
}
},
{
label: '申请日期',
@ -46,6 +50,9 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '申请时间',
@ -68,6 +75,9 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '要求开始时间',
@ -90,6 +100,9 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '要求结束时间',
@ -112,6 +125,9 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '完成时间',
@ -134,36 +150,54 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x'
}
},
table: {
width: 150
}
},
{
label: '供应商编码',
field: 'supplierCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '物料编码',
field: 'materialCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '待检数量',
field: 'requestInspectionNum',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '参考订单号',
field: 'referenceOrderCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '参考订单行',
@ -174,12 +208,18 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber',
value: 0
},
table: {
width: 150
}
},
{
label: '参考凭证号',
field: 'referenceCertificateCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '参考凭证行',
@ -190,42 +230,70 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber',
value: 0
},
table: {
width: 150
}
},
{
label: '检验方案编码',
field: 'inspectionSchemeCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '检验阶段',
field: 'inspectionStageCode',
field: 'inspectionStage',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps:{
disabled:true
}
},
},
{
label: '检验申请包装列表',
field: 'applicationPackageCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: '检验水平',
field: 'inspectionLevel',
dictType: DICT_TYPE.INSPECTION_LEVEL,
sort: 'custom',
isSearch: false,
table: {
width: 150
}
},
{
label: 'AQL值',
field: 'aqlValue',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.BASIC_AQL,
table: {
width: 150
}
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.TRUE_FALSE,
table: {
width: 150
}
},
{
label: '操作',

Loading…
Cancel
Save