|
@@ -28,17 +28,27 @@
|
|
|
</row-item>
|
|
|
<row-item>
|
|
|
<a-form-item
|
|
|
- label="设备编号"
|
|
|
+ label="设备名称"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input
|
|
|
disabled
|
|
|
style="width: 80%"
|
|
|
- v-decorator="['sbNo', {rules: [{required: false, message: '请选择设备'}]}]"/>
|
|
|
+ v-decorator="['sbName', {rules: [{required: false, message: '请选择设备'}]}]"/>
|
|
|
<a-button type="primary" style="width: 20%" @click="handleSbSelect">选择</a-button>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="设备位号"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
+ >
|
|
|
+ <a-input
|
|
|
+ v-decorator="['positionNo', {rules: [{required: true, message: '设备位号不能为空'}]}]" />
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
<row-item>
|
|
|
<a-form-item
|
|
|
label="标准名称"
|
|
@@ -58,7 +68,7 @@
|
|
|
<a-input
|
|
|
style="width: 80%"
|
|
|
v-decorator="['partName']"/>
|
|
|
-<!-- <a-button type="primary" style="width: 20%" @click="handlePartSelect">选择</a-button>-->
|
|
|
+ <!-- <a-button type="primary" style="width: 20%" @click="handlePartSelect">选择</a-button>-->
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -296,7 +306,7 @@
|
|
|
</row-item>
|
|
|
</row-list>
|
|
|
</a-form>
|
|
|
-<!-- <title-divider title="关联备件" width="100px"></title-divider>
|
|
|
+ <!-- <title-divider title="关联备件" width="100px"></title-divider>
|
|
|
<div class="table-operator" style="margin-bottom: 8px;">
|
|
|
<a-button style="margin-left:8px;" type="primary" @click="handleSpareSelect">
|
|
|
<a-icon type="plus"/>
|
|
@@ -592,9 +602,8 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
setFieldsValue(Object.assign({
|
|
|
'sbId': key,
|
|
|
- 'sbNo': row.no,
|
|
|
- 'part': null,
|
|
|
- 'partName': null
|
|
|
+ 'sbName': row.name,
|
|
|
+ 'positionNo': row.positionNo
|
|
|
}))
|
|
|
})
|
|
|
},
|