Commit 9b929e5b by 张立顺

膜券号适配

1 parent e83bb7d7
......@@ -5,8 +5,7 @@
<div>
<div class="d2-container-content">
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn">
</GLTable>
:beforeSearchFn="beforeSearchFn"></GLTable>
</div>
</div>
<!-- <span slot="footer" class="dialog-footer">
......@@ -40,7 +39,7 @@ export default {
},
{
label: '商品编码',
prop: 'productCode',
prop: 'productCode'
// width: 250
},
{
......@@ -57,6 +56,10 @@ export default {
formatter: cellValue => {
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 {
},
{
label: '商品编码',
prop: 'productCode',
prop: 'productCode'
// width: 250
},
{
......@@ -92,6 +92,10 @@ export default {
// formatter: (cellValue) => {
// return cellValue.checkTime ? Util.dateFormate(cellValue.checkTime, 'YYYY-MM-DD HH:mm:ss') : ''
// }
},
{
label: '膜卷号',
prop: 'filmRollNo'
}
]
},
......@@ -138,5 +142,4 @@ export default {
.inventoryDetailDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
}
</style>
}</style>
<template>
<div class="purchase">
<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>
合计:出库数量
......@@ -13,7 +14,9 @@
</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 -->
</div>
</div>
......@@ -139,6 +142,13 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'upgradeFlagList'
},
{
label: '膜卷号',
name: 'filmRollNo',
type: 'input',
maxlength: '50',
isClear: true
}
],
// 表格
......@@ -207,6 +217,11 @@ export default {
width: 200
},
{
label: '膜卷号',
prop: 'filmRollNo',
minWidth: 150
},
{
label: '订单类型',
prop: '',
formatter: cellValue => {
......@@ -400,8 +415,8 @@ export default {
color: #333;
}
}
.txt-blue {
color: #5850ff;
}
}
</style>
}</style>
<!-- 库存明细弹窗 -->
<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 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>
<!-- <span slot="footer"
......@@ -29,7 +32,7 @@ export default {
},
recordInfo: {
type: Object,
default: () => {}
default: () => { }
}
},
data() {
......@@ -56,10 +59,15 @@ export default {
{
label: '当前库存',
prop: 'stock',
// width: ''
width: '150px',
formatter: cellValue => {
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 {
.show-search {
margin-left: -65px;
}
</style>
}</style>
<template>
<div class="purchase">
<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>
<div>
......@@ -15,7 +16,9 @@
</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 -->
</div>
</div>
......@@ -109,7 +112,8 @@ export default {
type: 'input',
maxlength: '20',
isClear: true
}, {
},
{
label: '入库仓库',
name: 'yqMerchantId',
type: 'select',
......@@ -118,13 +122,12 @@ export default {
optionLabel: 'merchantName',
optionsName: 'yqMerchantList',
changeAttr: (value, targetItem) => {
value
? this.getServicemerchantrefList(value)
: (this.baseData.merchantIdList = [])
value ? this.getServicemerchantrefList(value) : (this.baseData.merchantIdList = [])
this.searchForm.merchantId = ''
this.getOptionsList('showFormData')
}
}, {
},
{
label: '入库门店',
name: 'merchantId',
type: 'select',
......@@ -142,6 +145,13 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'upgradeFlagList'
},
{
label: '膜卷号',
name: 'filmRollNo',
type: 'input',
maxlength: '50',
isClear: true
}
],
// 表格
......@@ -218,8 +228,14 @@ export default {
minWidth: 150
},
{
label: '膜卷号',
prop: 'filmRollNo',
minWidth: 150
},
{
label: '订单类型',
prop: '',
minWidth: 150,
formatter: cellValue => {
return cellValue.increaseStockType == '4' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '-'
}
......@@ -313,17 +329,19 @@ export default {
// 获取仓库门店
getServicemerchantrefList(merchantId) {
this.$apis.stockManage.getServicemerchantrefList({
yqMerchantId: merchantId
}).then(res => {
this.baseData.merchantIdList = res || []
//总店
let _headOffice = this.baseData.yqMerchantList.find(item => item.merchantNo === merchantId)
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.baseData.merchantIdList.push(_headOffice)
this.getOptionsList('showFormData')
})
this.$apis.stockManage
.getServicemerchantrefList({
yqMerchantId: merchantId
})
.then(res => {
this.baseData.merchantIdList = res || []
//总店
let _headOffice = this.baseData.yqMerchantList.find(item => item.merchantNo === merchantId)
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.baseData.merchantIdList.push(_headOffice)
this.getOptionsList('showFormData')
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
......@@ -443,8 +461,8 @@ export default {
color: #333;
}
}
.txt-blue {
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!