| 
					
				 | 
			
			
				@@ -30,11 +30,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-form-model-item label="是否缺货产品" prop="dataScope" v-if="nowType=='export'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-radio-group v-model="form.dataScope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-radio value="all">全部</a-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-radio value="ENOUGH">有库存</a-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <a-radio value="LESS">缺货</a-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-radio value="ENOUGH" :disabled="isDisabled">有库存</a-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <a-radio value="LESS" :disabled="isDisabled">缺货</a-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </a-radio-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <a-form-model-item label="产品售价" prop="priceType"  v-if="nowType=='SALES_BILL_TYPE'&&$hasPermissions('B_salesTypePrint_salesPrice')"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <a-form-model-item label="产品售价" prop="priceType" v-if="nowType=='SALES_BILL_TYPE'&&$hasPermissions('B_salesTypePrint_salesPrice')"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <!-- 销售分类打印 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-radio-group v-model="form.priceType"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-radio value="SALES_BILL_TYPE_COST">打印</a-radio> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,6 +124,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         title = '导出Excel' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return title 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    isDisabled () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const states = ['WAIT_SUBMIT', 'WAIT_AUDIT', 'AUDIT_REJECT'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return this.itemData && states.includes(this.itemData.billStatus) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -135,7 +139,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // 分类打印 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (_this.nowType == 'SALES_BILL_TYPE') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 销售分类无权限不打印 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(!_this.$hasPermissions('B_salesTypePrint_salesPrice')){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!_this.$hasPermissions('B_salesTypePrint_salesPrice')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               _this.form.priceType = 'SALES_BILL_TYPE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const item = _this.typeList.find(item => item.id == _this.form.id) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -156,7 +160,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else if (_this.nowType == 'SALES_BILL') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 销售打印无权限不打印 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(!_this.$hasPermissions('B_salesPrint_salesPrice')){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!_this.$hasPermissions('B_salesPrint_salesPrice')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               _this.form.priceType = 'SALES_BILL' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const obj = { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -167,8 +171,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _this.$emit('ok', obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else if (_this.nowType == 'export') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 销售导出无权限不导出 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(!_this.$hasPermissions('B_salesDetailExport_salesPrice')){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              _this.form.priceType = _this.form.dataScope == 'ENOUGH' ? 'SALES_BILL_NOT_LACK':'SALES_BILL' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!_this.$hasPermissions('B_salesDetailExport_salesPrice')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              _this.form.priceType = _this.form.dataScope == 'ENOUGH' ? 'SALES_BILL_NOT_LACK' : 'SALES_BILL' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const obj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               salesBillSn: _this.itemData.salesBillSn, 
			 |