| | |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | prop="amount" |
| | | align="center" |
| | | align="right" |
| | | header-align="right" |
| | | class-name="money-column" |
| | | label="税前金额" |
| | | width="120" |
| | | > |
| | | :formatter="formatMoney"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.amount" |
| | | class="money-input" |
| | | placeholder="税前金额" |
| | | @blur="chargeSum" |
| | | @blur="normalizeMoney(scope.row, 'amount'); chargeSum()" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="taxamount" |
| | | align="center" |
| | | align="right" |
| | | header-align="right" |
| | | class-name="money-column" |
| | | label="劳务个税" |
| | | width="120" |
| | | > |
| | | :formatter="formatMoney"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | @blur="chargeSum" |
| | | @blur="normalizeMoney(scope.row, 'taxamount'); chargeSum()" |
| | | v-model="scope.row.taxamount" |
| | | placeholder="劳务个税" |
| | | class="money-input" |
| | | placeholder="个税" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="taxedamount" |
| | | align="center" |
| | | label="劳务税后" |
| | | align="right" |
| | | header-align="right" |
| | | class-name="money-column" |
| | | label="税后金额" |
| | | width="120" |
| | | > |
| | | :formatter="formatMoney"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.taxedamount" |
| | | placeholder="劳务税后" |
| | | @blur="queenchargeSum" |
| | | class="money-input" |
| | | placeholder="税后金额" |
| | | @blur="normalizeMoney(scope.row, 'taxedamount'); queenchargeSum()" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | this.showSelectionDialog = false; |
| | | }, |
| | | handleUploadError() {}, |
| | | /** 2026-11-23:按文件名从列表中精确删除一项,避免用预览列表(blob)整表覆盖附件字段 */ |
| | | spliceByName(list, name) { |
| | | if (!list || !name) { |
| | | return; |
| | | } |
| | | const idx = list.findIndex(item => item && item.name === name); |
| | | if (idx > -1) { |
| | | list.splice(idx, 1); |
| | | } |
| | | }, |
| | | remove(file, fileList) { |
| | | const rbDetails = [...this.rbDetails]; |
| | | if (this.activeName == 1) { |
| | | this.fileListto.splice(this.fileListto.indexOf(file), 1); |
| | | rbDetails[this.atpresent].annexfilesList = this.fileListto; |
| | | this.spliceByName(this.fileListto, file && file.name); |
| | | this.spliceByName( |
| | | rbDetails[this.atpresent].annexfilesList, |
| | | file && file.name |
| | | ); |
| | | } else { |
| | | this.invoicefileListto.splice(this.invoicefileListto.indexOf(file), 1); |
| | | rbDetails[this.atpresent].invoicefilesList = this.invoicefileListto; |
| | | this.spliceByName(this.invoicefileListto, file && file.name); |
| | | this.spliceByName( |
| | | rbDetails[this.atpresent].invoicefilesList, |
| | | file && file.name |
| | | ); |
| | | } |
| | | }, |
| | | // 获取请求头 |
| | |
| | | * 规则与后端 AttachmentNameValidator 同口径:不强制含中文 / 去掉扩展名后主干 ≤20 字 / |
| | | * 不含空格及 / \ : * ? " < > | # % 等特殊字符。 |
| | | */ |
| | | /** |
| | | * 2026-11-17:附件名是否必须含中文 |
| | | * 专家劳务费(1)、伦理专家费(2) 不要求;绩效及其他类型必须含中文 |
| | | */ |
| | | requireChineseName() { |
| | | return !(this.businessType == "1" || this.businessType == "2"); |
| | | }, |
| | | checkUploadFileName(file) { |
| | | const raw = file && file.raw ? file.raw.name : file && file.name; |
| | | const r = checkFileName(raw); |
| | | const r = checkFileName(raw, { requireChinese: this.requireChineseName() }); |
| | | if (!r.ok) { |
| | | this.$modal.msgError(r.msg); |
| | | return false; |
| | |
| | | if (this.form && this.form.id) { |
| | | return true; |
| | | } |
| | | const c = checkDetails(this.rbDetails); |
| | | const c = checkDetails(this.rbDetails, { |
| | | requireChinese: this.requireChineseName() |
| | | }); |
| | | if (!c.ok) { |
| | | this.$modal.msgError(c.msg); |
| | | return false; |