diff --git a/src/layout/components/TopNotice/index.vue b/src/layout/components/TopNotice/index.vue index 0d970434..eb675515 100644 --- a/src/layout/components/TopNotice/index.vue +++ b/src/layout/components/TopNotice/index.vue @@ -232,6 +232,10 @@ export default { showNotice(item){ this.setAddReadTimes(item.noticeId); + this.$router.push({ + path: item.clickPath, + }); + }, exit() { if (this.ws) { diff --git a/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue b/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue index 807c9538..e26ac20c 100644 --- a/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue +++ b/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue @@ -55,8 +55,8 @@ data() { queryParams:{ pageNum: 1, pageSize: 50, - custNo:this.value, - custName:null + code:this.value, + name:null } }; }, @@ -76,7 +76,7 @@ created() { methods: { confirmOk(){ - let selIdStr=""; + let selCodeStr=""; let selNameStr=""; if(this.svalue&&this.svalue.length>0){ diff --git a/src/views/emis/emisCommissionDtl/index.vue b/src/views/emis/emisCommissionDtl/index.vue index 91883648..3ec76b12 100644 --- a/src/views/emis/emisCommissionDtl/index.vue +++ b/src/views/emis/emisCommissionDtl/index.vue @@ -27,7 +27,14 @@ - + + + + + + + + @@ -165,18 +178,18 @@ --> - + - + @@ -353,9 +366,25 @@ export default { } }; }, + watch: { + $route () { + if(this.$route.query.action=='queryProfitDtl'){ + this.queryParams.empName=this.$route.query.empName; + this.queryParams.billMonth=this.$route.query.billMonth; + this.queryParams.paymentType=this.$route.query.paymentType; + this.getList(); + } + } + }, created() { this.formBatch.calcType='1'; + if(this.$route.query.action=='queryProfitDtl'){ + this.queryParams.empName=this.$route.query.empName; + this.queryParams.billMonth=this.$route.query.billMonth; + this.queryParams.paymentType=this.$route.query.paymentType; + } + this.getList(); }, methods: { @@ -505,12 +534,35 @@ export default { this.$modal.msgSuccess("删除成功"); }).catch(() => {}); }, - /** 导出按钮操作 */ - // handleExport() { - // this.download('emis/emisBaseInvoiceChInfo/export', { - // ...this.queryParams - // }, `emisBaseInvoiceChInfo_${new Date().getTime()}.xlsx`) - // }, + //指定列求和 + getSummaries(param) { + const { columns, data } = param; + const sums = []; + columns.forEach((column, index) => { + if (index === 0) { + sums[index] = '合计'; + return; + } + if ( + column.property === 'money' + ) { + const values = data.map(item => Number(item.money)); + sums[index] = values.reduce((prev, curr) => { + const value = Number(curr); + if (!isNaN(value)) { + return prev + curr; + } else { + return prev; + } + }, 0); + sums[index] = sums[index].toFixed(2); + } + + }); + console.log(sums); + return sums + }, + handleExport() { const loadingInstance = this.$loading({ text: '正在导出...' diff --git a/src/views/emis/emisCommissionProfit/index.vue b/src/views/emis/emisCommissionProfit/index.vue index 03f720bd..72f63664 100644 --- a/src/views/emis/emisCommissionProfit/index.vue +++ b/src/views/emis/emisCommissionProfit/index.vue @@ -86,8 +86,16 @@ - - + + + {{ scope.row.money }} + + + + + {{ scope.row.monthMoney }} + + @@ -173,20 +181,6 @@ export default { id:null, titleView:"", openView: false, - // 更新站点时间范围 - daterangeStartDate: [], - // 更新站点时间范围 - daterangeEndDate: [], - // 更新站点时间范围 - daterangeAuditDate: [], - // 更新站点时间范围 - daterangeConfirmCenterDate: [], - // 更新站点时间范围 - daterangeConfirmSiteDate: [], - // 更新站点时间范围 - daterangeCreateTime: [], - // 更新站点时间范围 - daterangeUpdateTime: [], // 查询参数 queryParams: { pageNum: 1, @@ -225,6 +219,7 @@ export default { }, }; }, + created() { this.getList(); }, @@ -245,6 +240,22 @@ export default { }); }, + handleShowDtlList(row,paymentType){ + let item0=row; + this.$router.push( + { + path: '/Commission/EmisCommissionDtl', + query: { + action: "queryProfitDtl", + empName: item0.empName, + billMonth: item0.billMonth, + paymentType:paymentType, + '_t':(new Date()).getTime() + } + } + ); + }, + /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/src/views/emis/emisSettleInvoiceRecord/panel/CenterInvoiceRecordDealListPanel.vue b/src/views/emis/emisSettleInvoiceRecord/panel/CenterInvoiceRecordDealListPanel.vue index 993a76bc..edf95e3e 100644 --- a/src/views/emis/emisSettleInvoiceRecord/panel/CenterInvoiceRecordDealListPanel.vue +++ b/src/views/emis/emisSettleInvoiceRecord/panel/CenterInvoiceRecordDealListPanel.vue @@ -82,6 +82,14 @@ /> + + + + @@ -232,7 +240,7 @@ - + diff --git a/src/views/emis/emisTransPlanRule/emisTransPlanRuleForm.vue b/src/views/emis/emisTransPlanRule/emisTransPlanRuleForm.vue index 7065d73b..f6b1874a 100644 --- a/src/views/emis/emisTransPlanRule/emisTransPlanRuleForm.vue +++ b/src/views/emis/emisTransPlanRule/emisTransPlanRuleForm.vue @@ -10,17 +10,13 @@ - - - - /Users/alan/work/git/tanex56/emis-frontend/src/views/emis/EmisBaseTools/EmisSupplierMultiplePicker.vue - - + + @@ -82,7 +78,6 @@ import { listEmisTransPlanRule, getEmisTransPlanRule, delEmisTransPlanRule, addEmisTransPlanRule, updateEmisTransPlanRule } from "@/api/emis/emisTransPlanRule"; import emisTransPlanRuleForm from '@/views/emis/emisTransPlanRule/emisTransPlanRuleForm'; -import EmisSupplierPicker from '@/views/emis/EmisBaseTools/EmisSupplierPicker'; import EmisSiteSimplePicker1 from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue'; import EmisSiteSimplePicker2 from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue'; @@ -91,6 +86,10 @@ import TransLinePicker from '@/views/emis/EmisBaseTools/TransLinePicker.vue'; import TransProductPicker from '@/views/emis/EmisBaseTools/TransProductPicker.vue'; import TransProductMultiplePicker from '@/views/emis/EmisBaseTools/TransProductMultiplePicker.vue'; + +import EmisSupplierMultiplePicker from '@/views/emis/EmisBaseTools/EmisSupplierMultiplePicker'; +// import EmisSupplierPicker from '@/views/emis/EmisBaseTools/EmisSupplierPicker'; + import EmpNamePicker from '@/views/emis/EmisBaseTools/EmpNamePicker.vue'; export default { @@ -103,6 +102,7 @@ export default { components: { emisTransPlanRuleForm, EmisSupplierPicker, + EmisSupplierMultiplePicker, EmisSiteSimplePicker1, EmisSiteSimplePicker2, TransLinePicker, @@ -124,9 +124,7 @@ export default { id: [ { required: true, message: "id不能为空", trigger: "blur" } ], - delFlag: [ - { required: true, message: "删除标志(0代表存在不能为空", trigger: "blur" } - ], + } }; }, diff --git a/src/views/emis/emisWaybillAjustApply/adjustPanel.vue b/src/views/emis/emisWaybillAjustApply/adjustPanel.vue index d80e6452..4adf7595 100644 --- a/src/views/emis/emisWaybillAjustApply/adjustPanel.vue +++ b/src/views/emis/emisWaybillAjustApply/adjustPanel.vue @@ -25,7 +25,7 @@ {{billDetail.reciever.countryName}} - + @@ -41,7 +41,7 @@ {{billDetail.transLineTypeName}} - + @@ -599,7 +599,7 @@ 寄件信息调整 - + {{ billDetail.sender.name }} {{ billDetail.sender.phone }} {{ billDetail.sender.company }} @@ -612,7 +612,7 @@ - + @@ -657,7 +657,7 @@ 收件信息调整 - + {{ billDetail.reciever.name }} {{ billDetail.reciever.phone }} {{ billDetail.reciever.company }} @@ -670,7 +670,7 @@ - + @@ -720,7 +720,7 @@ - + diff --git a/src/views/emis/emisWaybillAjustApply/emisWaybillAjustApplyForm.vue b/src/views/emis/emisWaybillAjustApply/emisWaybillAjustApplyForm.vue index b0d46c22..67204d49 100644 --- a/src/views/emis/emisWaybillAjustApply/emisWaybillAjustApplyForm.vue +++ b/src/views/emis/emisWaybillAjustApply/emisWaybillAjustApplyForm.vue @@ -141,9 +141,20 @@ export default { this.form = response.data; this.form.jsonDataObj=JSON.parse(this.form.jsonData); console.log("===>this.form.jsonDataObj ==>",this.form.jsonDataObj); - this.billDetail=this.form.jsonDataObj.oldValue; - this.form.jsonDataObj.oldValue=Object.assign({},this.billDetail); - this.form.jsonDataObj.newValue=Object.assign({},this.form.jsonDataObj.newValue); + + if(this.form.jsonDataObj.oldValue!=null){ + this.billDetail=this.form.jsonDataObj.oldValue; + this.form.jsonDataObj.oldValue=Object.assign({},this.billDetail); + }else{ + this.$set(this.form.jsonDataObj,'oldValue',{}) + } + + + if(this.form.jsonDataObj.newValue!=null){ + this.form.jsonDataObj.newValue=Object.assign({},this.form.jsonDataObj.newValue); + }else{ + this.$set(this.form.jsonDataObj,'newValue',{}) + } // 再次申请 console.log("===>this.isReApply ==>",this.isReApply);