From 41227b0dcefb3e2a02a89755ee57d5b5343855b7 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 14 Oct 2021 10:20:56 +0800 Subject: [PATCH 01/14] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProjectDetailModal.vue | 9 +++++---- src/components/tools/StatusSlot.vue | 17 ++++++++++++----- .../projectManagement/CommitteeMeeting.vue | 2 +- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/components/ProjectDetailModal.vue b/src/components/ProjectDetailModal.vue index 2d48d00..525a3e8 100644 --- a/src/components/ProjectDetailModal.vue +++ b/src/components/ProjectDetailModal.vue @@ -142,7 +142,7 @@ class="j-table-force-nowrap" > - 查看物流 + 查看物流 @@ -227,7 +227,7 @@ const columns = [ { title: '快递', align: 'center', - dataIndex: 'sendMethod' + dataIndex: 'sendMethod_dictText' }, { title: '快递单号', @@ -324,8 +324,9 @@ export default { /* * 查看物流 * */ - lookLogistics() { - window.open('https://www.ems.com.cn/', '_blank') + lookLogistics(record) { + const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng' + window.open(`https://www.kuaidi100.com/chaxun?com=${ com }&nu=${ record.postNo }`) }, /* * 去合同详情 传入合同id diff --git a/src/components/tools/StatusSlot.vue b/src/components/tools/StatusSlot.vue index 72ed18b..0244431 100644 --- a/src/components/tools/StatusSlot.vue +++ b/src/components/tools/StatusSlot.vue @@ -1,9 +1,9 @@ @@ -147,6 +146,7 @@ export default { }, /** * 显示的模板数据,即根据返回值怎么处理数据 + * 判断是否存在一句话里所有变量为null,存在就不显示那句话了 * @param item -传入的item的值 * @return 返回一个模板字符串用于后续显示,可按照需求进行更改 */ @@ -155,11 +155,17 @@ export default { console.log(item) // 来款 if (this.statusKey === 'paymentRecord') { - result = `${ item.paymentDate }到账${ item.amountReceived }` + if (item.paymentDate || item.amountReceived) { + result = `${ item.paymentDate }到账${ item.amountReceived }` + } } else if (this.statusKey === 'bill') { - result = `${ item.billDate }新增发票,发票单号:${ item.billNo }` + if (item.billDate || item.billNo) { + result = `${ item.billDate }新增发票,发票单号:${ item.billNo }` + } } else if (this.statusKey === 'mail') { - result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }` + if (item.sendDate || item.postNo) { + result = `${ item.sendDate }新增邮寄信息,邮寄单号:${ item.postNo }` + } } return result } @@ -173,6 +179,7 @@ export default { diff --git a/src/views/projectManagement/CommitteeMeeting.vue b/src/views/projectManagement/CommitteeMeeting.vue index bb79a94..02b9e75 100644 --- a/src/views/projectManagement/CommitteeMeeting.vue +++ b/src/views/projectManagement/CommitteeMeeting.vue @@ -197,7 +197,7 @@ export default { align: 'center', dataIndex: 'startTime', width: 160, - customRender: (text, record) => () + customRender: (text, record) => () }, { title: '召开地点', From eb1edd8848d5fc6d690213c7c0924f3229d18193 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 14 Oct 2021 10:28:06 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E5=AF=86=E7=A0=81=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=98=BE=E9=9A=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/UserPassword.vue | 6 +++--- src/views/system/modules/UserModal.vue | 4 ++-- src/views/user/Login.vue | 4 ++-- src/views/user/alteration/Alteration.vue | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/tools/UserPassword.vue b/src/components/tools/UserPassword.vue index 558b282..c82c11a 100644 --- a/src/components/tools/UserPassword.vue +++ b/src/components/tools/UserPassword.vue @@ -17,14 +17,14 @@ @paste.native.capture.prevent="handleOperate" autocomplete="new-password" label="旧密码"> - + - - - - diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index f5b3626..c36b422 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -24,14 +24,14 @@ - - + diff --git a/src/views/user/alteration/Alteration.vue b/src/views/user/alteration/Alteration.vue index f5f6cfd..4f61134 100644 --- a/src/views/user/alteration/Alteration.vue +++ b/src/views/user/alteration/Alteration.vue @@ -70,13 +70,13 @@ label="新密码" :labelCol="{span: 5}" :wrapperCol="{span: 19}"> - - + @@ -87,13 +87,13 @@ label="确认密码" :labelCol="{span: 5}" :wrapperCol="{span: 19}"> - - + From 0ba7f89dd7d55e477c2eb2b98ac82ddc4aad6912 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 14 Oct 2021 14:16:06 +0800 Subject: [PATCH 03/14] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../businessManagement/ContactManagement.vue | 3 +- .../WorkingGroupMemberUnitMaintenance.vue | 2 + .../WorkingGroupProjectManagement.vue | 2 +- .../WorkingGroupMemberSetChargeNotice.vue | 40 +++++++++++-------- .../modules/WorkingGroupMemberUnitModule.vue | 37 +++++++++-------- .../modules/WorkingGroupProjectModule.vue | 10 ++--- 6 files changed, 51 insertions(+), 43 deletions(-) diff --git a/src/views/businessManagement/ContactManagement.vue b/src/views/businessManagement/ContactManagement.vue index 5ec5584..4b7181b 100644 --- a/src/views/businessManagement/ContactManagement.vue +++ b/src/views/businessManagement/ContactManagement.vue @@ -134,7 +134,7 @@ export default { }, { title: '职务', align: 'center', - width: 160, + width: 280, dataIndex: 'post', scopedSlots: { customRender: 'text' } }, { @@ -149,6 +149,7 @@ export default { }, { title: '企业名称', align: 'center', + width: 280, dataIndex: 'companyName', scopedSlots: { customRender: 'text' } }, { diff --git a/src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue b/src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue index acbf850..9bedd60 100644 --- a/src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue +++ b/src/views/projectManagement/WorkingGroupMemberUnitMaintenance.vue @@ -379,6 +379,7 @@ export default { type: 'chargeNoticeA', label: `A:${ this.workingGroupDetail.chargeNoticeNoA }`, value: this.workingGroupDetail.chargeNoticeNoA, + key: this.workingGroupDetail.chargeA, yearCharge: this.workingGroupDetail.yearChargeA, chargeNoticeId: this.workingGroupDetail.chargeNoticeAId } @@ -390,6 +391,7 @@ export default { type: 'chargeNoticeB', label: `B:${ this.workingGroupDetail.chargeNoticeNoB }`, value: this.workingGroupDetail.chargeNoticeNoB, + key: this.workingGroupDetail.chargeB, yearCharge: this.workingGroupDetail.yearChargeB, chargeNoticeId: this.workingGroupDetail.chargeNoticeBId } diff --git a/src/views/projectManagement/WorkingGroupProjectManagement.vue b/src/views/projectManagement/WorkingGroupProjectManagement.vue index d633fa5..6208c54 100644 --- a/src/views/projectManagement/WorkingGroupProjectManagement.vue +++ b/src/views/projectManagement/WorkingGroupProjectManagement.vue @@ -117,7 +117,7 @@ import SelectPrincipal from '@comp/company/SelectPrincipal' import ProgressBar from '@comp/ProgressBar' import PageHeaderTitle from '@comp/layouts/PageHeaderTitle' import IconWorkingGruop from '@/assets/imgs/icon/icon_working_group.png' -import { copyWorkingGroup, checkoutWorkingGroupPrincipal } from '../../api/incomePaymentsApi' +import { copyWorkingGroup } from '../../api/incomePaymentsApi' import { getAction } from '../../api/manage' export default { diff --git a/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue b/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue index d7deb3c..7408e47 100644 --- a/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue +++ b/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue @@ -11,8 +11,16 @@ - + + + + {{ item.label }} + + + @@ -146,25 +154,25 @@ export default { * 收费通知号变化, 回显本年应收款和文件 */ handleChargeNoticeChange(e) { - let chargeNoticeNo = e.target.value - this.pickChargeNoticeType(chargeNoticeNo) + let key = e.target.value + this.pickChargeNoticeType(key) }, /** * 匹配显隐 - * @param value + * @param key */ - pickChargeNoticeType(value) { + pickChargeNoticeType(key) { this.chargeNoticeList.forEach(item => { - if (item.value === value) { - if (item.type === 'chargeNoticeA') { - this.selectedChargeNotice = 'A' - this.model.receivableAmount = item.yearCharge - this.model.chargeNoticeId = item.chargeNoticeId - } else { - this.selectedChargeNotice = 'B' - this.model.receivableAmount = item.yearCharge - this.model.chargeNoticeId = item.chargeNoticeId - } + if (item.type === 'chargeNoticeA' && key === 'a') { + this.selectedChargeNotice = 'A' + this.model.receivableAmount = item.yearCharge + this.model.chargeNoticeId = item.chargeNoticeId + this.model.chargeNoticeNo = item.value + } else if (item.type === 'chargeNoticeB' && key === 'b'){ + this.selectedChargeNotice = 'B' + this.model.receivableAmount = item.yearCharge + this.model.chargeNoticeId = item.chargeNoticeId + this.model.chargeNoticeNo = item.value } }) this.$nextTick(() => { diff --git a/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue b/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue index 57da0fb..5b62379 100644 --- a/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue +++ b/src/views/projectManagement/modules/WorkingGroupMemberUnitModule.vue @@ -100,9 +100,9 @@ - + {{ item.label }} @@ -325,7 +325,7 @@ export default { rules: [{ required: true, message: '请输入合同号' }], validateTrigger: 'blur' }, - chargeNoticeNo: { + charge: { rules: [{ required: true, message: '请输入收费通知号' }], validateTrigger: 'blur' }, @@ -400,7 +400,6 @@ export default { this.companyChange(this.selectedCompany) this.form.resetFields() this.model = Object.assign({}, record) - console.log(this.signedContactId) // 是否存在从收入合同传入的签订联系人id this.model.contactsIdOne = this.signedContactId || this.model.contactsTemporaryIdOne || undefined this.model.contactsIdTwo = this.model.contactsTemporaryIdTwo || undefined @@ -426,10 +425,10 @@ export default { } } this.chargeWayType = record.chargeWay - this.pickChargeNoticeType(record.chargeNoticeNo) + this.pickChargeNoticeType(record.charge) this.visible = true this.$nextTick(() => { - this.form.setFieldsValue(pick(this.model, 'chargeCompany', 'contactsIdOne', 'contactsIdTwo', 'contactsIdThree', 'mailContactsId', 'chargeWay', 'chargeNoticeNo', 'receivableAmount', 'contractNum', 'receivableAmount', 'chargeNoticeId', 'needInvoice', 'remarks')) + this.form.setFieldsValue(pick(this.model, 'chargeCompany', 'contactsIdOne', 'contactsIdTwo', 'contactsIdThree', 'mailContactsId', 'chargeWay', 'charge', 'receivableAmount', 'contractNum', 'receivableAmount', 'chargeNoticeId', 'needInvoice', 'remarks')) }) }, close() { @@ -512,25 +511,25 @@ export default { * 收费通知号变化, 回显本年应收款和文件 */ handleChargeNoticeChange(e) { - let chargeNoticeNo = e.target.value - this.pickChargeNoticeType(chargeNoticeNo) + let key = e.target.value + this.pickChargeNoticeType(key) }, /** * 匹配收费通知显隐 * @param value */ - pickChargeNoticeType(value) { + pickChargeNoticeType(key) { this.chargeNoticeList.forEach(item => { - if (item.value === value) { - if (item.type === 'chargeNoticeA') { - this.selectedChargeNotice = 'A' - this.model.receivableAmount = item.yearCharge - this.model.chargeNoticeId = item.chargeNoticeId - } else { - this.selectedChargeNotice = 'B' - this.model.receivableAmount = item.yearCharge - this.model.chargeNoticeId = item.chargeNoticeId - } + if (item.type === 'chargeNoticeA' && key === 'a') { + this.selectedChargeNotice = 'A' + this.model.receivableAmount = item.yearCharge + this.model.chargeNoticeId = item.chargeNoticeId + this.model.chargeNoticeNo = item.value + } else if (item.type === 'chargeNoticeB' && key === 'b') { + this.selectedChargeNotice = 'B' + this.model.receivableAmount = item.yearCharge + this.model.chargeNoticeId = item.chargeNoticeId + this.model.chargeNoticeNo = item.value } }) this.$nextTick(() => { diff --git a/src/views/projectManagement/modules/WorkingGroupProjectModule.vue b/src/views/projectManagement/modules/WorkingGroupProjectModule.vue index 51d79fb..ad3ea0d 100644 --- a/src/views/projectManagement/modules/WorkingGroupProjectModule.vue +++ b/src/views/projectManagement/modules/WorkingGroupProjectModule.vue @@ -93,9 +93,7 @@ - - { From faf6363122fc2f454a6a14d72b2f6fe80d36bc3a Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 14 Oct 2021 15:52:02 +0800 Subject: [PATCH 04/14] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=BB=84=E6=88=90?= =?UTF-8?q?=E5=91=98=E6=94=B6=E8=B4=B9=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/WorkingGroupMemberSetChargeNotice.vue | 8 ++------ .../modules/WorkingGroupMemberUnitModule.vue | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue b/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue index 7408e47..53a74df 100644 --- a/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue +++ b/src/views/projectManagement/modules/WorkingGroupMemberSetChargeNotice.vue @@ -34,9 +34,7 @@ - - - - Date: Thu, 14 Oct 2021 16:44:04 +0800 Subject: [PATCH 05/14] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E5=92=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=82=E4=BC=9A=E4=BA=BA=E5=8E=BB=E6=8E=89=E7=BC=B4?= =?UTF-8?q?=E8=B4=B9=E5=87=AD=E8=AF=81=E5=92=8C=E8=AE=A2=E5=8D=95=E5=90=8E?= =?UTF-8?q?=E5=9B=9B=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meetManage/OtherMeetingForm.vue | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/views/incomePayments/meetManage/OtherMeetingForm.vue b/src/views/incomePayments/meetManage/OtherMeetingForm.vue index 4bd6555..91030eb 100644 --- a/src/views/incomePayments/meetManage/OtherMeetingForm.vue +++ b/src/views/incomePayments/meetManage/OtherMeetingForm.vue @@ -89,21 +89,22 @@ - - - - - + + + + + - - - - - + + + + + + + + + + @@ -111,7 +112,7 @@ From 4b11612ae68d2d817001f96f67b27a9159910c9b Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Fri, 15 Oct 2021 18:20:28 +0800 Subject: [PATCH 13/14] =?UTF-8?q?Bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statisticalReport/WholeInstituteStatisticsList.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/statisticalReport/WholeInstituteStatisticsList.vue b/src/views/statisticalReport/WholeInstituteStatisticsList.vue index 73a6801..a86b048 100644 --- a/src/views/statisticalReport/WholeInstituteStatisticsList.vue +++ b/src/views/statisticalReport/WholeInstituteStatisticsList.vue @@ -391,6 +391,7 @@ export default { this.queryParam = { year: new Date().getFullYear().toString() } + this.exportSelectedKeys = [] this.loadData(1) }, /** From ad25315c17bb5dac0b9546c2d3ae4228c6b599a8 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Mon, 18 Oct 2021 10:08:49 +0800 Subject: [PATCH 14/14] =?UTF-8?q?=E6=89=93=E5=8C=85=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=BC=81=E4=B8=9Aid=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../arriveAndInvoicing/ArriveAndInvoivingList.vue | 4 ++-- src/views/packManagement/modules/PackCompanyModule.vue | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue index 760ae88..3202450 100644 --- a/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue +++ b/src/views/financialManagement/arriveAndInvoicing/ArriveAndInvoivingList.vue @@ -8,8 +8,8 @@ - - + diff --git a/src/views/packManagement/modules/PackCompanyModule.vue b/src/views/packManagement/modules/PackCompanyModule.vue index 9495164..8314de3 100644 --- a/src/views/packManagement/modules/PackCompanyModule.vue +++ b/src/views/packManagement/modules/PackCompanyModule.vue @@ -208,7 +208,12 @@ export default { // 触发表单验证 this.form.validateFields((err, values) => { if (!err) { - values.companyId = values.company.id + // 判断选中企业是否改变 + if (values.company.id === this.model.companyId) { + values.companyId = this.model.companyTemporaryId + } else { + values.companyId = values.company.id + } that.confirmLoading = true let httpurl = '' if (!this.model.id) {