From 0b7bef183ddab985b3141c13b20f856256f53b2f Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Fri, 12 Jan 2024 16:23:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E4=BF=A1=E6=81=AF=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=20=E4=BB=A5=E5=8F=8A=E5=AE=A2=E6=88=B7=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E5=9B=9E=E6=AC=BE=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/biddocument/index.vue | 7 +-
src/components/contract/index.vue | 8 +-
src/components/pending_paymentplan/index.vue | 30 +--
src/components/project/index.vue | 5 +-
src/components/project_contract/index.vue | 10 +-
src/components/salescontract/index.vue | 29 ++-
src/views/InvoicingRequests/detail.vue | 231 +++++-------------
src/views/InvoicingRequests/edit.vue | 83 ++++---
src/views/InvoicingRequests/index.vue | 20 +-
src/views/contract/edit.vue | 109 +++++++--
src/views/contract/index.vue | 4 +-
src/views/custom/detail.vue | 93 ++++++-
src/views/project/detail.vue | 23 +-
src/views/project_list/detail.vue | 206 ++++++++++++++--
src/views/project_list/index.vue | 54 ++--
src/views/project_settlement/edit.vue | 2 +-
.../project_subcontract_settlement/edit.vue | 2 +-
src/views/recordsPayment/detail.vue | 133 ++++------
src/views/recordsPayment/edit.vue | 152 +++++-------
src/views/recordsPayment/index.vue | 21 +-
src/views/refund/detail.vue | 119 ++++-----
src/views/refund/edit.vue | 123 ++++------
src/views/refund/index.vue | 28 +--
src/views/remittance/detail.vue | 118 ++++-----
src/views/remittance/edit.vue | 50 ++--
src/views/remittance/index.vue | 41 ++--
src/views/subcontracting_contract/index.vue | 47 +---
.../subcontracting_contract_detail/index.vue | 28 +--
.../index.vue | 41 ++--
29 files changed, 914 insertions(+), 903 deletions(-)
diff --git a/src/components/biddocument/index.vue b/src/components/biddocument/index.vue
index adb1c98..bc13f9f 100644
--- a/src/components/biddocument/index.vue
+++ b/src/components/biddocument/index.vue
@@ -46,10 +46,15 @@ import { usePaging } from "@/hooks/usePaging"
import { useDictData } from "@/hooks/useDictOptions"
import { apiBidBuyBiddingDocumentLists } from '@/api/bid_buy_bidding_document'
import { defineEmits } from "vue"
+const props = defineProps({
+ project_id: {
+ type: String
+ }
+})
// 查询条件
const queryParams = reactive({
- custom_name: ''
+ project_id: props.project_id,
});
// 获取字典数据
diff --git a/src/components/contract/index.vue b/src/components/contract/index.vue
index 09fadbc..6f07b33 100644
--- a/src/components/contract/index.vue
+++ b/src/components/contract/index.vue
@@ -90,12 +90,16 @@ import { timeFormat } from '@/utils/util'
const props = defineProps({
productid: {
type: String
- }
+ },
+ custom_id: {
+ type: String
+ },
})
-console.log(props.productid)
+
// 查询条件
const queryParams = reactive({
project_id: props.productid,
+ custom_id: props.custom_id
});
const { dictData } = useDictData('contract_type,contract_pricing_method,contract_status')
// 选中数据
diff --git a/src/components/pending_paymentplan/index.vue b/src/components/pending_paymentplan/index.vue
index cad6040..616a359 100644
--- a/src/components/pending_paymentplan/index.vue
+++ b/src/components/pending_paymentplan/index.vue
@@ -19,30 +19,18 @@
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
+
+
+
@@ -61,10 +49,16 @@ import { apireturnedLists } from '@/api/remittance'
import { defineEmits } from "vue"
import { timeFormat } from '@/utils/util'
+const props = defineProps({
+ contract_id: {
+ type: String
+ },
+})
// 查询条件
const queryParams = reactive({
contract_no: '',
+ contract_id: props.contract_id
});
// 获取字典数据
diff --git a/src/components/project/index.vue b/src/components/project/index.vue
index b2c24dd..b89f085 100644
--- a/src/components/project/index.vue
+++ b/src/components/project/index.vue
@@ -56,15 +56,14 @@ import { apiProjectLists } from '@/api/project'
import { defineEmits } from "vue"
import { timeFormat } from '@/utils/util'
const props = defineProps({
- customer_id: {
+ custom_id: {
type: String
}
})
// 查询条件
const queryParams = reactive({
name: '',
-
- customer_id: props.customer_id
+ custom_id: props.custom_id
});
const { dictData } = useDictData('project_type,project_content,bidding_method,relationship,information_sources,construction_funds_sources,construction_financial_status,construction_recognition,my_construction_recognition,strategic_significance,industry,unit_nature')
diff --git a/src/components/project_contract/index.vue b/src/components/project_contract/index.vue
index 23fa27a..5bfc6e0 100644
--- a/src/components/project_contract/index.vue
+++ b/src/components/project_contract/index.vue
@@ -87,14 +87,16 @@ import { projectcontracts } from '@/api/common'
import { defineEmits } from "vue"
import { timeFormat } from '@/utils/util'
const props = defineProps({
- productid: {
+
+ project_id: {
type: String
- }
+ },
})
-console.log(props.productid)
+// console.log(props.productid)
// 查询条件
const queryParams = reactive({
- project_id: props.productid,
+ project_id: props.project_id || '',
+
});
const { dictData } = useDictData('contract_type,contract_pricing_method,contract_status')
// 选中数据
diff --git a/src/components/salescontract/index.vue b/src/components/salescontract/index.vue
index 1bc9f57..fa9a02c 100644
--- a/src/components/salescontract/index.vue
+++ b/src/components/salescontract/index.vue
@@ -2,8 +2,8 @@
-
-
+
+
查询
@@ -15,24 +15,20 @@
-
-
-
-
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
@@ -49,6 +45,9 @@ import { useDictData } from "@/hooks/useDictOptions"
import { apiContractLists } from '@/api/contract'
import { defineEmits } from "vue"
const props = defineProps({
+ project_id: {
+ type: String
+ },
contract_type: {
type: String
}
@@ -57,8 +56,8 @@ const props = defineProps({
// 查询条件
const queryParams = reactive({
- contract_name: '',
contract_code: '',
+ project_id: props.project_id,
contract_type: props.contract_type,
});
const { dictData } = useDictData('contract_type')
diff --git a/src/views/InvoicingRequests/detail.vue b/src/views/InvoicingRequests/detail.vue
index 5901820..d90886a 100644
--- a/src/views/InvoicingRequests/detail.vue
+++ b/src/views/InvoicingRequests/detail.vue
@@ -3,173 +3,74 @@
diff --git a/src/views/InvoicingRequests/edit.vue b/src/views/InvoicingRequests/edit.vue
index e80c0b6..cf50901 100644
--- a/src/views/InvoicingRequests/edit.vue
+++ b/src/views/InvoicingRequests/edit.vue
@@ -11,26 +11,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -43,7 +31,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -57,19 +57,22 @@
-
+
-
+
+
+
+
@@ -86,19 +89,19 @@
-
+
-
+
+
@@ -194,7 +197,7 @@
-
+
@@ -214,7 +217,7 @@
-
+
@@ -227,7 +230,7 @@ import customDialog from '@/components/custom-dialog/index.vue'
import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue'
import { toChinesNum } from "@/utils/util";
-import salescontractDialog from '@/components/salescontract/index.vue'
+import contractDialog from '@/components/contract/index.vue'
import { apiinvoiceapplyAdd, apiinvoiceapplyEdit, apiinvoiceapplyDetail } from '@/api/InvoicingRequests'
import { getAllProjectTypes } from '@/api/projecttype'
import { timeFormat } from '@/utils/util'
@@ -235,7 +238,7 @@ import { isEmail, isIdCard, isPhone } from '@/utils/validate'
import type { PropType } from 'vue'
import configs from "@/config"
import useUserStore from "@/stores/modules/user";
-const protype = reactive([])
+
const base_url = configs.baseUrl + configs.urlPrefix
const userStore = useUserStore();
const active = ref(0)
@@ -246,6 +249,7 @@ const project_code = ref('')
const project_amount = ref('')
const contract_no = ref('')
const custom_name = ref('')
+const invoicing_amount_daxie = ref('')
const next = () => {
if (active.value++ > 3) active.value = 0
}
@@ -294,7 +298,7 @@ const userEmail = (rule: any, value: string, callback: (arg0: Error | undefined)
const amountinput = (e) => {
// console.log(e)
if (e && e > 0) {
- formData.invoicing_amount_daxie = toChinesNum(e)
+ invoicing_amount_daxie.value = toChinesNum(e)
}
}
// 删除上传的文件
@@ -321,6 +325,7 @@ const customEvent = (e: any) => {
};
const customEvent1 = (e: any) => {
formData.contract_id = e.id;
+ custom_name.value = e.custom_name;
project_name.value = e.project_name;
project_code.value = e.project_code;
contract_name.value = e.contract_name;
@@ -337,18 +342,15 @@ const popupTitle = computed(() => {
// 表单数据
const formData = reactive({
id: '',
- customer_id: '',
contract_id: '',
- approve_id: '',
+
invoicing_date: "",
period: "",
- accumulate_amount: '',
- accumulated_payments_received: '',
+
tax_rate: "",
invoice_type: '',
invoicing_amount: '',
- invoicing_amount_daxie: "",
- tax: '',
+
amount_including_tax: '',
content: "",
invoice_no: "",
@@ -398,12 +400,12 @@ const setFormData = async (data: Record) => {
if (formData.invoicing_amount) {
toChinesNum(formData.invoicing_amount)
}
- custom_name.value = data.custom.name
+ custom_name.value = data.custom_name
project_name.value = data.contract_name;
project_code.value = data.contract_code
- project_amount.value = data.contract.amount
- contract_name.value = data.contract.contract_name;
- contract_no.value = data.contract.contract_code
+ project_amount.value = data.contract_amount
+ contract_name.value = data.contract_name;
+ contract_no.value = data.contract_code
}
@@ -438,10 +440,7 @@ const open = (type = 'add') => {
mode.value = type
popupRef.value?.open()
- getAllProjectTypes().then((res) => {
- protype.splice(0, protype.length, ...res);
- })
}
// 关闭回调
diff --git a/src/views/InvoicingRequests/index.vue b/src/views/InvoicingRequests/index.vue
index efc1254..0b35299 100644
--- a/src/views/InvoicingRequests/index.vue
+++ b/src/views/InvoicingRequests/index.vue
@@ -41,27 +41,19 @@
-
+
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
@@ -126,7 +118,7 @@ const handleSelectionChange = (val: any[]) => {
}
// 获取字典数据
-const { dictData } = useDictData('pay_period,invoice_type')
+const { dictData } = useDictData('pay_period,invoice_type,tax_rate')
// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({
diff --git a/src/views/contract/edit.vue b/src/views/contract/edit.vue
index 517cf96..f92d8d7 100644
--- a/src/views/contract/edit.vue
+++ b/src/views/contract/edit.vue
@@ -13,13 +13,10 @@
-
+
-
-
-
-
+
@@ -28,6 +25,10 @@
+
+
+
+
@@ -47,7 +48,7 @@
-
+
@@ -83,18 +84,18 @@
-
+
-
+
-
+
-
+
{{ item.name }}
@@ -104,13 +105,13 @@
-
-
+
+
-
-
+
+
@@ -136,6 +137,37 @@
+ 回款计划
+
+
+
+
+ +
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -144,10 +176,10 @@
-
+
-
+
@@ -186,9 +218,11 @@ const project_name = ref('')
const project_code = ref('')
const bidding_code = ref('')
const amount_daxie = ref('')
+const project_id = ref('')
const business_director_name = ref('')
const list1 = reactive([])
const list2 = reactive([])
+const paymentList = reactive([{}])
const personnel = ref()
import { deptAll } from '@/api/org/department'
import { getAll } from '@/api/org/organization'
@@ -219,6 +253,17 @@ const userEmail = (rule: any, value: string, callback: (arg0: Error | undefined)
}
};
+const handleAdd = (row: any) => {
+ // 在 row 后面插入一行数据
+ const index = paymentList.indexOf(row);
+ paymentList.splice(index + 1, 0, {});
+};
+
+const handleDelete = (row: any) => {
+ // 删除 row
+ const index = paymentList.indexOf(row);
+ paymentList.splice(index, 1);
+};
// 上传文件
const handleAvatarSuccess_four = (
response,
@@ -244,6 +289,19 @@ const userclick = () => {
personnel.value.open()
}
+//获取回款计划
+const paymentplanList = (id: any) => {
+ // paymentplanLists({ 'page_no': 1, 'page_size': 5000, 'contract_type': 1, 'contract_id': id }).then((res) => {
+ // const data = res.lists.map((item: any) => ({
+ // 'period': item.period,
+ // 'return_date': item.return_date,
+ // 'amount': item.amount,
+ // 'remark': item.remark,
+ // }))
+ // paymentList.splice(0, paymentList.length, ...data);
+ // })
+}
+
//确认
const submituser = (e: any) => {
formData.business_director = e.id;
@@ -251,7 +309,7 @@ const submituser = (e: any) => {
}
//获取值打开弹窗
const tanchuan = () => {
- if (formData.customer_id) {
+ if (formData.custom_id) {
showDialog2.value = true
} else {
feedback.msgError('请先选择客户')
@@ -260,7 +318,7 @@ const tanchuan = () => {
//获取值
const customEvent = (e: any) => {
- formData.customer_id = e.id;
+ formData.custom_id = e.id;
custom_name.value = e.name;
console.log(custom_name.value, e.name)
showDialog.value = false;
@@ -273,6 +331,7 @@ const customEvent1 = (e: any) => {
showDialog1.value = false;
};
const customEvent2 = (e: any) => {
+ project_id.value = e.id;
project_name.value = e.name;
project_code.value = e.project_code
showDialog2.value = false;
@@ -324,7 +383,7 @@ const formData = reactive({
dept_id: '',
org_id: '',
approve_id: 1,
- customer_id: '',
+ custom_id: '',
buy_bidding_document_id: '',
contract_name: '',
contract_code: '',
@@ -343,7 +402,7 @@ const formData = reactive({
party_b_mobile: '',
party_b_email: '',
amount: '',
-
+ returned_money: '',
business_director: '',
contract_status: '',
expire: '',
@@ -375,6 +434,7 @@ const setFormData = async (data: Record) => {
}
+
if (data.dept_id) {
getlist1(data.org_id)
}
@@ -408,6 +468,15 @@ const handleSubmit = async () => {
if (formDataannex.length > 0) {
formData.annex = JSON.stringify(formDataannex.map((item) => item.uri))
}
+ if (paymentList.length > 0) {
+ formData.returned_money = JSON.stringify(paymentList.map((item) => ({
+ 'id': item.id,
+ 'period': item.period,
+ 'remark': item.remark,
+ 'amount': item.amount,
+ 'return_date': item.return_date,
+ })))
+ }
await formRef.value?.validate()
const data = { ...formData, }
mode.value == 'edit'
diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue
index fed87ea..02e8308 100644
--- a/src/views/contract/index.vue
+++ b/src/views/contract/index.vue
@@ -50,7 +50,7 @@
-
+
@@ -115,7 +115,7 @@ const handleSelectionChange = (val: any[]) => {
}
// 获取字典数据
-const { dictData } = useDictData('contract_type,contract_pricing_method,contract_status')
+const { dictData } = useDictData('contract_type,contract_pricing_method,contract_status,pay_period')
// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({
diff --git a/src/views/custom/detail.vue b/src/views/custom/detail.vue
index c52026f..711dcc7 100644
--- a/src/views/custom/detail.vue
+++ b/src/views/custom/detail.vue
@@ -161,11 +161,46 @@
Task
Task
- Task
+
+ 回款计划
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 回款记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -202,7 +237,8 @@ import { apiCustomServiceLists } from '@/api/custom_service'
import { apiCustomContactsLists } from '@/api/custom_contacts'
import { apiContractLists } from '@/api/contract'
import { apiContractNegotiationLists } from '@/api/contract_negotiation'
-
+import { apireturnedLists } from '@/api/remittance'
+import { apireturnedrecordLists } from '@/api/recordsPayment'
import { timeFormat } from '@/utils/util'
import type { TabsPaneContext } from 'element-plus'
import type { PropType } from 'vue'
@@ -222,7 +258,7 @@ const tableData3 = ref([])
const tableData4 = ref([])
const tableData5 = ref([])
const tableData6 = ref([])
-
+const tableData7 = ref([])
const activeName = ref('new_name_1')
const handleClick = (tab: TabsPaneContext, event: Event) => {
@@ -271,6 +307,11 @@ const pager6 = reactive({
page_no: 1,
custom_id: ""
})
+const pager7 = reactive({
+ page_size: 10,
+ page_no: 1,
+ custom_id: ""
+})
const total1 = ref(0)
const total2 = ref(0)
@@ -312,7 +353,14 @@ const handleSizeChange5 = (val: number) => {
const handleSizeChange6 = (val: number) => {
pager6.page_size = val
- competitorLists()
+ returnedLists()
+
+}
+const handleSizeChange7 = (val: number) => {
+
+ pager7.page_size = val
+
+ returnedrecordLists()
}
//分页
@@ -340,7 +388,7 @@ const handleCurrentChange4 = (val: number) => {
}
const handleCurrentChange5 = (val: number) => {
- pager5page_no = val
+ pager5.page_no = val
console.log(`current page: ${val}`)
negotiationLists()
@@ -348,7 +396,15 @@ const handleCurrentChange5 = (val: number) => {
const handleCurrentChange6 = (val: number) => {
pager6.page_no = val
console.log(`current page: ${val}`)
- competitorLists()
+ returnedLists()
+
+}
+
+const handleCurrentChange7 = (val: number) => {
+ pager7.page_no = val
+ console.log(`current page: ${val}`)
+
+ returnedrecordLists()
}
// 获取详情
const setFormData = async (data: Record) => {
@@ -375,12 +431,14 @@ const setFormData = async (data: Record) => {
pager4.custom_id = data.id
pager5.custom_id = data.id
pager6.custom_id = data.id
-
+ pager7.custom_id = data.id
projectLists()
quotationLists()
customServiceLists()
contractLists()
negotiationLists()
+ returnedLists()
+ returnedrecordLists()
}
const getDetail = async (row: Record) => {
@@ -457,6 +515,25 @@ const negotiationLists = () => {
total5.value = res.count
})
}
+//获取回款计划
+const returnedLists = () => {
+ apireturnedLists(pager6).then((res) => {
+ tableData6.value = res.lists
+ total6.value = res.count
+ })
+}
+
+//获取回款记录
+const returnedrecordLists = () => {
+ apireturnedrecordLists(pager7).then((res) => {
+ tableData7.value = res.lists
+ total7.value = res.count
+ })
+}
+
+
+
+
defineExpose({
open,
setFormData,
diff --git a/src/views/project/detail.vue b/src/views/project/detail.vue
index fe608f2..bbea08b 100644
--- a/src/views/project/detail.vue
+++ b/src/views/project/detail.vue
@@ -10,11 +10,11 @@
{{ formData.org_name }}
{{ formData.dept_name }}
- {{ formData.project_name }}
+ {{ formData.name }}
{{ formData.project_code }}
{{ formData.custom_name }}
- {{ formData.contract_code }}
+ {{ formData.status_text }}
{{ formData.project_type_name }}
{{ formData.create_time }}
@@ -256,13 +256,13 @@
投标保证金
-
+
-
+
-
-
+
+
@@ -271,14 +271,13 @@
退投标保证金
-
+
-
-
-
+
+
-
-
+
+
diff --git a/src/views/project_list/detail.vue b/src/views/project_list/detail.vue
index fe608f2..08f1e6b 100644
--- a/src/views/project_list/detail.vue
+++ b/src/views/project_list/detail.vue
@@ -10,11 +10,11 @@
{{ formData.org_name }}
{{ formData.dept_name }}
- {{ formData.project_name }}
+ {{ formData.name }}
{{ formData.project_code }}
{{ formData.custom_name }}
- {{ formData.contract_code }}
+ {{ formData.status_text }}
{{ formData.project_type_name }}
{{ formData.create_time }}
@@ -256,13 +256,13 @@
投标保证金
-
+
-
+
-
-
+
+
@@ -271,14 +271,13 @@
退投标保证金
-
+
-
-
-
+
+
-
-
+
+
@@ -416,7 +415,86 @@
-
Task
+
+ 开票记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 回款计划
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 回款记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 退款记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
收票记录
@@ -444,8 +522,8 @@
-
-
+
+
@@ -720,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) => {
@@ -902,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: ""
+})
@@ -937,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([])
@@ -971,7 +1068,8 @@ const tableData27 = ref([])
const tableData28 = ref([])
const tableData29 = ref([])
const tableData30 = ref([])
-
+const tableData31 = ref([])
+const tableData32 = ref([])
// 表单数据
const formData = reactive({
@@ -1160,7 +1258,7 @@ const handleSizeChange29 = (val: number) => {
pager29.page_size = val
- customServiceLists()
+ invoiceapplyLists()
}
@@ -1170,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()
}
@@ -1358,8 +1467,7 @@ const handleCurrentChange28 = (val: number) => {
const handleCurrentChange29 = (val: number) => {
pager29.page_no = val
console.log(`current page: ${val}`)
-
- customServiceLists()
+ invoiceapplyLists()
}
@@ -1367,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()
+}
+
+
+
+
+
+
+
@@ -1607,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
+ })
+}
// 获取详情
@@ -1653,6 +1811,8 @@ const setFormData = async (data: Record
) => {
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) {
@@ -1692,6 +1852,10 @@ const setFormData = async (data: Record) => {
procurementContractLists()
subcontractingContractLists()
negotiationLists()
+ invoiceapplyLists()
+ returnedLists()
+ returnedrecordLists()
+ refundapplyLists()
}
const getDetail = async (row: Record) => {
diff --git a/src/views/project_list/index.vue b/src/views/project_list/index.vue
index cf94815..14760d4 100644
--- a/src/views/project_list/index.vue
+++ b/src/views/project_list/index.vue
@@ -12,64 +12,64 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -122,64 +122,64 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -367,7 +367,7 @@ getLists()
.first_list-item {
background-color: #f3f7f9;
- width: 280px;
+ width: 260px;
height: 90px;
margin-right: 40px;
margin-bottom: 20px;
diff --git a/src/views/project_settlement/edit.vue b/src/views/project_settlement/edit.vue
index c902030..992399e 100644
--- a/src/views/project_settlement/edit.vue
+++ b/src/views/project_settlement/edit.vue
@@ -59,7 +59,7 @@
-
+
diff --git a/src/views/project_subcontract_settlement/edit.vue b/src/views/project_subcontract_settlement/edit.vue
index 308be0d..4a5f64d 100644
--- a/src/views/project_subcontract_settlement/edit.vue
+++ b/src/views/project_subcontract_settlement/edit.vue
@@ -59,7 +59,7 @@
-
+
diff --git a/src/views/recordsPayment/detail.vue b/src/views/recordsPayment/detail.vue
index 4b07f38..53bcd76 100644
--- a/src/views/recordsPayment/detail.vue
+++ b/src/views/recordsPayment/detail.vue
@@ -2,95 +2,66 @@
diff --git a/src/views/recordsPayment/edit.vue b/src/views/recordsPayment/edit.vue
index d0ac92e..c78c4aa 100644
--- a/src/views/recordsPayment/edit.vue
+++ b/src/views/recordsPayment/edit.vue
@@ -5,41 +5,41 @@
-
-
-
-
-
+
-
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -64,7 +64,7 @@
-
+
@@ -83,9 +83,9 @@
-
+
-
+
@@ -128,63 +128,41 @@
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
@@ -196,7 +174,7 @@
import customDialog from '@/components/custom-dialog/index.vue'
import type { FormInstance } from 'element-plus'
import Popup from '@/components/popup/index.vue'
-import salescontractDialog from '@/components/salescontract/index.vue'
+import contractDialog from '@/components/contract/index.vue'
import bankaccountDialog from '@/components/bankaccount/index.vue'
import pendingDialog from '@/components/pending_paymentplan/index.vue'
import { apireturnedrecordAdd, apireturnedrecordEdit, apireturnedrecordDetail } from '@/api/recordsPayment'
@@ -210,7 +188,7 @@ import useUserStore from "@/stores/modules/user";
const protype = reactive([])
const base_url = configs.baseUrl + configs.urlPrefix
const userStore = useUserStore();
-
+const return_total_amount = ref('')
const formDataannex = reactive([])
const contract_name = ref('')
const project_name = ref('')
@@ -218,6 +196,10 @@ const project_code = ref('')
const project_amount = ref('')
const contract_no = ref('')
const custom_name = ref('')
+const account_sn = ref('')
+const account = ref('')
+const deposit_bank = ref('')
+
// 上传文件
const handleAvatarSuccess_four = (
@@ -234,31 +216,7 @@ const handleAvatarSuccess_four = (
);
};
-//验证
-const checkPhone = (rule: any, value: any, callback: (arg0: Error) => any) => {
- if (value && !/^1\d{10}$/.test(value)) {
- callback(new Error('请输入正确的手机号码'));
- } else {
- callback()
- }
-
-}
-const userEmail = (rule: any, value: string, callback: (arg0: Error | undefined) => void) => {
-
- // const mailReg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/
- // // if (!value) {
- // // return callback(new Error('邮箱不能为空'))
- // // }
-
-
- if (value && !mailReg.test(value)) {
- callback(new Error('请输入正确的邮箱格式'))
- } else {
- callback()
- }
-
-};
// 删除上传的文件
const delFileFn = (index: number) => {
formDataannex.splice(index, 1)
@@ -287,10 +245,18 @@ const customEvent1 = (e: any) => {
formData.contract_id = e.id;
project_name.value = e.project_name;
project_code.value = e.project_code;
+ custom_name.value = e.custom_name;
contract_name.value = e.contract_name;
contract_no.value = e.contract_code
showDialog1.value = false;
};
+const customEvent2 = (e: any) => {
+ formData.bank_account_id = e.id;
+ account_sn.value = e.account_sn;
+ account.value = e.account;
+ deposit_bank.value = e.deposit_bank;
+ showDialog2.value = false;
+}
const customEvent3 = (e: any) => {
formData.finance_returned_money_id = e.id;
@@ -317,7 +283,6 @@ const popupTitle = computed(() => {
// 表单数据
const formData = reactive({
id: '',
- customer_id: '',
contract_id: '',
finance_returned_money_id: 0,
return_date: "",
@@ -326,12 +291,10 @@ const formData = reactive({
collection_type: '',
invoice_status: '',
pay_type: '',
- return_total_amount: 0,
return_desc: "",
receiver: "",
- payee_id: "",
- is_interest: 0,
- interest_date: "",
+ bank_account_id: "",
+
remark: "",
annex: ""
})
@@ -364,12 +327,15 @@ const setFormData = async (data: Record) => {
formData[key] = data[key]
}
}
- custom_name.value = data.custom.name
- project_name.value = data.project.name
- project_code.value = data.project.project_code
- project_amount.value = data.contract.amount
- contract_name.value = data.contract.contract_name;
- contract_no.value = data.contract.contract_code
+ custom_name.value = data.custom_name
+ project_name.value = data.project_name
+ project_code.value = data.project_code
+ project_amount.value = data.contract_amount
+ contract_name.value = data.contract_name;
+ contract_no.value = data.contract_code
+ account_sn.value = data.bank_account_info.account_sn;
+ account.value = data.bank_account_info.account;
+ deposit_bank.value = data.bank_account_info.deposit_bank;
if (data.amount) {
amount_daxie.value = toChinesNum(data.amount)
}
diff --git a/src/views/recordsPayment/index.vue b/src/views/recordsPayment/index.vue
index dfd1d7c..e8488fe 100644
--- a/src/views/recordsPayment/index.vue
+++ b/src/views/recordsPayment/index.vue
@@ -43,24 +43,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
diff --git a/src/views/refund/detail.vue b/src/views/refund/detail.vue
index da6404e..8008485 100644
--- a/src/views/refund/detail.vue
+++ b/src/views/refund/detail.vue
@@ -3,85 +3,58 @@
diff --git a/src/views/refund/edit.vue b/src/views/refund/edit.vue
index 444a0e1..07c38e1 100644
--- a/src/views/refund/edit.vue
+++ b/src/views/refund/edit.vue
@@ -10,21 +10,10 @@
-
-
-
-
-
+
-
-
-
-
-
-
-
-
+
@@ -44,6 +33,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -56,7 +57,7 @@
-
+
@@ -68,8 +69,8 @@
-
-
+
+
@@ -101,10 +102,14 @@
客户收款信息
-
-
-
+
+
+
+
+
+
+
@@ -119,11 +124,11 @@
-
-
+
+
-
+
@@ -135,10 +140,10 @@
diff --git a/src/views/subcontracting_contract_detail/index.vue b/src/views/subcontracting_contract_detail/index.vue
index 77b120a..de470a9 100644
--- a/src/views/subcontracting_contract_detail/index.vue
+++ b/src/views/subcontracting_contract_detail/index.vue
@@ -1,19 +1,6 @@
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
+
-
+
@@ -90,8 +77,7 @@ const showDtail = ref(false)
// 查询条件
const queryParams = reactive({
- department_id: '',
- contract_name: ''
+
})
// 选中数据
diff --git a/src/views/subcontracting_contract_negotiation/index.vue b/src/views/subcontracting_contract_negotiation/index.vue
index 155c8cd..105204a 100644
--- a/src/views/subcontracting_contract_negotiation/index.vue
+++ b/src/views/subcontracting_contract_negotiation/index.vue
@@ -2,29 +2,22 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
查询
重置
@@ -108,11 +101,9 @@ const showDtail = ref(false)
// 查询条件
const queryParams = reactive({
- supplier_id: '',
- procurement_contract_id: '',
- contract_no: '',
-
- project_id: '',
+ negotiation_no: '',
+ negotiation_name: '',
+ negotiation_type: ''
})