diff --git a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts index f41e1d0..c1a39ec 100644 --- a/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts +++ b/src/views/eam/basic/deviceMaintenance/deviceMaintenance.data.ts @@ -123,28 +123,28 @@ export const DeviceMaintenance = useCrudSchemas(reactive([ component: 'Select' }, }, - { - label: '涂装保养周期-月份', - field: 'executionCycleMonth', - dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, - dictClass: 'string', - sort: 'custom', - isSearch: false, - form: { - component: 'Select' - }, - }, - { - label: '涂装保养周期-星期', - field: 'executionCycleWeek', - dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, - dictClass: 'string', - sort: 'custom', - isSearch: false, - form: { - component: 'Select' - }, - }, + // { + // label: '涂装保养周期-月份', + // field: 'executionCycleMonth', + // dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, + // dictClass: 'string', + // sort: 'custom', + // isSearch: false, + // form: { + // component: 'Select' + // }, + // }, + // { + // label: '涂装保养周期-星期', + // field: 'executionCycleWeek', + // dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, + // dictClass: 'string', + // sort: 'custom', + // isSearch: false, + // form: { + // component: 'Select' + // }, + // }, { label: '人数', field: 'peoples', diff --git a/src/views/eam/basic/deviceMaintenance/index.vue b/src/views/eam/basic/deviceMaintenance/index.vue index 2fd8896..4d7bac3 100644 --- a/src/views/eam/basic/deviceMaintenance/index.vue +++ b/src/views/eam/basic/deviceMaintenance/index.vue @@ -110,40 +110,40 @@ const updateFormValue = reactive({ const openDataOld = ref() const openDataNew = ref() const operatType = ref('') -const tzDeptId = ref() +// const tzDeptId = ref() // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef) => { - if(formField == 'deviceNumber' && val[0].factoryAreaNumber == tzDeptId.value){ - DeviceMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycle' - }).componentProps.disabled = true - DeviceMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleMonth' - }).componentProps.disabled = false - DeviceMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleWeek' - }).componentProps.disabled = false - }else{ - DeviceMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycle' - }).componentProps.disabled = false - DeviceMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleMonth' - }).componentProps.disabled = true - DeviceMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleWeek' - }).componentProps.disabled = true - } - nextTick(() => { - const setV = {} - setV[formField] = val[0][searchField] - setV['executionCycle'] = null - setV['executionCycleMonth'] = null - setV['executionCycleWeek'] = null - formRef.setValues(setV) - }) + // if(formField == 'deviceNumber' && val[0].factoryAreaNumber == tzDeptId.value){ + // DeviceMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycle' + // }).componentProps.disabled = true + // DeviceMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleMonth' + // }).componentProps.disabled = false + // DeviceMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleWeek' + // }).componentProps.disabled = false + // }else{ + // DeviceMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycle' + // }).componentProps.disabled = false + // DeviceMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleMonth' + // }).componentProps.disabled = true + // DeviceMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleWeek' + // }).componentProps.disabled = true + // } + nextTick(() => { + const setV = {} + setV[formField] = val[0][searchField] + setV['executionCycle'] = null + // setV['executionCycleMonth'] = null + // setV['executionCycleWeek'] = null + formRef.setValues(setV) + }) } // 字段设置 更新主列表字段 @@ -212,13 +212,13 @@ const basicFormRef = ref() const openForm = (type: string, row?: any) => { openDataOld.value = row updateFormValue.remark = '' - DeptApi.getSimpleDeptList().then(res=>{ - res.forEach(item=>{ - if(item.busiType == 'TZ'){ - tzDeptId.value = item.id - } - }) - }) + // DeptApi.getSimpleDeptList().then(res=>{ + // res.forEach(item=>{ + // if(item.busiType == 'TZ'){ + // tzDeptId.value = item.id + // } + // }) + // }) basicFormRef.value.open(type, row) } diff --git a/src/views/eam/basic/moldMaintenance/index.vue b/src/views/eam/basic/moldMaintenance/index.vue index 5aec4a6..e82ade8 100644 --- a/src/views/eam/basic/moldMaintenance/index.vue +++ b/src/views/eam/basic/moldMaintenance/index.vue @@ -111,33 +111,33 @@ const operatType = ref('') // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef) => { - if(formField == 'deviceNumber' && val[0].factoryAreaNumber == tzDeptId.value){ - MoldMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycle' - }).componentProps.disabled = true - MoldMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleMonth' - }).componentProps.disabled = false - MoldMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleWeek' - }).componentProps.disabled = false - }else{ - MoldMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycle' - }).componentProps.disabled = false - MoldMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleMonth' - }).componentProps.disabled = true - MoldMaintenance.allSchemas.formSchema.find(item=>{ - return item.field == 'executionCycleWeek' - }).componentProps.disabled = true - } + // if(formField == 'deviceNumber' && val[0].factoryAreaNumber == tzDeptId.value){ + // MoldMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycle' + // }).componentProps.disabled = true + // MoldMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleMonth' + // }).componentProps.disabled = false + // MoldMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleWeek' + // }).componentProps.disabled = false + // }else{ + // MoldMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycle' + // }).componentProps.disabled = false + // MoldMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleMonth' + // }).componentProps.disabled = true + // MoldMaintenance.allSchemas.formSchema.find(item=>{ + // return item.field == 'executionCycleWeek' + // }).componentProps.disabled = true + // } nextTick(() => { const setV = {} setV[formField] = val[0][searchField] setV['executionCycle'] = null - setV['executionCycleMonth'] = null - setV['executionCycleWeek'] = null + // setV['executionCycleMonth'] = null + // setV['executionCycleWeek'] = null formRef.setValues(setV) }) } @@ -205,17 +205,17 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() -const tzDeptId = ref() +// const tzDeptId = ref() const openForm = (type: string, row?: any) => { openDataOld.value = row updateFormValue.remark = '' - DeptApi.getSimpleDeptList().then(res=>{ - res.forEach(item=>{ - if(item.busiType == 'TZ'){ - tzDeptId.value = item.id - } - }) - }) + // DeptApi.getSimpleDeptList().then(res=>{ + // res.forEach(item=>{ + // if(item.busiType == 'TZ'){ + // tzDeptId.value = item.id + // } + // }) + // }) basicFormRef.value.open(type, row) } diff --git a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts index 1b27c86..c48c0e2 100644 --- a/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts +++ b/src/views/eam/basic/moldMaintenance/moldMaintenance.data.ts @@ -122,28 +122,28 @@ export const MoldMaintenance = useCrudSchemas(reactive([ component: 'Select' }, }, - { - label: '涂装保养周期-月份', - field: 'executionCycleMonth', - dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, - dictClass: 'string', - sort: 'custom', - isSearch: false, - form: { - component: 'Select' - }, - }, - { - label: '涂装保养周期-星期', - field: 'executionCycleWeek', - dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, - dictClass: 'string', - sort: 'custom', - isSearch: false, - form: { - component: 'Select' - }, - }, + // { + // label: '涂装保养周期-月份', + // field: 'executionCycleMonth', + // dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, + // dictClass: 'string', + // sort: 'custom', + // isSearch: false, + // form: { + // component: 'Select' + // }, + // }, + // { + // label: '涂装保养周期-星期', + // field: 'executionCycleWeek', + // dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, + // dictClass: 'string', + // sort: 'custom', + // isSearch: false, + // form: { + // component: 'Select' + // }, + // }, { label: '人数', field: 'peoples', diff --git a/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts b/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts index 2b1d050..57716bf 100644 --- a/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts +++ b/src/views/eam/device/deviceMaintainPlan/deviceMaintainPlan.data.ts @@ -41,20 +41,20 @@ export const DeviceMaintainPlan = useCrudSchemas(reactive([ dictType: DICT_TYPE.MOLD_EXECUTION_CYCLE, dictClass: 'string', }, - { - label: '涂装保养周期-月', - field: 'cycleMonth', - sort: 'custom', - dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, - dictClass: 'string', - }, - { - label: '涂装保养周期-周', - field: 'cycleWeek', - sort: 'custom', - dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, - dictClass: 'string', - }, + // { + // label: '涂装保养周期-月', + // field: 'cycleMonth', + // sort: 'custom', + // dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, + // dictClass: 'string', + // }, + // { + // label: '涂装保养周期-周', + // field: 'cycleWeek', + // sort: 'custom', + // dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, + // dictClass: 'string', + // }, // { // label: '次数', // field: 'times', diff --git a/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts b/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts index 57f81d1..1b20283 100644 --- a/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts +++ b/src/views/eam/mold/moldMaintainPlan/moldMaintainPlan.data.ts @@ -42,20 +42,20 @@ export const MoldMaintainPlan = useCrudSchemas(reactive([ dictType: DICT_TYPE.MOLD_EXECUTION_CYCLE, dictClass: 'string', }, - { - label: '涂装保养周期-月', - field: 'cycleMonth', - sort: 'custom', - dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, - dictClass: 'string', - }, - { - label: '涂装保养周期-周', - field: 'cycleWeek', - sort: 'custom', - dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, - dictClass: 'string', - }, + // { + // label: '涂装保养周期-月', + // field: 'cycleMonth', + // sort: 'custom', + // dictType: DICT_TYPE.SPECIAL_CYCLE_MONTH, + // dictClass: 'string', + // }, + // { + // label: '涂装保养周期-周', + // field: 'cycleWeek', + // sort: 'custom', + // dictType: DICT_TYPE.SPECIAL_CYCLE_WEEK, + // dictClass: 'string', + // }, // { // label: '次数', // field: 'times',