Commit 3785053f by 王志慧

Merge branch 'v4.22.0' into v4.22.1

2 parents 5b0b3ffe a81e1ca4
...@@ -354,8 +354,8 @@ export default { ...@@ -354,8 +354,8 @@ export default {
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo // this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
// 调出仓库 // 调出仓库
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => { this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.callOutYqMerchantList = res this.callOutYqMerchantList = this.$common.utils.deepClone(res)
this.callInYqMerchantList = res this.callInYqMerchantList = this.$common.utils.deepClone(res)
if (this.callOutYqMerchantList && this.callOutYqMerchantList.length == 1) { if (this.callOutYqMerchantList && this.callOutYqMerchantList.length == 1) {
this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out') this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out')
...@@ -415,7 +415,7 @@ export default { ...@@ -415,7 +415,7 @@ export default {
//门店选项中加入总店 //门店选项中加入总店
this.callInMerchantList.push(_headOffice) this.callInMerchantList.push(_headOffice)
if (this.callInMerchantList && this.callInMerchantList.length == 1) { if (this.callInMerchantList && this.callInMerchantList.length == 1) {
this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId this.editAllocationForm.callInMerchantId = this.callInMerchantList[0].merchantId
} }
} }
......
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
: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 <el-button
...@@ -16,14 +10,7 @@ ...@@ -16,14 +10,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="outboundRef" <GLTable ref="outboundRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
</div> </div>
...@@ -94,13 +81,12 @@ export default { ...@@ -94,13 +81,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',
...@@ -279,9 +265,11 @@ export default { ...@@ -279,9 +265,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)
......
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
: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 <el-button
...@@ -16,33 +10,17 @@ ...@@ -16,33 +10,17 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="stockRef" <GLTable ref="stockRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
:getListApi="getListApi" <div class="table-btns" slot="auth-button" slot-scope="scope">
:noDataImg="url" <el-button type="text" @click="handleInventoryDetails(scope.scope)">库存明细</el-button>
:searchForm="tableSearchForm" <el-button type="text" @click="handleDetail(scope.scope)">统计</el-button>
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="handleInventoryDetails(scope.scope)">库存明细</el-button>
<el-button type="text"
@click="handleDetail(scope.scope)">统计</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 查看 --> <!-- 查看 -->
<stock-month-dialog :stock-month-visible="stockMonthVisible" <stock-month-dialog :stock-month-visible="stockMonthVisible" :stockInfo="stockInfo" v-if="stockMonthVisible" @dialogClose="dialogClose" />
:stockInfo="stockInfo" <stockDetailDialog :visible.sync="stockDetailDialogVisible" :recordInfo="stockInfo" v-if="stockDetailDialogVisible" />
v-if="stockMonthVisible"
@dialogClose="dialogClose" />
<stockDetailDialog :visible.sync="stockDetailDialogVisible"
:recordInfo="stockInfo"
v-if="stockDetailDialogVisible" />
</div> </div>
</template> </template>
...@@ -166,7 +144,8 @@ export default { ...@@ -166,7 +144,8 @@ export default {
label: '所属仓库', label: '所属仓库',
prop: 'yqMerchantName', prop: 'yqMerchantName',
width: 200 width: 200
}, { },
{
label: '所属商户', label: '所属商户',
prop: 'partnerMerchantName', prop: 'partnerMerchantName',
width: '200px' width: '200px'
...@@ -205,7 +184,7 @@ export default { ...@@ -205,7 +184,7 @@ export default {
}, },
handleInventoryDetails(row) { handleInventoryDetails(row) {
this.stockInfo = row this.stockInfo = row
console.log(this.stockInfo); console.log(this.stockInfo)
this.stockDetailDialogVisible = true this.stockDetailDialogVisible = true
}, },
// 查看详情 // 查看详情
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
@handleRest="handleReset"></GLCombiForm> @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 size="small" @click="exportExcel">导出</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!