fix:pc端作业审批添加图片
This commit is contained in:
parent
0dd28c95c5
commit
9c76501511
|
@ -245,6 +245,9 @@
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<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>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="处理意见">
|
<el-form-item label="处理意见">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.suggestion"
|
v-model="form.suggestion"
|
||||||
|
@ -510,11 +513,13 @@ export default {
|
||||||
employeeLists: [],
|
employeeLists: [],
|
||||||
operationBtn: [],
|
operationBtn: [],
|
||||||
routepackes: [],
|
routepackes: [],
|
||||||
|
fileurl:[],
|
||||||
form: {
|
form: {
|
||||||
suggestion: "",
|
suggestion: "",
|
||||||
close_note: "",
|
close_note: "",
|
||||||
close_dos: [],
|
close_dos: [],
|
||||||
},
|
},
|
||||||
|
audit_imgs:[],
|
||||||
addForm: {
|
addForm: {
|
||||||
suggestion: "",
|
suggestion: "",
|
||||||
toadd_user: "",
|
toadd_user: "",
|
||||||
|
@ -529,6 +534,7 @@ export default {
|
||||||
showLimited: false,
|
showLimited: false,
|
||||||
limitedDeliver: false,
|
limitedDeliver: false,
|
||||||
limitedUserSelect: false,
|
limitedUserSelect: false,
|
||||||
|
audit_imgs_show:false,
|
||||||
purpose_: {
|
purpose_: {
|
||||||
10: "参观",
|
10: "参观",
|
||||||
20: "拜访",
|
20: "拜访",
|
||||||
|
@ -594,6 +600,12 @@ export default {
|
||||||
this.getBtns();
|
this.getBtns();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
imagesDel(index){
|
||||||
|
this.audit_imgs.splice(index,1)
|
||||||
|
},
|
||||||
|
imagesChange(data){
|
||||||
|
this.audit_imgs = data;
|
||||||
|
},
|
||||||
itemDetailEdtil() {
|
itemDetailEdtil() {
|
||||||
let itemDetail = this.itemDetail;
|
let itemDetail = this.itemDetail;
|
||||||
if (this.cateType === "opl") {
|
if (this.cateType === "opl") {
|
||||||
|
@ -715,10 +727,20 @@ export default {
|
||||||
},
|
},
|
||||||
//获取应有的流转
|
//获取应有的流转
|
||||||
getBtns() {
|
getBtns() {
|
||||||
this.$API.wf.ticket.ticketTransitions
|
let that = this;
|
||||||
.req(this.ticketId)
|
that.audit_imgs_show = false;
|
||||||
|
that.$API.wf.ticket.ticketTransitions
|
||||||
|
.req(that.ticketId)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.operationBtn = res;
|
that.operationBtn = res;
|
||||||
|
if(res.length>0){
|
||||||
|
for (let i = 0; i < res.length; i++) {
|
||||||
|
if(res[i].on_submit_func=="apps.opm.services.check_opl_audit_imgs"){
|
||||||
|
that.audit_imgs_show = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//访客详情
|
//访客详情
|
||||||
|
@ -822,6 +844,9 @@ export default {
|
||||||
params.ticket_data.close_note = this.form.close_note;
|
params.ticket_data.close_note = this.form.close_note;
|
||||||
params.ticket_data.close_dos = this.form.close_dos;
|
params.ticket_data.close_dos = this.form.close_dos;
|
||||||
}
|
}
|
||||||
|
if(this.audit_imgs_show){
|
||||||
|
params.ticket_data.audit_imgs = this.audit_imgs;
|
||||||
|
}
|
||||||
this.$API.wf.ticket.ticketHandle
|
this.$API.wf.ticket.ticketHandle
|
||||||
.req(this.ticketId, params)
|
.req(this.ticketId, params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue