feat:禅道282
This commit is contained in:
parent
5fe457cd5f
commit
392f979ff5
|
|
@ -170,6 +170,15 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="12" :xs="24" v-if="route_code=='paiyicibang'&&imageUrl!==''">
|
||||||
|
<el-form-item label="工艺图纸">
|
||||||
|
<el-image
|
||||||
|
style="width: 100px; height: 100px"
|
||||||
|
:src="imageUrl"
|
||||||
|
fit="fill"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-main>
|
</el-main>
|
||||||
|
|
@ -251,10 +260,13 @@ export default {
|
||||||
},
|
},
|
||||||
wm_in: "",
|
wm_in: "",
|
||||||
route_code:"",
|
route_code:"",
|
||||||
|
imageUrl:'',
|
||||||
|
test_file:'',
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
batchCountCando:0,
|
batchCountCando:0,
|
||||||
materialTracking:10,
|
materialTracking:10,
|
||||||
|
fileList:[],
|
||||||
testitems:[],
|
testitems:[],
|
||||||
options: [],
|
options: [],
|
||||||
mtaskOptions:[],
|
mtaskOptions:[],
|
||||||
|
|
@ -403,6 +415,7 @@ export default {
|
||||||
})
|
})
|
||||||
if(that.routeOptions.length==1){
|
if(that.routeOptions.length==1){
|
||||||
that.form.route = that.routeOptions[0].id;
|
that.form.route = that.routeOptions[0].id;
|
||||||
|
that.routeChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
@ -435,6 +448,7 @@ export default {
|
||||||
})
|
})
|
||||||
if(that.routeOptions.length==1){
|
if(that.routeOptions.length==1){
|
||||||
that.form.route = that.routeOptions[0].id;
|
that.form.route = that.routeOptions[0].id;
|
||||||
|
that.routeChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let arr = that.materialOptions.filter((item) => {
|
let arr = that.materialOptions.filter((item) => {
|
||||||
|
|
@ -472,6 +486,18 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
routeChange(){
|
||||||
|
let that = this;
|
||||||
|
if(that.route_code=='paiyicibang'){
|
||||||
|
that.$API.mtm.route.item.req(that.form.route).then((res) => {
|
||||||
|
let json = res.params_json;
|
||||||
|
if(json.fileurl){
|
||||||
|
let fileurl = JSON.parse(json.fileurl);
|
||||||
|
that.imageUrl = fileurl[0].path;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
//表单提交方法
|
//表单提交方法
|
||||||
submit() {
|
submit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue