fix:工作开始添加开始图片
This commit is contained in:
parent
559f3e2a10
commit
f2546ecb91
|
@ -121,6 +121,16 @@
|
||||||
fit="cover"
|
fit="cover"
|
||||||
/>
|
/>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="开始照片:" span=2 v-if="form.work_imgs&&form.work_imgs.length>0">
|
||||||
|
<el-image
|
||||||
|
v-for = "item in form.work_imgs_"
|
||||||
|
:key = "item.id"
|
||||||
|
style="margin-right: 8px;height: 146px;height:146px;"
|
||||||
|
:src="item.path"
|
||||||
|
:preview-src-list="[item.path]"
|
||||||
|
fit="cover"
|
||||||
|
/>
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="作业照片:" span=2 v-if="form.work_imgs&&form.work_imgs.length>0">
|
<el-descriptions-item label="作业照片:" span=2 v-if="form.work_imgs&&form.work_imgs.length>0">
|
||||||
<el-image
|
<el-image
|
||||||
v-for = "item in form.work_imgs_"
|
v-for = "item in form.work_imgs_"
|
||||||
|
|
|
@ -248,6 +248,9 @@
|
||||||
<el-form-item label="审批图片" v-if="audit_imgs_show" required>
|
<el-form-item label="审批图片" v-if="audit_imgs_show" required>
|
||||||
<sc-upload-multiple v-model="fileurl" @imagesDel="imagesDel" @imagesChange="imagesChange" draggable :limit="9" tip="最多上传9个文件,单个文件不要超过10M,请上传图像格式文件"></sc-upload-multiple>
|
<sc-upload-multiple v-model="fileurl" @imagesDel="imagesDel" @imagesChange="imagesChange" draggable :limit="9" tip="最多上传9个文件,单个文件不要超过10M,请上传图像格式文件"></sc-upload-multiple>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="开始图片" v-if="audit_work_show" required>
|
||||||
|
<sc-upload-multiple v-model="fileurl2" @imagesDel="imagesDel2" @imagesChange="imagesChange2" draggable :limit="9" tip="最多上传9个文件,单个文件不要超过10M,请上传图像格式文件"></sc-upload-multiple>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="处理意见">
|
<el-form-item label="处理意见">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.suggestion"
|
v-model="form.suggestion"
|
||||||
|
@ -514,12 +517,14 @@ export default {
|
||||||
operationBtn: [],
|
operationBtn: [],
|
||||||
routepackes: [],
|
routepackes: [],
|
||||||
fileurl:[],
|
fileurl:[],
|
||||||
|
fileurl2:[],
|
||||||
form: {
|
form: {
|
||||||
suggestion: "",
|
suggestion: "",
|
||||||
close_note: "",
|
close_note: "",
|
||||||
close_dos: [],
|
close_dos: [],
|
||||||
},
|
},
|
||||||
audit_imgs:[],
|
audit_imgs:[],
|
||||||
|
work_imgs:[],
|
||||||
addForm: {
|
addForm: {
|
||||||
suggestion: "",
|
suggestion: "",
|
||||||
toadd_user: "",
|
toadd_user: "",
|
||||||
|
@ -535,6 +540,7 @@ export default {
|
||||||
limitedDeliver: false,
|
limitedDeliver: false,
|
||||||
limitedUserSelect: false,
|
limitedUserSelect: false,
|
||||||
audit_imgs_show:false,
|
audit_imgs_show:false,
|
||||||
|
audit_work_show:false,
|
||||||
purpose_: {
|
purpose_: {
|
||||||
10: "参观",
|
10: "参观",
|
||||||
20: "拜访",
|
20: "拜访",
|
||||||
|
@ -601,11 +607,17 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
imagesDel(index){
|
imagesDel(index){
|
||||||
this.audit_imgs.splice(index,1)
|
this.audit_imgs.splice(index,1)
|
||||||
},
|
},
|
||||||
imagesChange(data){
|
imagesChange(data){
|
||||||
this.audit_imgs = data;
|
this.audit_imgs = data;
|
||||||
},
|
},
|
||||||
|
imagesDel2(index){
|
||||||
|
this.work_imgs.splice(index,1)
|
||||||
|
},
|
||||||
|
imagesChange2(data){
|
||||||
|
this.work_imgs = data;
|
||||||
|
},
|
||||||
itemDetailEdtil() {
|
itemDetailEdtil() {
|
||||||
let itemDetail = this.itemDetail;
|
let itemDetail = this.itemDetail;
|
||||||
if (this.cateType === "opl") {
|
if (this.cateType === "opl") {
|
||||||
|
@ -738,6 +750,9 @@ export default {
|
||||||
if(res[i].on_submit_func=="apps.opm.services.check_opl_audit_imgs"){
|
if(res[i].on_submit_func=="apps.opm.services.check_opl_audit_imgs"){
|
||||||
that.audit_imgs_show = true;
|
that.audit_imgs_show = true;
|
||||||
}
|
}
|
||||||
|
if(res[i].on_submit_func=="apps.opm.services.check_opl_work_imgs"){
|
||||||
|
that.audit_work_show = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -763,7 +778,6 @@ export default {
|
||||||
//入厂项目详情
|
//入厂项目详情
|
||||||
getRpj() {
|
getRpj() {
|
||||||
this.$API.rpm.rpj.item.req(this.projectId).then((res) => {
|
this.$API.rpm.rpj.item.req(this.projectId).then((res) => {
|
||||||
// debugger;
|
|
||||||
this.itemDetail = res;
|
this.itemDetail = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -771,8 +785,6 @@ export default {
|
||||||
getOpl() {
|
getOpl() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.opm.opl.read.req(that.projectId).then((res) => {
|
that.$API.opm.opl.read.req(that.projectId).then((res) => {
|
||||||
// debugger;
|
|
||||||
// console.log(res);
|
|
||||||
that.itemDetail = res;
|
that.itemDetail = res;
|
||||||
that.operationId = res.operation;
|
that.operationId = res.operation;
|
||||||
if(res.audit_imgs.length>0){
|
if(res.audit_imgs.length>0){
|
||||||
|
@ -783,8 +795,6 @@ export default {
|
||||||
obj.url = item.file;
|
obj.url = item.file;
|
||||||
that.fileurl.push(obj)
|
that.fileurl.push(obj)
|
||||||
});
|
});
|
||||||
// console.log('that.audit_imgs',that.audit_imgs)
|
|
||||||
// console.log('that.fileurl',that.fileurl)
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue