feat:禅道282
This commit is contained in:
parent
5fe457cd5f
commit
392f979ff5
|
|
@ -170,6 +170,15 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
</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-form>
|
||||
</el-main>
|
||||
|
|
@ -251,10 +260,13 @@ export default {
|
|||
},
|
||||
wm_in: "",
|
||||
route_code:"",
|
||||
imageUrl:'',
|
||||
test_file:'',
|
||||
visible: false,
|
||||
isSaveing: false,
|
||||
batchCountCando:0,
|
||||
materialTracking:10,
|
||||
fileList:[],
|
||||
testitems:[],
|
||||
options: [],
|
||||
mtaskOptions:[],
|
||||
|
|
@ -403,6 +415,7 @@ export default {
|
|||
})
|
||||
if(that.routeOptions.length==1){
|
||||
that.form.route = that.routeOptions[0].id;
|
||||
that.routeChange();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
|
@ -435,6 +448,7 @@ export default {
|
|||
})
|
||||
if(that.routeOptions.length==1){
|
||||
that.form.route = that.routeOptions[0].id;
|
||||
that.routeChange();
|
||||
}
|
||||
}
|
||||
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() {
|
||||
let that = this;
|
||||
|
|
|
|||
Loading…
Reference in New Issue