Commit 2abb9bce authored by 沈翠玲's avatar 沈翠玲

领料申请和客户产品标签模版上传图片

parent 958ca2f6
...@@ -258,6 +258,18 @@ ...@@ -258,6 +258,18 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<el-form-item label="图片预览" prop="filePath">
<ImageUpload
:limit="1"
:value="form.filePath"
fieldName="filePath"
:fileSize="5"
@onUploaded="handleImgUploaded"
@onRemoved="handleImgRemoved"
></ImageUpload>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -341,6 +353,14 @@ export default { ...@@ -341,6 +353,14 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
//图片上传成功
handleImgUploaded(imgUrl, obj) {
this.form[obj.$attrs.fieldName] = imgUrl;
},
//图片移除
handleImgRemoved(imgUrl, obj) {
this.form[obj.$attrs.fieldName] = null;
},
onItemSelected(obj) { onItemSelected(obj) {
if (obj != undefined && obj != null) { if (obj != undefined && obj != null) {
this.form.itemId = obj.itemId this.form.itemId = obj.itemId
...@@ -402,7 +422,8 @@ export default { ...@@ -402,7 +422,8 @@ export default {
templateType: null, templateType: null,
templateCode: null, templateCode: null,
templateId: null, templateId: null,
createBy: null createBy: null,
filePath: null
} }
this.resetForm('form') this.resetForm('form')
}, },
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" @submit.native.prevent ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" @submit.native.prevent ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="物料编码" prop="sapItemCode">
<el-input v-model="queryParams.sapItemCode" placeholder="请输入物料编码" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="编排单号" prop="arrangeCode"> <el-form-item label="编排单号" prop="arrangeCode">
<el-input v-model="queryParams.arrangeCode" placeholder="请输入编排单号" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.arrangeCode" placeholder="请输入编排单号" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
...@@ -100,6 +102,7 @@ ...@@ -100,6 +102,7 @@
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料编码" align="center" prop="sapItemCode" width="100" />
<el-table-column label="工作单元" align="center" prop="workunitName" width="100" /> <el-table-column label="工作单元" align="center" prop="workunitName" width="100" />
<el-table-column label="领料类型" align="center" prop="applyType"> <el-table-column label="领料类型" align="center" prop="applyType">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -443,6 +446,7 @@ export default { ...@@ -443,6 +446,7 @@ export default {
workstationCode: null, workstationCode: null,
workstationName: null, workstationName: null,
materialType: null, materialType: null,
sapItemCode: null,
confirm: null, confirm: null,
windCase: null, windCase: null,
createBy: null, createBy: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment