| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px"> |
| | | <el-form |
| | | class="opo-query-form" :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px"> |
| | | <el-row align="left"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="捐献案例" prop="donorname" style="float: left"> |
| | |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="申请日期" prop="createTime"> |
| | | <el-date-picker format="yyyy-MM-dd" @change="selectapplication" value-format="yyyy-MM-dd" |
| | | <el-date-picker format="yyyy-MM-dd" @change="selectapplication" value-format="yyyy-MM-dd HH:mm:ss" |
| | | v-model="createTime" type="daterange" range-separator="至" start-placeholder="申请开始日期" |
| | | end-placeholder="申请结束日期" @keyup.enter.native="flowconclusion"> |
| | | </el-date-picker> |
| | |
| | | <el-col :span="5"> |
| | | <el-form-item label="申请日期" prop="createTime"> |
| | | <!-- <el-input v-model="form.donorno" placeholder="请输入申请日期" /> --> |
| | | <el-date-picker clearable style="width: 100%" v-model="form.createTime" type="date" |
| | | <el-date-picker clearable style="width: 100%" v-model="form.createTime" type="date" format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm:ss" placeholder="申请日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="税后金额" prop="amountrequested"> |
| | | <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" /> |
| | | <el-form-item label="劳务税后" prop="amountrequested"> |
| | | <el-input v-model="form.taxedcost" placeholder="劳务税后合计" :disabled="true" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="taxamount" align="center" label="扣税" width="120" v-if="form.applytype != '3'"> |
| | | <el-table-column prop="vatAmount" align="center" label="增值税" width="120" v-if="form.applytype != '3'" /> |
| | | <el-table-column prop="cityTaxAmount" align="center" label="城建税" width="120" v-if="form.applytype != '3'" /> |
| | | <el-table-column prop="laborPretaxAmount" align="center" label="劳务税前" width="120" v-if="form.applytype != '3'" /> |
| | | <el-table-column prop="taxamount" align="center" label="劳务个税" width="120" v-if="form.applytype != '3'"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.taxamount" placeholder="扣税" /> |
| | | <el-input v-model="scope.row.taxamount" placeholder="劳务个税" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="taxedamount" align="center" label="税后金额" width="120" v-if="form.applytype != '3'"> |
| | | <el-table-column prop="taxedamount" align="center" label="劳务税后" width="120" v-if="form.applytype != '3'"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.taxedamount" placeholder="税后金额" /> |
| | | <el-input v-model="scope.row.taxedamount" placeholder="劳务税后" /> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="dundcheck" v-if="dialogType == 'edit'">确认</el-button> |
| | | <el-button type="primary" :loading="checkSubmitLoading" :disabled="checkSubmitLoading" @click="dundcheck" v-if="dialogType == 'edit'">确认</el-button> |
| | | <el-button @click="cancel">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | ], |
| | | data() { |
| | | return { |
| | | checkSubmitLoading: false, |
| | | arrr2: [], |
| | | arrr3: [], |
| | | //费用类型数组 |
| | |
| | | }); |
| | | }, |
| | | dundcheck() { |
| | | if (this.checkSubmitLoading) return; |
| | | // this.$em |
| | | this.dialogOpen = false; |
| | | let checkfundobj = { |
| | |
| | | flowcontent: this.newobj.flowconclusion, |
| | | fundid: this.newobj.fundid |
| | | }; |
| | | this.checkSubmitLoading = true; |
| | | checkfund(checkfundobj).then(res => { |
| | | this.checkSubmitLoading = false; |
| | | if (res.code == 200) { |
| | | this.reset(); |
| | | this.$modal.msgSuccess("审核完成!"); |
| | | this.getlistbypower(); |
| | | } else { |
| | | if (res.msg) { |
| | | this.$modal.msgError("操作失误"); |
| | | } else { |
| | | this.$modal.msgError(res.msg); |
| | | } |
| | | this.$modal.msgError(res.msg || "操作失败"); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | console.log(response.msg); |
| | | } |
| | | }, |
| | | // 下载文件 |
| | | // 预览/下载文件 |
| | | downFile(item) { |
| | | const ext = String(item.name || "") |
| | | .split(".") |
| | | .pop() |
| | | .toLowerCase(); |
| | | if (["pdf", "jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(ext)) { |
| | | const list = (this.fileList || []).map(f => ({ |
| | | name: f.name, |
| | | url: f.url |
| | | })); |
| | | const index = list.findIndex(f => f.url === item.url); |
| | | this.$previewFile(list, index > -1 ? index : 0); |
| | | return; |
| | | } |
| | | const url = process.env.VUE_APP_BASE_API + item.url; |
| | | var a = document.createElement("a"); |
| | | var event = new MouseEvent("click"); |