From 0b5a704e49545b4059b9eebe247adea8ec14911f Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 05 六月 2025 11:45:24 +0800 Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/opo-web --- src/views/project/travelexpenseapply/travelexpensedetail/index.vue | 104 ++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 89 insertions(+), 15 deletions(-) diff --git a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue index f1e7bbd..bdb2de9 100644 --- a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue +++ b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue @@ -61,6 +61,7 @@ <el-select v-model="form.infoid" @change="selectbaseinfo" + clearable filterable placeholder="璇烽�夋嫨鎹愮尞鑰�" > @@ -195,7 +196,7 @@ </el-col> </el-row> --> - <!-- + <!-- <el-row type="flex" :gutter="10" align="right" class="mb8"> <el-col :span="6"> <el-button @@ -541,7 +542,7 @@ width="120" > <template slot-scope="scope"> - <el-input + <el-input v-model="scope.row.foodexpenses" placeholder="浼欓璐规姤閿�" @blur=" @@ -909,6 +910,15 @@ </el-radio-group> </el-form-item> </el-col> + <el-col :span="12"> + <el-form-item label="绠楃◣鐘舵��" prop="infoid"> + <el-radio-group v-model="form.istax" align="left"> + <el-radio :label="-1">瀹℃牳涓�</el-radio> + <el-radio :label="0">鍏佽绠楃◣</el-radio> + <el-radio :label="1">宸茬畻绋�</el-radio> + </el-radio-group> + </el-form-item> + </el-col> </el-row> <el-row @@ -957,7 +967,7 @@ :visible.sync="pdfVisible" width="60%" > - <div> + <div style="margin-bottom: 10px;"> <el-table :data="tableDatatop" style="width: 100%"> <el-table-column prop="orderno" label="搴忓彿"> </el-table-column> <el-table-column prop="personname" label="璐圭敤浜哄憳"> @@ -986,6 +996,13 @@ </el-table-column> </el-table> </div> + <el-alert + title="鏂颁笂浼犳枃浠堕渶鍦ㄦ彁浜や繚瀛樺悗鎵嶅彲杩涜妗堜緥鍏宠仈锛屽惁鍒欒涓烘斁寮�" + type="error" + show-icon + close-text="鐭ラ亾浜�" + > + </el-alert> <el-tabs style="margin-top: 20px;" v-model="activeName" @@ -1645,7 +1662,6 @@ this.pdfVisible = true; if (this.rbDetails[index].annexfilesList) { - const fetchPromises = this.rbDetails[index].annexfilesList.map( (value, indexson) => { const pdfimg = this.Networkheader + "/prod-api" + value.url; @@ -1698,10 +1714,14 @@ ); Promise.all(fetchPromises).then(invoicefileListto => { - this.invoicefileListto = invoicefileListto.filter(item => item !== null); + this.invoicefileListto = invoicefileListto.filter( + item => item !== null + ); this.invoicepdfimg = this.invoicefileListto[0].url; console.log(this.invoicepdfimg, "invoicepdfimg"); - this.invoicepdfimgsrcList = this.invoicefileListto.map(item => item.url); + this.invoicepdfimgsrcList = this.invoicefileListto.map( + item => item.url + ); }); this.previewpdf = true; @@ -1809,8 +1829,10 @@ const index = this.getIndexInArray(this.fileListto, row); const item = this.fileListto.splice(index, 1)[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓� this.fileListto.splice(index - 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣� - - const indexann = this.rbDetails[this.atpresent].annexfilesList.findIndex(item => item.name == row.name); + + const indexann = this.rbDetails[ + this.atpresent + ].annexfilesList.findIndex(item => item.name == row.name); const itemann = this.rbDetails[this.atpresent].annexfilesList.splice( indexann, 1 @@ -1824,8 +1846,10 @@ const index = this.getIndexInArray(this.invoicefileListto, row); const item = this.invoicefileListto.splice(index, 1)[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓� this.invoicefileListto.splice(index - 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣� - - const indexinvo = this.rbDetails[this.atpresent].invoicefilesList.findIndex(item => item.name == row.name); + + const indexinvo = this.rbDetails[ + this.atpresent + ].invoicefilesList.findIndex(item => item.name == row.name); const iteminvo = this.rbDetails[this.atpresent].invoicefilesList.splice( indexinvo, 1 @@ -2471,11 +2495,20 @@ this.$modal.loading("姝e湪鎻愪氦瀹℃牳锛岃绋嶅�欙紒"); checkfund(checkfundobj).then(res => { - this.$modal.closeLoading(); - this.$modal.msgSuccess("鎻愪氦瀹℃牳鎴愬姛!"); - // 鍏抽棴绐楀彛 - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.go(-1); + if (res.code == 200) { + this.$modal.closeLoading(); + this.$modal.msgSuccess("鎻愪氦瀹℃牳鎴愬姛!"); + // 鍏抽棴绐楀彛 + this.$store.dispatch("tagsView/delView", this.$route); + this.$router.go(-1); + } else { + this.$modal.closeLoading(); + if (res.msg) { + this.$modal.msgError("鎿嶄綔澶辫"); + } else { + this.$modal.msgError(res.msg); + } + } }); }, @@ -2501,6 +2534,47 @@ const rbDetails = [...this.rbDetails]; const rbPayees = [...this.rbPayees]; + //淇濆瓨鍓嶆牎楠屾暟鎹� + for (let k = 0; k < rbDetails.length; k++) { + let tempDetail = rbDetails[k]; + console.log(tempDetail, "tem"); + if (!tempDetail.persontype) { + this.$modal.msgWarning( + "鏄庣粏琛ㄤ腑锛岀" + + (k + 1).toString() + + "琛岀殑浜哄憳绫诲埆鏈�夋嫨锛岃鍏堥�夋嫨浜哄憳绫诲埆鍚庡啀鎻愪氦淇濆瓨锛�" + ); + return; + } + + if (!tempDetail.personname) { + this.$modal.msgWarning( + "鏄庣粏琛ㄤ腑锛岀" + + (k + 1).toString() + + "琛岀殑璐圭敤浜哄憳鏈�夋嫨,璇烽�夋嫨璐圭敤浜哄憳鍚庡啀鎻愪氦淇濆瓨锛�" + ); + return; + } + + if (!tempDetail.starttime) { + this.$modal.msgWarning( + "鏄庣粏琛ㄤ腑锛岀" + + (k + 1).toString() + + "琛岀殑寮�濮嬫棩鏈熸湭閫夋嫨,璇烽�夋嫨寮�濮嬫棩鏈熷悗鍐嶆彁浜や繚瀛橈紒" + ); + return; + } + + if (!tempDetail.endtime) { + this.$modal.msgWarning( + "鏄庣粏琛ㄤ腑锛岀" + + (k + 1).toString() + + "琛岀殑缁撴潫鏃ユ湡濮撳悕涓洪�夋嫨,璇烽�夋嫨缁撴潫鏃ユ湡鍚庡啀鎻愪氦淇濆瓨锛�" + ); + return; + } + } + if (this.form.id != null) { console.log(this.form); updateReimbursement(this.form); -- Gitblit v1.9.3