| 
					
				 | 
			
			
				@@ -21,7 +21,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-form-model-item label="规则门槛" v-if="form.gateFlag"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           {{ form.gateFlag==='1'?'有':'无' }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div v-if="form.gateFlag==='1'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <span v-if="form.gateType==='RATIO_AMOUNT'">购买门槛产品金额 {{ form.gateValue*100 }}% 作为配额 </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <span v-if="form.gateType==='RATIO_AMOUNT'">购买门槛产品金额 {{ form.gateValue?(form.gateValue*100).toFixed(2):'0.00' }}% 作为配额 </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-if="form.gateType==='MIN_AMOUNT'">购买门槛产品满最低金额 {{ form.gateValue }} 元,不限制配额。</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-if="form.gateType==='FIXED_AMOUNT'&&form.promotionRuleType !='PROMO_PROD'">购买满 {{ form.gateValue }} 元门槛产品,可使用 {{ form.quotaAmount }} 元配额,采购规则中的正价商品(配额算销售额)</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <span v-if="form.gateType==='FIXED_AMOUNT'&&form.promotionRuleType ==='PROMO_PROD'">购买每满 {{ form.gateValue }} {{ form.gateUnit==='YUAN'?'元':'个' }}门槛产品,可采购 {{ form.quotaAmount }} 个特价产品(配额算销售额)</span> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -43,7 +43,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div v-if="form.giveRuleType==='SUM_MONEY'">购买满{{ form.giveRuleList[0].regularValue }}{{ form.giveRuleList[0].regularUnit==='YUAN'?'元':'个' }}正价产品,送{{ form.giveRuleList[0].promotionValue }}元<span>({{ form.giveRuleList[0].regularUnit==='YUAN'?perCentNum+'%':'' }}促销品采购额)</span></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div v-if="form.giveRuleType==='RATIO' &&form.giveRuleList && form.giveRuleList.length>0 "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <div v-for="item in form.giveRuleList" :key="item.scopeLevel"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                {{ form.giveRuleList.length>1?item.scopeLevel+'、' :'' }}产品购买满{{ item.regularValue }}{{ item.regularUnit==='YUAN'?'元':'个' }}正价产品,送正价产品总金额的{{ item.promotionValue }}%为促销品采购额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                {{ form.giveRuleList.length>1?item.scopeLevel+'、' :'' }}产品购买满{{ item.regularValue }}{{ item.regularUnit==='YUAN'?'元':'个' }}正价产品,送正价产品总金额的{{ item.promotionValue?item.promotionValue.toFixed(2):'0.00' }}%为促销品采购额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -280,7 +280,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   computed: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     perCentNum () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const val = (this.form.giveRuleList[0].regularValue && this.form.giveRuleList[0].regularValue != 0) ? Math.floor(((this.form.giveRuleList[0].promotionValue / this.form.giveRuleList[0].regularValue) * 100).toFixed(2)) : 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const val = (this.form.giveRuleList[0].regularValue && this.form.giveRuleList[0].regularValue != 0) ? ((this.form.giveRuleList[0].promotionValue / this.form.giveRuleList[0].regularValue) * 100).toFixed(2) : '0.00' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return val 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setColumns () { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -288,9 +288,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       var arr = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (_this.form.discountType === '1') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         arr = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { title: '省价折扣', dataIndex: 'provinceValue', width: '33%', align: 'center', customRender: function (text) { return (text + '%') || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { title: '市价折扣', dataIndex: 'cityValue', width: '33%', align: 'center', customRender: function (text) { return (text + '%') || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          { title: '特约折扣', dataIndex: 'specialValue', width: '33%', align: 'center', customRender: function (text) { return (text + '%') || '--' } } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { title: '省价折扣', dataIndex: 'provinceValue', width: '33%', align: 'center', customRender: function (text) { return (text ? (text.toFixed(2) + '%') : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { title: '市价折扣', dataIndex: 'cityValue', width: '33%', align: 'center', customRender: function (text) { return (text ? (text.toFixed(2) + '%') : '--') } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          { title: '特约折扣', dataIndex: 'specialValue', width: '33%', align: 'center', customRender: function (text) { return (text ? (text.toFixed(2) + '%') : '--') } } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else if (_this.form.discountType === '2') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         arr = [ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -319,9 +319,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '设置起订量', width: '7%', scopedSlots: { customRender: 'setNum' }, align: 'center' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (_this.form.discountType == '0' || _this.form.discountType == '1') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        arr.splice(5, 0, { title: '省级折扣', dataIndex: 'provinceDiscountRate', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? (text + '%') : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        arr.splice(8, 0, { title: '市级折扣', dataIndex: 'cityDiscountRate', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? (text + '%') : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        arr.splice(11, 0, { title: '特约折扣', dataIndex: 'specialDiscountRate', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? (text + '%') : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        arr.splice(5, 0, { title: '省级折扣', dataIndex: 'provinceDiscountRate', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? (text.toFixed(2) + '%') : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        arr.splice(8, 0, { title: '市级折扣', dataIndex: 'cityDiscountRate', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? (text.toFixed(2) + '%') : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        arr.splice(11, 0, { title: '特约折扣', dataIndex: 'specialDiscountRate', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? (text.toFixed(2) + '%') : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         arr.splice(5, 0, { title: '省价直降金额', dataIndex: 'provinceSubtract', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? ('-' + text) : '--') } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         arr.splice(8, 0, { title: '市价直降金额', dataIndex: 'citySubtract', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? ('-' + text) : '--') } }) 
			 |