| 
					
				 | 
			
			
				@@ -33,7 +33,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span>规则类型</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-select v-model="item.ruleType" placeholder="请选择油品" clearable size="small" @change="changeType" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-select v-model="item.ruleType" placeholder="请选择油品" clearable size="small"  > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-for="item in ruleTypeOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   :key="item.dictValue" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -46,7 +46,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span v-if="item.ruleType=='1'">L</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span v-else>元</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <span>起累计 </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <el-select v-model="item.oilName" placeholder="请选择油品" clearable size="small" @change="changeType(index)" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <el-select v-model="item.oilName" placeholder="请选择油品" clearable size="small" @change="oilNameChang(index)" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-option 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-for="item in oilNameOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   :key="item.oilName" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -183,8 +183,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-form-item label="积分轮播图"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-upload 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           class="avatar-uploader" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          action="http://localhost:8080/common/upload" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          :headers=headers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          :action="addressUrl" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          :headers="headers" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           multiple 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           list-type="picture-card" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :limit='5' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -239,7 +239,6 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       deleteImgFileList: [], //存已被删除了的图片的id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       dialogImageUrl: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       dialogVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 是否显示弹出层 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       open: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 查询参数 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -260,7 +259,8 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 表单校验 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       rules: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      headers: { Authorization: "Bearer " + getToken() } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      headers: { Authorization: "Bearer " + getToken() }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      addressUrl: location.protocol+"//"+location.host+ process.env.VUE_APP_BASE_API+"/common/upload" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -329,10 +329,10 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //获取等级名称和id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       console.log(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    onInstitutionChang(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    onInstitutionChang(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let obj = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       obj = this.stationOptions.find((item)=>{//这里的userList就是上面遍历的数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return item.deptId === e;//筛选出匹配数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return item.deptId === this.form.stationId;//筛选出匹配数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryreset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.form.stationName=obj.deptName; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -343,15 +343,20 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     oilNameChang(e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let obj = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log("oilNameOptions:",this.oilNameOptions); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("e:",this.form.itemsDetail[e].oilName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       obj = this.oilNameOptions.find((item)=>{//这里的userList就是上面遍历的数据源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return item.oilName === e;//筛选出匹配数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return item.oilName === this.form.itemsDetail[e].oilName;//筛选出匹配数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryreset(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //获取油站名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParams.stationId = this.form.stationId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParams.oilName=obj.oilName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log("stationId", this.form.stationId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log("oilname",obj.oilName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       gradeList(this.queryParams).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.gradeOptions = response.rows; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log("gradeOptions", this.gradeOptions ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -361,11 +366,16 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.dialogVisible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleRemove(file, fileList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (file.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.deleteImgFileList.push(file.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(fileList!=null && fileList.length>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.imgFileList=[]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let i = 0; i < fileList.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let fileName = fileList[i].name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let imgurl = fileList[i].url; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.form.imgFileList.push({name:fileName,url:imgurl}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         this.form.imgFileList = fileList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.form.imgFileList = fileList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //this.hideUpload = fileList.length >= this.limit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     beforeAvatarUpload(file) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const isType = file.type === 'image/jpeg' || 'image/png'; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -380,7 +390,8 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    //上传成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handlepaymentSuccess(response,file, fileList){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.form.imgFileList.push({name:file.name,url:response.url}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let imgurl=location.protocol+"//"+location.host+process.env.VUE_APP_BASE_API+response.fileName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.form.imgFileList.push({name:file.name,url:imgurl}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 提交按钮 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     submitForm() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -402,7 +413,6 @@ name: "ruleDetail", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(this.form.datePicker != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.form.datePicker =this.form.datePicker.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log("notOilList",this.form.notOilList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(this.form.notOilList!=null&&this.form.notOilList.length>0||this.form.notOilList[0].hasOwnProperty(saleAmt)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(this.form.notOilList[0].saleAmt==""||this.form.notOilList[0].saleAmt=="0" ||this.form.notOilList[0].saleAmt=="undefined"){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   this.form.notOilList=[]; 
			 |