Commit 0c49f075 by 张立顺

回显字段添加

1 parent 20a3d3e4
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<h2>入库列表</h2> <h2>入库列表</h2>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button> <el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="warehousingRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable> <GLTable ref="warehousingRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
</div> </div>
...@@ -144,7 +147,7 @@ export default { ...@@ -144,7 +147,7 @@ export default {
label: '入库数量', label: '入库数量',
prop: 'increaseStockNum', prop: 'increaseStockNum',
formatter: cellValue => { formatter: cellValue => {
return cellValue.increaseStockNum || cellValue.increaseStockNum == 0 ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) && cellValue.goodsType != this.$purchaseType? '米' : '件') : '-' return cellValue.increaseStockNum || cellValue.increaseStockNum == 0 ? parseFloat(cellValue.increaseStockNum).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) && cellValue.goodsType != this.$purchaseType ? '米' : '件') : '-'
}, },
width: 120 width: 120
}, },
...@@ -191,6 +194,10 @@ export default { ...@@ -191,6 +194,10 @@ export default {
{ {
confId: '3', confId: '3',
confLabel: '调拨入库' confLabel: '调拨入库'
},
{
confId: '4',
confLabel: '调拨入库'
} }
], ],
productTypeList: [], productTypeList: [],
...@@ -325,15 +332,16 @@ export default { ...@@ -325,15 +332,16 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
@import '@/assets/css/mixin.scss'; @import '@/assets/css/mixin.scss';
.purchase { .purchase {
.table-header { .table-header {
@include space-between_center; @include space-between_center;
margin-bottom: 10px; margin-bottom: 10px;
h2 { h2 {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
} }
} }
} }</style>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!