@@ -376,7 +378,7 @@
}
],
false,
- null,
+ 'features',
item
)
"
@@ -474,6 +476,7 @@ const data = ref({
code: '',
description: '',
version: '',
+ dynamicUpdateCode:'',
process: []
})
@@ -499,12 +502,12 @@ const rules = ref({
'inspectionCharacteristicsBaseVO.inspectionMethodCode': [
{ required: true, message: '请选择检验方法编码', trigger: 'blur' }
],
- 'inspectionCharacteristicsBaseVO.dynamicUpdateCode': [
- { required: true, message: '请选择采样过程编码', trigger: ['blur', 'change'] }
- ],
- 'inspectionCharacteristicsBaseVO.inspectionMethod': [
+ dynamicUpdateCode: [
{ required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] }
],
+ 'inspectionCharacteristicsBaseVO.samplingProcessCode': [
+ { required: true, message: '请选择采样过程', trigger: ['blur', 'change'] }
+ ],
'inspectionCharacteristicsBaseVO.resultEntryMethod': [
{ required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] }
],
@@ -617,13 +620,13 @@ const buttonBaseClick1 = (val) => {
description: nameForm.value.name,
name: newTabName,
inspectionCode: '',
+ dynamicUpdateCode:'',
sequenceCode: '',
inspectionCharCode: '',
inspectionCharacteristicsBaseVO: {
describe: '',
inspectionMethodCode: '',
- dynamicUpdateCode: '',
- inspectionMethod: '',
+ samplingProcessCode: '',
isCanUpdate: '',
isDestructionInspection: '',
resultEntryMethod: '',
@@ -821,10 +824,15 @@ const searchTableSuccess = (formField, searchField, val, type, row) => {
row.inspectionCharacteristicsBaseVO[formField] = val[0].code
if(formField == 'inspectionMethodCode'){
row.inspectionCharacteristicsBaseVO.inspectionMethodName = val[0].description
- }else if(formField == 'dynamicUpdateCode'){
- row.inspectionCharacteristicsBaseVO.dynamicUpdateName = val[0].description
- }else if(formField == 'inspectionMethod'){
- row.inspectionCharacteristicsBaseVO.inspectionName = val[0].description
+ }else if(formField == 'samplingProcessCode'){
+ row.inspectionCharacteristicsBaseVO.samplingProcessName = val[0].description
+ }else if(formField == 'quantifyQuantifyCode'){
+ row.inspectionCharacteristicsBaseVO.quantifyQuantifyName = val[0].description
+ }
+ }else{
+ if(formField == 'dynamicUpdateCode'){
+ data.value[formField] = val[0].code
+ data.value.dynamicUpdateName = val[0].description
}
}
From 0a0f7393793188a88d79fbf0addc62ddb7ce41a7 Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Sun, 7 Apr 2024 19:27:18 +0800
Subject: [PATCH 02/32] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=85=A5?=
=?UTF-8?q?=E5=BA=93=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../unplannedreceiptRequestMain/index.vue | 32 +++++++++++++------
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
index 78cbb6234..08c26203e 100644
--- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
+++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
@@ -113,6 +113,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as ItembasicApi from "@/api/wms/itembasic";
import * as PackageApi from "@/api/wms/package";
import { formatTime } from '@/utils/index'
+import { getAccessToken } from '@/utils/auth'
// 计划外入库申请
defineOptions({ name: 'UnplannedreceiptRequestMain' })
@@ -284,16 +285,17 @@ const butttondata = (row) => {
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:unplannedreceipt-request-main:handle'}), // 处理
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:unplannedreceipt-request-main:update'}), // 编辑
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:unplannedreceipt-request-main:delete'}), // 删除
- {
- label: '创建标签',
- name: 'cjbq',
- hide: isShowMainButton(row,['3']),
- type: 'primary',
- icon: '',
- color: '',
- hasPermi: '',
- link: true, // 文本展现按钮
- },
+ {
+ label: '创建标签',
+ name: 'cjbq',
+ hide: isShowMainButton(row,['3']),
+ type: 'primary',
+ icon: '',
+ color: '',
+ hasPermi: '',
+ link: true, // 文本展现按钮
+ },
+ defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','8']) }), // 标签打印
]
}
@@ -322,6 +324,9 @@ const buttonTableClick = async (val, row) => {
openForm('update', row)
} else if (val == 'delete') { // 删除
handleDelete(row.id)
+ } else if (val == 'point') {
+ // 标签打印
+ labelPrint(row)
} else if( val == 'cjbq'){// 创建标签
// 判断 是否已创建标签
let isCreateLabel = false
@@ -643,6 +648,13 @@ const tableFormSelectOnBlur = (field, val, row, index) => {
}
}
+// 标签打印
+const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
+const src = ref(BASE_URL + '/jmreport/view/936912164754612224?token=' + getAccessToken())
+const labelPrint = async (row) => {
+ window.open(src.value + '&request_number=' + row.number)
+}
+
/** 初始化 **/
onMounted(async () => {
getList()
From fcae4f14c560f17b3f01e33e607e4e23634ba20d Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Sun, 7 Apr 2024 20:01:34 +0800
Subject: [PATCH 03/32] =?UTF-8?q?=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/utils/dict.ts | 2 +
.../qms/inspection/inspectionJob/addForm.vue | 127 ++++++++++--------
.../qms/inspection/inspectionJob/index.vue | 6 +-
.../inspectionJob/inspectionJobMain.data.ts | 75 +++++++----
4 files changed, 122 insertions(+), 88 deletions(-)
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 4ddb4d195..c204f0772 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -300,6 +300,8 @@ export enum DICT_TYPE {
DEFECT_LEVEL = "defect_level", // 缺陷级别
DICTIONARY_CLASS = "dictionary_class", // 字典分类
USAGE_DECISION = "usage_decision", // 使用决策
+ INSPECTION_BATCH_SOURCE = "inspection_batch_source", // 检验批来源
+ INSPECTION_TYPE = "inspection_type", // 检验类型
// ========== 业务 - mes -gaojs ==========
QUALIFY_STATUS = 'qualify_status',//质检状态
diff --git a/src/views/qms/inspection/inspectionJob/addForm.vue b/src/views/qms/inspection/inspectionJob/addForm.vue
index 4cca5460d..d6051c4d7 100644
--- a/src/views/qms/inspection/inspectionJob/addForm.vue
+++ b/src/views/qms/inspection/inspectionJob/addForm.vue
@@ -28,7 +28,7 @@
:stretch="false"
>
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -410,58 +433,17 @@ const rules = ref({
{ required: true, message: '请输入小数位', trigger: 'blur' }
],
'inspectionJobCharacteristicsUpdateReqVO.quantifyQuantifyCode': [
- { required: true, message: '请输入选择集编码', trigger: 'blur' }
- ]
+ { required: true, message: '请输入选择集编码', trigger: 'change' }
+ ],
+ 'inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime': [
+ { required: true, message: '请输入选择开始时间', trigger: 'change'}
+ ],
+ 'inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime': [
+ { required: true, message: '请输入选择结束时间', trigger: 'blur' }
+],
+
+
})
-// const rules = ref({
-// itemCode: [{ required: true, message: '请选择物料编码', trigger: 'blur' }],
-// version: [{ required: true, message: '请填写版本', trigger: 'blur' }],
-// testTypeCode: [{ required: true, message: '请选择检验类型编码', trigger: ['blur', 'change'] }],
-// programmeTemplateCode: [
-// { required: true, message: '请选择检验模板编码', trigger: ['blur', 'change'] }
-// ],
-// splitRule: [{ required: true, message: '请选择拆分规则', trigger: ['blur', 'change'] }],
-// aql: [{ required: true, message: '请选择aql', trigger: ['blur', 'change'] }],
-// inspectionLevel: [{ required: true, message: '请选择检验水平', trigger: ['blur', 'change'] }],
-// effectiveDate: [{ required: true, message: '请选择生效时间', trigger: ['blur', 'change'] }],
-// expirationDate: [{ required: true, message: '请选择失效时间', trigger: ['blur', 'change'] }],
-// 'inspectionJobCharacteristicsUpdateReqVO.description': [
-// { required: true, message: '请填写描述', trigger: ['blur', 'change'] }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.inspectionMethodCode': [
-// { required: true, message: '请选择检验方法编码', trigger: 'blur' }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateCode': [
-// { required: true, message: '请选择采样过程编码', trigger: ['blur', 'change'] }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.inspectionMethod': [
-// { required: true, message: '请选择动态修改规则编码', trigger: ['blur', 'change'] }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod': [
-// { required: true, message: '请选择结果录入方式', trigger: ['blur', 'change'] }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.featureType': [
-// { required: true, message: '请选择特征类型', trigger: ['blur', 'change'] }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.quantifyTarget': [
-// { required: true, message: '请输入目标值', trigger: 'blur' }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.quantifyCapping': [
-// { required: true, message: '请输入上限值', trigger: 'blur' }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit': [
-// { required: true, message: '请输入下限值', trigger: 'blur' }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.quantifyUom': [
-// { required: true, message: '请选择计量单位', trigger: 'blur' }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.quantifyDecimal': [
-// { required: true, message: '请输入小数位', trigger: 'blur' }
-// ],
-// 'inspectionJobCharacteristicsUpdateReqVO.quantifyQuantifyCode': [
-// { required: true, message: '请输入选择集编码', trigger: 'blur' }
-// ]
-// })
/** 打开弹窗 */
let tabIndex = 1
@@ -647,9 +629,36 @@ const validateForm = (formRef) => {
const submitForm = async () => {
try {
- const validateForm1 = await validateForm(formProcessRef.value)
- // console.log(validateForm1)
- // await formMainRef.value.validate()
+
+ console.log(data.value.subList)
+ // const validateForm1 = await validateForm(formMainRef.value)
+ const elForm = unref(formMainRef)?.getElFormRef()
+ // 校验表单
+ if (!elForm) return
+ const valid = await elForm.validate()
+ if (!valid) return
+ // const bol1 = await validateForm(formProcessRef.value)
+ // const bol2 = await validateForm(formFeaturesRef.value)
+ // console.log(bol2)
+ // if (!bol2) {
+ // message.error(`模板中有检验工序和检验特性未填写完全`)
+ // return
+ // }
+ // 判断附加费用数组是否有未填的选项
+ let arrBol = data.value.subList.map((item, index) => {
+ if(item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1){
+ return item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some((cur,key) =>{
+ return !cur.qualifiedQuantity || !cur.unqualifiedQuantity
+ })
+ }
+ })
+ console.log(arrBol)
+ let isEmpty1 = arrBol.some(item=>item== true)
+ if (isEmpty1) {
+ proxy.$modal.msgError("请填写完整信息");
+ return;
+ }
+ return
// if (!data.value.process || data.value.process.length == 0) {
// message.error(`请添加工序`)
// return
diff --git a/src/views/qms/inspection/inspectionJob/index.vue b/src/views/qms/inspection/inspectionJob/index.vue
index e74a0128d..66577f3c3 100644
--- a/src/views/qms/inspection/inspectionJob/index.vue
+++ b/src/views/qms/inspection/inspectionJob/index.vue
@@ -39,7 +39,7 @@
:formAllSchemasFeatures="InspectionTemplateFeatures.allSchemas"
:formAllSchemasProcess="InspectionTemplateProcess.allSchemas"
:formAllSchemasMain="InspectionTemplateMain.allSchemas"
- :rules="InspectionTemplateRules"
+ :rules="InspectionJobMainRules"
:formAllSchemas="InspectionJobMain.allSchemas"
@submitForm="submitForm"
/>
@@ -50,7 +50,7 @@
:apiUpdate="InspectionJobDetailApi.updateInspectionJobDetail"
:apiPage="InspectionJobDetailApi.getInspectionJobDetailPage"
:apiDelete="InspectionJobDetailApi.deleteInspectionJobDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
- :isShowAddBtn="false" :detailButtonIsShow="true" />
+ :isShowAddBtn="false" :detailButtonIsShow="true"/>
([
field: 'inspectionType',
sort: 'custom',
isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_TYPE,
+ dictClass: 'string',
form: {
component: 'Select',
componentProps:{
@@ -178,6 +190,8 @@ export const InspectionJobMain = useCrudSchemas(reactive([
field: 'inspectionBatchSource',
sort: 'custom',
isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE,
+ dictClass: 'string',
form:{
componentProps:{
disabled:true
@@ -202,6 +216,8 @@ export const InspectionJobMain = useCrudSchemas(reactive([
field: 'inspectionStringency',
sort: 'custom',
isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_SEVERITY,
+ dictClass: 'string',
form:{
componentProps:{
disabled:true
@@ -281,6 +297,8 @@ export const InspectionJobMain = useCrudSchemas(reactive([
field: 'inspectionLevel',
sort: 'custom',
isSearch: false,
+ dictType: DICT_TYPE.INSPECTION_LEVEL,
+ dictClass: 'string',
form:{
componentProps:{
disabled:true
@@ -292,6 +310,8 @@ export const InspectionJobMain = useCrudSchemas(reactive([
field: 'aqlValue',
sort: 'custom',
isSearch: false,
+ dictType: DICT_TYPE.BASIC_AQL,
+ dictClass: 'string',
form:{
componentProps:{
disabled:true
@@ -312,13 +332,22 @@ export const InspectionJobMain = useCrudSchemas(reactive([
{
label: '是否可用',
field: 'available',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ dictClass: 'string',
+ isTable: true,
sort: 'custom',
- isSearch: false,
- form:{
- componentProps:{
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'Switch',
+ value: 'TRUE',
+ componentProps: {
+ inactiveValue: 'FALSE',
+ activeValue: 'TRUE',
disabled:true
}
- }
+ },
},
{
label: '操作',
@@ -334,24 +363,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([
//表单校验
export const InspectionJobMainRules = reactive({
- number: [required],
- inspectionCode: [required],
- supplierCode: [required],
- materialCode: [required],
- materialBatch: [required],
- orderCode: [required],
- certificateRow: [required],
- inspectionSchemeCode: [required],
- inspectionSchemeJson: [required],
- inspectionBatch: [required],
- inspectionBatchAmount: [required],
- sampleTatalAmount: [required],
- inspectionType: [required],
- inspectionBatchSource: [required],
- inspectionStage: [required],
- inspectionStringency: [required],
- inspectionLevel: [required],
- available: [required],
+ usageDecision: [required],
})
/**
@@ -407,24 +419,35 @@ export const InspectionJobDetail = useCrudSchemas(reactive([
sort: 'custom',
},{
label: '采样过程编码',
- field: 'inspectionMethod',
+ field: 'inspectionJobCharacteristicsRespVO.inspectionMethod',
sort: 'custom',
},{
label: '动态修改规则编码',
- field: 'dynamicUpdateCode',
+ field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode',
sort: 'custom',
},{
label: '是否允许修改特征值',
field: 'inspectionJobCharacteristicsRespVO.isCanUpdate',
sort: 'custom',
+ formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
+ return isCanUpdateList.find((account) => account.value == cellValue)?.label
+ },
},{
label: '结果录入方式',
- field: 'resultEntryMethod',
+ field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod',
sort: 'custom',
+ // dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY,
+ // dictClass: 'string',
+ formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
+ return resultEntryMethodList.find((account) => account.value == cellValue)?.label
+ },
},{
label: '特征类型',
- field: 'featureType',
+ field: 'inspectionJobCharacteristicsRespVO.featureType',
sort: 'custom',
+ formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
+ return featureTypeList.find((account) => account.value == cellValue)?.label
+ },
}
]))
From 54ff700b559f0c77260b4882393dae3e75a3e86c Mon Sep 17 00:00:00 2001
From: zhaoyiran
Date: Mon, 8 Apr 2024 08:23:58 +0800
Subject: [PATCH 04/32] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/qms/inspectionMethod/index.ts | 1 +
src/components/UploadFile/src/UploadFile.vue | 12 ++++
src/views/qms/inspectionMethod/index.vue | 59 +++++++++++++++----
.../inspectionMethod/inspectionMethod.data.ts | 35 ++++++++++-
4 files changed, 96 insertions(+), 11 deletions(-)
diff --git a/src/api/qms/inspectionMethod/index.ts b/src/api/qms/inspectionMethod/index.ts
index dae6cc6bc..5721037b9 100644
--- a/src/api/qms/inspectionMethod/index.ts
+++ b/src/api/qms/inspectionMethod/index.ts
@@ -33,6 +33,7 @@ export const createInspectionMethod = async (data: InspectionMethodVO) => {
// 修改检验方法
export const updateInspectionMethod = async (data: InspectionMethodVO) => {
+ // debugger
return await request.put({ url: `/qms/inspection-method/update`, data })
}
diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue
index 1f8b90948..36fed8b4b 100644
--- a/src/components/UploadFile/src/UploadFile.vue
+++ b/src/components/UploadFile/src/UploadFile.vue
@@ -137,6 +137,7 @@ const handleRemove = (file) => {
}
const handlePreview: UploadProps['onPreview'] = (uploadFile) => {
console.log(uploadFile)
+ window.open(uploadFile.url)
}
// 对象转成指定字符串分隔
const listToString = (list: UploadUserFile[], separator?: string) => {
@@ -147,6 +148,17 @@ const listToString = (list: UploadUserFile[], separator?: string) => {
}
return strs != '' ? strs.substr(0, strs.length - 1) : ''
}
+watch(
+ () => props.modelValue,
+ (data) => {
+ if (!data) return
+ fileList.value = data
+ },
+ {
+ deep: true,
+ immediate: true
+ }
+)
+
diff --git a/src/views/qms/inspection/inspectionJob/index.vue b/src/views/qms/inspection/inspectionJob/index.vue
index 66577f3c3..b5e4ed1cb 100644
--- a/src/views/qms/inspection/inspectionJob/index.vue
+++ b/src/views/qms/inspection/inspectionJob/index.vue
@@ -43,14 +43,23 @@
:formAllSchemas="InspectionJobMain.allSchemas"
@submitForm="submitForm"
/>
+
-
+ :isShowAddBtn="false" :detailButtonIsShow="true"/> -->
+
+
+
+
+ {{ titleValueRef }} {{ titleNameRef }}
+
+
+
+
+
+
+
+
+ 检验工序
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 检验特性
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/qms/inspection/inspectionRecord/index.vue b/src/views/qms/inspection/inspectionRecord/index.vue
index 7116df0d8..89e8ab19d 100644
--- a/src/views/qms/inspection/inspectionRecord/index.vue
+++ b/src/views/qms/inspection/inspectionRecord/index.vue
@@ -35,17 +35,23 @@
@handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess" @submitForm="submitForm" />
-
-
+ @searchTableSuccessDetail="searchTableSuccessDetail" :isShowAddBtn="false" :detailButtonIsShow="true" /> -->
+
-
diff --git a/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js b/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js
index bb71d4420..e0da73e77 100644
--- a/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js
+++ b/src/components/bpmnProcessDesigner/src/utils/directive/clickOutSide.js
@@ -22,9 +22,13 @@ export default {
methodName: binding.expression,
bindingFn: binding.value
}
-
- setTimeout(() => {
+ let timer
+ timer = setTimeout(() => {
document.addEventListener('touchstart', documentHandler) // 为document绑定事件
+ if(timer){
+ clearTimeout(timer)
+ timer = null
+ }
})
},
update(el, binding) {
diff --git a/src/components/iFrame/src/IFrame.vue b/src/components/iFrame/src/IFrame.vue
index 85b3e3c34..5d2626d6d 100644
--- a/src/components/iFrame/src/IFrame.vue
+++ b/src/components/iFrame/src/IFrame.vue
@@ -14,6 +14,8 @@ const init = () => {
height.value = document.documentElement.clientHeight - 94.5 + 'px'
loading.value = false
}
+const timer1 = ref()
+const timer2 = ref()
console.log(props.src);
function populateIframe(iframe, headers) {
@@ -37,14 +39,33 @@ function populateIframe(iframe, headers) {
onMounted(() => {
- setTimeout(() => {
+ timer1.value = setTimeout(() => {
var iframe = document.querySelector("#iframe");
populateIframe(iframe, [["Authorization", 'Bearer ' + getAccessToken()], ["tenant-id", getTenantId()]]);
+ if(timer1.value){
+ clearTimeout(timer1.value)
+ timer1.value = 0
+ }
}, 300);
- setTimeout(() => {
+ timer2.value = setTimeout(() => {
init()
+ if(timer2.value){
+ clearTimeout(timer2.value)
+ timer2.value = 0
+ }
}, 300)
})
+
+onBeforeUnmount(() => {
+ if(timer1.value){
+ clearTimeout(timer1.value)
+ timer1.value = 0
+ }
+ if(timer2.value){
+ clearTimeout(timer2.value)
+ timer2.value = 0
+ }
+})
diff --git a/src/layout/components/Logo/src/Logo.vue b/src/layout/components/Logo/src/Logo.vue
index 474388de2..572a13fe9 100644
--- a/src/layout/components/Logo/src/Logo.vue
+++ b/src/layout/components/Logo/src/Logo.vue
@@ -18,6 +18,7 @@ const title = computed(() => appStore.getTitle)
const layout = computed(() => appStore.getLayout)
const collapse = computed(() => appStore.getCollapse)
+const timer = ref
()
onMounted(() => {
if (unref(collapse)) show.value = false
@@ -31,14 +32,24 @@ watch(
return
}
if (!collapse) {
- setTimeout(() => {
+ timer.value = setTimeout(() => {
show.value = !collapse
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
}, 400)
} else {
show.value = !collapse
}
}
)
+onBeforeUnmount(() => {
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
+})
watch(
() => layout.value,
diff --git a/src/layout/components/TabMenu/src/TabMenu.vue b/src/layout/components/TabMenu/src/TabMenu.vue
index c4f63a3fe..36c600a42 100644
--- a/src/layout/components/TabMenu/src/TabMenu.vue
+++ b/src/layout/components/TabMenu/src/TabMenu.vue
@@ -37,6 +37,7 @@ export default defineComponent({
const setCollapse = () => {
appStore.setCollapse(!unref(collapse))
}
+ const timer = ref()
onMounted(() => {
if (unref(fixedMenu)) {
@@ -77,14 +78,24 @@ export default defineComponent({
() => collapse.value,
(collapse: boolean) => {
if (!collapse) {
- setTimeout(() => {
+ timer.value = setTimeout(() => {
showTitle.value = !collapse
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
}, 200)
} else {
showTitle.value = !collapse
}
}
)
+ onBeforeUnmount(() => {
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
+ })
// 是否显示菜单
const showMenu = ref(unref(fixedMenu) ? true : false)
diff --git a/src/views/bpm/model/editor/index.vue b/src/views/bpm/model/editor/index.vue
index f5c0ec6e2..76f21607c 100644
--- a/src/views/bpm/model/editor/index.vue
+++ b/src/views/bpm/model/editor/index.vue
@@ -49,14 +49,26 @@ const controlForm = ref({
additionalModel: [CustomContentPadProvider, CustomPaletteProvider]
})
const model = ref() // 流程模型的信息
+const timer = ref()
/** 初始化 modeler */
const initModeler = (item) => {
- setTimeout(() => {
+ timer.value = setTimeout(() => {
modeler.value = item
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
}, 10)
}
+onBeforeUnmount(() => {
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
+})
+
/** 添加/修改模型 */
const save = async (bpmnXml) => {
const data = {
diff --git a/src/views/login/components/MobileForm.vue b/src/views/login/components/MobileForm.vue
index 4ff6cf599..fa42de03d 100644
--- a/src/views/login/components/MobileForm.vue
+++ b/src/views/login/components/MobileForm.vue
@@ -149,6 +149,7 @@ const smsVO = reactive({
})
const mobileCodeTimer = ref(0)
const msgTimer = ref()
+const timer = ref()
const redirect = ref('')
const getSmsCode = async () => {
await getTenantId()
@@ -161,6 +162,7 @@ const getSmsCode = async () => {
mobileCodeTimer.value = mobileCodeTimer.value - 1
if (mobileCodeTimer.value <= 0) {
clearInterval(msgTimer.value)
+ msgTimer.value = 0
}
}, 1000)
})
@@ -168,6 +170,11 @@ const getSmsCode = async () => {
onBeforeUnmount(() => {
if(msgTimer.value){
clearInterval(msgTimer.value)
+ msgTimer.value = 0
+ }
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
}
})
watch(
@@ -210,9 +217,13 @@ const signIn = async () => {
.catch(() => {})
.finally(() => {
loginLoading.value = false
- setTimeout(() => {
+ timer.value = setTimeout(() => {
const loadingInstance = ElLoading.service()
loadingInstance.close()
+ if(timer.value){
+ clearTimeout(timer.value)
+ timer.value = 0
+ }
}, 400)
})
}
From f6c50c8df2cd6a1b6937eff2de4db8e6cc194ef9 Mon Sep 17 00:00:00 2001
From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com>
Date: Mon, 8 Apr 2024 13:32:48 +0800
Subject: [PATCH 25/32] interval.value
---
src/layout/components/Message/src/Message.vue | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/layout/components/Message/src/Message.vue b/src/layout/components/Message/src/Message.vue
index ca7fc6107..0a2d1baf3 100644
--- a/src/layout/components/Message/src/Message.vue
+++ b/src/layout/components/Message/src/Message.vue
@@ -38,6 +38,10 @@ onMounted(() => {
interval.value = setInterval(
() => {
getUnreadCount()
+ if(interval.value){
+ clearInterval(interval.value)
+ interval.value = 0
+ }
},
1000 * 60 * 2
)
@@ -45,6 +49,7 @@ onMounted(() => {
onBeforeUnmount(() => {
if(interval.value){
clearInterval(interval.value)
+ interval.value = 0
}
})
From 4ecaa5e95b07c45a96d483344bc502625ed53a22 Mon Sep 17 00:00:00 2001
From: gaojs
Date: Mon, 8 Apr 2024 13:39:00 +0800
Subject: [PATCH 26/32] =?UTF-8?q?=E6=A8=A1=E5=85=B7=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E6=97=B6=E9=97=B4=E6=9F=A5=E8=AF=A2=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/mes/pattern/pattern.data.ts | 97 ++++++++++++++++++++++++++-
1 file changed, 96 insertions(+), 1 deletion(-)
diff --git a/src/views/mes/pattern/pattern.data.ts b/src/views/mes/pattern/pattern.data.ts
index 35d2afb1d..e2b4264e2 100644
--- a/src/views/mes/pattern/pattern.data.ts
+++ b/src/views/mes/pattern/pattern.data.ts
@@ -1,9 +1,14 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
+import {PatternType} from "@/views/mes/patternType/patternType.data";
+import * as PatternTypeApi from "@/api/mes/patternType";
+import {validateInteger} from '@/utils/validator'
// 表单校验
export const PatternRules = reactive({
- concurrencyStamp: [required],
+ code: [required],
+ name: [required],
+ partternName: [required],
})
export const Pattern = useCrudSchemas(reactive([
@@ -112,6 +117,23 @@ export const Pattern = useCrudSchemas(reactive([
field: 'partternName',
sort: 'custom',
isSearch: true,
+ form: {
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchTitle: '模具类型', // 查询弹窗标题
+ searchAllSchemas: PatternType.allSchemas, // 查询弹窗所需类
+ searchField: 'name', // 查询弹窗赋值字段
+ searchPage: PatternTypeApi.getPatternTypePage, // 查询弹窗所需分页方法
+ multiple:true,
+ searchCondition: [{
+ key: 'status',
+ value: '1',
+ action: '==',
+ isSearch: true,
+ isMainValue: false
+ }]
+ }
+ }
},
{
label: '产品编码',
@@ -124,12 +146,47 @@ export const Pattern = useCrudSchemas(reactive([
field: 'dateUseStart',
sort: 'custom',
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')]
+ }
+ },
+ formatter: dateFormatter,
+ isForm: true,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
},
{
label: '停用时间',
field: 'dateUseStop',
sort: 'custom',
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')]
+ }
+ },
+ formatter: dateFormatter,
+ isForm: true,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
},
{
label: '模具来源',
@@ -148,18 +205,56 @@ export const Pattern = useCrudSchemas(reactive([
field: 'initCout',
sort: 'custom',
isSearch: true,
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 1
+ }
+ },
},
{
label: '有效期开始时间',
field: 'effectStart',
sort: 'custom',
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')]
+ }
+ },
+ formatter: dateFormatter,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
},
{
label: '有效期结束时间',
field: 'effectEnd',
sort: 'custom',
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')]
+ }
+ },
+ formatter: dateFormatter,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ valueFormat: 'x'
+ }
+ },
},
{
label: '所属单位编码',
From 90cd56a2854247cb123cc30d567db10642aeeaad Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Mon, 8 Apr 2024 13:43:47 +0800
Subject: [PATCH 27/32] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/dict.ts | 1 +
.../basicDataManage/inspectionPlan/addForm.vue | 16 ++++++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 0d403d742..a0acd3ef3 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -200,6 +200,7 @@ export enum DICT_TYPE {
OWNER_TYPE = 'owner_type', // 货主类型
CARRIER_TYPE = 'carrier_type', // 承运商类型
INSPECT_TYPE = 'inspect_type', // 检验类型
+ INSPECTION_TYPE = 'inspection_type', // 质量管理检验类型
NEXT_ACTION = 'next_action', // 下一步检验动作
SAMPLE_METHOD = 'sample_method', // 抽检方式
WAREHOUSE_TYPE = 'warehouse_type', // 仓库类型
diff --git a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue
index f427dbd65..8b584fb2c 100644
--- a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue
+++ b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue
@@ -47,9 +47,9 @@
-
-
-
+
+
+
+
+
From 4be93e0611f97ea6a16701ddc8e6d9e1bfb5ea7a Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Mon, 8 Apr 2024 13:47:42 +0800
Subject: [PATCH 28/32] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E7=B1=BB=E5=9E=8B?=
=?UTF-8?q?=E5=AD=97=E5=85=B8=E9=87=8D=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/dict.ts | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 68f43327e..b94418c4c 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -302,8 +302,6 @@ export enum DICT_TYPE {
DICTIONARY_CLASS = "dictionary_class", // 字典分类
USAGE_DECISION = "usage_decision", // 使用决策
INSPECTION_BATCH_SOURCE = "inspection_batch_source", // 检验批来源
- INSPECTION_TYPE = "inspection_type", // 检验类型
-
// ========== 业务 - mes -gaojs ==========
QUALIFY_STATUS = 'qualify_status',//质检状态
QUALIFY_ITEM_DATA_TYPE='qualify_item_data_type',//质检项目数据类型
From 97706722832c04cdb91675ecfe0675bd190c85af Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Mon, 8 Apr 2024 13:59:10 +0800
Subject: [PATCH 29/32] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierinvoiceRequestMain/index.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
index 9e24fd4bb..174c0ada1 100644
--- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
@@ -251,10 +251,10 @@
// 列表-操作按钮
const butttondata = (row) => {
return [
- defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['1',, '2','4']) }), // 打开
+ defaultButtons.mainListPurchasePlanOpeBtn({ hide: isShowMainButton(row, ['1']) }), // 打开
defaultButtons.mainListPlanSubBtn({ hide: isShowMainButton(row, ['1']) }), // 提交审批
{
- label: '采购审批通过',
+ label: '采购通过',
name: 'purchase_mainPlanSub',
hide: isShowMainButton(row, ['2','7']),
type: 'primary',
@@ -272,7 +272,7 @@
hasPermi: ''
},
{
- label: '发票寄出确认',
+ label: '供应商确认',
name: 'invoice_sent_out',
hide: isShowMainButton(row, ['8']),
type: 'danger',
@@ -281,7 +281,7 @@
hasPermi: ''
},
{
- label: '财务审批通过',
+ label: '财务通过',
name: 'finance_mainPlanSub',
hide: isShowMainButton(row, ['4']),
type: 'primary',
@@ -301,7 +301,7 @@
// defaultButtons.mainListPlanAppBtn({ hide: isShowMainButton(row, ['2']) }), // 审批通过
//defaultButtons.mainListPlanTurBtn({ hide: isShowMainButton(row, ['2']) }), // 驳回按钮
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','8'])}), // 编辑
- defaultButtons.mainListPurchasePlanCloBtn({ hide: isShowMainButton(row, ['1', '2','4']) }), // 关闭
+ defaultButtons.mainListPurchasePlanCloBtn({ hide: isShowMainButton(row, ['1','8']) }), // 关闭
// 生成记录
// {
// label: '处理',
From f8bfda3315d751bf947ed9dd66c3d76576003449 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 8 Apr 2024 14:09:03 +0800
Subject: [PATCH 30/32] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?=
=?UTF-8?q?=E5=92=8C=E6=A3=80=E9=AA=8C=E8=AE=B0=E5=BD=95=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=8C=85=E8=A3=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inspectionJobPackage/index.ts | 6 +
src/components/listTable/index.ts | 3 +
src/components/listTable/src/ListTable.vue | 40 ++
src/locales/en-US.ts | 1 +
src/locales/zh-CN.ts | 1 +
src/utils/disposition/defaultButtons.ts | 12 +
.../qms/inspection/inspectionJob/addForm.vue | 393 +++++++++++-------
.../qms/inspection/inspectionJob/index.vue | 61 +--
.../inspectionJob/inspectionJobMain.data.ts | 65 ++-
.../qms/inspection/inspectionRecord/index.vue | 10 +-
10 files changed, 367 insertions(+), 225 deletions(-)
create mode 100644 src/api/qms/inspectionJob/inspectionJobPackage/index.ts
create mode 100644 src/components/listTable/index.ts
create mode 100644 src/components/listTable/src/ListTable.vue
diff --git a/src/api/qms/inspectionJob/inspectionJobPackage/index.ts b/src/api/qms/inspectionJob/inspectionJobPackage/index.ts
new file mode 100644
index 000000000..e4b98fd47
--- /dev/null
+++ b/src/api/qms/inspectionJob/inspectionJobPackage/index.ts
@@ -0,0 +1,6 @@
+import request from '@/config/axios'
+
+//查询检验申请列表
+export const getInspectionJobPackageList = async (id: number) => {
+ return await request.get({ url: `/qms/inspection-job-package/list?masterId=` + id })
+}
\ No newline at end of file
diff --git a/src/components/listTable/index.ts b/src/components/listTable/index.ts
new file mode 100644
index 000000000..e95f79c43
--- /dev/null
+++ b/src/components/listTable/index.ts
@@ -0,0 +1,3 @@
+import ListTable from './src/ListTable.vue'
+
+export { ListTable }
diff --git a/src/components/listTable/src/ListTable.vue b/src/components/listTable/src/ListTable.vue
new file mode 100644
index 000000000..b9985a8d0
--- /dev/null
+++ b/src/components/listTable/src/ListTable.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+
diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts
index 22c41afaa..05d1cd48a 100644
--- a/src/locales/en-US.ts
+++ b/src/locales/en-US.ts
@@ -296,6 +296,7 @@ export default {
delete: 'Delete',
edit: 'Edit',
update: 'Update',
+ execute: 'Execute',
preview: 'Preview',
more: 'More',
sync: 'Sync',
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index 7ab623b0b..979826038 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -297,6 +297,7 @@ export default {
edit: '编辑',
update: '编辑',
preview: '预览',
+ execute: '执行',
more: '更多',
sync: '同步',
save: '保存',
diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts
index 9095ca7e5..7f81426e2 100644
--- a/src/utils/disposition/defaultButtons.ts
+++ b/src/utils/disposition/defaultButtons.ts
@@ -691,6 +691,18 @@ export function mainListJobExeBtn(option:any) {
hasPermi: ''
})
}
+// 主列表-包装按钮
+export function mainListPackageBtn(option:any) {
+ return __defaultBtnOption(option,{
+ label: '包装',
+ name: 'mainPackage',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
// 主列表-打印
export function mainListPointBtn(option:any) {
return __defaultBtnOption(option,{
diff --git a/src/views/qms/inspection/inspectionJob/addForm.vue b/src/views/qms/inspection/inspectionJob/addForm.vue
index 3a469b564..10fa03b5c 100644
--- a/src/views/qms/inspection/inspectionJob/addForm.vue
+++ b/src/views/qms/inspection/inspectionJob/addForm.vue
@@ -27,7 +27,7 @@
:stretch="false"
>
-
+
@@ -51,12 +55,12 @@
-
+
-
+
@@ -83,39 +87,45 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
-
+
@@ -219,43 +261,54 @@
-
+
+ :value="dict.value"
+ />
-
+
-
+
-
+
-
+
+ :value="dict.dictionaryValue"
+ />
-
+
-
-
+
+ :value="dict.value"
+ />
@@ -313,7 +366,6 @@ import { DynamicRule } from '@/views/qms/basicDataManage/dynamicRule/dynamicRule
import * as SelectedSetApi from '@/api/qms/selectedSet' //选择集
import { SelectedSet } from '@/views/qms/basicDataManage/selectedSet/selectedSet.data' //选择集
-
const { proxy } = getCurrentInstance()
const message = useMessage() // 消息弹窗
@@ -354,12 +406,12 @@ const props = defineProps({
required: true,
default: null
},
- // 校验rules
- rules: {
+ // 校验rules
+ rules: {
type: Object,
required: true,
default: null
- },
+ }
})
const { t } = useI18n() // 国际化
@@ -400,7 +452,7 @@ if (props.basicFormWidth) {
}
const rules = ref({
...props.rules,
- 'inspectionJobCharacteristicsUpdateReqVO.description': [
+ 'inspectionJobCharacteristicsUpdateReqVO.description': [
{ required: true, message: '请填写描述', trigger: ['blur', 'change'] }
],
'inspectionJobCharacteristicsUpdateReqVO.inspectionMethodCode': [
@@ -437,22 +489,17 @@ const rules = ref({
{ required: true, message: '请输入选择集编码', trigger: 'change' }
],
'inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime': [
- { required: true, message: '请输入选择开始时间', trigger: 'change'}
+ { required: true, message: '请输入选择开始时间', trigger: 'change' }
],
'inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime': [
{ required: true, message: '请输入选择结束时间', trigger: 'blur' }
-],
-qualifiedQuantity: [
- { required: true, message: '请输入选择结束时间', trigger: 'blur' }
-],
-
-
+ ],
+ qualifiedQuantity: [{ required: true, message: '请输入选择结束时间', trigger: 'blur' }]
})
/** 打开弹窗 */
let tabIndex = 1
const open = async (type: string, row?: any, masterParmas?: any, titleName?: any) => {
- dialogVisible.value = true
if (titleName) {
dialogTitle.value = t('action.' + titleName)
} else {
@@ -468,30 +515,32 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
editableTabsValue.value = index + 1
item.name = index + 1
item.inspectionJobCharacteristicsUpdateReqVO = item.inspectionJobCharacteristicsRespVO
- item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList=[]
+ 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 {
+ formMainRef.value.setValues(row)
+ })
} else {
data.value = {
code: '',
@@ -528,7 +581,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
subList: []
}
}
-
+ dialogVisible.value = true
tabIndex = data.value.subList.length + 1
}
defineExpose({ open, dialogVisible, formLoading }) // 提供 open 方法,用于打开弹窗
@@ -633,51 +686,66 @@ const validateForm = (formRef) => {
const submitForm = async () => {
try {
-
console.log(data.value.subList)
// const validateForm1 = await validateForm(formMainRef.value)
const elForm = unref(formMainRef)?.getElFormRef()
- // 校验表单
- if (!elForm) return
- const valid = await elForm.validate()
- if (!valid) return
- // const bol1 = await validateForm(formProcessRef.value)
- const bol2 = await validateForm(formFeaturesRef.value)
- if (!bol2) {
+ // 校验表单
+ if (!elForm) return
+ const valid = await elForm.validate()
+ if (!valid) return
+ // const bol1 = await validateForm(formProcessRef.value)
+ const bol2 = await validateForm(formFeaturesRef.value)
+ if (!bol2) {
message.error(`模板中有检验工序和检验特性未填写完全`)
return
}
- // 判断附加费用数组是否有未填的选项
- let arrBol = data.value.subList.map((item, index) => {
- let arr1 = []
- if(item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1){
- arr1.push(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some((cur,key) =>{
- return !cur.qualifiedQuantity || !cur.unqualifiedQuantity
- }))
+ // 判断附加费用数组是否有未填的选项
+ let arrBol = data.value.subList.map((item, index) => {
+ let arr1 = []
+ if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1) {
+ arr1.push(
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
+ (cur, key) => {
+ return !cur.qualifiedQuantity || !cur.unqualifiedQuantity
+ }
+ )
+ )
}
- if(item.samplingProcessRespVO.evaluationMode == 1){
- arr1.push(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some((cur,key) =>{
- return !cur.estimateCode ||!cur.defectLevel
- }))
+ if (item.samplingProcessRespVO.evaluationMode == 1) {
+ arr1.push(
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
+ (cur, key) => {
+ return !cur.estimateCode || !cur.defectLevel
+ }
+ )
+ )
}
- if(item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0){
- arr1.push( item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some((cur,key) =>{
- return !cur.inspectionValue
- }))
+ if (item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0) {
+ arr1.push(
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
+ (cur, key) => {
+ return !cur.inspectionValue
+ }
+ )
+ )
}
- if(item.inspectionJobCharacteristicsUpdateReqVO.featureType == 1){
- arr1.push(item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some((cur,key) =>{
- return !cur.qualitativeCode
- }))
+ if (item.inspectionJobCharacteristicsUpdateReqVO.featureType == 1) {
+ arr1.push(
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
+ (cur, key) => {
+ return !cur.qualitativeCode
+ }
+ )
+ )
}
return arr1
- })
-// console.log(arrBol)
-// let isEmpty1 = arrBol.filter(item=>item == true)
-// arrBol.forEach(item=>{
-// console.log('1q1q')
-// console.log(typeof item)
-// })
+ })
+ // console.log(arrBol)
+ // let isEmpty1 = arrBol.filter(item=>item == true)
+ // arrBol.forEach(item=>{
+ // console.log('1q1q')
+ // console.log(typeof item)
+ // })
// setTimeout(()=>{
// console.log(arrBol.includes(true))
// },2000)
@@ -789,22 +857,22 @@ const opensearchTable = (
// 弹层确定返回所选数据
// val : 弹层列表row 数据
const searchTableSuccess = async (formField, searchField, val, type, row) => {
- if(type == 'features'){
+ if (type == 'features') {
row.inspectionJobCharacteristicsUpdateReqVO[formField] = val[0].code
- if(formField == 'inspectionMethodCode'){
+ if (formField == 'inspectionMethodCode') {
row.inspectionJobCharacteristicsUpdateReqVO.inspectionMethodName = val[0].description
- }else if(formField == 'dynamicUpdateCode'){
+ } else if (formField == 'dynamicUpdateCode') {
row.inspectionJobCharacteristicsUpdateReqVO.dynamicUpdateName = val[0].description
- }else if(formField == 'inspectionMethod'){
+ } else if (formField == 'inspectionMethod') {
row.inspectionJobCharacteristicsUpdateReqVO.inspectionName = val[0].description
}
- } else if(type == 'main'){
+ } else if (type == 'main') {
data.value[formField] = val[0].code
- if(formField == 'itemCode'){
+ if (formField == 'itemCode') {
data.value.itemName = val[0].name
- }else if(formField == 'testTypeCode'){
+ } else if (formField == 'testTypeCode') {
data.value.testTypeName = val[0].description
- }else if(formField == 'programmeTemplateCode'){
+ } else if (formField == 'programmeTemplateCode') {
data.value.programmeTemplateName = val[0].description
}
if (formField == 'programmeTemplateCode') {
@@ -821,7 +889,8 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => {
if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsLowlimit) {
rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required = true
} else {
- rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required = false
+ rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyLowlimit'][0].required =
+ false
}
if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsTarget) {
rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyTarget'][0].required = true
@@ -836,36 +905,38 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => {
// emit('searchTableSuccess', formField, searchField, val, formRef.value, type, row)
}
// 请选择结果录入方式
-const resultEntryMethodChange = (e,item) => {
- item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList =[]
- if (e==0) {
+const resultEntryMethodChange = (e, item) => {
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
+ if (e == 0) {
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = true
- for(let i=0;i{
- let obj = item.selectedProjectRespVOList.find(cur=>cur.dictionaryValue==e)
+const changeQualitativeCode = (e, item, cur) => {
+ let obj = item.selectedProjectRespVOList.find((cur) => cur.dictionaryValue == e)
console.log(obj)
cur.defectLevel = obj.defectLevel
}
diff --git a/src/views/qms/inspection/inspectionJob/index.vue b/src/views/qms/inspection/inspectionJob/index.vue
index b5e4ed1cb..6f95beb7e 100644
--- a/src/views/qms/inspection/inspectionJob/index.vue
+++ b/src/views/qms/inspection/inspectionJob/index.vue
@@ -27,12 +27,6 @@
-
+
-
-
-
-
-
+
+
From aa9df7d4e059a85c6f266025f178626c69fb405d Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Mon, 8 Apr 2024 16:34:07 +0800
Subject: [PATCH 32/32] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E8=AE=B0=E5=BD=95?=
=?UTF-8?q?=EF=BC=8C=E5=8F=91=E5=B8=83=E5=92=8C=E4=BD=BF=E7=94=A8=E5=86=B3?=
=?UTF-8?q?=E7=AD=96=EF=BC=8C=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1=E9=AA=8C?=
=?UTF-8?q?=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../inspectionRecordMain/index.ts | 4 ++
src/locales/en-US.ts | 3 +-
src/locales/zh-CN.ts | 3 +-
src/utils/disposition/defaultButtons.ts | 13 +++-
.../inspectionPlan/addForm.vue | 2 -
.../qms/inspection/inspectionJob/addForm.vue | 61 ++++++++++---------
.../qms/inspection/inspectionRecord/index.vue | 41 +++++++++++--
.../inspectionRecordMain.data.ts | 35 +++++++++++
8 files changed, 123 insertions(+), 39 deletions(-)
diff --git a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
index 02663e294..c04557bd6 100644
--- a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
+++ b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
@@ -63,3 +63,7 @@ export const exportInspectionRecordMain = async (params) => {
export const importTemplate = () => {
return request.download({ url: '/qms/inspection-record-main/get-import-template' })
}
+// 发布
+export const publishInspectionRecordMain = async (data ) => {
+ return await request.put({ url: `/qms/inspection-record-main/publish`, data })
+}
diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts
index 05d1cd48a..4590ca435 100644
--- a/src/locales/en-US.ts
+++ b/src/locales/en-US.ts
@@ -313,7 +313,8 @@ export default {
dataUpdate: 'Dict Data Eidt',
fileUpload: 'File Upload',
createLabel: 'create label',
- viewDetail:'Detailed list'
+ viewDetail:'Detailed list',
+ updataRecode:'Updata recode'
},
dialog: {
dialog: 'Dialog',
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index 979826038..37dc11cb8 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -312,7 +312,8 @@ export default {
dataCreate: '字典数据新增',
dataUpdate: '字典数据编辑',
createLabel: '创建标签',
- viewDetail:'明细列表'
+ viewDetail:'明细列表',
+ updataRecode:'更新记录'
},
dialog: {
dialog: '弹窗',
diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts
index 7f81426e2..998e0a9ac 100644
--- a/src/utils/disposition/defaultButtons.ts
+++ b/src/utils/disposition/defaultButtons.ts
@@ -811,7 +811,18 @@ export function mainThawRequesttBtn(option:any) {
hasPermi: ''
})
}
-
+// 主列表-更新检验记录
+export function mainUpdataRecodeBtn(option:any) {
+ return __defaultBtnOption(option,{
+ label: '更新检验记录',
+ name: 'updataRecode',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
// 默认按钮规则
function __defaultBtnOption(option:any,specific:any){
return {
diff --git a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue
index 8b584fb2c..967a5833b 100644
--- a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue
+++ b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue
@@ -886,8 +886,6 @@ const validateForm = (formRef) => {
const submitForm = async () => {
try {
const validateForm1 = await validateForm(formProcessRef.value)
- console.log(validateForm1)
- console.log(data.value)
await formMainRef.value.validate()
if (!data.value.process || data.value.process.length == 0) {
message.error(`请添加工序`)
diff --git a/src/views/qms/inspection/inspectionJob/addForm.vue b/src/views/qms/inspection/inspectionJob/addForm.vue
index 10fa03b5c..d562c7be1 100644
--- a/src/views/qms/inspection/inspectionJob/addForm.vue
+++ b/src/views/qms/inspection/inspectionJob/addForm.vue
@@ -515,11 +515,11 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
editableTabsValue.value = index + 1
item.name = index + 1
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 = []
+ for (let i = 0; i < parseInt(data.value.sampleTotalAmount); i++) {
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
inspectionValue: '', //检验值
qualitativeCode: '', //定性字典项值
@@ -530,17 +530,17 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
})
}
} else {
+ item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = []
// rules.value['inspectionJobCharacteristicsUpdateReqVO.quantifyCapping'][0].required = false
- item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList = [
- {
- inspectionValue: '', //检验值
- qualitativeCode: '', //定性字典项值
- estimateCode: '', //评估代码
- defectLevel: '', //缺陷级别
- qualifiedQuantity: '', //合格数量
- unqualifiedQuantity: '' //不合格数量
- }
- ]
+ // item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.push({
+ // inspectionValue: '', //检验值
+ // qualitativeCode: '', //定性字典项值
+ // estimateCode: '', //评估代码
+ // defectLevel: '', //缺陷级别
+ // qualifiedQuantity: '', //合格数量
+ // unqualifiedQuantity: '' //不合格数量
+ // }
+ // )
}
// 编辑判断上限下限目标值是否必填
if (item.inspectionJobCharacteristicsUpdateReqVO.quantifyIsCapping) {
@@ -700,10 +700,11 @@ const submitForm = async () => {
return
}
// 判断附加费用数组是否有未填的选项
- let arrBol = data.value.subList.map((item, index) => {
- let arr1 = []
+ let arrBol = []
+ let isOutweigh = []//结束时间是否大于开始时间
+ data.value.subList.forEach((item, index) => {
if (item.inspectionJobCharacteristicsUpdateReqVO.resultEntryMethod == 1) {
- arr1.push(
+ arrBol.push(
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
(cur, key) => {
return !cur.qualifiedQuantity || !cur.unqualifiedQuantity
@@ -712,7 +713,7 @@ const submitForm = async () => {
)
}
if (item.samplingProcessRespVO.evaluationMode == 1) {
- arr1.push(
+ arrBol.push(
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
(cur, key) => {
return !cur.estimateCode || !cur.defectLevel
@@ -721,7 +722,7 @@ const submitForm = async () => {
)
}
if (item.inspectionJobCharacteristicsUpdateReqVO.featureType == 0) {
- arr1.push(
+ arrBol.push(
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
(cur, key) => {
return !cur.inspectionValue
@@ -730,7 +731,7 @@ const submitForm = async () => {
)
}
if (item.inspectionJobCharacteristicsUpdateReqVO.featureType == 1) {
- arr1.push(
+ arrBol.push(
item.inspectionJobCharacteristicsUpdateReqVO.recordInspectionQuantifyList.some(
(cur, key) => {
return !cur.qualitativeCode
@@ -738,17 +739,21 @@ const submitForm = async () => {
)
)
}
- return arr1
+ // 开始时间大于结束时间放入数组中
+ if (item.inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime >item.inspectionJobCharacteristicsUpdateReqVO.inspectionEndTime) {
+ isOutweigh.push(item.inspectionJobCharacteristicsUpdateReqVO.inspectionStartTime)
+ }
})
- // console.log(arrBol)
- // let isEmpty1 = arrBol.filter(item=>item == true)
- // arrBol.forEach(item=>{
- // console.log('1q1q')
- // console.log(typeof item)
- // })
- // setTimeout(()=>{
- // console.log(arrBol.includes(true))
- // },2000)
+ let isEmpty1 = arrBol.some(item=>item == true)
+ if(isEmpty1){
+ message.error('检验工序和检验特性有字段未填写完全')
+ return;
+ }
+ if(isOutweigh.length>0){
+ message.error('检验特性中有开始时间大于结束时间')
+ return;
+ }
+ return;
if (formType.value == 'create') {
// 主子表——提交请求
emit('submitForm', formType.value, data.value)
diff --git a/src/views/qms/inspection/inspectionRecord/index.vue b/src/views/qms/inspection/inspectionRecord/index.vue
index 46d6b961c..ae0e3ab24 100644
--- a/src/views/qms/inspection/inspectionRecord/index.vue
+++ b/src/views/qms/inspection/inspectionRecord/index.vue
@@ -58,7 +58,7 @@
diff --git a/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts b/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts
index 11ea76270..436752732 100644
--- a/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts
+++ b/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts
@@ -13,72 +13,84 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
field: 'number',
sort: 'custom',
isSearch: true,
+ isForm:false
},
{
label: '申请编码',
field: 'applicationCode',
sort: 'custom',
isSearch: true,
+ isForm:false
},
{
label: '任务编码',
field: 'taskCode',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '供应商编码',
field: 'supplierCode',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '物料编码',
field: 'materialCode',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '批次',
field: 'batch',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '检验方案编码',
field: 'inspectionSchemeCode',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '检验方案Json',
field: 'inspectionSchemeJson',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '检验批次',
field: 'inspectionBatch',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '检验批数量',
field: 'inspectionBatchAmount',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '采样总数量',
field: 'sampleTatalAmount',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '检验类型',
field: 'inspectionType',
sort: 'custom',
isSearch: false,
+ isForm:false,
form: {
component: 'Select'
},
@@ -88,18 +100,21 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
field: 'inspectionBatchSource',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '订单号',
field: 'orderCode',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '订单行',
field: 'orderRow',
sort: 'custom',
isSearch: false,
+ isForm:false,
form: {
component: 'InputNumber',
value: 0
@@ -110,12 +125,14 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
field: 'certificateCode',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '凭证行',
field: 'certificateRow',
sort: 'custom',
isSearch: false,
+ isForm:false,
form: {
component: 'InputNumber',
value: 0
@@ -126,6 +143,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
field: 'inspectionStage',
sort: 'custom',
isSearch: false,
+ isForm:false,
form: {
component: 'InputNumber',
value: 0
@@ -136,12 +154,14 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
field: 'inspectionStringency',
sort: 'custom',
isSearch: false,
+ isForm:false,
},
{
label: '使用决策',
field: 'useDecision',
sort: 'custom',
isSearch: false,
+ isForm:false
},
{
label: '计划开始时间',
@@ -149,6 +169,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
+ isForm:false,
search: {
component: 'DatePicker',
componentProps: {
@@ -171,6 +192,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
+ isForm:false,
search: {
component: 'DatePicker',
componentProps: {
@@ -193,6 +215,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
+ isForm:false,
search: {
component: 'DatePicker',
componentProps: {
@@ -215,6 +238,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
+ isForm:false,
search: {
component: 'DatePicker',
componentProps: {
@@ -236,18 +260,29 @@ export const InspectionRecordMain = useCrudSchemas(reactive([
field: 'inspectionLevel',
sort: 'custom',
isSearch: false,
+ isForm:false,
},
{
label: 'AQL值',
field: 'aqlValue',
sort: 'custom',
isSearch: false,
+ isForm:false,
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
isSearch: false,
+ isForm:false,
+ },
+ {
+ label: '使用决策',
+ field: 'useDecision',
+ sort: 'custom',
+ isSearch: false,
+ dictType: DICT_TYPE.USAGE_DECISION,
+
},
{
label: '创建时间',