| 
					
				 | 
			
			
				@@ -71,7 +71,54 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table :data="couponList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <af-table-column label="优惠券名称" align="center" prop="couponName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <af-table-column label="状态" align="center" width="100"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="卡片类型" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 1 ? '现金劵' + '--面值:' + scope.row.couponAmt + '元' : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 2 ? '折扣券' + '--折扣:' + scope.row.couponAmt + '% ' : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 3 ? '兑换券' + '--商品:' + scope.row.couponDetails  : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="使用门槛" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 1 || scope.row.couponType == 2 ?  (scope.row.couponThresholdAmt == 0 ? '无门槛':'满' + scope.row.couponThresholdAmt + '元可用') : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 3 ? '------------'  : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="适用油品" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 1 || scope.row.couponType == 2 ?  ((scope.row.oilNameList||[]).toString()) : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 3 ? '------------'  : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="使用状态" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{"共生成了" + scope.row.couponNum + "张,已领取" + scope.row.couponCumulativeNum + '张,已使用'+ scope.row.couponUseNum +'张' }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="有效期和限制" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{ (scope.row.effectiveTimeType == 1 ? scope.row.effectiveTime[0] + '到' + scope.row.effectiveTime[1]   : '用户领取'+ scope.row.effectiveDayNum +'天内有效' ) + '内有效'}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{ ',且用户只能在1号领取'}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="领取限制" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{ "单用户最多持有" + scope.row.couponHoldNum + '张,累计可拥有'+ scope.row.couponReceiveNum +'张' }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="优惠叠加" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 1 || scope.row.couponType == 2 ?   ['不',''][scope.row.isCardFlag] + '可用电子卡,' + ['不',''][scope.row.isGradeFlag] + '可用等级优惠,' + ['不',''][scope.row.isMarketFlag] + '可用优惠方案': ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {{scope.row.couponType == 3 ? '------------'  : ''}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <af-table-column label="状态" align="center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-switch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-model="scope.row.status" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -81,8 +128,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ></el-switch> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <!-- <af-table-column label="面值" align="center" prop="gunNo" /> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <!-- <af-table-column label="有效期" align="center" prop="deviceFactory" /> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <af-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label="操作" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           align="center" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -98,13 +143,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               v-if="scope.row.editFlag" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               >修改</el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <!-- <el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              size="mini" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              icon="el-icon-delete" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              @click="handleDelete(scope.row)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              >删除</el-button 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            > --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </af-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-table> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -259,7 +297,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           张 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-form-item label="单人可持有数量" prop="couponHoldNum"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          单个用户最多拥有 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          单个用户最多持有 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <input 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="text" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             class="form-control d-inline" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -528,16 +566,22 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return !!!this.createForm.verificationList.includes(ele.deptId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getTodayDateString() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const today = new Date(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    },     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     'SelectDay': SelectDay 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getTodayDateString(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const date = new Date() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let y = date.getFullYear(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let m = date.getMonth().toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let s = date.getDate().toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      m = '' + (m.length == 1 ? '0':'') + m 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      s = '' + (s.length == 1 ? '0':'') + s 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      console.log('' + h + ':' + m +':' + s) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return '' + y + ':' + m +':' + s 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     availableControlChange(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.createForm.appointedDaysList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.createForm.cycleDaysList = []; 
			 |