|
|
@@ -0,0 +1,109 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ <div class="inline-16" style="margin-bottom:10px">
|
|
|
+ <el-input suffix-icon="el-icon-search" size="small" v-model="params.content.where.condition" placeholder="产品名称,编号" @keyup.enter.native="queryEnterpriseArchives(params.content.pageNumber = 1)" @clear="queryEnterpriseArchives(params.content.pageNumber = 1)" clearable></el-input>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
+ :data="ENlist"
|
|
|
+ stripe
|
|
|
+ style="width: 100%"
|
|
|
+ height="300"
|
|
|
+ border>
|
|
|
+ <el-table-column
|
|
|
+ prop="billno"
|
|
|
+ label="合同编号"
|
|
|
+ width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="projectname"
|
|
|
+ label="合同名称"
|
|
|
+ width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="title"
|
|
|
+ label="标题">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" @click="rowClick(scope.row)">选 择</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div style="display:flex;justify-content:space-between;margin-top:16px;">
|
|
|
+ <div style="text-align:left">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ small
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="params.content.pageNumber"
|
|
|
+ :page-size="params.content.pageSize"
|
|
|
+ layout="total, prev, pager, next"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ <el-button size="mini" @click="$emit('onCanel')">取消</el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- <el-input :validate-event="false" slot="reference" v-model="form.enterprisename" @focus="queryEnterpriseArchives" placeholder="输入企业名称" clearable></el-input> -->
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ props:['tag','type'],
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ ENlist:[],
|
|
|
+ total:0,
|
|
|
+ currentPage:0,
|
|
|
+ form:{},
|
|
|
+ params:{
|
|
|
+ "id": 20221217145402,
|
|
|
+ "content": {
|
|
|
+ "nocache":true,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ selected:''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ async queryEnterpriseArchives () {
|
|
|
+ this.params.content.where.sa_projectid = this.$route.query.id
|
|
|
+ const res = await this.$api.requested(this.params)
|
|
|
+ this.ENlist = res.data
|
|
|
+ this.total = res.total
|
|
|
+ console.log(this.ENlist,'项目合同列表');
|
|
|
+
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ this.params.content.pageSize = val
|
|
|
+ this.queryEnterpriseArchives()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.params.content.pageNumber = val
|
|
|
+ this.queryEnterpriseArchives()
|
|
|
+ },
|
|
|
+ rowClick (row) {
|
|
|
+ this.$emit('onSelect',row)
|
|
|
+ },
|
|
|
+ onCancel () {
|
|
|
+ this.$emit('onCancel')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ this.queryEnterpriseArchives()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+</script>
|
|
|
+<style>
|
|
|
+</style>
|