|  |  | @ -66,6 +66,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button> |  |  |  |           <el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button> |  |  |  |           <el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button> |  |  |  |           <el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-button type="primary" icon="el-icon-search" @click="dlThrInvOrder">下载</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-button-group> |  |  |  |         </el-button-group> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div> |  |  |  |       </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -87,7 +88,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <template slot-scope="scope"> |  |  |  |           <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-tag |  |  |  |             <el-tag | 
			
		
	
		
		
			
				
					
					|  |  |  |               :type="scope.row.status == '1' ? 'primary' : 'success'" |  |  |  |               :type="scope.row.status == '1' ? 'primary' : 'success'" | 
			
		
	
		
		
			
				
					
					|  |  |  |               disable-transitions>{{scope.row.status == 0 ? '待生成':'已生成'}}</el-tag> |  |  |  |               disable-transitions>{{ scope.row.status == 0 ? '待生成' : '已生成' }} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </el-tag> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </template> |  |  |  |           </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-table-column> |  |  |  |         </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -104,13 +106,16 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-button type="text" @click.native.stop="deleteDialog(scope.row)" |  |  |  |             <el-button type="text" @click.native.stop="deleteDialog(scope.row)" | 
			
		
	
		
		
			
				
					
					|  |  |  |             >删除 |  |  |  |             >删除 | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-button v-show="scope.row.status == 0 && (scope.row.exMsg === null || scope.row.exMsg === '')" type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,0,255)" |  |  |  |             <el-button v-show="scope.row.status == 0 && (scope.row.exMsg === null || scope.row.exMsg === '')" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                        type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,0,255)" | 
			
		
	
		
		
			
				
					
					|  |  |  |             >生成单据 |  |  |  |             >生成单据 | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-button v-show="scope.row.status == 1 && (scope.row.exMsg === null || scope.row.exMsg === '')" type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,220,255)" |  |  |  |             <el-button v-show="scope.row.status == 1 && (scope.row.exMsg === null || scope.row.exMsg === '')" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                        type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,220,255)" | 
			
		
	
		
		
			
				
					
					|  |  |  |             >重新生成 |  |  |  |             >重新生成 | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-button v-show="scope.row.exMsg !== null && scope.row.exMsg !== ''" type="text" @click.native.stop="refreshBill(scope.row)" |  |  |  |             <el-button v-show="scope.row.exMsg !== null && scope.row.exMsg !== ''" type="text" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                        @click.native.stop="refreshBill(scope.row)" | 
			
		
	
		
		
			
				
					
					|  |  |  |             >更新 |  |  |  |             >更新 | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </template> |  |  |  |           </template> | 
			
		
	
	
		
		
			
				
					|  |  | @ -183,12 +188,19 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |   </div> |  |  |  |   </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | <script> |  |  |  | <script> | 
			
		
	
		
		
			
				
					
					|  |  |  | import {delThrInvOrder, getThrInvOrders, getThrInvOrderDetails,delThrInvOrderDetail,refreshBill} from "@/api/thrsys/thrInvOrder"; |  |  |  | import { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   delThrInvOrder, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   getThrInvOrders, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   getThrInvOrderDetails, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   delThrInvOrderDetail, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   refreshBill, dlThrInvOrder, dlThrInvFeeOrder | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } from "@/api/thrsys/thrInvOrder"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBussinessType} from "@/api/basic/bussinessType"; |  |  |  | import {getBussinessType} from "@/api/basic/bussinessType"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getOriginBusType} from "@/api/basic/busOriginType"; |  |  |  | import {getOriginBusType} from "@/api/basic/busOriginType"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys"; |  |  |  | import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {selectIp} from "@/api/param/systemParamConfig"; |  |  |  | import {selectIp} from "@/api/param/systemParamConfig"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate"; |  |  |  | import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import moment from "moment"; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export default { |  |  |  | export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   data() { |  |  |  |   data() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -518,7 +530,35 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           color: "red"  // 这个return的就是样式 可以是color 也可以是backgroundColor |  |  |  |           color: "red"  // 这个return的就是样式 可以是color 也可以是backgroundColor | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      * 手动下载第三方出入库明细 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     dlThrInvOrder() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.$confirm("是否确定下载日期范围为:[" + this.filterQuery.startDate + "---" + this.filterQuery.endDate + "]的出入库明细?", "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         confirmButtonText: "确定", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         cancelButtonText: "取消", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         type: "warning", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         .then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           dlThrInvFeeOrder(this.filterQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               this.loading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               if (response.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.success("下载成功"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 this.$message.error(response.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |               } |  |  |  |               } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               this.loading = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: {thrInvOrderGenerate}, |  |  |  |   components: {thrInvOrderGenerate}, | 
			
		
	
		
		
			
				
					
					|  |  |  |   mounted() { |  |  |  |   mounted() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -528,7 +568,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     let end = new Date(); |  |  |  |     let end = new Date(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     let start = new Date(); |  |  |  |     let start = new Date(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |  |  |  |     start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.actDateRange = [start, end]; |  |  |  |     this.actDateRange = [moment(start).format('YYYY-MM-DD'), moment(end).format('YYYY-MM-DD')]; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  | }; |  |  |  | }; | 
			
		
	
		
		
			
				
					
					|  |  |  | </script> |  |  |  | </script> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |