diff --git a/src/components/contract/index.vue b/src/components/contract/index.vue index 8fe452e..80044b2 100644 --- a/src/components/contract/index.vue +++ b/src/components/contract/index.vue @@ -75,7 +75,7 @@ -
+
diff --git a/src/components/popup/index.vue b/src/components/popup/index.vue index 726f89f..beb129a 100644 --- a/src/components/popup/index.vue +++ b/src/components/popup/index.vue @@ -4,15 +4,8 @@
- + @@ -24,11 +17,7 @@ {{ cancelButtonText }} - + {{ confirmButtonText }} diff --git a/src/components/supplier/index.vue b/src/components/supplier/index.vue index 5112f62..9a4daca 100644 --- a/src/components/supplier/index.vue +++ b/src/components/supplier/index.vue @@ -43,11 +43,15 @@ import { usePaging } from "@/hooks/usePaging" import { useDictData } from "@/hooks/useDictOptions" import { apisupplierLists } from '@/api/suppler_list' -import { defineEmits } from "vue" +import { defineEmits, defineProps } from "vue" +let props = defineProps({ + project_id: Number +}) // 查询条件 const queryParams = reactive({ - name: '' + name: '', + project_id: props.project_id }); const { dictData } = useDictData('supplier_grade,supplier_group,supplier_category,sex') diff --git a/src/views/InvoicingRequests/edit.vue b/src/views/InvoicingRequests/edit.vue index d79b7a2..831ccc7 100644 --- a/src/views/InvoicingRequests/edit.vue +++ b/src/views/InvoicingRequests/edit.vue @@ -225,7 +225,7 @@ - + @@ -247,6 +247,8 @@ import type { PropType } from 'vue' import configs from "@/config" import useUserStore from "@/stores/modules/user"; import { computed } from "vue" +import { useDictData } from '@/hooks/useDictOptions' +const { dictData } = useDictData('pay_period,invoice_type,tax_rate') const base_url = configs.baseUrl + configs.urlPrefix const userStore = useUserStore(); @@ -288,13 +290,6 @@ const checkPhone = (rule: any, value: any, callback: (arg0: Error) => any) => { } 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 { @@ -313,12 +308,13 @@ let invoicing_amount_daxie = computed(() => { const delFileFn = (index: number) => { formDataannex.splice(index, 1) } -defineProps({ - dictData: { - type: Object as PropType>, - default: () => ({}) - } + + +let props = defineProps({ + project: Object }) + + const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() diff --git a/src/views/InvoicingRequests/index.vue b/src/views/InvoicingRequests/index.vue index 0b35299..5b1fda5 100644 --- a/src/views/InvoicingRequests/index.vue +++ b/src/views/InvoicingRequests/index.vue @@ -3,7 +3,8 @@ - + @@ -15,7 +16,8 @@ - + @@ -33,7 +35,8 @@ 新增 - + 删除 @@ -44,25 +47,25 @@ - - - diff --git a/src/views/astatistics/components/ProjectPayment.vue b/src/views/astatistics/components/ProjectPayment.vue index db98888..a787423 100644 --- a/src/views/astatistics/components/ProjectPayment.vue +++ b/src/views/astatistics/components/ProjectPayment.vue @@ -27,9 +27,6 @@ const year = ref(new Date().getFullYear()) const showChart = ref(true) -/* 楚子航心里微微一动,点开了那个链接,进入一个漆黑的博客页面,博客的主人似乎开通就没有更新过。楚子航对着那个页面思考了片刻,忽然同时按下“Ctrl”和“A”键,这个键组合是“全选”,页面 -上的全部文字都被选择并变色,于是隐藏在黑背景里的黑色文字浮现了出来:“你需要有一张交通卡,一日之间在一线和环线上的每个地铁站进入各一次,每次都要刷这张卡,然后你就会看见卡片变成金色的。 -刷这张地铁卡,就能到达隐藏的站点。”*/ const customList = reactive([ { @@ -40,11 +37,16 @@ const customList = reactive([ name: "年度回款金额", value: 3 }, + { + name: "年度未回款金额", + value: 3 + }, { name: "年度回款计划金额", value: 3 }, + ]) const labelOption = { @@ -63,8 +65,7 @@ const initChart = (id, opt) => { const getCustom = async () => { showChart.value = false - - let res = await apistatisticsprojectRefund() + let res = await apistatisticsprojectRefund({ year: year.value }) showChart.value = true await nextTick() var option4 = { @@ -76,7 +77,7 @@ const getCustom = async () => { }, legend: { data: [res.invoice_series.name, res.refund_plan_series.name, res.refund_series - .name,] + .name, res.not_refund_series.name,] }, toolbox: { show: true, @@ -144,16 +145,30 @@ const getCustom = async () => { } } }, - + { + name: res.not_refund_series.name, + type: 'bar', + label: labelOption, + emphasis: { + focus: 'series' + }, + data: res.not_refund_series.data, + itemStyle: { + normal: { + label: { + } + } + } + }, ] }; initChart("ProjectPayment", option4) customList[0].value = res.year_invoicing_amount customList[1].value = res.year_refund_amount - customList[2].value = res.year_refund_plan_amount + customList[2].value = res.year_not_refund_amount + customList[3].value = res.year_refund_plan_amount } - getCustom() +} diff --git a/src/views/project_personnel/edit.vue b/src/views/project_personnel/edit.vue index 83cdc6a..9548ed3 100644 --- a/src/views/project_personnel/edit.vue +++ b/src/views/project_personnel/edit.vue @@ -9,13 +9,13 @@ - + - + @@ -51,13 +51,14 @@ - + - + @@ -116,25 +117,16 @@