|
@@ -11,12 +11,12 @@
|
|
|
</a-col> -->
|
|
|
<a-col :span="12">
|
|
|
<a-form-model-item label="设备名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentid">
|
|
|
- <j-search-select-tag v-model="model.equipmentid" dict="tpm_equipment,equipmentname,id" placeholder="请选择设备" @change="handleChange"/>
|
|
|
+ <j-search-select-tag v-model="model.equipmentid" dict="tpm_equipment,equipmentname,id" placeholder="请选择设备" @change="handleChange" :disabled="disabledEdit"/>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-model-item label="点检内容名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="contentname">
|
|
|
- <a-input v-model="model.contentname" placeholder="请输入所属点检内容名称" :disabled="disableds" ></a-input>
|
|
|
+ <a-input v-model="model.contentname" placeholder="请输入所属点检内容名称" disabled ></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<!-- <a-col :span="12">
|
|
@@ -150,7 +150,7 @@
|
|
|
modelWX:{
|
|
|
},
|
|
|
// 单个禁填
|
|
|
- disableds: false,
|
|
|
+ disabledEdit: false,
|
|
|
// 点检结果(-1为报修,1为其他结果)
|
|
|
resultStatus: 1,
|
|
|
labelCol: {
|
|
@@ -244,24 +244,25 @@
|
|
|
methods: {
|
|
|
add () {
|
|
|
this.edit(this.modelDefault);
|
|
|
- this.disableds = true
|
|
|
+ this.disabledEdit = false
|
|
|
// 第二版
|
|
|
// this.model = this.dataList
|
|
|
// this.model.id = ""
|
|
|
},
|
|
|
// 监听选择的设备
|
|
|
handleChange(value){
|
|
|
- console.log(value)
|
|
|
getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoByEquipmentid/${value}`).then((res) => {
|
|
|
+ console.log(999,res)
|
|
|
// this.model = res.result
|
|
|
this.model.contentname = res.result.contentname
|
|
|
+ this.model.contentcode = res.result.contentcode
|
|
|
this.model.spotcheckdate = res.result.spotcheckdate
|
|
|
this.model.cmmsSpotcheckTitemList = res.result.cmmsSpotcheckTitemList
|
|
|
this.model.id = ""
|
|
|
})
|
|
|
},
|
|
|
edit (record) {
|
|
|
- this.disableds = true
|
|
|
+ this.disabledEdit = true
|
|
|
getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoBySpotcheckid/${record.id}`).then((res) => {
|
|
|
this.model = res.result
|
|
|
const b = res.result.files.map((res) => {
|