|
@@ -46,6 +46,10 @@
|
|
|
<a-textarea v-model="model.remark" placeholder="请输入点检备注" :auto-size="{ minRows: 2, maxRows: 3 }" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <!-- <a-col :span="12">
|
|
|
+ <a-form-model-item label="点检人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="createBy">
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col> -->
|
|
|
<a-col :span="12">
|
|
|
<a-form-model-item label="故障照片" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark">
|
|
|
<j-image-upload text="上传" v-model="model.files" isMultiple></j-image-upload>
|
|
@@ -204,12 +208,18 @@
|
|
|
methods: {
|
|
|
add () {
|
|
|
this.edit(this.modelDefault);
|
|
|
- this.model.id = ""
|
|
|
this.disableds = true
|
|
|
// 第二版
|
|
|
// this.model = this.dataList
|
|
|
// this.model.id = ""
|
|
|
},
|
|
|
+ handleChange(value){
|
|
|
+ console.log(value)
|
|
|
+ getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoByEquipmentid/${value}`).then((res) => {
|
|
|
+ this.model = res.result
|
|
|
+ this.model.id = ""
|
|
|
+ })
|
|
|
+ },
|
|
|
edit (record) {
|
|
|
this.disableds = true
|
|
|
getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoBySpotcheckid/${record.id}`).then((res) => {
|
|
@@ -258,12 +268,6 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- handleChange(value){
|
|
|
- console.log(value)
|
|
|
- getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoByEquipmentid/${value}`).then((res) => {
|
|
|
- this.model = res.result
|
|
|
- })
|
|
|
- },
|
|
|
allT() {
|
|
|
this.model.cmmsSpotcheckTitemList = this.model.cmmsSpotcheckTitemList.map((res) => {
|
|
|
var data = res
|