فهرست منبع

全网商机获取:招投标查询BUG修改
全网商机获取:标讯订阅规则BUG修改

youchen 1 سال پیش
والد
کامیت
244fb6aa77

+ 8 - 0
src/api/business/bid/biding.js

@@ -23,4 +23,12 @@ export function QueryById(id) {
   })
 }
 
+export function getDetailByInfoId(id) {
+  return request({
+    url: `/mk/bid/biding/detail/${id}`,
+    method: 'get',
+  })
+}
+
+
 

+ 31 - 6
src/views/business/bid/detail/bidingInfoDetail.vue

@@ -27,9 +27,8 @@
     <el-descriptions-item label="招标单位联系人">{{this.dataList.zhaoBiaoUnitTempDtos[0].zhaoRelationName}}</el-descriptions-item>
     <el-descriptions-item label="招标单位联系电话">{{this.dataList.zhaoBiaoUnitTempDtos[0].zhaoRelationWay}}</el-descriptions-item>
     <el-descriptions-item label="代理单位" >{{this.dataList.agentUnitTempDtos.length == 0 ?  null: this.dataList.agentUnitTempDtos[0].agentUnit}}</el-descriptions-item>
-    <el-descriptions-item label="代理采购单位" >{{this.dataList.agentUnitTempDtos.length == 0 ?  null: this.dataList.agentUnitTempDtos[0].agentUnit}}</el-descriptions-item>
-    <el-descriptions-item label="代理采购单位联系人" >{{this.dataList.agentUnitTempDtos.length == 0 ?  null: this.dataList.agentUnitTempDtos[0].agentRelationName}}</el-descriptions-item>
-    <el-descriptions-item label="代理采购单位联系方式" >{{this.dataList.agentUnitTempDtos.length == 0 ?  null: this.dataList.agentUnitTempDtos[0].agentRelationName}}</el-descriptions-item>
+    <el-descriptions-item label="代理单位联系人" >{{this.dataList.agentUnitTempDtos.length == 0 ?  null: this.dataList.agentUnitTempDtos[0].agentRelationName}}</el-descriptions-item>
+    <el-descriptions-item label="代理单位联系方式" >{{this.dataList.agentUnitTempDtos.length == 0 ?  null: this.dataList.agentUnitTempDtos[0].agentRelationWay}}</el-descriptions-item>
     <el-descriptions-item label="联系地址" ></el-descriptions-item>
     <el-descriptions-item label="中标单位" >{{this.dataList.zhongBiaoUnitTempDtos.length == 0 ?  null: this.dataList.zhongBiaoUnitTempDtos[0].zhongBiaoUnit}}</el-descriptions-item>
     <el-descriptions-item label="中标单位联系人" >{{this.dataList.zhongBiaoUnitTempDtos.length == 0 ?  null: this.dataList.zhongBiaoUnitTempDtos[0].zhongRelationName}}</el-descriptions-item>
@@ -88,9 +87,22 @@
     </el-descriptions-item>
   </el-descriptions>
   <el-descriptions class="margin-top" title="公告详情信息"  border>
-    <el-descriptions-item label="公告原文连接" ></el-descriptions-item>
+    <el-descriptions-item label="公告原文" >
+      <el-button type="info" @click="goToBasic()">原文</el-button>
+    </el-descriptions-item>
   </el-descriptions>
   <el-button type="primary" @click="returnPage">返回</el-button>
+
+  <el-dialog
+    :visible.sync="dialogVisible"
+    width="100%"
+    :before-close="handleClose">
+
+    <span slot="footer" class="dialog-footer">
+    <el-button @click="dialogVisible = false">取 消</el-button>
+    <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
+    </span>
+  </el-dialog>
 </div>
 </template>
 <script>
@@ -100,6 +112,7 @@ import {QueryById} from "@/api/business/bid/biding";
 export default {
   data() {
     return {
+      dialogVisible:false,
       dataList:{},
       areaObj:'',
       bidType: [
@@ -207,10 +220,22 @@ export default {
       this.$route.query
       this.getDetail(this.$route.query.id)
     }
-
-
   },
   methods:{
+    goToBasic(){
+      this.$router.push({path:'/business/bid/detail',query:{id:this.dataList.infoId}});
+    },
+
+    handleClose(done) {
+      this.$confirm('确认关闭?')
+        .then(_ => {
+          done();
+        })
+        .catch(_ => {});
+    },
+    openInfoDetail(){
+      this.dialogVisible=true
+    },
     getDetail(val){
       QueryById(val).then(res =>{
         this.dataList=res.data

+ 255 - 0
src/views/business/bid/detail/detail.vue

@@ -0,0 +1,255 @@
+<template>
+  <ul class='web-box'>
+    <div class='wenshang'>
+      <h2>{{ this.dataList.infoTitle}}</h2>
+    </div>
+    <div class='biaoge'>
+      <table cellpadding='0' cellspacing='0' class='table_content' style='font-size: 12px;margin: 0px; margin-bottom: 10px;width:680px;'>
+        <tbody>
+
+        <tr>
+          <td width='89' align='center' class='bg'>
+            <span class='b2'>发布时间</span></td>
+          <td width='187' class='table-left'>
+                                <span class='d2'>
+                      <a class='blue124'>{{this.dataList.infoPublishTime}}</a>&nbsp;</span>
+          </td>
+        </tr>
+
+        <tr>
+          <td width='89' align='center' class='bg'>
+            <span class='b2'>信息类型</span></td>
+          <td width='187' class='table-left'>
+                                <span class='d2'>
+                      <a class='blue124'>{{getChangeType(this.dataList.infoType)}}-{{getChangeType1(this.dataList.infoTypeSegment)}}</a>&nbsp;</span>
+          </td>
+        </tr>
+
+        <tr>
+          <td width='89' align='center' class='bg'>
+            <span class='b2'>省份</span></td>
+          <td width='187' class='table-left'>
+                                <span class='d2'>
+                      <a class='blue124'>{{this.dataList.areaProvince}}</a>&nbsp;</span>
+          </td>
+        </tr>
+
+        <tr>
+          <td width='89' align='center' class='bg'>
+            <span class='b2'>城市</span></td>
+          <td width='187' class='table-left'>
+                                <span class='d2'>
+                      <a class='blue124'>{{this.dataList.areaCity}}</a>&nbsp;</span>
+          </td>
+        </tr>
+
+        <tr>
+          <td width='89' align='center' class='bg'>
+            <span class='b2'>区县</span></td>
+          <td width='187' class='table-left'>
+                                <span class='d2'>
+                      <a class='blue124'>{{this.dataList.areaCountry}}</a>&nbsp;</span>
+          </td>
+        </tr>
+
+
+        <tr>
+          <td width='89' align='center' class='bg'>
+            <span class='b2'>附件</span></td>
+          <td width='187' class='table-left'>
+                                <span class='d2'>
+                      <a class='blue124'>{{this.dataList.infoFile}}</a>&nbsp;</span>
+          </td>
+        </tr>
+        </tbody>
+      </table>
+    </div>
+    <div class='content-box'>
+      <div>
+        <p>
+          <br></p>
+        <div v-html="dataList.infoContent"></div>
+        <br>
+        <p>
+        </p>
+        <p>
+        </p>
+      </div>
+    </div>
+  </ul>
+</template>
+<script>
+import {getDetailByInfoId, QueryById} from "@/api/business/bid/biding";
+
+export default {
+  data() {
+    return {
+      dialogVisible:false,
+      dataList:{},
+      areaObj:'',
+      bidType: [
+        {
+          value: '0',
+          label: '公开招标'
+        },
+        {
+          value: '4',
+          label: '询比价'
+        },
+        {
+          value: '2',
+          label: '竞价'
+        },
+        {
+          value: '1',
+          label: '邀请招标'
+        },
+        {
+          value: '3',
+          label: '定点采购'
+        },
+        {
+          value: '5',
+          label: '公开寻源'
+        },
+        {
+          value: '6',
+          label: '电子反拍'
+        }
+      ],
+      noticeTwoType: [
+        {
+          value: '1',
+          label: '采购意向'
+        },
+        {
+          value: '2',
+          label: '招投标'
+        },
+        {
+          value: '3',
+          label: '招标'
+        },
+        {
+          value: '5',
+          label: '变更公告'
+        },
+        {
+          value: '10',
+          label: '中标候选人'
+        },
+        {
+          value: '11',
+          label: '中标结果'
+        },
+        {
+          value: '12',
+          label: '合同'
+        },
+        {
+          value: '13',
+          label: '验收公告'
+        },
+      ],
+      noticeOneType:[
+        {
+          value: '0',
+          label: '公告'
+        },
+        {
+          value: '1',
+          label: '预告'
+        },
+        {
+          value: '2',
+          label: '变更'
+        },
+        {
+          value: '3',
+          label: '结果'
+        },
+        {
+          value: '5',
+          label: '其他'
+        }
+      ],
+    };
+  },
+  created() {
+    //如果路由参数存在
+    // if (this.$route.query) {
+    //   this.areaObj = this.$route.query;
+    //   console.log("this.areaObj",this.areaObj)
+    //   this.areaObj.map((v) => {
+    //     const ins = JSON.parse(v.infoNewFile)
+    //     if (ins.length) {
+    //       v.infoFileName = ins[0].infoFileName
+    //       v.infoFileUrl = ins[0].infoFileUrl
+    //     }
+    //   })
+    // }
+    if(this.$route.query.id){
+      this.getDetail(this.$route.query.id)
+    }
+  },
+  methods:{
+
+    getDetail(val){
+      getDetailByInfoId(val).then(res => {
+        this.dataList=res.data
+      })
+    },
+    goToBasic(pramsData){
+
+      this.$router.push({path:'/business/bid/detail',query:{id:pramsData}});
+    },
+
+    handleClose(done) {
+      this.$confirm('确认关闭?')
+        .then(_ => {
+          done();
+        })
+        .catch(_ => {});
+    },
+    openInfoDetail(){
+      this.dialogVisible=true
+    },
+    // getDetail(val){
+    //   QueryById(val).then(res =>{
+    //     this.dataList=res.data
+    //   })
+    // },
+    // YMDHMS_daxiao(str1) {
+    //   str1 = new Date(str1).getTime();
+    //   // 小于0则str1时间小,大于0则str1时间大
+    //   return str1 - new Date().getTime();
+    // },
+    returnPage(){
+      this.$router.go(-1)
+    },
+    getChangeType(e) {
+      for (var i = 0; i < this.noticeOneType.length; i++) {
+        if (this.noticeOneType[i].value === e) {
+          return this.noticeOneType[i].label;
+        }
+      }
+    },
+    getChangeType1(e) {
+      for (var i = 0; i < this.noticeTwoType.length; i++) {
+        if (this.noticeTwoType[i].value === e) {
+          return this.noticeTwoType[i].label;
+        }
+      }
+    },
+    getChangeType2(e) {
+      for (var i = 0; i < this.bidType.length; i++) {
+        if (this.bidType[i].value === e) {
+          return this.bidType[i].label;
+        }
+      }
+    },
+  }
+}
+</script>
+<style>.web-box { width: 100%; text-align: center; } .wenshang { margin: 0 auto; width: 40%; text-align: center; padding: 20px 10px 0 10px; } .wenshang h2 { display: block; color: #900; text-align: center; padding-bottom: 10px; border-bottom: 1px dashed #ccc; font-size: 16px; } .site a { text-decoration: none; } .content-box { text-align: left; margin: 0 auto; width: 40%; margin-top: 25px; text-indent: 2em; font-size: 14px; line-height: 25px; } .biaoge{ margin: 0 auto; width: 643px; margin-top: 25px; } .table_content { border-top: 1px solid #e0e0e0; border-left: 1px solid #e0e0e0; font-family: Arial; width: 643px; margin-top: 10px; margin-left: 15px; } .table_content tr td { line-height: 29px; } .table_content .bg { background-color: #f6f6f6; } .table_content tr td { border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; } .table-left{ text-align: left; padding-left: 20px; }</style>
+

+ 11 - 9
src/views/business/bid/index/biding.vue

@@ -132,14 +132,14 @@
     </el-form>
     <el-table
       :data="dataList.dataTable"
-      style="width: 100%" :header-cell-style="{'text-align':'center'}">
+      style="width: 100%" :header-cell-style="{'text-align':'center'}"  @row-dblclick="handleRouter">
       <el-table-column prop="id" label="序号" width="80" align="center"></el-table-column>
       <el-table-column prop="infoTitle" label="标题" width="200" align="center">
-        <template slot-scope="scope">
-          <p  @click="handleRouter(scope.row.id)">
-            <span>{{ scope.row.infoTitle }}</span>
-          </p>
-        </template>
+<!--        <template slot-scope="scope">-->
+<!--          <p  @click="handleRouter(scope.row.id)">-->
+<!--            <span>{{ scope.row.infoTitle }}</span>-->
+<!--          </p>-->
+<!--        </template>-->
       </el-table-column>
       <el-table-column prop="xmNumber" label="项目编号" width="100" align="center"></el-table-column>
       <el-table-column prop="infoTitle" label="项目名称" width="200" align="center">
@@ -237,7 +237,7 @@
       :total=dataList.total
     >
     </el-pagination>
-    <el-dialog :visible.sync="dialogVisible" v-if="dialogVisible" fullscreen>
+    <el-dialog :visible.sync="dialogVisible" v-if="dialogVisible" >
 
     </el-dialog>
   </div>
@@ -304,8 +304,9 @@ export default {
       this.queryParams.pageNum = val;
       this.btnQuery();
     },
-    handleRouter(pramsData) {
-      let resolve = this.$router.push({path:'/business/bid/bidingInfo',query:{id:pramsData}});
+    handleRouter(row,event,colum) {
+      // this.dialogVisible=true
+       let resolve = this.$router.push({path:'/business/bid/bidingInfo',query:{id:row.id}});
     },
     btnQuery() {
       if (!this.queryParams.releasedTime) {
@@ -351,6 +352,7 @@ export default {
   },
   data() {
     return {
+      dialogVisible:false,
       isShow:false,
       dataList: {
         total: null,

+ 10 - 1
src/views/business/bid/rulesDetail/detail.vue

@@ -174,7 +174,7 @@
           <el-button type="primary" @click="goCustomerPage">新增</el-button>
         </el-col>
         <el-col :span="8">
-          <el-form-item label="招标单位">
+          <el-form-item label="招标单位" prop="zhaoBiaoUnit">
               <el-select
                 v-model="form.zhaoBiaoUnit"
                 clearable
@@ -362,6 +362,9 @@ export default {
         subscriptionPusher: [
           { required: true, message: '请选择标讯推送人', trigger: 'blur' }
         ],
+        zhaoBiaoUnit: [
+          { required: true, message: '请选择招标单位', trigger: 'blur' }
+        ],
       }
     }
   },
@@ -453,6 +456,12 @@ export default {
       this.$refs["form"].validate(valid => {
         if (valid) {
           if (this.form.id != undefined) {
+            this.form.infoTypeSegment =  Array.isArray(this.form.infoTypeSegment)?this.form.infoTypeSegment.join(','):this.form.infoTypeSegment
+            this.form.zhaoBiaoUnitType =  Array.isArray(this.form.zhaoBiaoUnitType)?this.form.zhaoBiaoUnitType.join(','):this.form.zhaoBiaoUnitType
+            this.form.biddingType =  Array.isArray(this.form.biddingType)?this.form.biddingType.join(','):this.form.biddingType
+            this.form.subscriptionPusher =  Array.isArray(this.form.subscriptionPusher)?this.form.subscriptionPusher.join(','):this.form.subscriptionPusher
+            this.form.unitNameMatch =  Array.isArray(this.form.unitNameMatch)?this.form.unitNameMatch.join(','):this.form.unitNameMatch
+            this.form.zhaoBiaoUnit=this.form.zhaoBiaoUnit.toString()
             updateById(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.$router.go(-1)

+ 4 - 4
src/views/business/bid/subscriptionRules/index.vue

@@ -79,8 +79,8 @@
     <el-pagination
       @size-change="handleSizeChange"
       @current-change="handleCurrentChange"
-      :current-page=form.pageNum
-      :page-size=form.pageSize
+      :current-page=queryParams.pageNum
+      :page-size=queryParams.pageSize
       layout="total, sizes, prev, pager, next, jumper"
       :total=dataList.total
     >
@@ -139,11 +139,11 @@ export default {
       }
     },
     handleSizeChange(val) {
-      this.form.pageSize = val;
+      this.queryParams.pageSize = val;
       this.btnQuery();
     },
     handleCurrentChange(val) {
-      this.form.pageNum = val;
+      this.queryParams.pageNum = val;
       this.btnQuery();
     },
     btnQuery(){