Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
96c9b4868e
  1. 31
      src/api/qms/inspectionJob/inspectionJobMain/index.ts
  2. 1
      src/components/BasicForm/src/BasicForm.vue
  3. 2
      src/components/TableForm/src/TableForm.vue
  4. 1
      src/utils/dict.ts
  5. 569
      src/views/qms/inspection/inspectionJob/addForm.vue
  6. 9
      src/views/qms/inspection/inspectionJob/index.vue
  7. 184
      src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts
  8. 5
      src/views/system/systemInstallPackage/systemInstallPackage.data.ts

31
src/api/qms/inspectionJob/inspectionJobMain/index.ts

@ -1,27 +1,5 @@
import request from '@/config/axios' import request from '@/config/axios'
export interface InspectionJobMainVO {
number: string
applicationDate: localdate
applicationTime: Date
requestStartTime: Date
requestEndTime: Date
finishTime: Date
supplierCode: string
materialCode: string
batch: string
requestInspectionNum: number
referenceOrderCode: string
referenceOrderRow: number
referenceCertificateCode: string
referenceCertificateRow: number
inspectionSchemeCode: string
inspectionStageCode: string
applicationPackageCode: string
inspectionLevel: string
aqlValue: number
available: string
}
// 查询检验申请列表 // 查询检验申请列表
export const getInspectionJobMainPage = async (params) => { export const getInspectionJobMainPage = async (params) => {
@ -40,15 +18,18 @@ export const getInspectionJobMain = async (id: number) => {
} }
// 新增检验申请 // 新增检验申请
export const createInspectionJobMain = async (data: InspectionJobMainVO) => { export const createInspectionJobMain = async (data) => {
return await request.post({ url: `/qms/inspection-job-main/create`, data }) return await request.post({ url: `/qms/inspection-job-main/create`, data })
} }
// 修改检验申请 // 修改检验申请
export const updateInspectionJobMain = async (data: InspectionJobMainVO) => { export const updateInspectionJobMain = async (data) => {
return await request.put({ url: `/qms/inspection-job-main/update`, data }) return await request.put({ url: `/qms/inspection-job-main/update`, data })
} }
// 执行检验申请
export const executeInspectionJobMain = async (data) => {
return await request.put({ url: `/qms/inspection-job-main/execute`, data })
}
// 删除检验申请 // 删除检验申请
export const deleteInspectionJobMain = async (id: number) => { export const deleteInspectionJobMain = async (id: number) => {
return await request.delete({ url: `/qms/inspection-job-main/delete?id=` + id }) return await request.delete({ url: `/qms/inspection-job-main/delete?id=` + id })

1
src/components/BasicForm/src/BasicForm.vue

@ -69,6 +69,7 @@
<TableForm <TableForm
ref="tableFormRef" ref="tableFormRef"
class="w-[100%]" class="w-[100%]"
:maxHeight = "490"
:tableFields="tableAllSchemas.tableFormColumns" :tableFields="tableAllSchemas.tableFormColumns"
:tableData="tableData" :tableData="tableData"
:tableFormRules="tableFormRules" :tableFormRules="tableFormRules"

2
src/components/TableForm/src/TableForm.vue

@ -5,7 +5,7 @@
ref="TableBaseComponents_Ref" ref="TableBaseComponents_Ref"
v-loading="tableLoading" v-loading="tableLoading"
:data="tableData" :data="tableData"
max-height="maxHeight" :max-height="maxHeight"
row-key="id" row-key="id"
:border="border" :border="border"
@selection-change="tableSelectionChange" @selection-change="tableSelectionChange"

1
src/utils/dict.ts

@ -299,6 +299,7 @@ export enum DICT_TYPE {
EVALUATION_CODE = "evaluation_code", // 评估代码 EVALUATION_CODE = "evaluation_code", // 评估代码
DEFECT_LEVEL = "defect_level", // 缺陷级别 DEFECT_LEVEL = "defect_level", // 缺陷级别
DICTIONARY_CLASS = "dictionary_class", // 字典分类 DICTIONARY_CLASS = "dictionary_class", // 字典分类
USAGE_DECISION = "usage_decision", // 使用决策
// ========== 业务 - mes -gaojs ========== // ========== 业务 - mes -gaojs ==========
QUALIFY_STATUS = 'qualify_status',//质检状态 QUALIFY_STATUS = 'qualify_status',//质检状态

569
src/views/qms/inspection/inspectionJob/addForm.vue

@ -16,7 +16,6 @@
:rules="rules" :rules="rules"
:schema="formSchema" :schema="formSchema"
:is-col="true" :is-col="true"
:disabled="true"
@opensearchTable="opensearchTable" @opensearchTable="opensearchTable"
/> />
<el-tabs <el-tabs
@ -29,7 +28,7 @@
:stretch="false" :stretch="false"
> >
<el-tab-pane <el-tab-pane
v-for="item in data.process" v-for="item in data.subList"
:key="item.name" :key="item.name"
:label="item.processCode" :label="item.processCode"
:name="item.name" :name="item.name"
@ -78,141 +77,66 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="编码"> <el-form-item label="编码">
<el-input <el-input
v-model="item.inspectionCharacteristicsBaseVO.number" v-model="item.inspectionJobCharacteristicsUpdateReqVO.number"
placeholder="根据系统生成" placeholder="根据系统生成"
:disabled="true" :disabled="true"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="描述" prop="inspectionCharacteristicsBaseVO.description"> <el-form-item label="描述" prop="inspectionJobCharacteristicsUpdateReqVO.description">
<el-input v-model="item.inspectionCharacteristicsBaseVO.description" :disabled="true" /> <el-input v-model="item.inspectionJobCharacteristicsUpdateReqVO.description" :disabled="true" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="检验方法" label="检验方法"
prop="inspectionCharacteristicsBaseVO.inspectionMethodCode" prop="inspectionJobCharacteristicsUpdateReqVO.inspectionMethodCode"
> >
<div style="display: flex; width: 100%"> <div style="display: flex; width: 100%">
<el-input <el-input
v-model="item.inspectionCharacteristicsBaseVO.inspectionMethodName" v-model="item.inspectionJobCharacteristicsUpdateReqVO.inspectionMethodName"
disabled disabled
placeholder="请选择检验方法" placeholder="请选择检验方法"
/> />
<el-button
type="info"
plain
style="width: 40px"
@click="
opensearchTable(
'inspectionMethodCode',
null,
'检验方法',
InspectionMethod.allSchemas,
InspectionMethodApi.getInspectionMethodPage,
[
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
false,
'features',
item
)
"
><Icon icon="ep:search"
/></el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="采样过程编码" label="采样过程编码"
prop="inspectionCharacteristicsBaseVO.inspectionMethod" prop="inspectionJobCharacteristicsUpdateReqVO.inspectionMethod"
> >
<div style="display: flex; width: 100%"> <div style="display: flex; width: 100%">
<el-input <el-input
v-model="item.inspectionCharacteristicsBaseVO.inspectionName" v-model="item.inspectionJobCharacteristicsUpdateReqVO.inspectionName"
disabled disabled
placeholder="请选择采样过程编码" placeholder="请选择采样过程编码"
/> />
<el-button
type="info"
plain
style="width: 40px"
@click="
opensearchTable(
'inspectionMethod',
null,
'采样过程编码',
SamplingProcess.allSchemas,
SamplingProcessApi.getSamplingProcessPage,
[
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
false,
'features',
item
)
"
><Icon icon="ep:search"
/></el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="动态修改规则编码" label="动态修改规则编码"
prop="inspectionCharacteristicsBaseVO.dynamicUpdateCode" prop="inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateCode"
> >
<div style="display: flex; width: 100%"> <div style="display: flex; width: 100%">
<el-input <el-input
v-model="item.inspectionCharacteristicsBaseVO.dynamicUpdateName" v-model="item.inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateName"
disabled disabled
placeholder="请选择动态修改规则编码" placeholder="请选择动态修改规则编码"
/> />
<el-button
type="info"
plain
style="width: 40px"
@click="
opensearchTable(
'dynamicUpdateCode',
null,
'动态修改规则编码',
DynamicRule.allSchemas,
DynamicRuleApi.getDynamicRulePage,
[
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
false,
'features',
item
)
"
><Icon icon="ep:search"
/></el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="是否允许修改特征值" label="是否允许修改特征值"
prop="inspectionCharacteristicsBaseVO.isCanUpdate" prop="inspectionJobCharacteristicsUpdateReqVO.isCanUpdate"
> >
<el-switch <el-switch
v-model="item.inspectionCharacteristicsBaseVO.isCanUpdate" v-model="item.inspectionJobCharacteristicsUpdateReqVO.isCanUpdate"
disabled disabled
/> />
</el-form-item> </el-form-item>
@ -220,11 +144,13 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="结果录入方式" label="结果录入方式"
prop="inspectionCharacteristicsBaseVO.resultEntryMethod" prop="inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod"
> >
<el-select <el-select
v-model="item.inspectionCharacteristicsBaseVO.resultEntryMethod" v-model="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod"
placeholder="请选择结果录入方式" placeholder="请选择结果录入方式"
@change="resultEntryMethodChange($event,item)"
disabled
> >
<el-option <el-option
v-for="dict in getStrDictOptions( v-for="dict in getStrDictOptions(
@ -238,18 +164,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="特征类型" prop="inspectionCharacteristicsBaseVO.featureType"> <el-form-item label="特征类型" prop="inspectionJobCharacteristicsUpdateReqVO.featureType">
<!-- <el-input v-model="item.featureType" /> -->
<el-select <el-select
v-model="item.inspectionCharacteristicsBaseVO.featureType" v-model="item.inspectionJobCharacteristicsUpdateReqVO.featureType"
placeholder="请选择特征类型" placeholder="请选择特征类型"
@change="changeFeatureType" @change="changeFeatureType"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate" disabled
> >
<el-option <el-option v-for="dict in getStrDictOptions( DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE )"
v-for="dict in getStrDictOptions(
DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE
)"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
@ -257,146 +179,66 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" style="border: 1px solid #dedede ;border-radius: 4px ;padding-top: 16px;margin-bottom: 10px" v-for="(cur,key) in item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList" :key="key">
<el-row>
<!-- 汇总录入的时候显示 -->
<el-col :span="12" v-if="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1">
<el-form-item label="合格数量" prop="inspectionJobCharacteristicsUpdateReqVO.featureType">
<el-input v-model="cur.qualifiedQuantity" placeholder="请输入合格数量"/>
</el-form-item>
</el-col>
<el-col :span="12" v-if="item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1">
<el-form-item label="不合格数量">
<el-input v-model="cur.unqualifiedQuantity" placeholder="请输入不合格数量"/>
</el-form-item>
</el-col>
<!-- 手动评估的时候显示 -->
<el-col :span="12" v-if="item.samplingProcessRespVO.evaluationMode == 1">
<el-form-item label="评估代码">
<el-select
v-model="cur.estimateCode"
placeholder="请选择评估代码"
@change="changeFeatureType">
<el-option v-for="dict in getStrDictOptions( DICT_TYPE.EVALUATION_CODE  )"
:key="dict.value"
:label="dict.label"
:value="dict.value"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0">
<el-form-item label="检验值" prop="inspectionValue">
<el-input v-model="cur.inspectionValue" placeholder="请输入检验值"/>
</el-form-item>
</el-col>
<el-col :span="12" v-if="item.inspectionJobCharacteristicsUpdateReqVO.featureType == 1">
<el-form-item label="选定集" prop="qualitativeCode">
<el-select
v-model="cur.qualitativeCode"
placeholder="请选择选定集"
@change="changeQualitativeCode($event,item,cur)">
<el-option v-for="dict in item.selectedProjectRespVOList"
:key="dict.dictionaryValue"
:label="dict.dictionaryLabel"
:value="dict.dictionaryValue"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"> <el-col :span="12" v-if="item.samplingProcessRespVO.evaluationMode == 1">
<el-form-item <el-form-item label="缺陷级别">
label="是否设定上限" <el-select
prop="inspectionCharacteristicsBaseVO.quantifyIsCapping" v-model="cur.defectLevel"
> placeholder="请选择缺陷级别"
<el-switch disabled>
v-model="item.inspectionCharacteristicsBaseVO.quantifyIsCapping" <el-option v-for="dict in getStrDictOptions(DICT_TYPE.DEFECT_LEVEL)"
@change="changeIsCapping" :key="dict.value"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate" :label="dict.label"
/> :value="dict.value"/>
</el-form-item> </el-select>
</el-col> </el-form-item>
<el-col :span="12"> </el-col>
<el-form-item </el-row>
label="上限值"
prop="inspectionCharacteristicsBaseVO.quantifyCapping"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-input
v-model="item.inspectionCharacteristicsBaseVO.quantifyCapping"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
prop="inspectionCharacteristicsBaseVO.quantifyIsLowlimit"
label="是否设定下限"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-switch
v-model="item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit"
@change="changeLowlimit"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="下限值"
prop="inspectionCharacteristicsBaseVO.quantifyLowlimit"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-input
v-model="item.inspectionCharacteristicsBaseVO.quantifyLowlimit"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
prop="inspectionCharacteristicsBaseVO.quantifyIsTarget"
label="是否设定目标值"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-switch
v-model="item.inspectionCharacteristicsBaseVO.quantifyIsTarget"
@change="changeIsTarget"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="目标值"
prop="inspectionCharacteristicsBaseVO.quantifyTarget"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-input
v-model="item.inspectionCharacteristicsBaseVO.quantifyTarget"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="计量单位"
prop="inspectionCharacteristicsBaseVO.quantifyUom"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-input
v-model="item.inspectionCharacteristicsBaseVO.quantifyUom"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="小数位"
prop="inspectionCharacteristicsBaseVO.quantifyDecimal"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 0"
>
<el-input
v-model="item.inspectionCharacteristicsBaseVO.quantifyDecimal"
:disabled="!item.inspectionCharacteristicsBaseVO.isCanUpdate"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item
label="选择集编码"
prop="inspectionCharacteristicsBaseVO.quantifyQuantifyCode"
v-if="item.inspectionCharacteristicsBaseVO.featureType == 1"
>
<div style="display: flex; width: 100%">
<el-input
v-model="item.inspectionCharacteristicsBaseVO.quantifyQuantifyCode"
disabled
placeholder="请选择选择集编码"
/>
<el-button
type="info"
plain
style="width: 40px"
@click="
opensearchTable(
'quantifyQuantifyCode',
null,
'选择集编码',
SelectedSet.allSchemas,
SelectedSetApi.getSelectedSetPage,
[
{
key: 'available',
value: 'TRUE',
isMainValue: false
}
],
false,
null,
item
)
"
v-if="item.inspectionCharacteristicsBaseVO.isCanUpdate"
><Icon icon="ep:search"
/></el-button>
</div>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
@ -519,7 +361,7 @@ const data = ref({
effectiveDate: '', effectiveDate: '',
expirationDate: '', expirationDate: '',
available: 'TRUE', available: 'TRUE',
process: [] subList: []
}) })
const dialogVisibleName = ref(false) const dialogVisibleName = ref(false)
@ -534,40 +376,40 @@ if (props.basicFormWidth) {
} }
const rules = ref({ const rules = ref({
...props.rules, ...props.rules,
'inspectionCharacteristicsBaseVO.description': [ 'inspectionJobCharacteristicsUpdateReqVO.description': [
{ required: true, message: '请填写描述', trigger: ['blur', 'change'] } { required: true, message: '请填写描述', trigger: ['blur', 'change'] }
], ],
'inspectionCharacteristicsBaseVO.inspectionMethodCode': [ 'inspectionJobCharacteristicsUpdateReqVO.inspectionMethodCode': [
{ required: true, message: '请选择检验方法编码', trigger: 'blur' } { required: true, message: '请选择检验方法编码', trigger: 'blur' }
], ],
'inspectionCharacteristicsBaseVO.dynamicUpdateCode': [ 'inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateCode': [
{ required: true, message: '请选择采样过程编码', trigger: ['blur', 'change'] } { required: true, message: '请选择采样过程编码', trigger: ['blur', 'change'] }
], ],
'inspectionCharacteristicsBaseVO.inspectionMethod': [ 'inspectionJobCharacteristicsUpdateReqVO.inspectionMethod': [
{ required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] } { required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] }
], ],
'inspectionCharacteristicsBaseVO.resultEntryMethod': [ 'inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod': [
{ required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] } { required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] }
], ],
'inspectionCharacteristicsBaseVO.featureType': [ 'inspectionJobCharacteristicsUpdateReqVO.featureType': [
{ required: true, message: '请选择特征类型', trigger: ['blur', 'change'] } { required: true, message: '请选择特征类型', trigger: ['blur', 'change'] }
], ],
'inspectionCharacteristicsBaseVO.quantifyTarget': [ 'inspectionJobCharacteristicsUpdateReqVO.quantifyTarget': [
{ required: true, message: '请输入目标值', trigger: 'blur' } { required: true, message: '请输入目标值', trigger: 'blur' }
], ],
'inspectionCharacteristicsBaseVO.quantifyCapping': [ 'inspectionJobCharacteristicsUpdateReqVO.quantifyCapping': [
{ required: true, message: '请输入上限值', trigger: 'blur' } { required: true, message: '请输入上限值', trigger: 'blur' }
], ],
'inspectionCharacteristicsBaseVO.quantifyLowlimit': [ 'inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit': [
{ required: true, message: '请输入下限值', trigger: 'blur' } { required: true, message: '请输入下限值', trigger: 'blur' }
], ],
'inspectionCharacteristicsBaseVO.quantifyUom': [ 'inspectionJobCharacteristicsUpdateReqVO.quantifyUom': [
{ required: true, message: '请选择计量单位', trigger: 'blur' } { required: true, message: '请选择计量单位', trigger: 'blur' }
], ],
'inspectionCharacteristicsBaseVO.quantifyDecimal': [ 'inspectionJobCharacteristicsUpdateReqVO.quantifyDecimal': [
{ required: true, message: '请输入小数位', trigger: 'blur' } { required: true, message: '请输入小数位', trigger: 'blur' }
], ],
'inspectionCharacteristicsBaseVO.quantifyQuantifyCode': [ 'inspectionJobCharacteristicsUpdateReqVO.quantifyQuantifyCode': [
{ required: true, message: '请输入选择集编码', trigger: 'blur' } { required: true, message: '请输入选择集编码', trigger: 'blur' }
] ]
}) })
@ -583,40 +425,40 @@ const rules = ref({
// inspectionLevel: [{ required: true, message: '', trigger: ['blur', 'change'] }], // inspectionLevel: [{ required: true, message: '', trigger: ['blur', 'change'] }],
// effectiveDate: [{ required: true, message: '', trigger: ['blur', 'change'] }], // effectiveDate: [{ required: true, message: '', trigger: ['blur', 'change'] }],
// expirationDate: [{ required: true, message: '', trigger: ['blur', 'change'] }], // expirationDate: [{ required: true, message: '', trigger: ['blur', 'change'] }],
// 'inspectionCharacteristicsBaseVO.description': [ // 'inspectionJobCharacteristicsUpdateReqVO.description': [
// { required: true, message: '', trigger: ['blur', 'change'] } // { required: true, message: '', trigger: ['blur', 'change'] }
// ], // ],
// 'inspectionCharacteristicsBaseVO.inspectionMethodCode': [ // 'inspectionJobCharacteristicsUpdateReqVO.inspectionMethodCode': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
// 'inspectionCharacteristicsBaseVO.dynamicUpdateCode': [ // 'inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateCode': [
// { required: true, message: '', trigger: ['blur', 'change'] } // { required: true, message: '', trigger: ['blur', 'change'] }
// ], // ],
// 'inspectionCharacteristicsBaseVO.inspectionMethod': [ // 'inspectionJobCharacteristicsUpdateReqVO.inspectionMethod': [
// { required: true, message: '', trigger: ['blur', 'change'] } // { required: true, message: '', trigger: ['blur', 'change'] }
// ], // ],
// 'inspectionCharacteristicsBaseVO.resultEntryMethod': [ // 'inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod': [
// { required: true, message: '', trigger: ['blur', 'change'] } // { required: true, message: '', trigger: ['blur', 'change'] }
// ], // ],
// 'inspectionCharacteristicsBaseVO.featureType': [ // 'inspectionJobCharacteristicsUpdateReqVO.featureType': [
// { required: true, message: '', trigger: ['blur', 'change'] } // { required: true, message: '', trigger: ['blur', 'change'] }
// ], // ],
// 'inspectionCharacteristicsBaseVO.quantifyTarget': [ // 'inspectionJobCharacteristicsUpdateReqVO.quantifyTarget': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
// 'inspectionCharacteristicsBaseVO.quantifyCapping': [ // 'inspectionJobCharacteristicsUpdateReqVO.quantifyCapping': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
// 'inspectionCharacteristicsBaseVO.quantifyLowlimit': [ // 'inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
// 'inspectionCharacteristicsBaseVO.quantifyUom': [ // 'inspectionJobCharacteristicsUpdateReqVO.quantifyUom': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
// 'inspectionCharacteristicsBaseVO.quantifyDecimal': [ // 'inspectionJobCharacteristicsUpdateReqVO.quantifyDecimal': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ], // ],
// 'inspectionCharacteristicsBaseVO.quantifyQuantifyCode': [ // 'inspectionJobCharacteristicsUpdateReqVO.quantifyQuantifyCode': [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ] // ]
// }) // })
@ -633,37 +475,56 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
formType.value = type formType.value = type
if (row) { if (row) {
data.value = JSON.parse(JSON.stringify(row)) data.value = JSON.parse(JSON.stringify(row))
console.log(data.value)
let list = [] let list = []
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id) list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id)
// if (row.inspectionSchemeJson) {
// list = JSON.parse(JSON.parse(row.inspectionSchemeJson))
// } else {
// list = await InspectionJobDetailPageApi.getListByTempleteCode(row.programmeTemplateCode)
// }
console.log(list)
console.log(typeof list)
list.forEach((item, index) => { list.forEach((item, index) => {
editableTabsValue.value = index + 1 editableTabsValue.value = index + 1
item.name = index + 1 item.name = index + 1
item.inspectionCharacteristicsBaseVO = item.inspectionJobCharacteristicsRespVO item.inspectionJobCharacteristicsUpdateReqVO = item.inspectionJobCharacteristicsRespVO
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList=[]
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod==0) {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
for(let i=0;i<data.value.sampleTotalAmount;i++){
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
inspectionValue:'',//
qualitativeCode:'',//
estimateCode:'',//
defectLevel:'',//
qualifiedQuantity:'',//
unqualifiedQuantity:'',//
})
}
} else {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList=[{
inspectionValue:'',//
qualitativeCode:'',//
estimateCode:'',//
defectLevel:'',//
qualifiedQuantity:'',//
unqualifiedQuantity:'',//
}]
}
// //
if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping) {
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false
} }
if (item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit) {
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required = true
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required = false
} }
if (item.inspectionCharacteristicsBaseVO.quantifyIsTarget) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget) {
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyTarget'][0].required = true
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyTarget'][0].required = false
} }
}) })
data.value.process = list data.value.subList = list
formMainRef.value.setValues(row) formMainRef.value.setValues(row)
} else { } else {
data.value = { data.value = {
@ -678,11 +539,11 @@ console.log(typeof list)
effectiveDate: '', effectiveDate: '',
expirationDate: '', expirationDate: '',
available: 'TRUE', available: 'TRUE',
process: [] subList: []
} }
} }
tabIndex = data.value.process.length + 1 tabIndex = data.value.subList.length + 1
} }
defineExpose({ open, dialogVisible, formLoading }) // open defineExpose({ open, dialogVisible, formLoading }) // open
import type { TabPaneName } from 'element-plus' import type { TabPaneName } from 'element-plus'
@ -695,7 +556,7 @@ const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' |
nameForm.value.name = '' nameForm.value.name = ''
dialogVisibleName.value = true dialogVisibleName.value = true
} else if (action === 'remove') { } else if (action === 'remove') {
const tabs = data.value.process const tabs = data.value.subList
let activeName = editableTabsValue.value let activeName = editableTabsValue.value
if (activeName === targetName) { if (activeName === targetName) {
tabs.forEach((tab, index) => { tabs.forEach((tab, index) => {
@ -708,7 +569,7 @@ const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' |
}) })
} }
editableTabsValue.value = activeName editableTabsValue.value = activeName
data.value.process = tabs.filter((tab) => tab.name !== targetName) data.value.subList = tabs.filter((tab) => tab.name !== targetName)
} }
} }
/** 修改名称时间 */ /** 修改名称时间 */
@ -719,13 +580,13 @@ const buttonBaseClick1 = (val) => {
nameRef.value.validate((valid, fields) => { nameRef.value.validate((valid, fields) => {
if (valid) { if (valid) {
const newTabName = `${++tabIndex}` const newTabName = `${++tabIndex}`
data.value.process.push({ data.value.subList.push({
description: nameForm.value.name, description: nameForm.value.name,
name: newTabName, name: newTabName,
inspectionCode: '', inspectionCode: '',
sequenceCode: '', sequenceCode: '',
inspectionCharCode: '', inspectionCharCode: '',
inspectionJobCharacteristicsRespVO: { inspectionJobCharacteristicsUpdateReqVO: {
describe: '', describe: '',
inspectionMethodCode: '', inspectionMethodCode: '',
dynamicUpdateCode: '', dynamicUpdateCode: '',
@ -745,7 +606,7 @@ const buttonBaseClick1 = (val) => {
quantifyQuantifyCode: '' quantifyQuantifyCode: ''
} }
}) })
console.log(data.value.process) console.log(data.value.subList)
editableTabsValue.value = newTabName editableTabsValue.value = newTabName
dialogVisibleName.value = false dialogVisibleName.value = false
@ -787,36 +648,36 @@ const validateForm = (formRef) => {
const submitForm = async () => { const submitForm = async () => {
try { try {
const validateForm1 = await validateForm(formProcessRef.value) const validateForm1 = await validateForm(formProcessRef.value)
console.log(validateForm1) // console.log(validateForm1)
await formMainRef.value.validate() // await formMainRef.value.validate()
if (!data.value.process || data.value.process.length == 0) { // if (!data.value.process || data.value.process.length == 0) {
message.error(`请添加工序`) // message.error(``)
return // return
} // }
const bol1 = await validateForm(formProcessRef.value) // const bol1 = await validateForm(formProcessRef.value)
const bol2 = await validateForm(formFeaturesRef.value) // const bol2 = await validateForm(formFeaturesRef.value)
if (!bol1 || !bol2) { // if (!bol1 || !bol2) {
message.error(`模板中有检验工序和检验特性未填写完全`) // message.error(``)
return // return
} // }
const arr = data.value.process.filter( // const arr = data.value.process.filter(
(item) => // (item) =>
!item.inspectionCharacteristicsBaseVO.quantifyIsCapping && // !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping &&
!item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit && // !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit &&
!item.inspectionCharacteristicsBaseVO.quantifyIsTarget && // !item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget &&
item.inspectionCharacteristicsBaseVO.featureType == 0 // item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0
) // )
console.log(arr) // console.log(arr)
if (arr && arr.length > 0) { // if (arr && arr.length > 0) {
const str = arr.map((item) => item.description).join(',') // const str = arr.map((item) => item.description).join(',')
message.error(`${str}是否设定上线,是否设定下限,是否是定目标值至少一项为是`) // message.error(`${str}线,,`)
return // return
} // }
if (formType.value == 'create') { if (formType.value == 'create') {
// //
emit('submitForm', formType.value, data.value) emit('submitForm', formType.value, data.value)
} else { } else {
// // /
emit('submitForm', formType.value, data.value) emit('submitForm', formType.value, data.value)
} }
} catch { } catch {
@ -837,9 +698,9 @@ if (props.footButttondata) {
const changeFeatureType = (e) => { const changeFeatureType = (e) => {
console.log(e) console.log(e)
// if (e) { // if (e) {
// rules.value['inspectionCharacteristicsBaseVO.quantifyQuantifyCode'][0].required = true // rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyQuantifyCode'][0].required = true
// } else { // } else {
// rules.value['inspectionCharacteristicsBaseVO.quantifyQuantifyCode'][0].required = false // rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyQuantifyCode'][0].required = false
// } // }
} }
const searchTableRef = ref() const searchTableRef = ref()
@ -921,13 +782,13 @@ const opensearchTable = (
// val row // val row
const searchTableSuccess = async (formField, searchField, val, type, row) => { const searchTableSuccess = async (formField, searchField, val, type, row) => {
if(type == 'features'){ if(type == 'features'){
row.inspectionCharacteristicsBaseVO[formField] = val[0].code row.inspectionJobCharacteristicsUpdateReqVO[formField] = val[0].code
if(formField == 'inspectionMethodCode'){ if(formField == 'inspectionMethodCode'){
row.inspectionCharacteristicsBaseVO.inspectionMethodName = val[0].description row.inspectionJobCharacteristicsUpdateReqVO.inspectionMethodName = val[0].description
}else if(formField == 'dynamicUpdateCode'){ }else if(formField == 'dynamicUpdateCode'){
row.inspectionCharacteristicsBaseVO.dynamicUpdateName = val[0].description row.inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateName = val[0].description
}else if(formField == 'inspectionMethod'){ }else if(formField == 'inspectionMethod'){
row.inspectionCharacteristicsBaseVO.inspectionName = val[0].description row.inspectionJobCharacteristicsUpdateReqVO.inspectionName = val[0].description
} }
} else if(type == 'main'){ } else if(type == 'main'){
data.value[formField] = val[0].code data.value[formField] = val[0].code
@ -944,51 +805,61 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => {
editableTabsValue.value = index + 1 editableTabsValue.value = index + 1
item.name = index + 1 item.name = index + 1
// //
if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping) {
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false
} }
if (item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit) {
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required = true
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required = false
} }
if (item.inspectionCharacteristicsBaseVO.quantifyIsTarget) { if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget) {
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyTarget'][0].required = true
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyTarget'][0].required = false
} }
}) })
data.value.process = list data.value.subList = list
} }
} }
// emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row) // emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row)
} }
// //
const changeIsCapping = (e) => { const resultEntryMethodChange = (e,item) => {
if (e) { item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList =[]
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true if (e==0) {
} else { // rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false for(let i=0;i<data.value.sampleTotalAmount;i++){
} item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
} inspectionValue:'',//
// qualitativeCode:'',//
const changeLowlimit = (e) => { estimateCode:'',//
if (e) { defectLevel:'',//
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true qualifiedQuantity:'',//
unqualifiedQuantity:'',//
})
}
} else { } else {
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false // rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList=[{
inspectionValue:'',//
qualitativeCode:'',//
estimateCode:'',//
defectLevel:'',//
qualifiedQuantity:'',//
unqualifiedQuantity:'',//
}]
} }
console.log(222,item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList)
} }
// //
const changeIsTarget = (e) => { const changeQualitativeCode= (e,item,cur)=>{
if (e) { let obj = item.selectedProjectRespVOList.find(cur=>cur.dictionaryValue==e)
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true console.log(obj)
} else { cur.defectLevel = obj.defectLevel
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false
}
} }
</script> </script>
<style scoped> <style scoped>

9
src/views/qms/inspection/inspectionJob/index.vue

@ -183,7 +183,7 @@
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { // if (val == 'mainJobExe') { //
execute('update', row) execute('execute', row)
} }
else if (val == 'mainJobClo') { // else if (val == 'mainJobClo') { //
handleDelete(row.id) handleDelete(row.id)
@ -257,13 +257,14 @@
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // console.log(data)
// return
try { try {
if (formType === 'create') { if (formType === 'create') {
await InspectionJobMainApi.createInspectionJobMain(data) await InspectionJobMainApi.createInspectionJobMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else if(formType === 'execute') {
await InspectionJobMainApi.updateInspectionJobMain(data) await InspectionJobMainApi.executeInspectionJobMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
formRef.value.dialogVisible = false formRef.value.dialogVisible = false

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

@ -13,36 +13,66 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '供应商编码', label: '供应商编码',
field: 'supplierCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '物料编码', label: '物料编码',
field: 'materialCode', field: 'materialCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '物料批次', label: '物料批次',
field: 'materialBatch', field: 'materialBatch',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '订单号', label: '订单号',
field: 'orderCode', field: 'orderCode',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '订单行', label: '订单行',
@ -51,7 +81,10 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0,
componentProps:{
disabled:true
}
}, },
}, },
{ {
@ -59,6 +92,11 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'certificateCode', field: 'certificateCode',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '凭证行', label: '凭证行',
@ -67,7 +105,10 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0,
componentProps:{
disabled:true
}
}, },
}, },
{ {
@ -75,6 +116,11 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inspectionSchemeCode', field: 'inspectionSchemeCode',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
// { // {
// label: '检验方案Json', // label: '检验方案Json',
@ -87,18 +133,33 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inspectionBatch', field: 'inspectionBatch',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '检验批数量', label: '检验批数量',
field: 'inspectionBatchAmount', field: 'inspectionBatchAmount',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '采样总数量', label: '采样总数量',
field: 'sampleTatalAmount', field: 'sampleTatalAmount',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: {
componentProps:{
disabled:true
}
},
}, },
{ {
label: '检验类型', label: '检验类型',
@ -106,7 +167,10 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form: { form: {
component: 'Select' component: 'Select',
componentProps:{
disabled:true
}
}, },
}, },
{ {
@ -114,6 +178,11 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inspectionBatchSource', field: 'inspectionBatchSource',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '检验阶段', label: '检验阶段',
@ -122,7 +191,10 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0,
componentProps:{
disabled:true
}
}, },
}, },
{ {
@ -130,18 +202,33 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inspectionStringency', field: 'inspectionStringency',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '检验任务包装列表', label: '检验任务包装列表',
field: 'inspectionTaskPackageCode', field: 'inspectionTaskPackageCode',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '检验任务工序列表', label: '检验任务工序列表',
field: 'inspectionTaskProcessCode', field: 'inspectionTaskProcessCode',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '计划开始时间', label: '计划开始时间',
@ -161,7 +248,8 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
valueFormat: 'x' valueFormat: 'x',
disabled:true
} }
}, },
}, },
@ -183,7 +271,8 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
valueFormat: 'x' valueFormat: 'x',
disabled:true
} }
}, },
}, },
@ -192,18 +281,44 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inspectionLevel', field: 'inspectionLevel',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: 'AQL值', label: 'AQL值',
field: 'aqlValue', field: 'aqlValue',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
},
{
label: '使用决策',
field: 'usageDecision',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.USAGE_DECISION,
form:{
componentProps:{
}
}
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
form:{
componentProps:{
disabled:true
}
}
}, },
{ {
label: '操作', label: '操作',
@ -244,25 +359,19 @@ export const InspectionJobMainRules = reactive({
*/ */
export const InspectionJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InspectionJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '编码',
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '任务编码', label: '检验方案模板编码',
field: 'taskCode', field: 'inspectionCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '工序编码', label: '描述',
field: 'processCode',
sort: 'custom',
isSearch: true,
},
{
label: '工序描述',
field: 'processDescribe', field: 'processDescribe',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -279,26 +388,43 @@ export const InspectionJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '检验特性编号', label: '检验特性编号',
field: 'inspectionFeatureCode', field: 'inspectionCharCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
}, },
{ {
label: '是否可用', label: '检验特性编码',
field: 'available', field: 'inspectionJobCharacteristicsRespVO.number',
sort: 'custom', sort: 'custom',
isSearch: true,
}, },
{ {
label: '操作', label: '检验特性描述',
field: 'action', field: 'inspectionJobCharacteristicsRespVO.description',
isDetail: false, sort: 'custom',
isForm: false, },{
table: { label: '检验方法',
width: 150, field: 'inspectionJobCharacteristicsRespVO.inspectionMethodName',
fixed: 'right' sort: 'custom',
}, },{
isTableForm: false, label: '采样过程编码',
field: 'inspectionMethod',
sort: 'custom',
},{
label: '动态修改规则编码',
field: 'dynamicUpdateCode',
sort: 'custom',
},{
label: '是否允许修改特征值',
field: 'inspectionJobCharacteristicsRespVO.isCanUpdate',
sort: 'custom',
},{
label: '结果录入方式',
field: 'resultEntryMethod',
sort: 'custom',
},{
label: '特征类型',
field: 'featureType',
sort: 'custom',
} }
])) ]))

5
src/views/system/systemInstallPackage/systemInstallPackage.data.ts

@ -10,6 +10,11 @@ export const SystemInstallPackageRules = reactive({
}) })
export const SystemInstallPackage = useCrudSchemas(reactive<CrudSchema[]>([ export const SystemInstallPackage = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
},
{ {
label: '安装包名称', label: '安装包名称',
field: 'installPackageName', field: 'installPackageName',

Loading…
Cancel
Save