代码更新

This commit is contained in:
jia 2024-01-12 16:39:36 +08:00
parent 0b7bef183d
commit 6835fea477
4 changed files with 177 additions and 11 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -6,6 +6,7 @@
"dev": "vite",
"preview": "vite preview --port 4173",
"build": "vite build && node scripts/release.mjs",
"build:prod": "vite build --mode production && node scripts/release.mjs",
"type-check": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},

View File

@ -415,7 +415,86 @@
<el-pagination v-model:current-page="pager28.page_no" v-model:page-size="pager28.page_size" :page-sizes="[10, 20, 30, 40]" layout="total, sizes, prev, pager, next, jumper" :total="total27" @size-change="handleSizeChange28" @current-change="handleCurrentChange28" />
</div>
</el-tab-pane>
<el-tab-pane label="收款" name="demo-14">Task</el-tab-pane>
<el-tab-pane label="收款" name="demo-14">
<div class='tit'>开票记录</div>
<div>
<el-table :data="tableData29" stripe style="width: 100%">
<el-table-column label="开票单号" prop='invoicing_code' width="180" />
<el-table-column label="合同编号" prop='contract_code' width="180" />
<el-table-column label="合同名称" prop='contract_name' />
<el-table-column label="开票日期" prop='invoicing_date' width="180" />
<el-table-column label="期次" prop='period' width="180" />
<el-table-column label="发票类型" prop='invoice_type' />
<!-- <el-table-column label="申请人" prop='amount_excluding_tax' /> -->
<el-table-column label="发票编号" prop='tax' />
<el-table-column label="开票金额(含税) " prop='amount_including_tax' />
<el-table-column label="开票金额(非税)" prop='invoicing_amount' />
<el-table-column label="税率" prop='tax_rate' />
<el-table-column label="税额" prop='tax_amount' />
</el-table>
</div>
<div style="margin: 10px 0;">
<el-pagination v-model:current-page="pager29.page_no" v-model:page-size="pager29.page_size" :page-sizes="[10, 20, 30, 40]" layout="total, sizes, prev, pager, next, jumper" :total="total28" @size-change="handleSizeChange29" @current-change="handleCurrentChange29" />
</div>
<div class='tit' style="margin:20px 0">回款计划</div>
<div>
<el-table :data="tableData30" stripe style="width: 100%">
<el-table-column label="合同编号" prop='contract_code' width="180" />
<el-table-column label="合同名称" prop='contract_name' width="180" />
<el-table-column label="期次" prop='period' />
<el-table-column label="计划日期" prop='return_date' />
<el-table-column label="状态" prop='return_status' />
<el-table-column label="金额" prop='amount' />
<el-table-column label="已回款" prop='has_return_amount' />
<el-table-column label="未回款" prop='not_return_amount' />
</el-table>
</div>
<div style="margin: 10px 0;">
<el-pagination v-model:current-page="pager30.page_no" v-model:page-size="pager30.page_size" :page-sizes="[10, 20, 30, 40]" layout="total, sizes, prev, pager, next, jumper" :total="total29" @size-change="handleSizeChange30" @current-change="handleCurrentChange30" />
</div>
<div class='tit' style="margin:20px 0">回款记录</div>
<div>
<el-table :data="tableData31" stripe style="width: 100%">
<el-table-column label="合同名称" prop='contract_name' width="180" />
<el-table-column label="合同编号" prop='contract_code' width="180" />
<el-table-column label="期次" prop='period' />
<el-table-column label="日期" prop='return_date' />
<el-table-column label="金额" prop='amount' />
<!-- <el-table-column label="累计回款" prop='is_solve_text' /> -->
<el-table-column label="收款人" prop='receiver' />
</el-table>
</div>
<div style="margin: 10px 0;">
<el-pagination v-model:current-page="pager31.page_no" v-model:page-size="pager31.page_size" :page-sizes="[10, 20, 30, 40]" layout="total, sizes, prev, pager, next, jumper" :total="total30" @size-change="handleSizeChange31" @current-change="handleCurrentChange31" />
</div>
<div class='tit' style="margin:20px 0">退款记录</div>
<div>
<el-table :data="tableData32" stripe style="width: 100%">
<el-table-column label="退款单号" prop='refund_code' width="180" />
<el-table-column label="合同编号" prop='contract_code' width="180" />
<el-table-column label="合同名称" prop='contract_nanme' width="180" />
<el-table-column label="退款日期" prop='refund_date' width="180" />
<el-table-column label="退款原因" prop='reason' />
<el-table-column label="退款方式" prop='refund_type' />
<el-table-column label="退款金额" prop='amount' />
<el-table-column label="备注" prop='remark' />
</el-table>
</div>
<div style="margin: 10px 0;">
<el-pagination v-model:current-page="pager32.page_no" v-model:page-size="pager32.page_size" :page-sizes="[10, 20, 30, 40]" layout="total, sizes, prev, pager, next, jumper" :total="total31" @size-change="handleSizeChange32" @current-change="handleCurrentChange32" />
</div>
</el-tab-pane>
<el-tab-pane label="付款" name="demo-15">
<div class='tit'>收票记录</div>
<div>
@ -443,8 +522,8 @@
<el-table-column label="期次" prop='period' width="180" />
<el-table-column label="状态" prop='status' />
<el-table-column label="金额" prop='amount' />
<el-table-column label="已付款" prop='competitor_advantages' />
<el-table-column label="未付款" prop='competitor_disadvantages' />
<el-table-column label="已付款" prop='has_payment_amount' />
<el-table-column label="未付款" prop='not_payment_amoun' />
<el-table-column label="备注" prop='remark' />
</el-table>
@ -719,6 +798,10 @@ import { apiProcurementContractLists } from '@/api/procurement_contract'
import { apiSubcontractingContractLists } from '@/api/subcontracting_contract'
import { apinegotiationLists } from '@/api/subcontractor'
import { apiinvoiceapplyLists } from '@/api/InvoicingRequests'
import { apireturnedLists } from '@/api/remittance'
import { apireturnedrecordLists } from '@/api/recordsPayment'
import { apirefundapplyLists } from '@/api/refund'
const active = ref('first-1')
const activeName = ref('demo-1')
const handleClick = (tab: TabsPaneContext, event: Event) => {
@ -901,6 +984,16 @@ const pager30 = reactive({
page_no: 1,
project_id: ""
})
const pager31 = reactive({
page_size: 10,
page_no: 1,
project_id: ""
})
const pager32 = reactive({
page_size: 10,
page_no: 1,
project_id: ""
})
@ -936,6 +1029,11 @@ const total25 = ref(0)
const total26 = ref(0)
const total27 = ref(0)
const total28 = ref(0)
const total29 = ref(0)
const total30 = ref(0)
const total31 = ref(0)
const total32 = ref(0)
const total33 = ref(0)
const tableData1 = ref([])
const tableData2 = ref([])
const tableData3 = ref([])
@ -970,7 +1068,8 @@ const tableData27 = ref([])
const tableData28 = ref([])
const tableData29 = ref([])
const tableData30 = ref([])
const tableData31 = ref([])
const tableData32 = ref([])
//
const formData = reactive({
@ -1159,7 +1258,7 @@ const handleSizeChange29 = (val: number) => {
pager29.page_size = val
customServiceLists()
invoiceapplyLists()
}
@ -1169,7 +1268,18 @@ const handleSizeChange30 = (val: number) => {
pager30.page_size = val
customServiceLists()
returnedLists()
}
const handleSizeChange31 = (val: number) => {
pager30.page_size = val
returnedrecordLists()
}
const handleSizeChange32 = (val: number) => {
pager30.page_size = val
refundapplyLists()
}
@ -1357,8 +1467,7 @@ const handleCurrentChange28 = (val: number) => {
const handleCurrentChange29 = (val: number) => {
pager29.page_no = val
console.log(`current page: ${val}`)
customServiceLists()
invoiceapplyLists()
}
@ -1366,10 +1475,29 @@ const handleCurrentChange30 = (val: number) => {
pager30.page_no = val
console.log(`current page: ${val}`)
customServiceLists()
returnedLists()
}
const handleCurrentChange31 = (val: number) => {
pager31.page_no = val
console.log(`current page: ${val}`)
returnedrecordLists()
}
const handleCurrentChange32 = (val: number) => {
pager32.page_no = val
console.log(`current page: ${val}`)
refundapplyLists()
}
@ -1606,6 +1734,37 @@ const negotiationLists = () => {
})
}
//
const invoiceapplyLists = () => {
apiinvoiceapplyLists(pager29).then((res) => {
tableData29.value = res.lists
total28.value = res.count
})
}
//
const returnedLists = () => {
apireturnedLists(pager30).then((res) => {
tableData30.value = res.lists
total29.value = res.count
})
}
//
const returnedrecordLists = () => {
apireturnedrecordLists(pager31).then((res) => {
tableData31.value = res.lists
total30.value = res.count
})
}
//退
const refundapplyLists = () => {
apirefundapplyLists(pager32).then((res) => {
tableData32.value = res.lists
total31.value = res.count
})
}
//
@ -1652,6 +1811,8 @@ const setFormData = async (data: Record<any, any>) => {
pager28.project_id = data.id
pager29.project_id = data.id
pager30.project_id = data.id
pager31.project_id = data.id
pager32.project_id = data.id
Object.assign(formData, data)
if (data.annex && data.annex.length > 0) {
@ -1691,6 +1852,10 @@ const setFormData = async (data: Record<any, any>) => {
procurementContractLists()
subcontractingContractLists()
negotiationLists()
invoiceapplyLists()
returnedLists()
returnedrecordLists()
refundapplyLists()
}
const getDetail = async (row: Record<string, any>) => {

View File

@ -441,8 +441,8 @@
<div class='tit' style="margin:20px 0">回款计划</div>
<div>
<el-table :data="tableData30" stripe style="width: 100%">
<el-table-column label="合同编号" prop='contract_name' width="180" />
<el-table-column label="合同名称" prop='contract_code' width="180" />
<el-table-column label="合同编号" prop='contract_code' width="180" />
<el-table-column label="合同名称" prop='contract_name' width="180" />
<el-table-column label="期次" prop='period' />
<el-table-column label="计划日期" prop='return_date' />
<el-table-column label="状态" prop='return_status' />