|  |  |  | @ -1,12 +1,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <template> | 
			
		
	
		
			
				
					|  |  |  |  |     <div> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-card class="el-card"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form :inline="true" :model="filterQuery" | 
			
		
	
		
			
				
					|  |  |  |  |                      class="query-form" size="mini"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-input | 
			
		
	
		
			
				
					|  |  |  |  |                             v-model="filterQuery.billNo" | 
			
		
	
	
		
			
				
					|  |  |  | @ -51,40 +48,10 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                         > | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-date-picker> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--<el-form-item class="query-form-item">--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--<el-select v-model="filterQuery.thirdSysFk" placeholder="请选择第三方系统">--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--<el-option--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--v-for="item in thirdSys"--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--:key="item.value"--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--:label="item.thirdName"--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--:value="item.thirdId">--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--<span style="float: left">{{ item.thirdName }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--</el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--</el-select>--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <!--</el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-button-group style="display:flex;"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="primary" icon="search" @click="getList">查询</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--<el-button type="primary" icon="search" @click="clearAll">清空全部</el-button>--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--<el-upload--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--v-if="!this.thirdSysDetail.enabled"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--:action="uploadFileUrl"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--multiple--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--:limit="3"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--:data="uploadData"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--:show-file-list="false"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--:on-success="handleChange"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--:file-list="fileList"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!-->--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--<el-button size="mini" type="primary">导入业务单据</el-button>--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--</el-upload>--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--<el-button type="primary" icon="search" @click="downloadDatas"--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--v-if="this.thirdSysDetail.enabled && this.thirdSysDetail.itrCache">导入业务单据--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <!--</el-button>--> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-button type="primary" icon="search" @click="onSubmitFind">查询</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-button-group> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-row> | 
			
		
	
	
		
			
				
					|  |  |  | @ -93,25 +60,12 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="true" | 
			
		
	
		
			
				
					|  |  |  |  |                       @current-change="handleDetail"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="序号" type="index" width="60"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="第三方单据类型" prop="billType"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="第三方单据类型" prop="billTypeName"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="单据号" prop="billNo"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="往来单位ID" prop="corpId"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="往来单位" prop="corpName" | 
			
		
	
		
			
				
					|  |  |  |  |                                  show-overflow-tooltip="true"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-table-column label="单据状态" prop="billFlag"></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="单据日期" prop="billdate"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--        <el-table-column label="扫码单据类型" prop="billType">--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--          <template slot-scope="scope">--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--            <span>{{ getActionName(scope.row.billType) }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--          </template>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--        </el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--        <el-table-column label="目标单据类型" prop="billType">--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--          <template slot-scope="scope">--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--            <span>{{ getlocalName(scope.row.billType) }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--          </template>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <!--        </el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="操作" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" | 
			
		
	
	
		
			
				
					|  |  |  | @ -163,7 +117,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             filterQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |                 billAction: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 billNo: "", | 
			
		
	
		
			
				
					|  |  |  |  |                 originType:null, | 
			
		
	
		
			
				
					|  |  |  |  |                 originType: null, | 
			
		
	
		
			
				
					|  |  |  |  |                 thirdSysFk: "", | 
			
		
	
		
			
				
					|  |  |  |  |                 page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |                 limit: 10, | 
			
		
	
	
		
			
				
					|  |  |  | @ -175,7 +129,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             thirdSys: [], | 
			
		
	
		
			
				
					|  |  |  |  |             thirdSysDetail: null, | 
			
		
	
		
			
				
					|  |  |  |  |             busTypes: [], | 
			
		
	
		
			
				
					|  |  |  |  |             originTypes:[], | 
			
		
	
		
			
				
					|  |  |  |  |             originTypes: [], | 
			
		
	
		
			
				
					|  |  |  |  |             list: [], | 
			
		
	
		
			
				
					|  |  |  |  |             detailList: [], | 
			
		
	
		
			
				
					|  |  |  |  |             uploadFileUrl: null, | 
			
		
	
	
		
			
				
					|  |  |  | @ -241,6 +195,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         onSubmitFind() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.filterQuery.page = 1; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         getList() { | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.filterQuery.thirdSysFk == null) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.warning("请先选择第三方系统!") | 
			
		
	
	
		
			
				
					|  |  |  | @ -271,24 +231,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         handleDetail(row) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             this.detailList = row.subErpOrders; | 
			
		
	
		
			
				
					|  |  |  |  |             // console.log(row.billNo); | 
			
		
	
		
			
				
					|  |  |  |  |             // let query = { | 
			
		
	
		
			
				
					|  |  |  |  |             //     orderIdFk: row.id | 
			
		
	
		
			
				
					|  |  |  |  |             // }; | 
			
		
	
		
			
				
					|  |  |  |  |             // this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |             // getThrOrderDetails(query) | 
			
		
	
		
			
				
					|  |  |  |  |             //     .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.detailList = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.total = response.data.total || 0; | 
			
		
	
		
			
				
					|  |  |  |  |             //     }) | 
			
		
	
		
			
				
					|  |  |  |  |             //     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.total = 0; | 
			
		
	
		
			
				
					|  |  |  |  |             //     }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         deleteDialog(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$confirm("此操作将永久删除该单据, 是否继续?", "提示", { | 
			
		
	
	
		
			
				
					|  |  |  | @ -313,11 +256,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                         .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                         }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         clearAll() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$confirm("此操作将清空所有单据, 是否继续?", "提示", { | 
			
		
	
		
			
				
					|  |  |  |  |                 confirmButtonText: "确定", | 
			
		
	
	
		
			
				
					|  |  |  | @ -338,11 +281,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                         .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                         }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getBasicThirdSys() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 enabled: true, | 
			
		
	
	
		
			
				
					|  |  |  | @ -360,11 +303,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         handleCurrentChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.filterQuery.page = val; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         handleChange(response, files, fileList) { | 
			
		
	
		
			
				
					|  |  |  |  |             console.log(response); | 
			
		
	
		
			
				
					|  |  |  |  |             if (response.code != 20000) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -373,7 +318,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]); | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.success("文件上传成功,请稍后刷新查看!"); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         selectSysParam() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 key: "thirdIpUrl", | 
			
		
	
	
		
			
				
					|  |  |  | @ -402,7 +348,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                     this.list = []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         downloadDatas() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
	
		
			
				
					|  |  |  | @ -415,7 +360,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -439,22 +383,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             getLocalJoinBusType(query) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.busTypes = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     // this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |             getOriginBusType(query) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.originTypes = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     // this.filterQuery.originType = this.originTypes[0].action; | 
			
		
	
		
			
				
					|  |  |  |  |                     // this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     components: {}, | 
			
		
	
		
			
				
					|  |  |  |  |     mounted() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -465,6 +403,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         let start = new Date(); | 
			
		
	
		
			
				
					|  |  |  |  |         start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); | 
			
		
	
		
			
				
					|  |  |  |  |         this.actDateRange = [start, end]; | 
			
		
	
		
			
				
					|  |  |  |  |         this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |