|  |  |  | @ -89,7 +89,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </el-card> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-card class="el-card"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="detailList" style="width: 100%" | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="loading" :data="detailList" style="width: 100%" highlight-current-row="true" | 
			
		
	
		
			
				
					|  |  |  |  |                       @current-change="handleBustypeChange"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="序号" type="index" show-overflow-tooltip="true"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="接口名称" prop="name" show-overflow-tooltip="true"></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -165,7 +165,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-card class="el-card"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button v-if="addBussinessTypeBtnVisible" type="primary" style="float: right; margin-bottom: 5px;" @click="addBussinessType">添加单据类型</el-button> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="busTypeLoading" :data="busTypeList" style="width: 100%"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table v-loading="busTypeLoading" :data="busTypeList" style="width: 100%" highlight-current-row="true"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="序号" type="index" show-overflow-tooltip="true"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column label="单据类型" prop="name" show-overflow-tooltip="true"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-table-column v-if="submitOrderVisible" label="第三方单据类型" prop="thirdBuyName"></el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -410,6 +410,7 @@ import {getOriginBusType} from "../../api/basic/busOriginType"; | 
			
		
	
		
			
				
					|  |  |  |  | import modifyDialog from "./BasicThirdSysModify"; | 
			
		
	
		
			
				
					|  |  |  |  | import modifyDetailDialog from "./BasicThirdSysDetailModify"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterForThirdSys} from "../../api/basic/busLocalType"; | 
			
		
	
		
			
				
					|  |  |  |  | import {isBlank} from "@/utils/strUtil"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |     data() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -472,7 +473,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             thirdBuyList: [], //第三方系统单据类型, | 
			
		
	
		
			
				
					|  |  |  |  |             thirdSysDetailList: [], | 
			
		
	
		
			
				
					|  |  |  |  |             selectInterfaceList: [] | 
			
		
	
		
			
				
					|  |  |  |  |             selectInterfaceList: [], | 
			
		
	
		
			
				
					|  |  |  |  |             currentRow: null | 
			
		
	
		
			
				
					|  |  |  |  |         }; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -491,6 +493,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getList(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         cancelDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getDetailList(this.currentRow); | 
			
		
	
		
			
				
					|  |  |  |  |             this.modifyDialogVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.modifyDetailDialogVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.modifyBusYypeDialogVisible = false; | 
			
		
	
	
		
			
				
					|  |  |  | @ -499,6 +502,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             if (row != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.thirdSysFk = row.thirdId; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.currentRow = row; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getDetailList(row); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         handleBustypeChange(row) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -575,6 +579,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         onModifySubmit() { | 
			
		
	
		
			
				
					|  |  |  |  |             if (isBlank(this.inputQuery.thirdName)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.warning("系统名称不能为空") | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.modifyDialogVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             updateBasicThirdSys(this.inputQuery) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
	
		
			
				
					|  |  |  | @ -680,13 +688,33 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }) | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         addBussinessTypeData() { | 
			
		
	
		
			
				
					|  |  |  |  |             //校验表单数据 | 
			
		
	
		
			
				
					|  |  |  |  |             if (isBlank(this.thirdBuyForm.name)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error("单据类型不能为空!") | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (isBlank(this.thirdBuyForm.thirdBuyName)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error("第三方单据类型不能为空!") | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (isBlank(this.thirdBuyForm.url)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error("接口地址不能为空!") | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (!isBlank(this.thirdBuyForm.remark)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (this.thirdBuyForm.remark.length > 200) { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.$message.error("备注信息不得超过200字"); | 
			
		
	
		
			
				
					|  |  |  |  |                     return; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.getOrdersEditBtnVisible) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.editGeOrderParamVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             } else { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.bussinessTypeFormVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             //匹配编码 | 
			
		
	
		
			
				
					|  |  |  |  |             this.bussinessTypeList.forEach(item =>{ | 
			
		
	
		
			
				
					|  |  |  |  |                 //单据业务类型编码 | 
			
		
	
	
		
			
				
					|  |  |  | @ -709,12 +737,29 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }) | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         handleDelete(index, row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$confirm('是否确认删除业务单据类型?', '提示', { | 
			
		
	
		
			
				
					|  |  |  |  |                 confirmButtonText: '确定', | 
			
		
	
		
			
				
					|  |  |  |  |                 cancelButtonText: '取消', | 
			
		
	
		
			
				
					|  |  |  |  |                 type: 'warning' | 
			
		
	
		
			
				
					|  |  |  |  |             }).then(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 let params = {id: row.id}; | 
			
		
	
		
			
				
					|  |  |  |  |                 deleteThirdSysBusType(params).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     if (res.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.$message({ | 
			
		
	
		
			
				
					|  |  |  |  |                             type: 'success', | 
			
		
	
		
			
				
					|  |  |  |  |                             message: '删除成功!' | 
			
		
	
		
			
				
					|  |  |  |  |                         }); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     this.handleBustypeChange(this.submitOrderRow); | 
			
		
	
		
			
				
					|  |  |  |  |                 }).catch((error) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.$message.error(error.message); | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |             }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message({ | 
			
		
	
		
			
				
					|  |  |  |  |                     type: 'info', | 
			
		
	
		
			
				
					|  |  |  |  |                     message: '已取消删除' | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getThirdBuyType() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
	
		
			
				
					|  |  |  | @ -787,6 +832,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         disableInterface(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$confirm('是否确认移除此接口?', '提示', { | 
			
		
	
		
			
				
					|  |  |  |  |                 confirmButtonText: '确定', | 
			
		
	
		
			
				
					|  |  |  |  |                 cancelButtonText: '取消', | 
			
		
	
		
			
				
					|  |  |  |  |                 type: 'warning' | 
			
		
	
		
			
				
					|  |  |  |  |             }).then(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 let data = [{id: row.id, enabled: false}]; | 
			
		
	
		
			
				
					|  |  |  |  |                 updateInterfaceStatus(data).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     if (res.code === 20000) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -809,6 +859,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                             }); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |             }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message({ | 
			
		
	
		
			
				
					|  |  |  |  |                     type: 'info', | 
			
		
	
		
			
				
					|  |  |  |  |                     message: '已取消删除' | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         editGeOrderParam(index,row) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.formName = "edit"; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |