| 
					
				 | 
			
			
				@@ -34,9 +34,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <a-col :md="6" :sm="24"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <a-form-item label="单据来源"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   <v-select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    v-model="queryParam.salesBillSource" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    ref="salesBillSource" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    id="salesManagementList-salesBillSource" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    v-model="queryParam.sourceType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ref="sourceType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    id="salesManagementList-sourceType" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     code="SALES_SOURCE" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     placeholder="请选择单据来源" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     allowClear></v-select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -176,7 +176,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             class="button-primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-if="((record.salesBillSource == 'SATELLITE' || record.salesBillSource == 'SALES' || record.salesBillSource == 'TEMPORARY_DISPATCHING') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT')) && $hasPermissions('B_salesEdit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="((record.sourceType == 'SATELLITE' || record.sourceType == 'SALES' || record.sourceType == 'TEMPORARY_DISPATCHING') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT')) && $hasPermissions('B_salesEdit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @click="handleEdit(record)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             编辑 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -185,7 +185,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             class="button-error" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-if="((record.salesBillSource == 'SATELLITE' || record.salesBillSource == 'SALES' || record.salesBillSource == 'TEMPORARY_DISPATCHING') && record.billStatus != 'FINISH') && $hasPermissions('B_salesDel')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="((record.sourceType == 'SATELLITE' || record.sourceType == 'SALES' || record.sourceType == 'TEMPORARY_DISPATCHING') && record.billStatus != 'FINISH') && $hasPermissions('B_salesDel')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @click="handleDel(record)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             删除 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -194,7 +194,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             class="button-primary" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-if="(record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesEdit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="(record.sourceType == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesEdit')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @click="handleEdit(record)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             改单 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -203,12 +203,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             size="small" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             type="link" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             class="button-error" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            v-if="(record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesDel')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="(record.sourceType == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesDel')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @click="handleDel(record, 'cancel')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             取消 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </a-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <span v-if="!(record.billStatus == 'WAIT_AUDIT' && $hasPermissions('B_salesAudit')) && !(record.billStatus == 'WAIT_OUT_WAREHOUSE' && $hasPermissions('B_salesStockOut')) && !(((record.salesBillSource == 'SATELLITE' || record.salesBillSource == 'SALES' || record.salesBillSource == 'TEMPORARY_DISPATCHING') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT')) && $hasPermissions('B_salesEdit')) && !(((record.salesBillSource == 'SATELLITE' || record.salesBillSource == 'SALES' || record.salesBillSource == 'TEMPORARY_DISPATCHING') && record.billStatus != 'FINISH') && $hasPermissions('B_salesDel')) && !((record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesEdit')) && !((record.salesBillSource == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesDel'))">--</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-if="!(record.billStatus == 'WAIT_AUDIT' && $hasPermissions('B_salesAudit')) && !(record.billStatus == 'WAIT_OUT_WAREHOUSE' && $hasPermissions('B_salesStockOut')) && !(((record.sourceType == 'SATELLITE' || record.sourceType == 'SALES' || record.sourceType == 'TEMPORARY_DISPATCHING') && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'WAIT_SUBMIT' || record.billStatus == 'AUDIT_REJECT')) && $hasPermissions('B_salesEdit')) && !(((record.sourceType == 'SATELLITE' || record.sourceType == 'SALES' || record.sourceType == 'TEMPORARY_DISPATCHING') && record.billStatus != 'FINISH') && $hasPermissions('B_salesDel')) && !((record.sourceType == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesEdit')) && !((record.sourceType == 'PURCHASE' && (record.billStatus == 'WAIT_AUDIT' || record.billStatus == 'SUPERIOR_CHANGE')) && $hasPermissions('B_salesDel'))">--</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </s-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </a-spin> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -264,7 +264,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         settleStyleSn: undefined, //  收款方式 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         billStatus: undefined, //  业务状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         financialStatus: undefined, //  财务状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        salesBillSource: undefined, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        sourceType: undefined, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         distributionFlag: undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       totalData: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -277,7 +277,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 表头 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       columns: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '序号', dataIndex: 'no', align: 'center', width: '4%' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { title: '来源', dataIndex: 'salesBillSourceDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { title: '来源', dataIndex: 'sourceTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: '9%', align: 'center' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '客户名称', dataIndex: 'buyerName', align: 'center', width: '15%', customRender: function (text) { return text || '--' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { title: '总款数', dataIndex: 'totalCategory', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -463,7 +463,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.settleStyleSn = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.billStatus = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.financialStatus = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.queryParam.salesBillSource = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.queryParam.sourceType = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.queryParam.distributionFlag = undefined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.custList.resetForm() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (!flag) { 
			 |