| 
					
				 | 
			
			
				@@ -93,6 +93,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 统计 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot="footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-row :gutter="15"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <a-col :md="4" :sm="24">总部合计数量:{{ (totalData && (totalData.totalQty || totalData.totalQty==0)) ? totalData.totalQty: '--' }}</a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-col :md="4" :sm="24">合计订货数量:{{ (totalData && (totalData.totalQty || totalData.totalQty==0)) ? totalData.totalQty: '--' }}</a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-col :md="4" :sm="24">增量补贴金额:{{ (totalData && (totalData.subsidyAmount || totalData.subsidyAmount==0)) ? toThousands(totalData.subsidyAmount): '--' }}</a-col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </a-row> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -144,16 +145,17 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       totalData: null, // 合计 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       rules: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'queryDate': [{ required: true, message: '请选择查询季度', trigger: 'change' }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'queryDate': [{ required: true, message: '请选择查询年度', trigger: 'change' }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 加载数据方法 必须为 Promise 对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       loadData: parameter => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.disabled = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const year = this.queryParam.queryDate.substr(0, 4) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const quarter = this.queryParam.queryDate.substr(5, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const params = Object.assign(parameter, this.queryParam, { bizYear: year, bizQuarter: quarter }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // 获取列表数据  有分页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const dateStr = this.queryParam.queryDate 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const year = dateStr.substr(0, 4) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const quarter = dateStr.substr(5, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const params = Object.assign(parameter, this.queryParam, { bizYear: year, bizQuarter: quarter == 'u' ? undefined : quarter }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 获取列表数据  有分页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return subsidyStepList(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           let data 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -198,9 +200,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '省份', dataIndex: 'provinceName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '客户名称', dataIndex: 'dealerName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '总部订货数量', dataIndex: 'salesQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '转单订货数量', dataIndex: 'transferQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '总部退货数量', dataIndex: 'returnQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '合计订货数量', dataIndex: 'totalQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '总部合计数量', dataIndex: 'totalQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '转单订货数量', dataIndex: 'transferQty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '合计订货数量', dataIndex: 'transferQty1', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '季度目标', dataIndex: 'subsidyTarget', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '季度增量补贴', dataIndex: 'subsidyValue', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '增量补贴金额', dataIndex: 'subsidyAmount', width: '10%', align: 'right', scopedSlots: { customRender: 'subsidyAmount' } } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -225,7 +228,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           _this.$refs.table.refresh(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          _this.$message.error('请选择查询季度') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.$message.error('请选择查询年度') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -253,8 +256,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  日期选择  change 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     dateChange (date, valStr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log(date) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.timeInfo = date[0] && date[1] ? date : [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (date && date.length && date[0] && date[1]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (date && date.length && date[0]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.queryParam.queryDate = date[0] + '0' + date[1] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.queryParam.queryDate = undefined 
			 |