From fdfb3f18d85839c824bb418c83cb17f103120aa5 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期一, 09 十月 2023 18:09:28 +0800
Subject: [PATCH] 小修改
---
src/views/eam/modules/equipmentNew/EquipmentModal.vue | 731 +++++++++++++++++++++++++++++++++----------------------
1 files changed, 440 insertions(+), 291 deletions(-)
diff --git a/src/views/eam/modules/equipmentNew/EquipmentModal.vue b/src/views/eam/modules/equipmentNew/EquipmentModal.vue
index 5f15ffd..45bdcc7 100644
--- a/src/views/eam/modules/equipmentNew/EquipmentModal.vue
+++ b/src/views/eam/modules/equipmentNew/EquipmentModal.vue
@@ -32,7 +32,7 @@
placeholder="璇烽�夋嫨璁惧鎵�灞炲垎绫�"
:disabled="formDisabled"
:triggerChange="true"
- dictCode="mom_eam_equipment_category,name,id"
+ :dictCode="'mom_eam_equipment_category,name,id,equipment_category_uda1 = '+'\''+caytegoryParam+'\''"
v-model="model.equipmentCategoryId"
/>
</a-form-model-item>
@@ -79,6 +79,8 @@
></a-input>
</a-form-model-item>
</a-col>
+ </a-row>
+ <a-row>
<a-col :span="6">
<a-form-model-item
label="瑙勬牸"
@@ -109,6 +111,43 @@
</a-col>
<a-col :span="6">
<a-form-model-item
+ label="浣跨敤閮ㄩ棬"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="useId"
+ >
+ <a-tree-select
+ style="width: 100%"
+ :disabled="formDisabled"
+ :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
+ :tree-data="treeData"
+ placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬"
+ tree-default-expand-all
+ v-model="model.useId"
+ />
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="宸ュ尯"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="factoryModelId"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="formDisabled"
+ placeholder="璇烽�夋嫨宸ュ尯"
+ :triggerChange="true"
+ dictCode="mom_base_area,name,id,del_flag!='1'"
+ v-model="model.factoryModelId"
+ />
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row>
+ <a-col :span="6">
+ <a-form-model-item
label="璁惧鍥剧墖"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -120,9 +159,11 @@
></j-image-upload>
</a-form-model-item>
</a-col>
+ </a-row>
+ <a-row>
<a-divider
orientation="center"
- style="font-size: large;font-style: italic;color: #66aeed;"
+ style="font-size: large;font-style: italic;color: #f20707;"
>缁存姢鍙婁娇鐢ㄤ俊鎭�</a-divider>
<a-col :span="6">
<a-form-model-item
@@ -139,24 +180,6 @@
placeholder="璇烽�夋嫨缁存姢閮ㄩ棬"
tree-default-expand-all
v-model="model.manageId"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="浣跨敤閮ㄩ棬"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="useId"
- >
- <a-tree-select
- style="width: 100%"
- :disabled="formDisabled"
- :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
- :tree-data="treeData"
- placeholder="璇烽�夋嫨浣跨敤閮ㄩ棬"
- tree-default-expand-all
- v-model="model.useId"
/>
</a-form-model-item>
</a-col>
@@ -179,26 +202,26 @@
</a-col>
<a-col :span="6">
<a-form-model-item
- label="璧勪骇鍒堕�犲晢"
+ label="ABC鏍囪瘑"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
- prop="constructorId"
+ prop="equipmentImportanceId"
>
<j-dict-select-tag
allow-clear
:disabled="formDisabled"
- placeholder="璇烽�夋嫨璧勪骇鍒堕�犲晢"
+ placeholder="璇烽�夋嫨ABC鏍囪瘑"
:triggerChange="true"
- dictCode="mom_base_constructor,name,id,status!='0' and del_flag!='1'"
- v-model="model.constructorId"
+ dictCode="ABC-standard-result"
+ @change="changeNeedSpecific"
+ v-model="model.equipmentImportanceId"
/>
</a-form-model-item>
</a-col>
- <a-divider
- orientation="center"
- style="font-size: large;font-style: italic;color: #66aeed;"
- >鐘舵�佸強鏍囪瘑</a-divider>
- <a-col :span="6">
+ <a-col
+ :span="6"
+ v-if="needSpecific"
+ >
<a-form-model-item
label="鍏抽敭璁惧鏍囪瘑"
:labelCol="labelCol"
@@ -215,200 +238,8 @@
/>
</a-form-model-item>
</a-col>
- <a-col :span="6">
- <a-form-model-item
- label="璁惧鐘舵��"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="equipmentStatus"
- >
- <j-dict-select-tag
- allow-clear
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ヨ澶囩姸鎬�"
- :triggerChange="true"
- dictCode="equipment_status"
- v-model="model.equipmentStatus"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="鎶�鏈姸鎬�"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="technologyStatus"
- >
- <j-dict-select-tag
- allow-clear
- :disabled="formDisabled"
- placeholder="璇烽�夋嫨鎶�鏈姸鎬�"
- :triggerChange="true"
- dictCode="technology_status"
- v-model="model.technologyStatus"
- />
- </a-form-model-item>
- </a-col>
- <a-divider
- orientation="center"
- style="font-size: large;font-style: italic;color: #66aeed;"
- >鍑哄巶鍙婂畨瑁呬俊鎭�</a-divider>
- <a-col :span="6">
- <a-form-model-item
- label="鍑哄巶缂栧彿"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="factoryNumber"
- >
- <a-input
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ュ嚭鍘傜紪鍙�"
- v-model="model.factoryNumber"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="鍑哄巶鏃ユ湡"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="leaveFactoryDate"
- >
- <a-date-picker
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ュ嚭鍘傛棩鏈�"
- style="width: 100%;"
- v-model="model.leaveFactoryDate"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="楠屾敹鏃ユ湡"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="acceptanceCheckDate"
- >
- <a-date-picker
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ラ獙鏀舵棩鏈�"
- style="width: 100%;"
- v-model="model.acceptanceCheckDate"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="绔嬮」鍗″彿"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="projectApprovalNo"
- >
- <a-input
- v-model="model.projectApprovalNo"
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ョ珛椤瑰崱鍙�"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="宸ュ尯"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="equipmentUda1"
- >
- <a-input
- v-model="model.equipmentUda1"
- placeholder="璇疯緭鍏ュ伐鍖�"
- :disabled="formDisabled"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="閲嶉噺"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="equipmentUda3"
- >
- <a-input
- v-model="model.equipmentUda3"
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ラ噸閲�"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="閲嶉噺璁¢噺鍗曚綅"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="equipmentUda4"
- >
- <a-input
- v-model="model.equipmentUda4"
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ラ噸閲忚閲忓崟浣岻D"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="瀹夎浣嶇疆"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="location"
- >
- <a-input
- v-model="model.location"
- placeholder="璇疯緭鍏ュ畨瑁呬綅缃�"
- :disabled="formDisabled"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="鍔熻兘浣嶇疆"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="equipmentUda5"
- >
- <a-input
- v-model="model.equipmentUda5"
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ュ姛鑳戒綅缃�"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="璧勯噾鏉ユ簮"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="fundSource"
- >
- <a-input
- v-model="model.fundSource"
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ヨ祫閲戞潵婧�"
- ></a-input>
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
- label="璧勪骇鏉ユ簮鍥藉"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="sourceCountry"
- >
- <a-input
- v-model="model.sourceCountry"
- :disabled="formDisabled"
- placeholder="璇疯緭鍏ヨ祫浜ф潵婧愬浗瀹�"
- ></a-input>
- </a-form-model-item>
- </a-col>
+ </a-row>
+ <a-row>
<a-col :span="6">
<a-form-model-item
label="瀹夊叏閰嶇疆"
@@ -465,6 +296,8 @@
></a-input>
</a-form-model-item>
</a-col>
+ </a-row>
+ <a-row>
<a-col :span="6">
<a-form-model-item
label="鎿嶄綔绯荤粺"
@@ -472,14 +305,17 @@
:wrapperCol="wrapperCol"
prop="operatingSystem"
>
- <a-input
- v-model="model.operatingSystem"
+ <j-dict-select-tag
+ allow-clear
+ placeholder="鏄惁鏈夋搷浣滅郴缁�"
:disabled="formDisabled"
- placeholder="璇疯緭鍏ユ搷浣滅郴缁�"
- ></a-input>
+ :triggerChange="true"
+ dictCode="operation_flag"
+ v-model="model.operatingSystem"
+ />
</a-form-model-item>
</a-col>
- <a-col :span="6">
+ <a-col :span="6" v-if="model.operatingSystem=='yes'">
<a-form-model-item
label="绯荤粺"
:labelCol="labelCol"
@@ -508,18 +344,317 @@
</a-form-model-item>
</a-col>
<a-col :span="6">
- <a-form-model-item
- label="鍧愭爣鏁伴噺"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="coordinateNum"
- >
+ <a-form-model-item
+ label="鍧愭爣鏁伴噺"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="coordinateNum"
+ >
<a-input-number
v-model="model.coordinateNum"
:disabled="formDisabled"
placeholder="璇疯緭鍏ュ潗鏍囨暟閲�"
style="width: 100%"
/>
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row>
+ <!-- <a-col :span="6">
+ <a-form-model-item
+ label="浜х嚎"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="workCenterId"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="formDisabled"
+ placeholder="璇烽�夋嫨浜х嚎"
+ :triggerChange="true"
+ dictCode="mom_base_work_center,name,id,del_flag!='1'"
+ v-model="model.workCenterId"
+ />
+ </a-form-model-item>
+ </a-col> -->
+ <a-col :span="6">
+ <a-form-model-item
+ label="璧勪骇鍒堕�犲晢"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="constructorId"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="formDisabled"
+ placeholder="璇烽�夋嫨璧勪骇鍒堕�犲晢"
+ :triggerChange="true"
+ dictCode="mom_base_constructor,name,id,status!='0' and del_flag!='1'"
+ v-model="model.constructorId"
+ />
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row>
+ <a-divider
+ orientation="center"
+ style="font-size: large;font-style: italic;color: #66aeed;"
+ >鐘舵�佸強鏍囪瘑</a-divider>
+ <a-col :span="6">
+ <a-form-model-item
+ label="璁惧鐘舵��"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="equipmentStatus"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ヨ澶囩姸鎬�"
+ :triggerChange="true"
+ dictCode="equipment_status"
+ v-model="model.equipmentStatus"
+ />
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="鎶�鏈姸鎬�"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="technologyStatus"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="formDisabled"
+ placeholder="璇烽�夋嫨鎶�鏈姸鎬�"
+ :triggerChange="true"
+ dictCode="technology_status"
+ v-model="model.technologyStatus"
+ />
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="璧勪骇鐘舵��"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="propertyStatus"
+ >
+ <j-dict-select-tag
+ allow-clear
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ヨ祫浜х姸鎬�"
+ :triggerChange="true"
+ dictCode="property_status"
+ v-model="model.propertyStatus"
+ />
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row v-if="model.propertyStatus=='warranty'">
+ <a-divider
+ orientation="center"
+ style="font-size: large;font-style: italic;color: #66aeed;"
+ >璐ㄤ繚鏃ユ湡</a-divider>
+ <a-col :span="6">
+ <a-form-model-item
+ label="璐ㄤ繚寮�濮嬫棩鏈�"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="warrantyStart"
+ >
+ <j-date
+ :disabled="formDisabled"
+ style="width: 100%;"
+ placeholder="璇烽�夋嫨寮�濮嬫棩鏈�"
+ class="query-group-cust"
+ v-model="model.warrantyStart"
+ ></j-date>
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="璐ㄤ繚缁撴潫鏃ユ湡"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="warrantyEnd"
+ >
+ <j-date
+ :disabled="formDisabled"
+ style="width: 100%;"
+ placeholder="璇烽�夋嫨缁撴潫鏃ユ湡"
+ class="query-group-cust"
+ v-model="model.warrantyEnd"
+ ></j-date>
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row>
+ <a-divider
+ orientation="center"
+ style="font-size: large;font-style: italic;color: #66aeed;"
+ >鍑哄巶鍙婂畨瑁呬俊鎭�</a-divider>
+ <a-col :span="6">
+ <a-form-model-item
+ label="鍑哄巶缂栧彿"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="factoryNumber"
+ >
+ <a-input
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ュ嚭鍘傜紪鍙�"
+ v-model="model.factoryNumber"
+ />
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="鍑哄巶鏃ユ湡"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="leaveFactoryDate"
+ >
+ <a-date-picker
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ュ嚭鍘傛棩鏈�"
+ style="width: 100%;"
+ v-model="model.leaveFactoryDate"
+ />
+ </a-form-model-item>
+ </a-col>
+
+ <a-col :span="6">
+ <a-form-model-item
+ label="楠屾敹鏃ユ湡"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="acceptanceCheckDate"
+ >
+ <a-date-picker
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ラ獙鏀舵棩鏈�"
+ style="width: 100%;"
+ v-model="model.acceptanceCheckDate"
+ />
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="绔嬮」鍗″彿"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="projectApprovalNo"
+ >
+ <a-input
+ v-model="model.projectApprovalNo"
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ョ珛椤瑰崱鍙�"
+ ></a-input>
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row>
+ <!-- <a-col :span="6">
+ <a-form-model-item
+ label="宸ュ尯"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="equipmentUda1"
+ >
+ <a-input
+ v-model="model.equipmentUda1"
+ placeholder="璇疯緭鍏ュ伐鍖�"
+ :disabled="formDisabled"
+ ></a-input>
+ </a-form-model-item>
+ </a-col> -->
+ <a-col :span="6">
+ <a-form-model-item
+ label="閲嶉噺"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="equipmentUda3"
+ >
+ <a-input
+ v-model="model.equipmentUda3"
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ラ噸閲�"
+ ></a-input>
+ </a-form-model-item>
+ </a-col>
+
+ <a-col :span="6">
+ <a-form-model-item
+ label="閲嶉噺璁¢噺鍗曚綅"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="equipmentUda4"
+ >
+ <a-input
+ v-model="model.equipmentUda4"
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ラ噸閲忚閲忓崟浣岻D"
+ ></a-input>
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="瀹夎浣嶇疆"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="location"
+ >
+ <a-input
+ v-model="model.location"
+ placeholder="璇疯緭鍏ュ畨瑁呬綅缃�"
+ :disabled="formDisabled"
+ ></a-input>
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="鍔熻兘浣嶇疆"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="equipmentUda5"
+ >
+ <a-input
+ v-model="model.equipmentUda5"
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ュ姛鑳戒綅缃�"
+ ></a-input>
+ </a-form-model-item>
+ </a-col>
+ </a-row>
+ <a-row>
+ <a-col :span="6">
+ <a-form-model-item
+ label="璧勯噾鏉ユ簮"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="fundSource"
+ >
+ <a-input
+ v-model="model.fundSource"
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ヨ祫閲戞潵婧�"
+ ></a-input>
+ </a-form-model-item>
+ </a-col>
+ <a-col :span="6">
+ <a-form-model-item
+ label="璧勪骇鏉ユ簮鍥藉"
+ :labelCol="labelCol"
+ :wrapperCol="wrapperCol"
+ prop="sourceCountry"
+ >
+ <a-input
+ v-model="model.sourceCountry"
+ :disabled="formDisabled"
+ placeholder="璇疯緭鍏ヨ祫浜ф潵婧愬浗瀹�"
+ ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="6">
@@ -536,10 +671,8 @@
></a-input>
</a-form-model-item>
</a-col>
- <a-divider
- orientation="center"
- style="font-size: large;font-style: italic;color: #66aeed;"
- >ABC鏍囪瘑</a-divider>
+ </a-row>
+ <a-row hidden>
<a-col :span="6">
<a-form-model-item
label="骞冲潎浣跨敤鐜�"
@@ -558,6 +691,8 @@
/>
</a-form-model-item>
</a-col>
+ </a-row>
+ <a-row hidden>
<a-col :span="6">
<a-form-model-item
label="鍙浛鎹㈡��"
@@ -614,24 +749,6 @@
</a-col>
<a-col :span="6">
<a-form-model-item
- label="鏁呴殰棰戠巼"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="standardE"
- >
- <j-dict-select-tag
- allow-clear
- placeholder="璇烽�夋嫨鏁呴殰棰戠巼"
- :disabled="formDisabled"
- :triggerChange="true"
- dictCode="ABC-standardE"
- @change="standardResultCompute"
- v-model="model.standardE"
- />
- </a-form-model-item>
- </a-col>
- <a-col :span="6">
- <a-form-model-item
label="璁惧浠峰��"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
@@ -648,23 +765,8 @@
/>
</a-form-model-item>
</a-col>
- <a-col :span="6">
- <a-form-model-item
- label="ABC鏍囪瘑"
- :labelCol="labelCol"
- :wrapperCol="wrapperCol"
- prop="equipmentImportanceId"
- >
- <j-dict-select-tag
- allow-clear
- :disabled="formDisabled"
- placeholder="璇烽�夋嫨ABC鏍囪瘑"
- :triggerChange="true"
- dictCode="ABC-standard-result"
- v-model="model.equipmentImportanceId"
- />
- </a-form-model-item>
- </a-col>
+ </a-row>
+ <a-row>
<a-divider
orientation="center"
style="font-size: large;font-style: italic;color: #66aeed;"
@@ -779,6 +881,11 @@
default: false,
required: false
},
+ caytegoryParam:{
+ type:String,
+ default: '',
+ required: false
+ }
},
data() {
return {
@@ -823,30 +930,48 @@
equipmentCategoryId: [
{ required: true, message: '璇烽�夊垯璁惧绫诲埆!' },
],
- specification:[
- { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' },
+ specification: [
+ { required: true, message: '璇烽�夊垯璁惧瑙勬牸!' },
],
- model:[
- { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' },
+ model: [
+ { required: true, message: '璇烽�夊垯璁惧鍨嬪彿!' },
],
- equipmentImportanceId:[
- { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' },
+ equipmentImportanceId: [
+ { required: true, message: '璇烽�夊垯璁惧ABC鏍囪瘑!' },
],
- manageId:[
- { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' },
+ manageId: [
+ { required: true, message: '璇烽�夋嫨缁存姢閮ㄩ棬!' },
],
- useId:[
- { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬閮ㄩ棬!' },
+ useId: [
+ { required: true, message: '璇烽�夋嫨浣跨敤閮ㄩ棬閮ㄩ棬!' },
],
- specificEquipment:[
- { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' },
+ specificEquipment: [
+ { required: true, message: '璇烽�夋嫨鍏抽敭璁惧鏍囪瘑!' },
],
- equipmentStatus:[
- { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' },
+ equipmentStatus: [
+ { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' },
],
- technologyStatus:[
- { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' },
+ technologyStatus: [
+ { required: true, message: '璇烽�夋嫨璁惧鐘舵��!' },
],
+ workCenterId: [
+ { required: true, message: '璇烽�夋嫨璁惧浜х嚎!' },
+ ],
+ factoryModelId: [
+ { required: true, message: '璇烽�夋嫨璁惧杞﹂棿!' },
+ ],
+ warrantyStart: [
+ { required: true, message: '璇烽�夋嫨寮�濮嬫棩鏈�!' },
+ ],
+ warrantyEnd: [
+ { required: true, message: '璇烽�夋嫨缁撴潫鏃ユ湡!' },
+ ],
+ propertyStatus: [
+ { required: true, message: '璇烽�夋嫨璧勪骇鐘舵��!' },
+ ],
+ system:[
+ { required: true, message: '璇疯緭鍏ョ郴缁�!' },
+ ]
},
url: {
add: "/eam/equipment/add",
@@ -854,6 +979,7 @@
loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
},
treeData: [],
+ needSpecific: false,
}
},
@@ -864,11 +990,15 @@
},
methods: {
add() {
+ this
this.edit(this.modelDefault);
},
edit(record) {
console.log(this.disabled)
this.model = Object.assign({}, record);
+ if(!this.model.id){
+ this.model.equipmentStatus = '1'
+ }
this.visible = true;
},
close() {
@@ -1021,7 +1151,7 @@
sendPrecisionParametersTemplateRecord(data) {
let record = data.record;
this.model.precisionParametersTemplateId = record.id
- this.model.precisionParametersTemplateId_dictText= record.name
+ this.model.precisionParametersTemplateId_dictText = record.name
this.model = Object.assign({}, this.model);
},
standardResultCompute() {
@@ -1044,6 +1174,25 @@
}
this.model = Object.assign({}, this.model);
+ },
+ changeNeedSpecific(val) {
+ if (val == 'A') {
+ this.needSpecific = true;
+ } else {
+ let that = this;
+ this.$confirm({
+ title: '鎻愮ず',
+ content: '闈濧绫昏澶囷紝鏄惁瑕佹坊鍔犲叧閿澶囨爣璇嗭紒',
+ okText: '纭',
+ cancelText: '鍙栨秷',
+ onOk() {
+ that.needSpecific = true;
+ },
+ onCancel() {
+ that.needSpecific = false;
+ }
+ })
+ }
}
},
computed: {
--
Gitblit v1.9.3