This commit is contained in:
Li xia 2024-08-19 17:01:27 +08:00
commit 6417f2ef49
1 changed files with 45 additions and 8 deletions

View File

@ -245,6 +245,9 @@
</el-checkbox>
</el-checkbox-group>
</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-input
v-model="form.suggestion"
@ -510,11 +513,13 @@ export default {
employeeLists: [],
operationBtn: [],
routepackes: [],
fileurl:[],
form: {
suggestion: "",
close_note: "",
close_dos: [],
},
audit_imgs:[],
addForm: {
suggestion: "",
toadd_user: "",
@ -529,6 +534,7 @@ export default {
showLimited: false,
limitedDeliver: false,
limitedUserSelect: false,
audit_imgs_show:false,
purpose_: {
10: "参观",
20: "拜访",
@ -594,6 +600,12 @@ export default {
this.getBtns();
},
methods: {
imagesDel(index){
this.audit_imgs.splice(index,1)
},
imagesChange(data){
this.audit_imgs = data;
},
itemDetailEdtil() {
let itemDetail = this.itemDetail;
if (this.cateType === "opl") {
@ -715,10 +727,20 @@ export default {
},
//
getBtns() {
this.$API.wf.ticket.ticketTransitions
.req(this.ticketId)
let that = this;
that.audit_imgs_show = false;
that.$API.wf.ticket.ticketTransitions
.req(that.ticketId)
.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;
}
}
}
});
},
//访
@ -747,11 +769,23 @@ export default {
},
//
getOpl() {
this.$API.opm.opl.read.req(this.projectId).then((res) => {
debugger;
console.log(res);
this.itemDetail = res;
this.operationId = res.operation;
let that = this;
that.$API.opm.opl.read.req(that.projectId).then((res) => {
// debugger;
// console.log(res);
that.itemDetail = res;
that.operationId = res.operation;
if(res.audit_imgs.length>0){
that.audit_imgs = res.audit_imgs;
res.audit_imgs_.forEach((item) => {
let obj = {};
Object.assign(obj, item);
obj.url = item.file;
that.fileurl.push(obj)
});
// console.log('that.audit_imgs',that.audit_imgs)
// console.log('that.fileurl',that.fileurl)
}
});
},
showMoreInfo() {
@ -822,6 +856,9 @@ export default {
params.ticket_data.close_note = this.form.close_note;
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
.req(this.ticketId, params)
.then((res) => {