From c922bfd6dc25470ebe1c3dc76011a23e760e7304 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期三, 05 三月 2025 15:06:11 +0800
Subject: [PATCH] art: 检定 改为 鉴定
---
src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue | 116 +++++++++++++++++++++++++++++++++-------------------------
1 files changed, 66 insertions(+), 50 deletions(-)
diff --git a/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue b/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
index 117a24a..6750518 100644
--- a/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
+++ b/src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardModal.vue
@@ -158,7 +158,23 @@
</a-col>
</a-row>
<a-row :gutter="24">
- <a-col :span="12">
+ <!-- <a-col :span="12">
+ <a-form-item
+ label="淇濆吇绫诲瀷"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="disableSubmit"
+ :placeholder="disableSubmit?'':'璇烽�夋嫨淇濆吇绫诲瀷'"
+ :triggerChange="true"
+ dictCode="maintenance_type"
+ v-decorator="['maintenanceType', validatorRules.maintenanceType]"
+ />
+ </a-form-item>
+ </a-col> -->
+ <!-- <a-col :span="12">
<a-form-item
label="娲惧伐鏂瑰紡"
:labelCol="labelCol"
@@ -173,7 +189,7 @@
v-decorator="['assignMode', validatorRules.assignMode]"
/>
</a-form-item>
- </a-col>
+ </a-col> -->
<a-col :span="12">
<a-form-item
label="鐗堟湰"
@@ -188,8 +204,6 @@
/>
</a-form-item>
</a-col>
- </a-row>
- <a-row :gutter="24">
<a-col
v-if="this.isRevise == true"
:span="12"
@@ -281,15 +295,15 @@
>
<div :key="col.dataIndex">
- <a-select
+ <!-- <a-select
v-if="col.dataIndex == 'maintenanceCycleId'"
:value="text"
:options="record.maintenanceCycles"
@change="(e) => handleChange(e, record.key, col, index)"
style="width: 100%"
:disabled="false"
- />
- <a-textarea
+ /> -->
+ <!--<a-textarea
:value="text"
v-if="col.dataIndex == 'maintenanceRequire'"
:maxLength="500"
@@ -297,7 +311,7 @@
placeholder="璇疯緭鍏ュ畨鍏ㄨ姹�"
@change="(e)=>handleChange(e, record.key, col, index)"
/>
- <a-textarea
+ <a-textarea
:value="text"
v-if="col.dataIndex == 'location'"
:maxLength="500"
@@ -305,7 +319,7 @@
placeholder="璇疯緭鍏ヤ繚鍏讳綅缃�"
@change="(e)=>handleChange(e, record.key, col, index)"
:disabled="true"
- />
+ />
<j-image-upload
:value="text"
v-if="col.dataIndex == 'photo'"
@@ -314,7 +328,7 @@
placeholder="璇蜂笂浼犲浘鐗�"
@change="(e)=>handleChange(e, record.key, col, index)"
>
- </j-image-upload>
+ </j-image-upload>-->
<j-dict-select-tag
v-if="col.dataIndex == 'maintenanceRole'"
:value="text"
@@ -322,8 +336,8 @@
:triggerChange="true"
dictCode="maintenance_role"
placeholder="璇烽�夋嫨淇濆吇瑙掕壊"
- style="width: 100%"
@change="(e)=>handleChange(e, record.key, col, index)"
+ style="width: 100%"
/>
</div>
</template>
@@ -423,17 +437,30 @@
// align: 'center',
// dataIndex: 'id'
// },
+ // {
+ // title: '淇濆吇閮ㄤ綅',
+ // align: 'center',
+ // dataIndex: 'location',
+ // // scopedSlots: { customRender: 'location' },
+ // // width: 150,
+ // },
{
- title: '淇濆吇椤圭洰',
+ title: '淇濆吇瑙掕壊',
+ align: 'center',
+ dataIndex: 'maintenanceRole',
+ scopedSlots: { customRender: 'maintenanceRole' },
+ },
+ {
+ title: '淇濆吇鍐呭',
align: 'center',
dataIndex: 'name'
},
- {
- title: '淇濆吇鏍囧噯',
- align: 'center',
- dataIndex: 'standard'
- },
+ // {
+ // title: '楠屾敹鏍囧噯',
+ // align: 'center',
+ // dataIndex: 'standard'
+ // },
// {
// title: '鏂规硶',
// align: 'center',
@@ -468,27 +495,15 @@
// scopedSlots: { customRender: 'photo' },
// width: 150,
// },
- {
- title: '淇濆吇閮ㄤ綅',
- align: 'center',
- dataIndex: 'location',
- // scopedSlots: { customRender: 'location' },
- // width: 150,
- },
- {
- title: '鍛ㄦ湡',
- align: 'center',
- dataIndex: 'maintenanceCycleId',
- scopedSlots: { customRender: 'maintenanceCycleId' },
- width: 150,
- },
- {
- title: '淇濆吇瑙掕壊',
- align: 'center',
- dataIndex: 'maintenanceRole',
- scopedSlots: { customRender: 'maintenanceRole' },
- width: 150,
- },
+
+ // {
+ // title: '鍛ㄦ湡',
+ // align: 'center',
+ // dataIndex: 'maintenanceCycleId',
+ // scopedSlots: { customRender: 'maintenanceCycleId' },
+ // width: 150,
+ // },
+
{
title: '鎿嶄綔',
align: 'center',
@@ -539,9 +554,9 @@
{ required: true, message: '璇烽�夋嫨璁惧!' },
]
},
- assignMode: {
+ maintenanceType: {
rules: [
- { required: true, message: '璇烽�夋嫨娲惧伐鏂瑰紡!' },
+ { required: true, message: '璇烽�夋嫨淇濆吇绫诲瀷!' },
]
},
version: {
@@ -579,7 +594,7 @@
for (let i = 0; i < data.length; i++) {
let id = this.getUuiD(15);
this.dataSource.push({
- id: id,
+ id: data[i].id,
maintenanceProjectId: data[i].id,
name: data[i].name,
standard: data[i].standard,
@@ -590,7 +605,7 @@
maintenanceRequire: data[i].maintenanceRequire,
workingHourQuota: data[i].workingHourQuota,
// upload: this.upload,
- maintenanceCycles: this.maintenanceCycles,
+ // maintenanceCycles: this.maintenanceCycles,
})
// let formData = {};
@@ -650,11 +665,11 @@
that.dataSource = temp;
}
that.$nextTick(() => {
- that.form.setFieldsValue(pick(that.model, 'num', 'departId', 'teamId', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'teamName', 'assignMode', 'version', 'remark'));
+ that.form.setFieldsValue(pick(that.model, 'num', 'departId', 'teamId', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'maintenanceType', 'teamName', 'version', 'remark'));
});
if (record.id) {
- this.maintenanceCycles = []
- this.getMaintenanceCycle(this.model.equipmentId)
+ // this.maintenanceCycles = []
+ // this.getMaintenanceCycle(this.model.equipmentId)
this.codeDisable = true;
that.$nextTick(() => {
if (that.isRevise) {
@@ -693,17 +708,17 @@
onEquipmentList() {
let data = this.form.getFieldsValue(['departId']);
- if (data.departId == null || data.departId == "") {
- this.$message.warning("璇峰厛閫夋嫨浣跨敤閮ㄩ棬锛�");
- return
- }
+ // if (data.departId == null || data.departId == "") {
+ // this.$message.warning("璇峰厛閫夋嫨浣跨敤閮ㄩ棬锛�");
+ // return
+ // }
this.$refs.EquipmentList.list(data.departId);
this.$refs.EquipmentList.title = "閫夋嫨璁惧淇℃伅";
},
sendEquipmentRecord(data) {
this.dataSource = [];
let record = data.record;
- this.getMaintenanceCycle(record.id)
+ // this.getMaintenanceCycle(record.id)
this.form.setFieldsValue({ equipmentId: record.id, equipmentName: record.num + "/" + record.name + "/" + record.model, teamId: record.teamId, teamName: record.teamId_dictText });
},
@@ -741,6 +756,7 @@
}
formData.maintenanceStandardDetaillist = that.dataSource;
formData.type = 'daily';
+ formData.maintenanceType = '2';
let obj;
if (!this.model.id) {
formData.versionStatus = '1'
--
Gitblit v1.9.3