优化
This commit is contained in:
@@ -35,10 +35,10 @@
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="material_code" label="物料编码" width="120px" />
|
||||
<el-table-column prop="material_name" label="物料名称" width="120px" />
|
||||
<el-table-column prop="" label="型号" />
|
||||
<el-table-column prop="tech_type" label="工艺" :formatter="formName" />
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="110" align="center" />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="120" align="center" />
|
||||
<el-table-column prop="material_model" label="型号" align="center" />
|
||||
<el-table-column prop="tech_type" label="工艺" :formatter="formName" align="center" />
|
||||
<el-table-column prop="cf_qty" label="CF" width="95" align="center">
|
||||
<template scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.cf_qty }}</span>
|
||||
@@ -54,7 +54,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="yz_qty" label="YZ" width="95">
|
||||
<el-table-column prop="yz_qty" label="YZ" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.yz_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -69,7 +69,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="cx_qty" label="CX" width="95">
|
||||
<el-table-column prop="cx_qty" label="CX" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.cx_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -84,7 +84,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="yc_qty" label="YC" width="95">
|
||||
<el-table-column prop="yc_qty" label="YC" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.yc_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -99,7 +99,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="jy_qty" label="JY" width="95">
|
||||
<el-table-column prop="jy_qty" label="JY" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.jy_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -114,7 +114,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="lt_qty" label="LT" width="95">
|
||||
<el-table-column prop="lt_qty" label="LT" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.lt_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -129,7 +129,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sj_qty" label="SJ" width="95">
|
||||
<el-table-column prop="sj_qty" label="SJ" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.sj_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -144,7 +144,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ys_qty" label="YS" width="95">
|
||||
<el-table-column prop="ys_qty" label="YS" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.ys_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -159,7 +159,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ds_qty" label="DS" width="95">
|
||||
<el-table-column prop="ds_qty" label="DS" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.ds_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -174,7 +174,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="cqx_qty" label="CQX" width="95">
|
||||
<el-table-column prop="cqx_qty" label="CQX" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.cqx_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -189,7 +189,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="xqx_qty" label="XQX" width="95">
|
||||
<el-table-column prop="xqx_qty" label="XQX" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.xqx_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -204,7 +204,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="qx_qty" label="QX" width="95">
|
||||
<el-table-column prop="qx_qty" label="QX" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.qx_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -219,7 +219,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="jcf_qty" label="JCF" width="95">
|
||||
<el-table-column prop="jcf_qty" label="JCF" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.jcf_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -234,7 +234,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="tb_qty" label="TB" width="95">
|
||||
<el-table-column prop="tb_qty" label="TB" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.tb_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -249,7 +249,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ycr_qty" label="YCR" width="95">
|
||||
<el-table-column prop="ycr_qty" label="YCR" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.ycr_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -264,7 +264,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="gz_qty" label="GZ" width="95">
|
||||
<el-table-column prop="gz_qty" label="GZ" width="95" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-show="scope.row.edit">{{ scope.row.gz_qty }}</span>
|
||||
<el-input-number
|
||||
@@ -279,9 +279,9 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="create_name" label="维护人" width="120" />
|
||||
<el-table-column prop="create_time" label="维护时间" width="140"/>
|
||||
<el-table-column v-permission="[]" label="操作" width="180" align="center" fixed="right">
|
||||
<el-table-column prop="create_time" label="维护时间" min-width="140"/>
|
||||
<el-table-column prop="create_name" label="维护人" min-width="120" />
|
||||
<el-table-column label="操作" width="180" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-show="!scope.row.edit" type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
||||
<el-button v-show="scope.row.edit" type="success" size="mini" icon="el-icon-check" @click="handleEdit(scope.$index, scope.row)">完成</el-button>
|
||||
@@ -339,6 +339,7 @@ export default {
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
this.crud.data = []
|
||||
return true
|
||||
},
|
||||
formName(row) {
|
||||
|
||||
Reference in New Issue
Block a user