This commit is contained in:
shijing 2022-05-27 15:35:15 +08:00
parent 392ddf83cd
commit db4adb4756
3 changed files with 8 additions and 1 deletions

View File

@ -246,7 +246,7 @@
if (imag.length > 0) {
that.img = new Image();
that.img.crossOrigin = 'anonymous';
let value = imag[0].field_value!==null ? imag[0].field_value : imag[0].draw_template;
let value = imag[0].field_value!==null&&imag[0].field_value!==undefined&&imag[0].field_value!=='' ? imag[0].field_value : imag[0].draw_template;
that.img =process.env.VUE_APP_BASE_API.replace('/api','')+ value;
setTimeout(function () {
that.canvasInit();

View File

@ -526,6 +526,7 @@
'datetime': '日期时间',
'select': '单选',
'selects': '多选',
'draw': '绘图模板',
},
typeoption: [{
value: 1,

View File

@ -30,6 +30,9 @@
<el-table-column label="物料型号">
<template slot-scope="scope">{{ scope.row.material_.specification }}</template>
</el-table-column>
<!--<el-table-column label="物料品牌">
<template slot-scope="scope">{{ scope.row.brand }}</template>
</el-table-column>-->
<el-table-column label="采购数量">
<template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
@ -90,6 +93,9 @@
</el-option>
</el-select>
</el-form-item>
<!--<el-form-item label="物料品牌">
<el-input v-model="puorderTtem.brand" placeholder="规格型号"/>
</el-form-item>-->
</el-form>
<div style="text-align: right">
<el-button type="danger" @click="dialogVisible = false">取消</el-button>