Fixiaobai
2023-10-12 66506f2a1b836e955264f3efbfdcd3e27008b6a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<template>
  <div>
    <el-row style="width: 100%;display: flex; justify-content: space-around;margin-top: 10px;">
      <el-col><p style="margin-left: 20px;">承运商管理</p></el-col>
      <el-col style="display: flex; justify-content: end;">
        <el-button size="mini" icon="el-icon-plus" type="primary">新增</el-button>
        <el-button size="mini" icon="el-icon-edit-outline">修改</el-button>
        <el-button size="mini" icon="el-icon-delete">删除</el-button>
      </el-col>
    </el-row>
    <el-row style="width: 100%;height: 60px;background-color: white;display: flex;align-items: center;margin-top: 10px;">
      <el-form style="height: 60%;margin-left: 20px;" :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="供应商名称:">
          <el-input size="small" v-model="formInline.name" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button size="mini" @click="resetForm('ruleForm')">重置</el-button>
          <el-button size="mini" type="primary" @click="onSubmit">查询</el-button>
        </el-form-item>
      </el-form>
    </el-row>
    <el-row style="height: calc(100% - 125px);margin-top: 10px;background-color: white;">
        <el-col style="margin-top: 10px;width: 98%;margin-left: 10px;height: calc(100% - 64px);" >
            <el-table ref="inspectionTable"  height="100%" :cell-style="{textAlign: 'center'}"
                        :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'center'}"
                        :data="inspectionTable" style="width: 100%;">
                        <el-table-column type="selection" width="50">
                        </el-table-column>
                        <el-table-column prop="order_number" label="序号" min-width="50" />
                        <el-table-column prop="customer_name" label="供应商编码" min-width="100" />
                        <el-table-column prop="project_name" label="供应商名称" min-width="100" />
                        <el-table-column prop="quality_traceability" label="统一信用代码" min-width="110" />
                        <el-table-column prop="material_code" label="法人代表" min-width="100" />
                        <el-table-column prop="material" label="联系电话" min-width="85" />
                        <el-table-column prop="specifications_model" label="注册地址" min-width="110" />
                        <el-table-column prop="unit" label="联系人操作" min-width="80" />
                        <el-table-column prop="quantity" label="车辆操作" min-width="80" />
                        <el-table-column label="操作" min-width="80">
                            <template slot-scope="scope">
                                <el-button type="text" size="small" @click="goToDetail(scope.row)">查看</el-button>
                                <el-button type="text" size="small">打印</el-button>
                                <el-button v-if="scope.row.result == null" type="text" size="small"
                                    @click="goUp(scope.row)">编辑</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
                <!-- 分页器 -->
                <el-col class="pagination">
                    <el-pagination :current-page="pageParams.pageSize" :page-sizes="[10, 50, 100, 200]"
                        :page-size="pageParams.countSize" layout="total, sizes, prev, pager, next, jumper" :total="pageParams.total"
                        @size-change="handleSizeChange" @current-change="handleCurrentChange" />
                </el-col>
    </el-row>
  </div>
</template>
 
<script>
export default {
    data(){
      return{
        formInline:{
          name: null
        },
        pageParams:{
          pageSize: 0,
          countSize: 10,
          total: 10
        },
        inspectionTable: []
      }
    },
    methods:{
      resetForm(formName) {
        this.$refs[formName].resetFields();
    },
    onSubmit(){
    
    },
    handleSizeChange(val){
 
    },
    handleCurrentChange(val){
    
    }
  }
}
</script>
 
<style  scoped>
    .pagination {
    width: 98%;
        margin-top: 5px;
    display: flex;
    justify-content: end;
    }
</style>>