Commit be273a57 by 前端

BUG修复

1 parent d95a1702
......@@ -262,7 +262,7 @@ export function inventoryWarningList(params) {
})
}
// 获取门店库存列表
export function merchantShopGoodsStockPage(data) {
export function merchantShopGoodsStockPage(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}merchantShopGoodsStock.page`
// return request(data, RequestMethods.POST)
......
......@@ -178,8 +178,12 @@ export default {
}
},
{
label: '所属门店',
label: '所属仓库',
prop: 'yqMerchantName'
},
{
label: '所属门店',
prop: 'merchantName'
}
]
},
......@@ -320,18 +324,24 @@ export default {
watch: {
'editAllocationForm.callOutYqMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutYqMerchantId");
// if (this.callOutYqMerchantList.length > 1) {//选项大于1个
if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editAllocationForm.callOutMerchantId = ''
this.switchData(val, oldval, 'yqMerchant')
if (this.callOutYqMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable()
} else {
if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editAllocationForm.callOutMerchantId = ''
this.switchData(val, oldval, 'yqMerchant')
}
}
// }
},
'editAllocationForm.callOutMerchantId'(val, oldval) {
console.log(val, oldval, "监听callOutMerchantId");
if (val != this.oldMerchantId) {//与之前的选项不一样
this.switchData(val, oldval, 'merchant')
if (this.callOutMerchantList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.allocationTable.refreshTable()
} else {
if (val != this.oldMerchantId) {//与之前的选项不一样
this.switchData(val, oldval, 'merchant')
}
}
}
},
......@@ -341,10 +351,14 @@ export default {
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.callOutYqMerchantList = res
this.callInYqMerchantList = res
// if (this.callOutYqMerchantList && this.callOutYqMerchantList.length == 1) {
// this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
// this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out')
// }
if (this.callOutYqMerchantList && this.callOutYqMerchantList.length == 1) {
this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
this.getServicemerchantrefList(this.editAllocationForm.callOutYqMerchantId, 'out')
}
if (this.callInYqMerchantList && this.callInYqMerchantList.length == 1) {
this.editAllocationForm.callInYqMerchantId = this.callInYqMerchantList[0].merchantNo
this.getServicemerchantrefList(this.editAllocationForm.callInYqMerchantId, 'in')
}
})
//调入仓库
// this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then(res => {
......@@ -359,6 +373,8 @@ export default {
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.editAllocationForm.yqMerchantId = this.editAllocationForm.callOutYqMerchantId
this.editAllocationForm.merchantId = this.editAllocationForm.callOutMerchantId
let _form = {
...this.searchForm,
...this.editAllocationForm
......@@ -382,9 +398,9 @@ export default {
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.callOutMerchantList.push(_headOffice)
// if (this.callOutMerchantList && this.callOutMerchantList.length == 1) {
// this.editAllocationForm.callOutMerchantId = this.callOutMerchantList[0].merchantId
// }
if (this.callOutMerchantList && this.callOutMerchantList.length == 1) {
this.editAllocationForm.callOutMerchantId = this.callOutMerchantList[0].merchantId
}
} else if (type == 'in') {
this.callInMerchantList = res || []
//总店
......@@ -392,9 +408,9 @@ export default {
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.callInMerchantList.push(_headOffice)
// if (this.callInMerchantList && this.callInMerchantList.length == 1) {
// this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId
// }
if (this.callInMerchantList && this.callInMerchantList.length == 1) {
this.editAllocationForm.callInMerchantId = this.callOutMerchantList[0].merchantId
}
console.log(this.callInMerchantList);
}
......
......@@ -155,20 +155,33 @@ export default {
},
{
label: '调拨人',
prop: 'operator'
prop: 'operator',
width: 100
},
{
label: '调出仓库',
prop: 'callOutYqMerchantName',
width: 150
}, {
label: '调出门店',
prop: 'callOutMerchantName',
width: 150
}, {
label: '调入仓库',
prop: 'callInYqMerchantName',
width: 150
}, {
label: '调入门店',
prop: 'callInMerchantName',
width: 150
}, {
label: '承运单号',
prop: 'deliveryNumber',
width: 150
}, {
label: '承运公司',
prop: 'deliveryCompany',
width: 150
},
{
label: '备注',
......
......@@ -161,8 +161,12 @@ export default {
}
},
{
label: '所属门店',
label: '所属仓库',
prop: 'yqMerchantName'
},
{
label: '所属门店',
prop: 'merchantName'
}
]
},
......@@ -208,8 +212,12 @@ export default {
addHtml: 'profitAndLoss'
},
{
label: '所属门店',
label: '所属仓库',
prop: 'yqMerchantName'
},
{
label: '所属门店',
prop: 'merchantName'
}
]
},
......@@ -274,16 +282,24 @@ export default {
watch: {
'editCheckForm.yqMerchantId'(val, oldval) {
console.log(val, oldval, "监听yqMerchantId");
if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editCheckForm.merchantId = ''
this.switchData(val, oldval, 'yqMerchant')
if (this.yqMerchantIdList.length == 1) {//当只有一个选项时不弹提示框
this.$refs.recordTable.refreshTable()
} else {
if (val != this.oldyqMerchantId) {//与之前的选项不一样
this.editCheckForm.merchantId = ''
this.switchData(val, oldval, 'yqMerchant')
}
}
},
'editCheckForm.merchantId'(val, oldval2) {
console.log(val, oldval2, "监听merchantId");
if (val != this.oldMerchantId) {//与之前的选项不一样
this.switchData(val, oldval2, 'merchant')
if (this.merchantList.length == 1) {
this.$refs.recordTable.refreshTable()
} else {
if (val != this.oldMerchantId) {//与之前的选项不一样
this.switchData(val, oldval2, 'merchant')
}
}
}
},
......@@ -292,10 +308,10 @@ export default {
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.yqMerchantIdList = res
// if (this.yqMerchantIdList && this.yqMerchantIdList.length == 1) {
// this.editCheckForm.yqMerchantId = this.yqMerchantIdList[0].merchantNo
// this.getServicemerchantrefList(this.editCheckForm.yqMerchantId)
// }
if (this.yqMerchantIdList && this.yqMerchantIdList.length == 1) {
this.editCheckForm.yqMerchantId = this.yqMerchantIdList[0].merchantNo
this.getServicemerchantrefList(this.editCheckForm.yqMerchantId)
}
})
},
......
......@@ -30,7 +30,7 @@
<el-button type="text"
@click="handleInventoryDetails(scope.scope)">库存明细</el-button>
<el-button type="text"
@click="handleDetail(scope.scope)">查看</el-button>
@click="handleDetail(scope.scope)">统计</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -40,9 +40,9 @@
:stockInfo="stockInfo"
v-if="stockMonthVisible"
@dialogClose="dialogClose" />
<stockDetailDialog :visible="stockDetailDialogVisible"
:stockInfo="stockInfo"
v-if="stockDetailDialog" />
<stockDetailDialog :visible.sync="stockDetailDialogVisible"
:recordInfo="stockInfo"
v-if="stockDetailDialogVisible" />
</div>
</template>
......@@ -166,6 +166,10 @@ export default {
label: '所属仓库',
prop: 'yqMerchantName',
width: 200
}, {
label: '所属商户',
prop: 'partnerMerchantName',
width: '200px'
}
]
},
......@@ -201,6 +205,7 @@ export default {
},
handleInventoryDetails(row) {
this.stockInfo = row
console.log(this.stockInfo);
this.stockDetailDialogVisible = true
},
// 查看详情
......
<!-- 库存明细弹窗 -->
<template>
<GLDialog bigTitle="库存明细" :is-visible="dialogVisible" class="stockMonthDailog" width="30%" :no-cancel="true" okText="关闭"
@onOk="handleClose" @onCancel="handleClose">
<GLDialog bigTitle="库存明细"
:visible.sync="dialogVisible"
class="stockMonthDailog"
width="30%"
mode="big"
:destroy-on-close="true"
:close-on-click-modal="false"
okText="关闭"
@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 ref="recordTable"
:get-list-api="getListApi"
:search-form="searchForm"
:table-params="tableParams"
:pageConf="pageConf">
</GLTable>
</div>
</div>
<span slot="footer"
class="dialog-footer">
<el-button type="primary"
size="small"
@click="handleClose">关闭</el-button>
</span>
</GLDialog>
</template>
......@@ -73,6 +90,8 @@ export default {
}
},
mounted() {
console.log('111');
if (this.recordInfo) {
this.searchForm.yqMerchantId = this.recordInfo.yqMerchantId
this.searchForm.upgradeGoodsId = this.recordInfo.upgradeGoodsId
......
<template>
<GLDialog class="stock-dialog" v-if="stockMonthVisible" :destroy-on-close="true" :before-close="handleClose" bigTitle="月度库存结算单" mode="big" okText="关闭" :visible.sync="stockMonthVisible" :close-on-click-modal="false" @onOk="handleClose" @onCancel="handleClose">
<div class="detail-content" v-if="stockMonthVisible">
<el-form :inline="true" :model="searchForm" size="small">
<GLDialog class="stock-dialog"
v-if="stockMonthVisible"
:destroy-on-close="true"
:before-close="handleClose"
bigTitle="月度库存结算单"
mode="big"
okText="关闭"
:visible.sync="stockMonthVisible"
:close-on-click-modal="false"
@onOk="handleClose"
@onCancel="handleClose">
<div class="detail-content"
v-if="stockMonthVisible">
<el-form :inline="true"
:model="searchForm"
size="small">
<el-form-item label="年度:">
<el-date-picker v-model="searchForm.year" type="year" placeholder="选择年" value-format="yyyy" format="yyyy" :clearable="false" :picker-options="pickerOption" @change="chooseYear"></el-date-picker>
<el-date-picker v-model="searchForm.year"
type="year"
placeholder="选择年"
value-format="yyyy"
format="yyyy"
:clearable="false"
:picker-options="pickerOption"
@change="chooseYear"></el-date-picker>
</el-form-item>
</el-form>
<div class="table-class">
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" :has-num="false" :hasPage="false" :tableData="tableData" :pageConf="pageConf"></GLTable>
<GLTable ref="purchaseOrderDetailTable"
:tableParams="tableParams"
:has-num="false"
:hasPage="false"
:tableData="tableData"
:pageConf="pageConf"></GLTable>
</div>
<span class="btn-tips">
<img src="@/images/icon-warn.png" />
说明:月平均加权单价=上月结存库存金额+本月采购金额/上月结存库存数量+本月采购数量
</span>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="handleClose">关闭</el-button>
<span slot="footer"
class="dialog-footer">
<el-button type="primary"
size="small"
@click="handleClose">关闭</el-button>
</span>
</GLDialog>
</template>
......@@ -31,7 +59,7 @@ export default {
},
stockInfo: {
type: Object,
default: () => {}
default: () => { }
}
},
data() {
......
......@@ -48,7 +48,8 @@ export default {
goodsType: '',
businessCode: '',
goodsSeries: '',
productCode: ''
productCode: '',
deliveryNumber: ''
},
tableSearchForm: {},
paramsObj: {},
......@@ -101,6 +102,13 @@ export default {
isClear: true
},
{
label: '发货单号',
name: 'deliveryNumber',
type: 'input',
maxlength: '20',
isClear: true
},
{
label: '系列',
name: 'goodsSeries',
type: 'input',
......@@ -199,6 +207,11 @@ export default {
minWidth: 150
},
{
label: '关联发货单号',
prop: 'deliveryNumber',
minWidth: 150
},
{
label: '入库仓库',
prop: 'yqMerchantName',
width: 200
......@@ -366,7 +379,8 @@ export default {
goodsType: '',
businessCode: '',
goodsSeries: '',
productCode: ''
productCode: '',
deliveryNumber: ''
}
this.handleSearch()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!