| | |
| | | <el-button v-else link type="primary" @click="handleDownload(scope.row)">上传</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" min-width="60" align="center"> |
| | | <el-table-column fixed="right" label="操作" width="150" align="center" > |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="small" @click="openForm(scope.row);">编辑</el-button> |
| | | <el-button link type="primary" size="small" @click="delInvoiceLedger(scope.row);">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | invoiceLedgerSaveOrUpdate, |
| | | invoiceLedgerProductInfo, |
| | | commitFile, |
| | | registrationProductPage |
| | | registrationProductPage, delInvoiceLedgerByRegProductId |
| | | } from "../../../api/salesManagement/invoiceLedger.js"; |
| | | import useUserStore from "@/store/modules/user.js"; |
| | | const { proxy } = getCurrentInstance() |
| | |
| | | currentId.value = '' |
| | | fileList.value = [] |
| | | }) |
| | | } |
| | | // 删除开票台账 |
| | | const delInvoiceLedger = (row) => { |
| | | ElMessageBox.confirm( |
| | | '该发票台账将被删除,是否确认删除', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | } |
| | | ).then(() => { |
| | | delInvoiceLedgerByRegProductId(row.id).then(res => { |
| | | |
| | | }) |
| | | }).catch(() => { |
| | | proxy.$modal.msg("已取消") |
| | | }) |
| | | } |
| | | |
| | | // 获取当前日期并格式化为 YYYY-MM-DD |