|
@@ -79,6 +79,7 @@ import payApi from '~api/project/debit/project/pay.js'
|
|
|
import { arrToId, getArrValue, getObjValue } from 'js-fast-way'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { delMessageV2 } from '~com/message/index.js'
|
|
|
+import { getDictionary } from '~api/other'
|
|
|
const useAppState = useAppStore()
|
|
|
const projectId = ref(useAppState.getProjectId)
|
|
|
defineOptions({
|
|
@@ -90,6 +91,8 @@ const uuid = getRandom(4)
|
|
|
//渲染完成
|
|
|
onMounted(() => {
|
|
|
setSplitRef()
|
|
|
+ gePayType()
|
|
|
+ gePayAppType()
|
|
|
getTableData()
|
|
|
})
|
|
|
|
|
@@ -105,6 +108,29 @@ const setSplitRef = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+//获支付项类型
|
|
|
+const payOptions = ref([])
|
|
|
+const gePayType = async () => {
|
|
|
+ const { data } = await getDictionary({
|
|
|
+ code: 'meter_pay_type',
|
|
|
+ })
|
|
|
+ payOptions.value = getArrValue(data)
|
|
|
+ payOptions.value.forEach((ele)=>{
|
|
|
+ ele.dictKey = Number(ele.dictKey)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+//获支付项适用类型
|
|
|
+const payAppOptions = ref([])
|
|
|
+const gePayAppType = async () => {
|
|
|
+ const { data } = await getDictionary({
|
|
|
+ code: 'meter_pay_applicable_type',
|
|
|
+ })
|
|
|
+ payAppOptions.value = getArrValue(data)
|
|
|
+ payAppOptions.value.forEach((ele)=>{
|
|
|
+ ele.dictKey = Number(ele.dictKey)
|
|
|
+ })
|
|
|
+}
|
|
|
//搜索表单
|
|
|
const searchForm = ref({ current: 1, size: 10, total: 0 })
|
|
|
|
|
@@ -119,10 +145,10 @@ const tableLoading = ref(false)
|
|
|
const tableColumn = ref([
|
|
|
{ key: 'payNumber', name: '支付项编号', width: 140 },
|
|
|
{ key: 'payName', name: '支付项名称' },
|
|
|
- { key: 'payType', name: '支付项类型', width: 160 },
|
|
|
+ { key: 'payTypeName', name: '支付项类型', width: 160 },
|
|
|
{ key: 'isDeduct', name: '是否为扣款项', width: 100 },
|
|
|
{ key: 'isTotalTerms', name: '是否合计项', width: 100 },
|
|
|
- { key: 'payApplicableType', name: '适用类型', width: 100 },
|
|
|
+ { key: 'payApplicableTypeName', name: '适用类型', width: 100 },
|
|
|
{ key: 'action', name: '操作', width: 100 },
|
|
|
])
|
|
|
const tableData = ref([])
|
|
@@ -163,7 +189,7 @@ const finishSystemPay = ()=>{
|
|
|
const tableColumn1 = ref([
|
|
|
{ key: 'payNumber', name: '支付项编号' },
|
|
|
{ key: 'payName', name: '支付项名称' },
|
|
|
- { key: 'payType', name: '支付项类型' },
|
|
|
+ { key: 'payTypeName', name: '支付项类型' },
|
|
|
{ key: 'contractFormulaIds', name: '合同计算公式' },
|
|
|
{ key: 'updateFormulaIds', name: '变更计算公式' },
|
|
|
{ key: 'currentFormulaIds', name: '本期计算公式' },
|
|
@@ -275,7 +301,7 @@ const removeCollectPay = async (id) => {
|
|
|
const tableCollectColumn = ref([
|
|
|
{ key: 'payNumber', name: '支付项编号' },
|
|
|
{ key: 'payName', name: '支付项名称' },
|
|
|
- { key: 'payType', name: '支付项类型' },
|
|
|
+ { key: 'payTypeName', name: '支付项类型' },
|
|
|
{ key: 'isDeduct', name: '是否为扣款项' },
|
|
|
{ key: 'isTotalTerms', name: '是否合计项' },
|
|
|
{ key: 'payApplicableType', name: '支付项适用类型' },
|