Commit 35f11bcc authored by tanjunxin's avatar tanjunxin

fix: 生产版本及工作中心领料细节优化

parent 2eb8e887
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="productionSolutionList" row-key="productionSolutionId" default-expand-all> <el-table v-loading="loading" :data="productionSolutionList" row-key="productionSolutionId" default-expand-all :max-height="maxHeight">
<el-table-column label="生产版本编码" prop="productionSolutionCode"> <el-table-column label="生产版本编码" align="center" prop="productionSolutionCode" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="handleView(scope.row)" <el-button size="mini" type="text" @click="handleView(scope.row)"
v-hasPermi="['pro:productionSolutionCode:query']">{{ scope.row.productionSolutionCode }}</el-button> v-hasPermi="['pro:productionSolutionCode:query']">{{ scope.row.productionSolutionCode }}</el-button>
...@@ -175,6 +175,11 @@ export default { ...@@ -175,6 +175,11 @@ export default {
productionSolutionList: [] productionSolutionList: []
}; };
}, },
computed: {
maxHeight() {
return window.document.documentElement.clientHeight - 320;
},
},
created() { created() {
this.getList(); this.getList();
}, },
......
...@@ -56,8 +56,7 @@ ...@@ -56,8 +56,7 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="materialList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="materialList" @selection-change="handleSelectionChange" :max-height="maxHeight">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="产品编码" align="center" width="150" prop="sapItemCode" /> <el-table-column label="产品编码" align="center" width="150" prop="sapItemCode" />
<el-table-column label="产品名称" align="center" width="150" prop="itemName" /> <el-table-column label="产品名称" align="center" width="150" prop="itemName" />
...@@ -75,9 +74,7 @@ ...@@ -75,9 +74,7 @@
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.windCase" /> <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.windCase" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="已发放数量" align="center" prop="grantNum" /> <el-table-column label="已发放数量" align="center" width="90" prop="grantNum" />
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
...@@ -378,6 +375,11 @@ export default { ...@@ -378,6 +375,11 @@ export default {
} }
}; };
}, },
computed: {
maxHeight() {
return window.document.documentElement.clientHeight - 320;
},
},
created() { created() {
this.getList(); this.getList();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment