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>
</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;
}
}
}
}); });
}, },
//访 //访
@ -747,11 +769,23 @@ export default {
}, },
// //
getOpl() { getOpl() {
this.$API.opm.opl.read.req(this.projectId).then((res) => { let that = this;
debugger; that.$API.opm.opl.read.req(that.projectId).then((res) => {
console.log(res); // debugger;
this.itemDetail = res; // console.log(res);
this.operationId = res.operation; 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() { showMoreInfo() {
@ -822,6 +856,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) => {