| | |
| | | <i class="el-icon-warning-outline" /> |
| | | 当前为查看模式,不能上传附件 |
| | | </div> |
| | | <el-table ref="annexTable" :data="fileListto" :row-class-name="annexRowClass" @row-click="downFile" style="width: 100%" height="400"> |
| | | <el-table ref="annexTable" :data="fileListto" :row-class-name="annexRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400"> |
| | | <el-table-column prop="name" :show-overflow-tooltip="true" label="名称"> |
| | | <template slot-scope="scope"> |
| | | <i style="color:#409EFF" class=" el-icon-s-order" />{{ |
| | |
| | | <i class="el-icon-warning-outline" /> |
| | | 当前为查看模式,不能上传附件 |
| | | </div> |
| | | <el-table ref="annexTable2" :data="fileListto" :row-class-name="annexRowClass" @row-click="downFile" style="width: 100%" height="400"> |
| | | <el-table ref="annexTable2" :data="fileListto" :row-class-name="annexRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400"> |
| | | <el-table-column prop="name" :show-overflow-tooltip="true" label="名称"> |
| | | <template slot-scope="scope"> |
| | | <i style="color:#409EFF" class=" el-icon-s-order" /> |
| | |
| | | <i class="el-icon-warning-outline" /> |
| | | 当前为查看模式,不能上传附件 |
| | | </div> |
| | | <el-table ref="invoiceTable" :data="invoicefileListto" :row-class-name="invoiceRowClass" @row-click="downFile" style="width: 100%" height="400"> |
| | | <el-table ref="invoiceTable" :data="invoicefileListto" :row-class-name="invoiceRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400"> |
| | | <el-table-column prop="name" :show-overflow-tooltip="true" label="名称"> |
| | | <template slot-scope="scope"> |
| | | <i style="color:#409EFF" class=" el-icon-s-order" /> |
| | |
| | | flashInvoiceName: "", |
| | | invoicepdfimg: "", |
| | | invoicepdfimgsrcList: [], |
| | | previewToken: 0, |
| | | invoDatatop: [], |
| | | activeName: "invoice", //文件类型:默认发票文件 |
| | | //上传附件路径 |
| | |
| | | } else { |
| | | this.rbDetails.splice(rowIndex + 1, 0, rowData); |
| | | } |
| | | // 2026-11-30:新增行后把当前操作行切到新行,并清空上一次的预览态 |
| | | this.atpresent = this.rbDetails.indexOf(rowData); |
| | | this.resetPreviewState(); |
| | | this.Reminderquantity++; |
| | | this.totalquantity++; |
| | | for (let i = 0; i < this.rbDetails.length; i++) { |
| | |
| | | }, |
| | | |
| | | // 点击票据 |
| | | /** |
| | | * 2026-11-30:清空票据弹窗的预览状态。 |
| | | * 原实现漏清 embeddedFile / invoiceEmbeddedFile,导致再次打开弹窗时 |
| | | * 预览组件仍显示上一次选择的发票图片。 |
| | | */ |
| | | resetPreviewState() { |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = ""; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.embeddedFile = null; |
| | | this.invoiceEmbeddedFile = null; |
| | | this.pdftitle = ""; |
| | | // 递增令牌:让上一行尚未返回的 fetch 结果失效,避免异步回写覆盖 |
| | | this.previewToken = (this.previewToken || 0) + 1; |
| | | }, |
| | | |
| | | Filepopup(index, rows, row) { |
| | | const config = { |
| | | headers: { Authorization: "Bearer " + this.ICDtoken } |
| | | }; |
| | | |
| | | this.tableDatatop = []; |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = []; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.resetPreviewState(); |
| | | const previewToken = ++this.previewToken; |
| | | this.tableDatatop.push(row); |
| | | this.atpresent = index; |
| | | this.pdfVisible = true; |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(fileListto => { |
| | | // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | |
| | | this.fileListto = fileListto.filter(item => item !== null); |
| | | this.pdfimg = |
| | | this.fileListto.length > 0 ? this.fileListto[0].previewUrl : ""; |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(invoicefileListto => { |
| | | // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | |
| | | this.invoicefileListto = invoicefileListto.filter( |
| | | item => item !== null |
| | | ); |
| | |
| | | }, |
| | | |
| | | // 费用报销:附件统一使用独立 FilePreview(录入、审批、详情一致) |
| | | /** |
| | | * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。 |
| | | * 双击才打开独立的预览页面(downFile → $previewFile)。 |
| | | */ |
| | | previewInline(row) { |
| | | if (!row) { |
| | | return; |
| | | } |
| | | const url = row.previewUrl || row.url; |
| | | if (!url) { |
| | | return; |
| | | } |
| | | const file = { |
| | | name: row.name || "", |
| | | url, |
| | | type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image" |
| | | }; |
| | | if (this.activeName == "common") { |
| | | this.embeddedFile = file; |
| | | } else { |
| | | this.invoiceEmbeddedFile = file; |
| | | } |
| | | }, |
| | | |
| | | downFile(item) { |
| | | const source = |
| | | this.activeName == "common" ? this.fileListto : this.invoicefileListto; |
| | |
| | | </el-button> |
| | | <el-button |
| | | @click.native.prevent=" |
| | | Filepopup(scope.$index, rbDetails, scope.row) |
| | | /** |
| | | * 2026-11-30:清空票据弹窗预览状态(含 embeddedFile / invoiceEmbeddedFile), |
| | | * 避免再次打开弹窗时仍显示上一次选择的票据图片。 |
| | | */ |
| | | resetPreviewState() { |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = ""; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.embeddedFile = null; |
| | | this.invoiceEmbeddedFile = null; |
| | | this.pdftitle = ""; |
| | | this.previewToken = (this.previewToken || 0) + 1; |
| | | }, |
| | | |
| | | Filepopup(scope.$index, rbDetails, scope.row) |
| | | " |
| | | type="text" |
| | | size="small" |
| | |
| | | </el-upload> |
| | | <el-table |
| | | :data="fileListto" |
| | | @row-click="downFile" |
| | | @row-click="previewInline" @row-dblclick="downFile" |
| | | style="width: 100%" |
| | | height="400" |
| | | > |
| | |
| | | </el-upload> |
| | | <el-table |
| | | :data="invoicefileListto" |
| | | @row-click="downFile" |
| | | @row-click="previewInline" @row-dblclick="downFile" |
| | | style="width: 100%" |
| | | height="400" |
| | | > |
| | |
| | | invoicefileListto: [], |
| | | invoicepdfimg: "", |
| | | invoicepdfimgsrcList: [], |
| | | previewToken: 0, |
| | | activeName: 2, //文件类型:默认发票文件 |
| | | //上传附件路径 |
| | | uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", |
| | |
| | | this.rbDetails.splice(rowIndex + 1, 0, rowData); |
| | | console.log(14); |
| | | } |
| | | // 2026-11-30:新增行后把当前操作行切到新行,并清空上一次的预览态 |
| | | this.atpresent = this.rbDetails.indexOf(rowData); |
| | | this.resetPreviewState(); |
| | | this.Reminderquantity++; |
| | | this.totalquantity++; |
| | | for (let i = 0; i < this.rbDetails.length; i++) { |
| | |
| | | }; |
| | | |
| | | this.tableDatatop = []; |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = []; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.resetPreviewState(); |
| | | const previewToken = ++this.previewToken; |
| | | this.tableDatatop.push(row); |
| | | this.atpresent = index; |
| | | this.pdfVisible = true; |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(fileListto => { |
| | | // 2026-11-30:切换行后丢弃过期结果 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | this.fileListto = fileListto.filter(item => item !== null); |
| | | this.pdfimg = this.fileListto[0].url; |
| | | console.log(this.pdfimg, "pdfimg"); |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(invoicefileListto => { |
| | | // 2026-11-30:切换行后丢弃过期结果 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | this.invoicefileListto = invoicefileListto.filter( |
| | | item => item !== null |
| | | ); |
| | |
| | | }, |
| | | |
| | | // 点击已上传文件:在附件弹窗右侧内嵌预览 |
| | | /** |
| | | * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。 |
| | | * 双击才打开独立的预览页面(downFile → $previewFile)。 |
| | | */ |
| | | previewInline(row) { |
| | | if (!row) { |
| | | return; |
| | | } |
| | | const url = row.previewUrl || row.url; |
| | | if (!url) { |
| | | return; |
| | | } |
| | | const file = { |
| | | name: row.name || "", |
| | | url, |
| | | type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image" |
| | | }; |
| | | if (this.activeName == 2) { |
| | | this.invoiceEmbeddedFile = file; |
| | | } else { |
| | | this.embeddedFile = file; |
| | | } |
| | | }, |
| | | |
| | | downFile(item) { |
| | | if (this.operationType == "detail") { |
| | | const source = |
| | |
| | | prop="donorname" |
| | | align="center" |
| | | fixed |
| | | label="案例捐献者" |
| | | label="捐献案例" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | prop="deptmentname" |
| | | align="center" |
| | | label="所属组别" |
| | | width="150" |
| | | width="200" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | |
| | | prop="applyTime" |
| | | align="center" |
| | | label="申请日期" |
| | | width="150" |
| | | width="200" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-date-picker |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="remark" |
| | | width="280" |
| | | align="center" |
| | | label="备注" |
| | | > |
| | |
| | | show-overflow-tooltip |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | prop="pretaxcost" |
| | | label="税前金额" |
| | | show-overflow-tooltip |
| | |
| | | label="劳务税后" |
| | | show-overflow-tooltip |
| | | align="right" header-align="right" class-name="money-column" :formatter="formatMoney"> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | prop="remark" |
| | | label="备注" |
| | |
| | | </el-upload> |
| | | <el-table |
| | | :data="fileListto" |
| | | @row-click="downFile" |
| | | @row-click="previewInline" @row-dblclick="downFile" |
| | | style="width: 100%" |
| | | height="400" |
| | | > |
| | |
| | | pdfVisible: false, |
| | | maxTaxId: "", |
| | | pdfimgsrcList: [], |
| | | // 2026-11-30:票据弹窗预览令牌(防止切换行时旧请求回写) |
| | | previewToken: 0, |
| | | Savereminder: false, //提醒保存弹框 |
| | | Reminderquantity: 0, //提醒数量 |
| | | totalquantity: 0, //总数量 |
| | |
| | | }, |
| | | |
| | | // 点击票据 |
| | | /** |
| | | * 2026-11-30:清空票据弹窗预览状态(含 embeddedFile / invoiceEmbeddedFile), |
| | | * 避免再次打开弹窗时仍显示上一次选择的票据图片。 |
| | | */ |
| | | resetPreviewState() { |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = ""; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.embeddedFile = null; |
| | | this.invoiceEmbeddedFile = null; |
| | | this.pdftitle = ""; |
| | | this.previewToken = (this.previewToken || 0) + 1; |
| | | }, |
| | | |
| | | Filepopup(index, row) { |
| | | const config = { |
| | | headers: { Authorization: "Bearer " + this.ICDtoken } |
| | | }; |
| | | |
| | | this.tableDatatop = []; |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = []; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.resetPreviewState(); |
| | | const previewToken = ++this.previewToken; |
| | | this.tableDatatop.push(row); |
| | | this.atpresent = index; |
| | | this.pdfVisible = true; |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(fileListto => { |
| | | // 2026-11-30:切换行后丢弃过期结果 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | this.fileListto = fileListto.filter(item => item !== null); |
| | | this.pdfimg = this.fileListto[0].url; |
| | | console.log(this.pdfimg, "pdfimg"); |
| | |
| | | }, |
| | | |
| | | // 点击已上传文件:在附件弹窗右侧内嵌预览 |
| | | /** |
| | | * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。 |
| | | * 双击才打开独立的预览页面(downFile → $previewFile)。 |
| | | */ |
| | | previewInline(row) { |
| | | if (!row) { |
| | | return; |
| | | } |
| | | const url = row.previewUrl || row.url; |
| | | if (!url) { |
| | | return; |
| | | } |
| | | const file = { |
| | | name: row.name || "", |
| | | url, |
| | | type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image" |
| | | }; |
| | | this.embeddedFile = file; |
| | | }, |
| | | |
| | | downFile(item) { |
| | | if (this.operationType == "detail") { |
| | | const list = (this.fileListto || []).map(f => ({ |
| | |
| | | type="primary">点击上传</el-button></em> |
| | | </div> |
| | | </el-upload> |
| | | <el-table :data="fileListto" @row-click="downFile" style="width: 100%" height="400"> |
| | | <el-table :data="fileListto" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400"> |
| | | <el-table-column prop="name" :show-overflow-tooltip="true" label="名称"> |
| | | <template slot-scope="scope"> |
| | | <i style="color:#409EFF" class=" el-icon-s-order" />{{ |
| | |
| | | type="primary">点击上传</el-button></em> |
| | | </div> |
| | | </el-upload> |
| | | <el-table :data="invoicefileListto" @row-click="downFile" style="width: 100%" height="400"> |
| | | <el-table :data="invoicefileListto" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400"> |
| | | <el-table-column prop="name" :show-overflow-tooltip="true" label="文件名称"> |
| | | <template slot-scope="scope"> |
| | | <i style="color:#409EFF" class=" el-icon-s-order" />{{ |
| | |
| | | invoicefileListto: [], |
| | | invoicepdfimg: "", |
| | | invoicepdfimgsrcList: [], |
| | | previewToken: 0, |
| | | currentIndex: 0, // 初始索引 |
| | | invoicecurrentIndex: 0, // 初始索引 |
| | | initialIndex: 0, // 初始索引 |
| | |
| | | } |
| | | }, |
| | | // 点击票据 |
| | | /** |
| | | * 2026-11-30:清空票据弹窗的预览状态。 |
| | | * 原实现漏清 embeddedFile / invoiceEmbeddedFile,导致再次打开弹窗时 |
| | | * 预览组件仍显示上一次选择的发票图片。 |
| | | */ |
| | | resetPreviewState() { |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = ""; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.embeddedFile = null; |
| | | this.invoiceEmbeddedFile = null; |
| | | this.pdftitle = ""; |
| | | // 递增令牌:让上一行尚未返回的 fetch 结果失效,避免异步回写覆盖 |
| | | this.previewToken = (this.previewToken || 0) + 1; |
| | | }, |
| | | |
| | | Filepopup(index, rows, row) { |
| | | const config = { |
| | | headers: { Authorization: "Bearer " + this.ICDtoken } |
| | | }; |
| | | |
| | | this.tableDatatop = []; |
| | | this.fileListto = []; |
| | | this.invoicefileListto = []; |
| | | this.pdfimg = ""; |
| | | this.invoicepdfimg = []; |
| | | this.pdfimgsrcList = []; |
| | | this.invoicepdfimgsrcList = []; |
| | | this.resetPreviewState(); |
| | | const previewToken = ++this.previewToken; |
| | | this.tableDatatop.push(row); |
| | | this.atpresent = index; |
| | | this.pdfVisible = true; |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(fileListto => { |
| | | // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | |
| | | this.fileListto = fileListto.filter(item => item !== null); |
| | | this.pdfimg = this.fileListto[0].url; |
| | | console.log(this.pdfimg, "pdfimg"); |
| | |
| | | ); |
| | | |
| | | Promise.all(fetchPromises).then(invoicefileListto => { |
| | | // 2026-11-30:切换行后旧请求返回,丢弃过期结果,避免覆盖当前行预览 |
| | | if (previewToken !== this.previewToken) { |
| | | return; |
| | | } |
| | | |
| | | this.invoicefileListto = invoicefileListto.filter( |
| | | item => item !== null |
| | | ); |
| | |
| | | }, |
| | | |
| | | // 差旅报销:附件统一使用独立 FilePreview(录入、审批、详情一致) |
| | | /** |
| | | * 2026-11-30:单击列表项 → 在本页预览(右侧 preview-pane)。 |
| | | * 双击才打开独立的预览页面(downFile → $previewFile)。 |
| | | */ |
| | | previewInline(row) { |
| | | if (!row) { |
| | | return; |
| | | } |
| | | const url = row.previewUrl || row.url; |
| | | if (!url) { |
| | | return; |
| | | } |
| | | const file = { |
| | | name: row.name || "", |
| | | url, |
| | | type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image" |
| | | }; |
| | | if (this.activeName == 2) { |
| | | this.invoiceEmbeddedFile = file; |
| | | } else { |
| | | this.embeddedFile = file; |
| | | } |
| | | }, |
| | | |
| | | downFile(item) { |
| | | const source = |
| | | this.activeName == 1 ? this.fileListto : this.invoicefileListto; |
| | |
| | | } else { |
| | | this.rbDetails.splice(rowIndex + 1, 0, rowData); |
| | | } |
| | | // 2026-11-30:新增行后把当前操作行切到新行,并清空上一次的预览态 |
| | | this.atpresent = this.rbDetails.indexOf(rowData); |
| | | this.resetPreviewState(); |
| | | this.Reminderquantity++; |
| | | this.totalquantity++; |
| | | for (let i = 0; i < this.rbDetails.length; i++) { |
| | |
| | | > |
| | | <el-table-column type="index" label="序号" width="55" align="center" /> |
| | | <el-table-column |
| | | prop="donatetime" |
| | | prop="donationtime" |
| | | label="捐献日期" |
| | | width="120" |
| | | align="center" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span> |
| | | <span>{{ parseTime(scope.row.donationtime, "{y}-{m}-{d}") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="回款日期" width="120" align="center"> |
| | | <template slot-scope="scope"> |
| | | |
| | | <span>{{ parseTime(scope.row.amounttime, "{y}-{m}-{d}") }}</span> |
| | | <el-table-column label="回款日期" width="120" align="center" prop="receiveTime"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.receiveTime, "{y}-{m}-{d}") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="受体" width="120" align="center" /> |
| | | |
| | | <el-table-column prop="name" label="受体" width="120" align="center" /> |
| | | <el-table-column |
| | | prop="organchargedesc" |
| | | label="备注" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="收款日期" prop="organtime"> |
| | | <el-form-item label="回款日期" prop="receiveTime"> |
| | | <el-date-picker |
| | | v-model="editForm.organtime" |
| | | v-model="editForm.receiveTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择收款日期" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm" |
| | | placeholder="请选择回款日期" |
| | | style="width: 100%" |
| | | /> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="收款日期" prop="organtime"> |
| | | <el-form-item label="回款日期" prop="amounttime"> |
| | | <el-date-picker |
| | | v-model="addForm.organtime" |
| | | v-model="addForm.amounttime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择收款日期" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm" |
| | | placeholder="请选择回款日期" |
| | | style="width: 100%" |
| | | /> |
| | | </el-form-item> |
| | |
| | | organState: null, |
| | | organcharge: null, |
| | | amount: null, |
| | | amounttime: null, |
| | | organtime: null, |
| | | organchargedesc: null |
| | | }; |
| | |
| | | caseno: null, |
| | | name: null, |
| | | organcharge: null, |
| | | amount: null, |
| | | amount: null, |
| | | amounttime: null, |
| | | organState: null, |
| | | organchargedesc: null, |
| | | receiveTime: null, |
| | | organtime: null |
| | | }, |
| | | // 新增弹窗 |
| | |
| | | infoid: |
| | | row.infoid === null || row.infoid === undefined ? null : row.infoid, |
| | | donorname: row.donorname || null, |
| | | donationtime: row.donationtime || null, |
| | | hospitalno: |
| | | row.hospitalno === null || row.hospitalno === undefined |
| | | ? null |
| | | : String(row.hospitalno), |
| | | hospitalname: row.hospitalname || null, |
| | | organname: row.organname || null, |
| | | organno: row.organno || null, |
| | | payOrganName: row.payOrganName || null, |
| | | caseno: row.caseno || null, |
| | | name: row.name || null, |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | /** |
| | | * 2026-12-03:把接口返回的日期值统一规整为 yyyy-MM-dd HH:mm。 |
| | | * 后端全局 Jackson 配置把 Date 出参统一成 "yyyy-MM-dd HH:mm"(JacksonDateConfig), |
| | | * 而历史接口/其他模块也可能返回 "yyyy-MM-dd"、ISO、时间戳, |
| | | * 统一在这里转一次,保证 date-picker(value-format="yyyy-MM-dd HH:mm")能正确回显。 |
| | | */ |
| | | toDateTimeStr(value) { |
| | | if (!value) { |
| | | return null; |
| | | } |
| | | const m = this.$moment(value); |
| | | return m.isValid() ? m.format("YYYY-MM-DD HH:mm") : null; |
| | | }, |
| | | /** 打开修改弹窗(回款医院、付款器官名称、金额、利用状态、备注) */ |
| | | handleEdit(row) { |
| | | this.editForm = { |
| | |
| | | ? null |
| | | : String(row.organState), |
| | | organchargedesc: row.organchargedesc || "", |
| | | organtime: row.organtime |
| | | organtime: row.organtime, |
| | | receiveTime: this.toDateTimeStr(row.receiveTime) |
| | | }; |
| | | this.editOpen = true; |
| | | }, |