| | |
| | | </template> |
| | | <template #operation="{ row }"> |
| | | <el-button type="primary" link @click="view(row)">查看</el-button> |
| | | <el-button type="primary" link @click="openFileDialog(row)">附件</el-button> |
| | | <el-button type="warning" link @click="handleCancel(row)" v-if="isNormalStatus(row.status)">作废</el-button> |
| | | <el-button type="danger" link @click="handleDelete(row)">删除</el-button> |
| | | </template> |
| | |
| | | <el-button @click="inboundSelectVisible = false">取消</el-button> |
| | | </template> |
| | | </el-dialog> |
| | | |
| | | <FileList |
| | | v-if="fileDialogVisible" |
| | | v-model:visible="fileDialogVisible" |
| | | record-type="account_purchase_invoice" |
| | | :record-id="currentRecordId" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, reactive, computed, onMounted, nextTick, getCurrentInstance } from "vue"; |
| | | import { ref, reactive, computed, onMounted, nextTick, getCurrentInstance, defineAsyncComponent } from "vue"; |
| | | import { ElMessage, ElMessageBox } from "element-plus"; |
| | | import FormDialog from "@/components/Dialog/FormDialog.vue"; |
| | | import { getOptions } from "@/api/procurementManagement/procurementLedger.js"; |
| | |
| | | cancelAccountPurchaseInvoice, |
| | | deleteAccountPurchaseInvoice, |
| | | } from "@/api/financialManagement/accountPurchaseInvoice.js"; |
| | | |
| | | const FileList = defineAsyncComponent(() => import("@/components/Dialog/FileList.vue")); |
| | | |
| | | defineOptions({ |
| | | name: "进项发票", |
| | |
| | | { label: "价税合计", prop: "totalAmount", dataType: "slot", slot: "totalAmount" }, |
| | | { label: "发票类型", prop: "invoiceType", width: "130" }, |
| | | { label: "状态", prop: "status", dataType: "slot", slot: "status", width: "90", align: "center" }, |
| | | { label: "操作", prop: "operation", dataType: "slot", slot: "operation", width: "200", fixed: "right" }, |
| | | { label: "操作", prop: "operation", dataType: "slot", slot: "operation", width: "240", fixed: "right" }, |
| | | ]; |
| | | |
| | | const dataList = ref([]); |
| | |
| | | dialogVisible.value = true; |
| | | }; |
| | | |
| | | const fileDialogVisible = ref(false); |
| | | const currentRecordId = ref(0); |
| | | |
| | | const openFileDialog = (row) => { |
| | | currentRecordId.value = row.id; |
| | | fileDialogVisible.value = true; |
| | | }; |
| | | |
| | | const view = (row) => { |
| | | isView.value = true; |
| | | dialogTitle.value = "查看发票"; |