diff --git a/.env.development b/.env.development index 5064008..9e45bbc 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,4 @@ NODE_ENV = 'development' -VITE_APP_BASE_URL = 'https://ceshi-engineering.lihaink.cn/' \ No newline at end of file +# VITE_APP_BASE_URL = 'https://ceshi-engineering.lihaink.cn/' +VITE_APP_BASE_URL = 'http://192.168.1.13:8089/' \ No newline at end of file diff --git a/src/components/materialPurchase/index.vue b/src/components/materialPurchase/index.vue new file mode 100644 index 0000000..e29c327 --- /dev/null +++ b/src/components/materialPurchase/index.vue @@ -0,0 +1,69 @@ + + + \ No newline at end of file diff --git a/src/views/bid_buy_bidding_document/edit.vue b/src/views/bid_buy_bidding_document/edit.vue index b7f5392..d37c44f 100644 --- a/src/views/bid_buy_bidding_document/edit.vue +++ b/src/views/bid_buy_bidding_document/edit.vue @@ -203,6 +203,7 @@ const customEvent = (e: any) => { matsname.value = e.custom_name project_name.value = e.project_name project_code.value = e.project_code + formData.bid_document_no = '' showDialog.value = false; }; diff --git a/src/views/bid_document_examination/edit.vue b/src/views/bid_document_examination/edit.vue index 1828f39..091905f 100644 --- a/src/views/bid_document_examination/edit.vue +++ b/src/views/bid_document_examination/edit.vue @@ -2,14 +2,14 @@
- + - + @@ -249,7 +249,7 @@ - + @@ -289,6 +289,7 @@ import biddocumentTable from "@/components/biddocument/index.vue" import { apiBidDocumentExaminationAdd, apiBidDocumentExaminationEdit, apiBidDocumentExaminationDetail } from '@/api/bid_document_examination' import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' +import { watch } from "vue" defineProps({ dictData: { @@ -369,7 +370,6 @@ const delFileFn1 = (index: number) => { } //金额计算 const jiprice1 = (row: any, index: any) => { - console.log(row) if (row.cost_price) { row.cost_amount = row.num * row.cost_price } @@ -378,7 +378,6 @@ const jiprice1 = (row: any, index: any) => { } } const jiprice2 = (row: any, index: any) => { - console.log(row) if (row.num) { row.cost_amount = row.num * row.cost_price } @@ -388,7 +387,6 @@ const jiprice3 = (row: any, index: any) => { if (row.num) { row.sale_amount = row.num * row.sale_price } - // console.log(row) } // 上传文件 @@ -437,7 +435,7 @@ const formData = reactive({ id: '', approve_id: 0, buy_bidding_document_id: '', - + custom_name: "", bidding_project_overview: '', project_introduction: '', technical_protocol_deviation: '', @@ -453,6 +451,15 @@ const formData = reactive({ quotation_detail: [] }) +watch(tableData.value, (newVal, oldVal) => { + formData.business_review_total_amount = 0 + tableData.value.forEach(item => { + formData.business_review_total_amount += Number(item.sale_amount) + item.sale_amount = item.num * item.sale_price + }) +}) + + //获取值 const customEvent = (e: any) => { formData.buy_bidding_document_id = e.id; @@ -473,6 +480,7 @@ const customEvent = (e: any) => { bidding_project_overview.value = e.bid_project_overview project_introduction.value = e.project_desc showDialog.value = false + formData.custom_name = e.custom_name }; const customEvent1 = (e: any) => { @@ -486,7 +494,6 @@ const customEvent1 = (e: any) => { // customer_name.value = e.name; showDialog1.value = false; - console.log(tableData.value) }; // 表单验证 const formRules = reactive({ @@ -502,7 +509,7 @@ const setFormData = async (data: Record) => { } } if (data.dept_id) { - getlist1(data.org_id) + // getlist1(data.org_id) } @@ -594,7 +601,7 @@ const handleSubmit = async () => { const open = (type = 'add') => { mode.value = type popupRef.value?.open() - getlist() + // getlist() } // 关闭回调 diff --git a/src/views/bid_document_examination_detail/edit.vue b/src/views/bid_document_examination_detail/edit.vue index a3d6a15..919de48 100644 --- a/src/views/bid_document_examination_detail/edit.vue +++ b/src/views/bid_document_examination_detail/edit.vue @@ -3,18 +3,29 @@ + - + + + + + + + - + - - + + @@ -63,13 +74,14 @@ +
diff --git a/src/views/contract_negotiation/index.vue b/src/views/contract_negotiation/index.vue index 83cca60..40ff75c 100644 --- a/src/views/contract_negotiation/index.vue +++ b/src/views/contract_negotiation/index.vue @@ -38,8 +38,6 @@ - - diff --git a/src/views/finance_payment_apply/edit.vue b/src/views/finance_payment_apply/edit.vue index fc9891d..e10648e 100644 --- a/src/views/finance_payment_apply/edit.vue +++ b/src/views/finance_payment_apply/edit.vue @@ -231,10 +231,8 @@ import suppliertable from '@/components/supplier/index.vue' import subcontractingDialog from '@/components/procurementsubcontracting_selector/index.vue' import paylistDialog from '@/components/paylist/index.vue' import subcontracting from '@/components/procurementsubcontracting_selector/subcontracting.vue' - const active = ref(0) import bankaccountDialog from '@/components/bankaccount/index.vue' - import { paymentapplyAdd, paymentapplyEdit, paymentapplyDetail } from '@/api/paymentrequest' import { toChinesNum } from "@/utils/util"; import { getAllProjectTypes } from '@/api/projecttype' @@ -370,31 +368,24 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ - supplier_id: 1, - approve_id: '', - contract_id: '', - pay_date: '', - period: '', - finance_payment_plan_id: '', - pay_type: '', - applier: '', - invoice_status: '', - amount: '', - amount_daxie: '', - desc: '', - remark: '', - annex: [], - bank: '', - account_name: '', - account: '', - contract_cate: 1, + id: "", + "supplier_id": 0, + "contract_cate": 0, + "contract_id": 0, + "finance_payment_plan_id": 0, + "pay_date": "string", "payment_nature": 0, - "apply_user": "", - "payee_bank": "", - "payee_account_name": "", - "payee_account": "", - "bank_account_id": '', - bank_account_name: "" + "pay_type": 0, + "apply_user": "string", + "invoice_status": 0, + "amount": 0, + "desc": "string", + "remark": "string", + "annex": "string", + "payee_bank": "string", + "payee_account_name": "string", + "payee_account": "string", + "bank_account_id": 0 }) diff --git a/src/views/procurement_contract/edit.vue b/src/views/procurement_contract/edit.vue index 1eadbc6..30c9f0b 100644 --- a/src/views/procurement_contract/edit.vue +++ b/src/views/procurement_contract/edit.vue @@ -119,7 +119,7 @@
- 选择项目MRP缺口 + 选择采购申请
@@ -445,6 +445,10 @@ const customEvent = (e: any) => { formData.project_id = e.id project_code.value = e.project_code showDialog.value = false; + materialList.splice(0, 9999) + + + }; const customEvent1 = (e: any) => { @@ -467,14 +471,14 @@ const customEvent2 = (e: any) => { } //监听材料运算 const materialji1 = (row: any, index: any) => { - // console.log(row) + const num = Number(row.num) || 0 const price = Number(row.price) || 0 const tax_rate = Number(row.tax_rate ? row.tax_rate.name : 0) || 0 - row.amount_excluding_tax = num * price - row.amount_including_tax = num * price * (tax_rate / 100) - amount.value = num * price - amount_excluding_tax.value = num * price * (tax_rate / 100) + row.amount_including_tax = num * price + // row.amount_including_tax = num * price * (tax_rate / 100) + // amount.value = num * price + // amount_excluding_tax.value = num * price * (tax_rate / 100) }; const materialji2 = (row: any, index: any, e) => { console.log(e, row) diff --git a/src/views/procurement_contract_detail/edit.vue b/src/views/procurement_contract_detail/edit.vue index 9ce01cd..54564a2 100644 --- a/src/views/procurement_contract_detail/edit.vue +++ b/src/views/procurement_contract_detail/edit.vue @@ -2,21 +2,25 @@
- - + + - - + + - + - + - + @@ -25,8 +29,18 @@ - + + + + +
+ + + +
+ +
@@ -35,8 +49,12 @@ import type { FormInstance } from 'element-plus' import Popup from '@/components/popup/index.vue' import { apiProcurementContractDetailAdd, apiProcurementContractDetailEdit, apiProcurementContractDetailDetail } from '@/api/procurement_contract_detail' -import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' + +import procurementsubcontractingSelector from "@/components/procurementsubcontracting_selector/index.vue" +import materialPurchase from "@/components/materialPurchase/index.vue" + + defineProps({ dictData: { type: Object as PropType>, @@ -47,6 +65,8 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') +const showDialog = ref(false) +const showDialog1 = ref(false) // 弹窗标题 @@ -58,7 +78,10 @@ const popupTitle = computed(() => { const formData = reactive({ id: '', procurement_contract_id: '', + project_id: "", + procurement_contract_code: "", material_procurement_application_id: '', + material_purchase_request_code: "", num: '', unit_price_including_tax: '', tax_rate: '', @@ -66,7 +89,21 @@ const formData = reactive({ amount_including_tax: '', }) +const customEvent = (e: any) => { + console.log(e) + formData.procurement_contract_id = e.id + formData.project_id = e.project_id + formData.procurement_contract_code = e.contract_name + formData.material_procurement_application_id = '' + formData.material_purchase_request_code = '' + showDialog.value = false +} +const customEvent1 = (e: any) => { + formData.material_procurement_application_id = e.id + formData.material_purchase_request_code = e.material_purchase_request_code + showDialog1.value = false +} // 表单验证 const formRules = reactive({ diff --git a/src/views/procurement_contract_detail/index.vue b/src/views/procurement_contract_detail/index.vue index 76abc07..d085db8 100644 --- a/src/views/procurement_contract_detail/index.vue +++ b/src/views/procurement_contract_detail/index.vue @@ -3,10 +3,12 @@ - + - + 查询 @@ -15,15 +17,16 @@ - + +
@@ -50,10 +53,12 @@