| 
					
				 | 
			
			
				@@ -1,7 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!-- 订单 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <div class="order"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <template v-if="!addOrUpdateVisible && !detailVisible && !arrivedVisible && !confirmVisible"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <template v-if="!addOrUpdateVisible && !detailVisible && !arrivedVisible && !confirmVisible && !noticeChangeAttachVisible"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-form :inline="true" :model="dataForm" @keyup.enter.native="queryData()"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-form-item label="客户名称"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <cus-component v-model="dataForm.customerId" :cus-id="dataForm.customerId"></cus-component> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,6 +32,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button @click="queryData()">查询</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button v-if="isAuth('order:ctl:save')" @click="addOrUpdateHandle(0, false)" type="primary">创建订单</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-button v-if="isAuth('order:ctl:noteChangeConfig')" type="primary" @click="setNoticeChangeHandel()">订单业务变更通知设置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-table 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -135,7 +136,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           fixed="right" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           header-align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          width="180" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          width="120" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           label="操作"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button v-if="isAuth('order:ctl:info')" type="text" size="small" @click="detailHandle(scope.row.orderId)">查看</el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -160,6 +161,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @onChose="onChose"></add-or-update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <detail v-if="detailVisible" ref="detail" @onChose="onChose"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <dispatch-arrived v-if="arrivedVisible" ref="arrived" @refreshDataList="getDataList" @onChose="onChose"></dispatch-arrived> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -169,13 +171,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import { getOrderList, deliverOrder } from '@/api/sale' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import CusComponent from '../common/cus-component' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   import DispatchArrived from './dispatch-arrived' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  import NoticeChangeSetting from './order-notice-change-setting' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     name: 'order', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     components: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       DispatchArrived, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       CusComponent, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       AddOrUpdate, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      Detail 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      Detail, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      NoticeChangeSetting 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     created () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.optionsState = this.$store.state.common.approveStates 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -187,6 +191,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         detailVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         arrivedVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         confirmVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        noticeChangeAttachVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataForm: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pageIndex: 1, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -224,6 +229,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.detailVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.arrivedVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.confirmVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.noticeChangeAttachVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       queryData () { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -330,6 +336,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$refs.addOrUpdate.init(row.orderId, false, 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 变更通知人设置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      setNoticeChangeHandel () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.noticeChangeAttachVisible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.noticeChangeSetting.init() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 |