Commit 9b929e5b by 张立顺

膜券号适配

1 parent e83bb7d7
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
<div> <div>
<div class="d2-container-content"> <div class="d2-container-content">
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" <GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"> :beforeSearchFn="beforeSearchFn"></GLTable>
</GLTable>
</div> </div>
</div> </div>
<!-- <span slot="footer" class="dialog-footer"> <!-- <span slot="footer" class="dialog-footer">
...@@ -40,7 +39,7 @@ export default { ...@@ -40,7 +39,7 @@ export default {
}, },
{ {
label: '商品编码', label: '商品编码',
prop: 'productCode', prop: 'productCode'
// width: 250 // width: 250
}, },
{ {
...@@ -57,6 +56,10 @@ export default { ...@@ -57,6 +56,10 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return cellValue.allocateNumber || cellValue.allocateNumber == 0 ? parseFloat(cellValue.allocateNumber).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return cellValue.allocateNumber || cellValue.allocateNumber == 0 ? parseFloat(cellValue.allocateNumber).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
} }
},
{
label: '膜卷号',
prop: 'filmRollNo'
} }
] ]
}, },
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
{ {
label: '商品编码', label: '商品编码',
prop: 'productCode', prop: 'productCode'
// width: 250 // width: 250
}, },
{ {
...@@ -92,6 +92,10 @@ export default { ...@@ -92,6 +92,10 @@ export default {
// formatter: (cellValue) => { // formatter: (cellValue) => {
// return cellValue.checkTime ? Util.dateFormate(cellValue.checkTime, 'YYYY-MM-DD HH:mm:ss') : '' // return cellValue.checkTime ? Util.dateFormate(cellValue.checkTime, 'YYYY-MM-DD HH:mm:ss') : ''
// } // }
},
{
label: '膜卷号',
prop: 'filmRollNo'
} }
] ]
}, },
...@@ -138,5 +142,4 @@ export default { ...@@ -138,5 +142,4 @@ export default {
.inventoryDetailDailog .el-dialog { .inventoryDetailDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
} }</style>
</style>
<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">
<div> <div>
合计:出库数量 合计:出库数量
...@@ -13,7 +14,9 @@ ...@@ -13,7 +14,9 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="outboundRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable> <GLTable ref="outboundRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
</div> </div>
...@@ -139,6 +142,13 @@ export default { ...@@ -139,6 +142,13 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'upgradeFlagList' optionsName: 'upgradeFlagList'
},
{
label: '膜卷号',
name: 'filmRollNo',
type: 'input',
maxlength: '50',
isClear: true
} }
], ],
// 表格 // 表格
...@@ -207,6 +217,11 @@ export default { ...@@ -207,6 +217,11 @@ export default {
width: 200 width: 200
}, },
{ {
label: '膜卷号',
prop: 'filmRollNo',
minWidth: 150
},
{
label: '订单类型', label: '订单类型',
prop: '', prop: '',
formatter: cellValue => { formatter: cellValue => {
...@@ -400,8 +415,8 @@ export default { ...@@ -400,8 +415,8 @@ export default {
color: #333; color: #333;
} }
} }
.txt-blue { .txt-blue {
color: #5850ff; color: #5850ff;
} }
} }</style>
</style>
<!-- 库存明细弹窗 --> <!-- 库存明细弹窗 -->
<template> <template>
<GLDialog bigTitle="库存明细" :visible.sync="dialogVisible" class="stockMonthDailog" width="50%" mode="big" :destroy-on-close="true" :close-on-click-modal="false" okText="关闭" :before-close="handleClose" :hasFooter="false" @onOk="handleClose" @onCancel="handleClose"> <GLDialog bigTitle="库存明细" :visible.sync="dialogVisible" class="stockMonthDailog" width="700px" mode="big"
:destroy-on-close="true" :close-on-click-modal="false" okText="关闭" :before-close="handleClose" :hasFooter="false"
@onOk="handleClose" @onCancel="handleClose">
<div> <div>
<div class="d2-container-content"> <div class="d2-container-content">
<GLTable ref="recordTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams" :pageConf="pageConf"></GLTable> <GLTable ref="recordTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams"
:pageConf="pageConf"></GLTable>
</div> </div>
</div> </div>
<!-- <span slot="footer" <!-- <span slot="footer"
...@@ -29,7 +32,7 @@ export default { ...@@ -29,7 +32,7 @@ export default {
}, },
recordInfo: { recordInfo: {
type: Object, type: Object,
default: () => {} default: () => { }
} }
}, },
data() { data() {
...@@ -56,10 +59,15 @@ export default { ...@@ -56,10 +59,15 @@ export default {
{ {
label: '当前库存', label: '当前库存',
prop: 'stock', prop: 'stock',
// width: '' width: '150px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.stock || cellValue.stock == 0 ? parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return cellValue.stock || cellValue.stock == 0 ? parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
} }
},
{
label: '膜卷号',
prop: 'filmRollNo'
// width: '200px'
} }
] ]
} }
...@@ -124,5 +132,4 @@ export default { ...@@ -124,5 +132,4 @@ export default {
.show-search { .show-search {
margin-left: -65px; margin-left: -65px;
} }</style>
</style>
<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">
<div> <div>
<div> <div>
...@@ -15,7 +16,9 @@ ...@@ -15,7 +16,9 @@
</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>
...@@ -109,7 +112,8 @@ export default { ...@@ -109,7 +112,8 @@ export default {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
}, { },
{
label: '入库仓库', label: '入库仓库',
name: 'yqMerchantId', name: 'yqMerchantId',
type: 'select', type: 'select',
...@@ -118,13 +122,12 @@ export default { ...@@ -118,13 +122,12 @@ export default {
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'yqMerchantList', optionsName: 'yqMerchantList',
changeAttr: (value, targetItem) => { changeAttr: (value, targetItem) => {
value value ? this.getServicemerchantrefList(value) : (this.baseData.merchantIdList = [])
? this.getServicemerchantrefList(value)
: (this.baseData.merchantIdList = [])
this.searchForm.merchantId = '' this.searchForm.merchantId = ''
this.getOptionsList('showFormData') this.getOptionsList('showFormData')
} }
}, { },
{
label: '入库门店', label: '入库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
...@@ -142,6 +145,13 @@ export default { ...@@ -142,6 +145,13 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'upgradeFlagList' optionsName: 'upgradeFlagList'
},
{
label: '膜卷号',
name: 'filmRollNo',
type: 'input',
maxlength: '50',
isClear: true
} }
], ],
// 表格 // 表格
...@@ -218,8 +228,14 @@ export default { ...@@ -218,8 +228,14 @@ export default {
minWidth: 150 minWidth: 150
}, },
{ {
label: '膜卷号',
prop: 'filmRollNo',
minWidth: 150
},
{
label: '订单类型', label: '订单类型',
prop: '', prop: '',
minWidth: 150,
formatter: cellValue => { formatter: cellValue => {
return cellValue.increaseStockType == '4' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '-' return cellValue.increaseStockType == '4' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '-'
} }
...@@ -313,9 +329,11 @@ export default { ...@@ -313,9 +329,11 @@ export default {
// 获取仓库门店 // 获取仓库门店
getServicemerchantrefList(merchantId) { getServicemerchantrefList(merchantId) {
this.$apis.stockManage.getServicemerchantrefList({ this.$apis.stockManage
.getServicemerchantrefList({
yqMerchantId: merchantId yqMerchantId: merchantId
}).then(res => { })
.then(res => {
this.baseData.merchantIdList = res || [] this.baseData.merchantIdList = res || []
//总店 //总店
let _headOffice = this.baseData.yqMerchantList.find(item => item.merchantNo === merchantId) let _headOffice = this.baseData.yqMerchantList.find(item => item.merchantNo === merchantId)
...@@ -443,8 +461,8 @@ export default { ...@@ -443,8 +461,8 @@ export default {
color: #333; color: #333;
} }
} }
.txt-blue { .txt-blue {
color: #5850ff; color: #5850ff;
} }
} }</style>
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!