소스 검색

同步标段详细信息

dzxiii 3 달 전
부모
커밋
80fabb7c90

+ 21 - 0
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankTenderpubController.java

@@ -413,6 +413,27 @@ public class BankTenderpubController extends BaseController {
         return toAjax(bankTenderpubService.deleteBankTenderpubByTenderpubids(tenderpubids));
     }
 
+    /**
+     * 根据已发布的标段信息,重新请求银行接口建立查询标段详细信息数据
+     */
+    @Log(title = "查询标段详细信息", businessType = BusinessType.EXPORT)
+    @GetMapping("/getTenderDes/{tenderpubid}")
+    public AjaxResult getTenderDes(@PathVariable String tenderpubid) {
+        if (tenderpubid == null) return error("请求参数错误");
+        BankTenderpub bankTenderpub = bankTenderpubService.selectBankTenderpubByTenderpubid(tenderpubid);
+        if (bankTenderpub == null) return error("没查询到此条数据");
+
+        BankTenderquery btq = new BankTenderquery();
+        btq.setPpid(bankTenderpub.getPpid());
+        btq.setSgtid(bankTenderpub.getRtnSgtid());
+        AjaxResult msg = bankTenderqueryController.addBankTenderquery(btq);
+        if (msg.isSuccess()) {
+            return success(bankTenderpub);
+        } else {
+            return error("调取银行接口失败");
+        }
+    }
+
     /**
      * 内部调用
      *

+ 8 - 0
ruoyi-ui/src/api/bank/tenderpub.js

@@ -58,3 +58,11 @@ export function getRefunds(tenderpubid) {
 		method: 'get'
 	})
 }
+
+// 根据已发布的标段信息,重新请求银行接口建立查询标段详细信息数据
+export function getTenderDes(tenderpubid) {
+	return request({
+		url: '/bank/tenderpub/getTenderDes/' + tenderpubid,
+		method: 'get'
+	})
+}

+ 15 - 7
ruoyi-ui/src/views/bank/tenderpub/index.vue

@@ -2,8 +2,8 @@
 	<div class="app-container">
 		<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
 				 label-width="68px">
-			<el-form-item label="采购计划" prop="ppid">
-				<el-input v-model="queryParams.ppid" placeholder="请输入采购计划id" clearable
+			<el-form-item label="采购公告" prop="ppid">
+				<el-input v-model="queryParams.ppid" placeholder="采购公告" clearable
 						  @keyup.enter.native="handleQuery"/>
 			</el-form-item>
 			<el-form-item label="标段名称" prop="sgtnm">
@@ -94,9 +94,9 @@
 			<el-table-column label="指令处理时间" align="center" prop="rtnDtxferprc" width="100"/>
 			<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="180">
 				<template slot-scope="scope">
-					<el-button size="mini" type="text" @click="handleInfoQuery(scope.row)">标段详细信息</el-button>
-					<el-button size="mini" type="text" @click="getInfo(scope.row)">保证金入账信息</el-button>
-					<el-button size="mini" type="text" @click="getRefundsss(scope.row)">保证金退款信息</el-button>
+					<el-button size="mini" type="text" @click="handleInfoQuery(scope.row)">同步标段详细信息</el-button>
+					<el-button size="mini" type="text" @click="getInfo(scope.row)">同步保证金入账信息</el-button>
+					<el-button size="mini" type="text" @click="getRefundsss(scope.row)">同步保证金退款信息</el-button>
 					<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['bank:tenderpub:edit']">修改</el-button>
 					<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['bank:tenderpub:remove']">删除</el-button>
 				</template>
@@ -227,7 +227,7 @@
 </template>
 
 <script>
-import {listTenderpub, getTenderpub, delTenderpub, addTenderpub, updateTenderpub, getInfo, getRefunds} from "@/api/bank/tenderpub";
+import {listTenderpub, getTenderpub, delTenderpub, addTenderpub, updateTenderpub, getInfo, getRefunds, getTenderDes} from "@/api/bank/tenderpub";
 
 export default {
 	name: "Tenderpub",
@@ -392,7 +392,9 @@ export default {
 		},
 		/** 信息查询按钮操作 */
 		handleInfoQuery(row) {
-			this.$router.push({path: "/bank/tenderquery", query: {rtnSgtid: row.rtnSgtid}});
+			console.log(row.tenderpubid);
+			getTenderDes(row.tenderpubid);
+			// this.$router.push({path: "/bank/tenderquery", query: {rtnSgtid: row.rtnSgtid}});
 		},
 		/** 查询保证金入账 */
 		getInfo(row) {
@@ -418,6 +420,12 @@ export default {
 				this.title = "修改标段发布";
 			});
 		},
+		getTenderDes(tenderpubid){
+			getTenderDes(tenderpubid).then(response => {
+				console.log("getTenderDes", response.data);
+				this.$modal.msgSuccess(response.data);
+			});
+		},
 		/** 提交按钮 */
 		submitForm() {
 			this.$refs["form"].validate(valid => {