Infsea.vue 12.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<template>
  <c-content>
  <div class="eibs-tab">  
        <template >
                <el-form
                    class="m-table-search-form"
                    ref="paramsForm"
                    :inline="true"
                    label-position="left"
                    label-width="110px"
                    size="small"
                >
          
        <el-row>  
         <c-col :span="24">                                              
            <c-col :span="8">
zhoutian committed
17 18
                <el-form-item label="资产发布编号" prop="assposref" style="width:100%">
                    <c-input  v-model="model.assposref" maxlength="50"  placeholder="请输入资产发布编号" style="width:330px"></c-input>
19 20 21 22
                </el-form-item>
            </c-col>

             <c-col :span="8" >
zhoutian committed
23 24 25 26 27 28 29 30 31 32
                <el-form-item label="起始日期" style="width: 100%">
                  <c-col :span="11">
                    <c-date-picker type="date"   v-model="model.fromdate"  placeholder="请选择Opening between" style="width:160px"></c-date-picker>
                  </c-col>
                   <c-col :span="2" style="padding:0 0 0 20px">
                      <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11" >
                    <c-date-picker type="date"  v-model="model.todate"  placeholder="请选择Open Date to" style="width:160px"></c-date-picker>     
                  </c-col> 
33 34 35
                </el-form-item>
            </c-col>
            <c-col :span="8">
zhoutian committed
36
                <el-form-item label="邀约类型" prop="offtyp" style="width: 100%">
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
                    <c-select
                        v-model="model.offtyp"
                        style="width: 100%"
                        placeholder="邀约类型"
                      >
                        <el-option
                        v-for="item in type"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                         </el-option>
                    </c-select>

                </el-form-item>
            </c-col>
          </c-col> 
        </el-row>
        <c-col :span="24" style="text-align: right; height: 36.8px">
          
             <el-button size="small" @click="handleReset">重置</el-button>
             <el-button
            type="primary"
            icon="el-icon-search"
            size="small"
            @click="handleSearch()"
            >查询</el-button >
          
          </c-col>                 
  </el-form>
   <c-col :span="24">
      <div style="border-bottom: 10px solid rgb(232, 232, 232)"></div>
    </c-col>
 
 </template>

 <c-col :span="24">
   <div class="table">
    <!-- <c-istream-table :list="itemList"> -->

     <el-table :data="itemList.slice((currentPage-1)*PageSize,currentPage*PageSize)" :border="true" style="width:80%,text-align:center" :header-cell-style="{background:'rgb(235, 235, 235)',color:'#000'}">
zhoutian committed
77 78
       <el-table-column label="资产发布编号" width="240px" prop="assposref"></el-table-column>   
     <el-table-column label="资产登记编号" width="240px" prop="assregref"></el-table-column>
79 80 81 82 83 84 85 86
     <el-table-column label="要约类型" width="200px" prop="offtyp"></el-table-column>
     <el-table-column label="结息方式" width="200px" prop="settyp"></el-table-column>
     <el-table-column label="资产发布日期" width="200px" prop="credat"></el-table-column>
     <el-table-column fixed="right" prop="op" label="操作" width="200px">
        <template slot-scope="scope">
            <c-button
              style="margin-left: 0"
              size="small"
zhoutian committed
87
              
88 89 90 91 92 93 94 95 96 97 98
              @click="Detail(scope)"
            >
              详情
            </c-button>

            <c-button
              style="margin-left: 0"
              size="small"
              type="primary"
              @click="Edit(scope)"
            >
zhoutian committed
99
              处理
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
            </c-button>
            <c-button
              style="margin-left: 0"
              size="small"
              type="primary"
              @click="Del(scope.$index)"
            >
              删除
            </c-button>
          </template>
        </el-table-column>
        </el-table>    
      <!-- </c-istream-table>      -->
      <div class="tabListPage">
           <el-pagination @size-change="handleSizeChange" 
                          @current-change="handleCurrentChange" 
                          :current-page="currentPage" 
                          :page-sizes="pageSizes" 
                          :page-size="PageSize" layout="total, sizes, prev, pager, next, jumper" 
                          :total="itemList.length">
             </el-pagination>
       </div>
      </div>
    </c-col>  
    <el-dialog :visible.sync="showPanel" :title="opttitle" append-to-body :before-close="cancel">
      <el-form
          class="m-table-search-form"
          ref="paramsForm"
          :inline="true"
          label-position="right"
          label-width="110px"
          size="small"
        >
        
          <c-row>
            <c-col :span="24">
              <c-col :span="24">
zhoutian committed
137
                <el-form-item label="资产发布编号" prop="edit.assposref" style="width: 100%" >
138
                 <c-input
zhoutian committed
139
                    v-model="model.edit.assposref"
140 141 142 143 144 145 146 147 148 149 150
                    placeholder="请输入assposref"
                    type="textarea"
                    :rows="4"
                    maxlength="200"
                    show-word-limit
                    :disabled="isDetail"
                    style="width: 95%"
                  ></c-input>
                </el-form-item>     
              </c-col>
              <c-col :span="24">
zhoutian committed
151 152
                <c-input v-if="showIndex" style="visibility: hidden" v-model="model.edit.assregref" ></c-input>
                <el-form-item label="资产登记编号" prop="edit.assregref" style="width: 100%">
153
                  <c-input
zhoutian committed
154
                    v-model="model.edit.assregref"
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
                    placeholder="请输入assregref"
                    type="textarea"
                    :rows="4"
                    maxlength="200"
                    show-word-limit
                    :disabled="isDetail"
                    style="width: 95%"
                  ></c-input>
                </el-form-item>
              </c-col>
              <!-- <c-col :span="24">
                <el-form-item label="承付日期" prop="edit.accdat" style="width: 100%">
                  <c-date-picker
                    type="date"
                    v-model="model.edit.accdat"
                    style="width: 95%"
                    placeholder="请选择"
                    :disabled="isDetail"
                    ></c-date-picker>
                </el-form-item>
              </c-col> -->
              <c-col :span="24">
zhoutian committed
177
                <el-form-item label="要约类型" prop="edit.offtyp" style="width: 100%">
178
                 <c-input
zhoutian committed
179
                    v-model="model.edit.offtyp"
180 181 182 183 184 185 186 187 188 189 190
                    placeholder="请输入offtyp"
                    type="textarea"
                    :rows="4"
                    maxlength="200"
                    show-word-limit
                    :disabled="isDetail"
                    style="width: 95%"
                  ></c-input>
                </el-form-item>
              </c-col>
              <c-col :span="24">
zhoutian committed
191
                <el-form-item label="结息方式 " prop="edit.settyp" style="width: 100%">
192
                  <c-input
zhoutian committed
193
                    v-model="model.edit.settyp"
194 195 196 197 198 199 200 201 202 203
                    placeholder="请输入settyp"
                    type="textarea"
                    :rows="4"
                    maxlength="200"
                    show-word-limit
                    :disabled="isDetail"
                    style="width: 95%"
                  ></c-input>
                </el-form-item>
              </c-col>
zhoutian committed
204 205 206 207 208 209 210 211 212 213 214 215
              <c-col :span="24">
                <el-form-item label="资产发布日期" prop="edit.credat" style="width: 100%">
                  <c-date-picker
                    type="date"
                    v-model="model.edit.credat"
                    style="width: 95%"
                    placeholder="请选择"
                    :disabled="isDetail"
                    ></c-date-picker>
                </el-form-item>
              </c-col>
               <!-- <c-col :span="24">
216 217 218 219 220 221 222 223 224 225 226 227
                <el-form-item label="资产发布日期" prop="credat" style="width: 100%">
                 <c-input
                    v-model="model.credat"
                    placeholder="请输入credat"
                    type="textarea"
                    :rows="4"
                    maxlength="200"
                    show-word-limit
                    :disabled="isDetail"
                    style="width: 95%"
                  ></c-input>
                </el-form-item>
zhoutian committed
228
              </c-col> -->
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
            </c-col>
          <c-col :span="24" style="text-align: center; height: 36.8px">
            <el-button
              type="primary"
              size="small"
              @click="submitData"
              v-if="optType"
              >提交</el-button
            >
            <el-button style="margin-left: 0" size="small" @click="cancel">
              返回
            </el-button> 
          </c-col>
          </c-row>
        </el-form>
    </el-dialog>
  

  </div>
  </c-content>  
</template>

<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/AssetInfo/Event"
// import  BusNavbar from "~/views/Business//BusNavbar"
import {assPubInfo} from "~/service/elec"
zhoutian committed
258
import {assPubQuery} from "~/service/elec"
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314


export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
   
    data(){
        return {
            

            showPanel: false,
            opttitle:"",
            isDetail:true,
            optType:true,
            showIndex:false,
            type:[
              {label:"要约函",value:"OFFR"},
              {label:"报价函",value:"QUOT"},
              
            ],
      
            
      

            

            // 总数据
            itemList:[],
           // 默认显示第几页
           currentPage:1,
           // 总条数,根据接口获取数据长度(注意:这里不能为空)
           total:0,
           // 个数选择器(可修改)
           pageSizes:[5,10,15,20,25],
           // 默认每页显示的条数(可修改)
           PageSize:5,

            
             
        }
    },
    created(){
       assPubInfo().then(res=>{
            this.itemList=res;
         
            
        })

        

    },
    
    methods:{...Event,
      
        
zhoutian committed
315 316 317 318 319
       handleReset() {
         this.model.assposref='';
        this.model.fromdate='';
        this.model.todate='';
        this.model.offtyp='';
320 321 322
        
      },
      handleSearch(){
zhoutian committed
323 324 325 326 327 328 329 330
        assPubQuery({
          "assposref":this.model.assposref,
          "fromdate":this.model.fromdate,
          "todate":this.model.todate,
          "offtyp":this.model.offtyp  
        }).then(res=>{
           this.itemList=res;
        })
331 332 333 334 335 336
   
       
      },
     

      Detail(scope){   
zhoutian committed
337
      this.model.edit.assposref = scope.row.assposref;
338 339 340 341 342 343 344 345
      this.isDetail = true;
      this.opttitle = "资产发布信息详情";
      this.optType = false;
      this.showPanel = true;
    },
    
    Edit(scope){
  
zhoutian committed
346
      this.model.edit.assposref = scope.row.assposref;
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
      this.isDetail = false;
      this.opttitle = "资产发布信息修改";
      this.optType = true;
      this.showPanel = true;
    },
    cancel(){
      this.showPanel=false;
    },

    submitData(){},
// 每页显示的条数
       handleSizeChange(size) {
           // 改变每页显示的条数 
           this.PageSize=size;
           // 注意:在改变每页显示的条数时,要将页码显示到第一页
           this.currentPage=1;
                  

       },
         // 显示第几页
       handleCurrentChange(currentPage) {
           // 改变默认的页数
           this.currentPage=currentPage;
           
       },
    }
}
  


</script>
<style>
.table {
  margin-top: 20px;
}

.el-table .cell {
  line-height: 15px; 
}



</style>