| 
					
				 | 
			
			
				@@ -5,8 +5,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="squrt"></div>订单审核 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </h2> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="m-core"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-form :inline="true" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-               :model="searchForm"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <saveform ref="searchForm" :model.sync="searchForm" inline style="margin-top: 20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-input v-model.trim="searchForm.transNo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     @keyup.enter.native="transNo" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -55,7 +55,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <el-button @click="onReSet" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                      type="primary">重置</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-form-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </saveform> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="tableWrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-table style="width: 100%" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   :header-cell-style="{background:'#EDEEF0',color:'#444'}" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -129,7 +129,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <pagination :total="rules.total" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <pagination  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        sync 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :total.sync="rules.total" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     :page.sync="rules.page" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     :limit.sync="rules.limit" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     :page-sizes="rules.page_size" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -170,21 +172,22 @@ import { getToken } from "@/utils/auth"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import pagination from "@/components/Pagination/index"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import load from "@/utils/loading"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { getEmployeeOrgan, getAddress, getCooperation } from "@/api/buildTeam"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { orderServerList, orderAuditTypeList } from "@/utils/searchArray" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import orderAuditDetail from './orderAuditDetail' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { getRouteOrderList } from '@/api/orderManager' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { goodsQuery } from '@/api/businessManager' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { formatData } from '@/utils/utils'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import Tooltip from '@/components/Tooltip/index' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { orderServerList, orderAuditTypeList } from "@/utils/searchArray"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import orderAuditDetail from "./orderAuditDetail"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getRouteOrderList } from "@/api/orderManager"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { goodsQuery } from "@/api/businessManager"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { formatData } from "@/utils/utils"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import Tooltip from "@/components/Tooltip/index"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import saveform from '@/components/save-form' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  components: { pagination, orderAuditDetail, Tooltip }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  data () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { pagination, orderAuditDetail, Tooltip,saveform }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       searchForm: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         transNo: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         organId: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         auditStatus: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       tableList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       organList: [], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -195,104 +198,101 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         limit: 10, // 限制显示条数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         page: 1, // 当前页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         total: 0, // 总条数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        page_size: [10, 20, 40, 50] // 选择限制显示条数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        page_size: [10, 20, 40, 50], // 选择限制显示条数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       orderVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       activceId: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       activeRow: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      isLook: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      isLook: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //生命周期 - 创建完成(可以访问当前this实例) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  created () { }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  created() {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //生命周期 - 挂载完成(可以访问DOM元素) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  mounted () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getEmployeeOrgan().then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getEmployeeOrgan().then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (res.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.organList = res.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 获取分部 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    goodsQuery({ status: 1, rows: 99999 }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    goodsQuery({ status: 1, rows: 99999 }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (res.code === 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.shopList = res.data.rows 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.shopList = res.data.rows; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  activated () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  activated() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    init () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    init() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    search () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    search() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.rules.page = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    onReSet () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    onReSet() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.searchForm = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         transNo: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         organId: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         auditStatus: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.search() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.search(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getList () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let params = this.searchForm 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      params.rows = this.rules.limit 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      params.page = this.rules.page 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      getRouteOrderList(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let params = this.searchForm; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      params.rows = this.rules.limit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      params.page = this.rules.page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      getRouteOrderList(params).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.tableList = res.data.rows 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.rules.total = res.data.total 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.orderVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.tableList = res.data.rows; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.rules.total = res.data.total; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.orderVisible = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    lookDetail (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.activceId = row.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.activeRow = row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.isLook = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.orderVisible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    lookDetail(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activceId = row.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeRow = row; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isLook = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.orderVisible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    resetDetail (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.activceId = row.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.activeRow = row 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.isLook = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.orderVisible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    resetDetail(row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activceId = row.id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.activeRow = row; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isLook = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.orderVisible = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    submit (str) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    submit(str) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let message; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      str == 'REJECT' ? message = '驳回' : message = '同意' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      str == "REJECT" ? (message = "驳回") : (message = "同意"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$confirm(`是否${message}审核`, "提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type: "warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: "warning", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$refs.orderAuditDetail.auditOutOrder(str) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.orderAuditDetail.auditOutOrder(str); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .catch(() => { }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .catch(() => {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    submitReaet () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    submitReaet() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$confirm(`是否提交修改`, "提示", { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         confirmButtonText: "确定", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         cancelButtonText: "取消", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type: "warning" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: "warning", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.$refs.orderAuditDetail.submitReaet() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$refs.orderAuditDetail.submitReaet(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        .catch(() => { }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .catch(() => {}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang='scss' scoped> 
			 |