| | |
| | | <div class="actions"> |
| | | <div></div> |
| | | <div> |
| | | <el-button type="primary" icon="Plus" @click="openForm('add')"> |
| | | <el-button type="primary" @click="openForm('add')"> |
| | | 新增回款 |
| | | </el-button> |
| | | <el-button icon="Download" @click="handleOut"> 导出 </el-button> |
| | |
| | | type="index" |
| | | width="60" |
| | | /> |
| | | <el-table-column label="回款日期" prop="receiptPaymentDate" /> |
| | | <el-table-column label="回款日期" prop="receiptPaymentDate" width="130"/> |
| | | <el-table-column label="回款金额" prop="receiptPaymentAmount"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" |
| | |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="登记人" prop="registrant" /> |
| | | <el-table-column label="登记日期" prop="createTime" /> |
| | | <el-table-column label="操作" width="150"> |
| | | <el-table-column label="登记人" prop="registrant" width="90"/> |
| | | <el-table-column label="登记日期" prop="createTime" width="130"/> |
| | | <el-table-column label="操作" width="150" align="center"> |
| | | <template #default="scope"> |
| | | <el-button |
| | | link |
| | |
| | | getList(); |
| | | }; |
| | | const getList = () => { |
| | | expandedRowKeys.value = []; |
| | | tableLoading.value = true; |
| | | bindInvoiceNoRegPage({ ...searchForm, ...page }) |
| | | .then((res) => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records; |
| | | total.value = res.data.total; |
| | | if (expandedRowKeys.value.length > 0) { |
| | | const arr = [] |
| | | const index = tableData.value.findIndex(item => item.id === expandedRowKeys.value[0]); |
| | | if (index > -1) { |
| | | arr.push(tableData.value[index]); |
| | | expandChange(tableData.value[index], arr) |
| | | } |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | tableLoading.value = false; |
| | |
| | | proxy.$modal.msgError("请选择一条数据"); |
| | | return; |
| | | } |
| | | // |
| | | console.log("(selectedRows.value", selectedRows.value); |
| | | if (selectedRows.value[0].noReceiptAmount === 0) { |
| | | proxy.$modal.msgError("待回款金额为0元"); |
| | | if (selectedRows.value[0].noReceiptAmount == 0) { |
| | | proxy.$modal.warning("无需再回款"); |
| | | return; |
| | | } |
| | | invoiceInfo({ id: selectedRows.value[0].id }).then((res) => { |
| | |
| | | }; |
| | | receiptPaymentSaveOrUpdate(updateData).then((res) => { |
| | | row.editType = !row.editType; |
| | | getList(); |
| | | proxy.$modal.msgSuccess("提交成功"); |
| | | }); |
| | | }; |
| | | |