| | |
| | | :option="YSGenerateTableOption" ref="itemsTableRef" |
| | | :data="form.items" |
| | | > |
| | | <template #menu="{row}"> |
| | | <el-link size="small" type="primary" |
| | | @click="handleCancel(row)" class="link-btn" :underline="false" |
| | | icon="el-icon-close">取消关联 |
| | | </el-link> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | |
| | |
| | | exportTmsArBill, |
| | | getTmsArBill, |
| | | listTmsArBill, |
| | | updateTmsArBill |
| | | updateTmsArBill,cancelArBill |
| | | } from "@/api/tms/tmsArBill"; |
| | | import useCurrentInstance from "@/utils/useCurrentInstance"; |
| | | import {computed, reactive, ref, toRefs} from "vue"; |
| | |
| | | import {usePagePlus} from "@/hooks/usePagePlus"; |
| | | import {hasPermission} from "@/utils/permissionUtils"; |
| | | import {addTmsArSettlement, listTmsArSettlement} from "@/api/tms/tmsArSettlement"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import {confirmFinance} from "@/api/tms/tmsFinance"; |
| | | |
| | | const {proxy} = useCurrentInstance(); |
| | | const crudRef = ref(); |
| | |
| | | } |
| | | }) |
| | | const YSGenerateTableOption= ref({ |
| | | menu: false, |
| | | menu: true, |
| | | add: false, |
| | | header:false, |
| | | selection: false, |
| | | rowKey:'id', |
| | | |
| | | editBtn:false, |
| | | viewBtn:false, |
| | | delBtn: false, |
| | | column:{ |
| | | |
| | | projectName:{ |
| | |
| | | form.value.actualSettlementAmount =(Number(form.value.settleAmount) || 0) -( Number(form.value.deductionAmount) || 0); |
| | | } |
| | | |
| | | const handleCancel = (row:any) => { |
| | | ElMessageBox.confirm("是否对调度单号" + row.dispatchNo + "的应收费用取消关联?", '系统提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | return cancelArBill(row.id); |
| | | }).then(() => { |
| | | onLoad(page.value); |
| | | ElMessage({ |
| | | message: "操作成功!", |
| | | type: 'success' |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | </script> |