整票提交

feature-JimuReport-1106-yjl
lijingjia 3 weeks ago
parent bb2a7a0250
commit fb12e09c10

@ -9,7 +9,17 @@ enum Api {
GetFees = '/feeApi/FeeAudit/GetFees',
GetModifyValue = '/feeApi/FeeRecord/GetModifyValue',
GetStat = '/feeApi/FeeAudit/GetStat',
OneClickAudit = '/feeApi/FeeAudit/OneClickAudit'
OneClickAudit = '/feeApi/FeeAudit/OneClickAudit',
BusinessAudit = '/feeApi/FeeAudit/BusinessAudit'
}
// 整票费用审核
export function BusinessAudit(data: PageRequest) {
return request<DataResult>({
url: Api.BusinessAudit,
method: 'post',
data
})
}
// 业务列表

@ -74,8 +74,10 @@
<ApproveBtns
agreeText="费用确认"
rejectText="驳回"
:approve="approveDc"
:approve="approve"
:id="route.query.id"
status="BILL_RECV_AUDIT"
source="Create"
businessType="1"
>
</ApproveBtns>
@ -95,7 +97,7 @@
import { onMounted, ref, defineExpose, computed, reactive } from 'vue'
import { BasicTable, useTable } from '/@/components/Table'
import { formatParams } from '/@/hooks/web/common'
import { GetList, GetStat } from './api'
import { GetList, GetStat, BusinessAudit } from './api'
import { Divider } from 'ant-design-vue'
// import FeeActionBar from './components/feeActionBar.vue'
// import { useModal } from '/@/components/Modal'
@ -107,8 +109,11 @@
//
import ApproveBtns from '/@/components/ApproveBtns/index.vue'
import { formatTableData } from '/@/hooks/web/common'
import { useRoute } from 'vue-router'
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
import { useRoute, useRouter } from 'vue-router'
const route = useRoute()
const router = useRouter()
const tabStore = useMultipleTabStore()
const { createMessage } = useMessage()
//
const status = route.query.status
@ -216,8 +221,24 @@
}
//
const approveDc = () => {
const approve = (remark) => {
const postData = {
result: remark ? 2 : 1,
ids: [route.query.id],
businessType: '1',
taskTypeName: route.query.status
}
if (remark) postData['remark'] = remark
loading.value = true
BusinessAudit(postData).then(res => {
loading.value = false
createMessage.success(res.message)
//
const { fullPath } = route //
tabStore.closeTabByKey(fullPath, router)
}).catch(() => {
loading.value = false
})
}
onMounted(() => {
// id

@ -1177,9 +1177,17 @@
},
})
})
break
case 'FEE_AUDIT':
//
go({
path: '/approve-fee',
query: {
id: data.ouT_BS_NO,
btype: 1
}
})
break
case 'BILL_RECV_AUDIT':
//
go({
@ -1187,8 +1195,9 @@
query: {
id: data.ouT_BS_NO,
btype: 1,
status: data.tasK_TYPE
},
status: data.tasK_TYPE,
source: 'Create'
}
})
break
case 'WAIT_ORDER_AUDIT':

Loading…
Cancel
Save