| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <!-- <el-col :span="4"> |
| | | <div style="margin-left: 10px;"> |
| | | <dict-tag :options="dict.type.sys_DonationStatus" :value="form.invoicecount" /> |
| | | </div> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-row style="margin-top: 10px"> |
| | | <el-col :span="5"> |
| | |
| | | <el-row> |
| | | <el-table :data="rbDetails" ref="table" border max-height="800" highlight-current-row |
| | | :summary-method="getSummaries" show-summary> |
| | | <el-table-column prop="orderno" slot="" label="序号" align="center" fixed width="88"> |
| | | <el-table-column prop="orderno" slot="" label="序号" align="center" fixed width="60"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.orderno" placeholder="序号" /> |
| | | </template> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="130"> |
| | | <el-table-column prop="persontype" slot="" label="人员类别" align="center" fixed width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.persontype" value-key="value" placeholder="人员类别" |
| | | @change="getPersons(scope.row)"> |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="days" label="天数" width="100" align="center"> |
| | | <el-table-column prop="days" label="天数" width="70" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.days" @blur="getallowance(scope.row)" placeholder="天数" /> |
| | | </template> |
| | |
| | | <el-input v-model="scope.row.total" placeholder="合计" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" align="center" width="120"> |
| | | <el-table-column fixed="right" label="操作" align="center" width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="mini" @click="addDetailRow(scope.$index)" |
| | | v-if="operationType == 'edit'">新增</el-button> |
| | |
| | | <el-row style="margin-top: 5px"> |
| | | <el-table :data="rbPayees" border max-height="400" highlight-current-row :summary-method="getSummaries" |
| | | show-summary> |
| | | <el-table-column prop="orderno" slot="" label="序号" align="center" fixed width="65"> |
| | | <el-table-column prop="orderno" slot="" label="序号" align="center" fixed width="60"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.orderno" placeholder="序号" /> |
| | | </template> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="persontype" slot="" label="收款人类别" align="center" fixed width="150"> |
| | | <el-table-column prop="persontype" slot="" label="收款人类别" align="center" fixed width="120"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.persontype" value-key="value" placeholder="收款人类别" |
| | | @change="getPersons(scope.row)"> |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="personname" slot="" label="收款人" align="center" fixed width="200"> |
| | | <el-table-column prop="personname" slot="" label="收款人" align="center" fixed width="240"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.personname" clearable filterable allow-create ref="getReportname" |
| | | default-first-option placeholder="请选择" @change="getAccountinfo2(scope.row, scope.row.persontype)"> |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="bankname" slot="" label="收款银行" align="center" fixed width="250"> |
| | | <el-table-column prop="bankname" slot="" label="收款银行" align="center" fixed width="300"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.bankname" placeholder="收款银行" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="bankcardno" slot="" label="银行账号" align="center" fixed width="200"> |
| | | <el-table-column prop="bankcardno" slot="" label="银行账号" align="center" fixed width="220"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.bankcardno" placeholder="银行账号" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="amount" slot="" label="打款金额" align="center" fixed width="130"> |
| | | <el-table-column prop="amount" slot="" label="打款金额" align="right" header-align="right" fixed width="130" class-name="money-column" :formatter="formatMoney"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.amount" placeholder="打款金额" /> |
| | | </template> |
| | |
| | | </el-date-picker> |
| | | </template> |
| | | </el-table-column>--> |
| | | <el-table-column label="操作" align="center" width="100" v-if="operationType == 'edit'"> |
| | | <el-table-column label="操作" align="center" width="150" v-if="operationType == 'edit'"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="mini" @click="addPayeeRow(scope.$index)">新增</el-button> |
| | | <el-button @click.native.prevent=" |
| | |
| | | deptmentname: [ |
| | | { required: true, message: "请输入所属业务组", trigger: "blur" } |
| | | ], |
| | | managername: [ |
| | | { required: true, message: "请正确输入组长", trigger: "blur" } |
| | | ], |
| | | costtype: [ |
| | | { required: true, message: "请输入报销类别", trigger: "blur" } |
| | | ] |
| | |
| | | mounted() { |
| | | window.addEventListener("beforeunload", e => this.beforeunloadHandler(e)); |
| | | this.$nextTick(() => { |
| | | const viewer = this.$refs.imagePreview.$el.querySelector( |
| | | ".el-image-viewer" |
| | | ); |
| | | const viewer = this.getImageViewer(); |
| | | if (viewer) { |
| | | viewer.addEventListener("click", this.handlePreviewClick); |
| | | } |
| | |
| | | }, //生命周期 - 销毁完成 |
| | | beforeDestroy() { |
| | | // 移除事件监听 |
| | | const viewer = this.$refs.imagePreview.$el.querySelector( |
| | | ".el-image-viewer" |
| | | ); |
| | | const viewer = this.getImageViewer(); |
| | | if (viewer) { |
| | | viewer.removeEventListener("click", this.handlePreviewClick); |
| | | } |
| | |
| | | return "关闭提示"; |
| | | } |
| | | }, |
| | | // 安全获取图片预览 DOM,避免组件未渲染时 $refs.imagePreview 为空 |
| | | getImageViewer() { |
| | | const ref = this.$refs.imagePreview; |
| | | return ref && ref.$el |
| | | ? ref.$el.querySelector(".el-image-viewer") |
| | | : null; |
| | | }, |
| | | handlePreviewClick(e) { |
| | | const viewer = this.$refs.imagePreview.$el.querySelector( |
| | | ".el-image-viewer" |
| | | ); |
| | | const viewer = this.getImageViewer(); |
| | | if (!viewer) return; |
| | | |
| | | // 判断是否点击了“下一张”按钮(右侧箭头) |
| | |
| | | }, |
| | | // 获取当前预览的图片索引 |
| | | getCurrentPreviewIndex() { |
| | | const viewer = this.$refs.imagePreview.$el.querySelector( |
| | | ".el-image-viewer" |
| | | ); |
| | | const viewer = this.getImageViewer(); |
| | | if (viewer) { |
| | | const img = viewer.querySelector(".el-image-viewer__img"); |
| | | if (img) { |
| | |
| | | */ |
| | | checkUploadFileName(file) { |
| | | const raw = file && file.raw ? file.raw.name : file && file.name; |
| | | const r = checkFileName(raw); |
| | | // 2026-11-17:差旅费报销属于"其他类型",附件名必须含中文 |
| | | const r = checkFileName(raw, { requireChinese: true }); |
| | | if (!r.ok) { |
| | | this.$modal.msgError(r.msg); |
| | | return false; |
| | |
| | | if (this.form && this.form.id) { |
| | | return true; |
| | | } |
| | | const c = checkDetails(this.rbDetails); |
| | | // 2026-11-17:差旅费报销属于"其他类型",附件名必须含中文 |
| | | const c = checkDetails(this.rbDetails, { requireChinese: true }); |
| | | if (!c.ok) { |
| | | this.$modal.msgError(c.msg); |
| | | return false; |