Commit 1616c0f3 by 前端

提交代码冒烟测试

1 parent 436f713c
......@@ -103,7 +103,8 @@ const stockCheckDetailPage = params => {
// 商品库存列表(创建盘点、调拨时展示)
const stockRemainPage = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path3}stock.remain.page`
// params.routerMethod = `${path3}stock.remain.page`
params.routerMethod = `${path}merchantShopGoodsStock.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
......
......@@ -368,7 +368,8 @@
</div>
</el-row>
</template>
<span v-else>{{ item.name ? formData[item.name] : item.value }}</span>
<!-- <span v-else>{{ item.name ? formData[item.name] : item.value }}</span> -->
<span v-else></span>
</el-form-item>
<div v-show="item.tips"
class="item-tips">
......@@ -461,7 +462,7 @@ export default {
name: 'D2Form',
data() {
return {
userInfo:{detail:{}},
userInfo: { detail: {} },
warrantyProList,
merchantDisable: false,
storeSearchForm: {
......
......@@ -89,7 +89,7 @@ export default {
name: 'callOutYqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqRelatedMerchantList',
changeAttr: (value, targetItem) => {
......@@ -113,7 +113,7 @@ export default {
name: 'callInYqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqRelatedMerchantList',
changeAttr: (value, targetItem) => {
......@@ -148,6 +148,7 @@ export default {
{
label: '调拨时间',
prop: 'allocateTime',
width: 170,
formatter: cellValue => {
return dayjs(cellValue.allocateTime).format('YYYY-MM-DD HH:mm:ss')
}
......@@ -157,12 +158,17 @@ export default {
prop: 'operator'
},
{
label: '调出仓库',
prop: 'callOutYqMerchantName',
}, {
label: '调出门店',
prop: 'callOutYqMerchantName'
},
{
prop: 'callOutMerchantName',
}, {
label: '调入仓库',
prop: 'callInYqMerchantName',
}, {
label: '调入门店',
prop: 'callInYqMerchantName'
prop: 'callInMerchantName',
},
{
label: '备注',
......@@ -186,7 +192,11 @@ export default {
mounted() {
//调入门店
this.$apis.stockManage.yqRelatedList({}).then(res => {
// this.$apis.stockManage.yqRelatedList({}).then(res => {
// this.baseData.yqRelatedMerchantList = res
// this.getOptionsList('showFormData')
// })
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqRelatedMerchantList = res
this.getOptionsList('showFormData')
})
......@@ -218,14 +228,14 @@ export default {
if (type == 'out') {//调出门店
this.baseData.outMerchantList = res || []
//总店
_headOffice = this.baseData.yqRelatedMerchantList.find(item => item.merchantId === merchantId)
_headOffice = this.baseData.yqRelatedMerchantList.find(item => item.merchantNo === merchantId)
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.baseData.outMerchantList.push(_headOffice)
} else if (type == 'in') {//调入门店
this.baseData.inMerchantList = res || []
//总店
_headOffice = this.baseData.yqRelatedMerchantList.find(item => item.merchantId === merchantId)
_headOffice = this.baseData.yqRelatedMerchantList.find(item => item.merchantNo === merchantId)
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.baseData.inMerchantList.push(_headOffice)
......
......@@ -24,7 +24,6 @@
prop="merchantId">
<el-select v-model="editCheckForm.merchantId"
@change="changeMerchant(editCheckForm.merchantId)"
filterable
style="width: 300px">
<el-option v-for="item in merchantList"
:key="item.merchantId"
......@@ -43,7 +42,7 @@
size="small"
inline="true">
<el-form-item label="">
<el-input v-model="searchForm.searchName"
<el-input v-model="searchForm.upgradeGoodsNameOrSeries"
style="width: 200px"
placeholder="请输入商品名称/系列"
maxlength="20"
......@@ -126,12 +125,12 @@ export default {
return {
membraneTypeList: membraneTypeList,
searchForm: {
searchName: ''
upgradeGoodsNameOrSeries: ''
},
searchFormSearch: {},
searchSelectObj: {},
getListApi: this.$apis.stockManage.stockRemainPage,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
......@@ -139,7 +138,7 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName'
prop: 'upgradeGoodsName'
},
{
label: '商品编码',
......@@ -148,7 +147,7 @@ export default {
},
{
label: '系列',
prop: 'sourceMaterialName'
prop: 'goodsSeries'
},
{
label: '所属分类',
......@@ -174,8 +173,7 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName',
width: '160px'
prop: 'goodsName'
},
{
label: '商品编码',
......@@ -184,13 +182,11 @@ export default {
},
{
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
prop: 'sourceMaterialName'
},
{
label: '所属分类',
prop: 'goodsTypeName',
width: '250px'
prop: 'goodsTypeName'
},
{
label: '系统库存',
......@@ -213,8 +209,7 @@ export default {
},
{
label: '所属门店',
prop: 'yqMerchantName',
width: '200px'
prop: 'yqMerchantName'
}
]
},
......@@ -271,28 +266,46 @@ export default {
},
yqMerchantIdList: [],//盘点仓库
merchantList: [],//盘点门店
oldyqMerchantId: '',//之前选择的仓库
oldMerchantId: '',//之前选择的门店
}
},
watch: {
'editCheckForm.yqMerchantId'(val, oldval) {
console.log(val, oldval, "监听yqMerchantId");
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')
}
}
},
mounted() {
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({}).then(res => {
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)
// this.changeYqMerchant(this.editCheckForm.yqMerchantId)
}
// if (this.yqMerchantIdList && this.yqMerchantIdList.length == 1) {
// this.editCheckForm.yqMerchantId = this.yqMerchantIdList[0].merchantNo
// this.getServicemerchantrefList(this.editCheckForm.yqMerchantId)
// }
})
},
methods: {
changeYqMerchant(merchantId) {
this.switchData(merchantId, 'yqMerchant')
// this.switchData(merchantId, 'yqMerchant')
},
changeMerchant(merchantId) {
this.switchData(merchantId, 'merchant')
// this.switchData(merchantId, 'merchant')
},
// 获取仓库门店
......@@ -303,6 +316,7 @@ export default {
this.merchantList = res || []
//总店
let _headOffice = this.yqMerchantIdList.find(item => item.merchantNo === merchantId)
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
this.merchantList.push(_headOffice)
if (this.merchantList && this.merchantList.length == 1) {
......@@ -311,27 +325,30 @@ export default {
})
},
switchData(merchantId, type) {
// let _flag = false
switchData(val, oldval, type) {
this.$confirm('切换盘点仓库和盘点门店,自动重置已盘点内容;是否确定切换?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
// _flag = true
if (type == 'yqMerchant') {
this.getServicemerchantrefList(merchantId)
this.getServicemerchantrefList(val)
}
//更新盘存数据以及清空盘存确认单数据
this.$refs.recordTable.refreshTable()
this.chooseDataList = []
})
.catch(err => {
// _flag = false
console.log(err)
if (type == 'yqMerchant') {
this.editCheckForm.yqMerchantId = oldval
this.oldyqMerchantId = oldval
} else if (type == 'merchant') {
this.editCheckForm.merchantId = oldval
this.oldMerchantId = oldval
}
})
// return _flag
},
beforeSearchFn() {
......@@ -381,11 +398,21 @@ export default {
dialogClose(chooseData) {
this.inventoryNumVisible = !this.inventoryNumVisible
console.log('chooseData', chooseData);
if (chooseData) {
chooseData = this.fieldConvert(chooseData)
this.chooseDataList.push(chooseData)
}
},
//选择的数据与提交数据之间的字段转换
fieldConvert(obj) {
obj.goodsId = obj.upgradeGoodsId
obj.goodsName = obj.upgradeGoodsName
obj.sourceMaterialName = obj.goodsSeries
return obj
},
// 取消
cancelInventory(row, index) {
this.chooseDataList.splice(index, 1)
......@@ -409,7 +436,10 @@ export default {
if (data.remark) {
params.remark = data.remark
}
// return console.log(params);
params = {
...params,
...this.editCheckForm
}
this.$confirm('盘点单保存后,系统自动按照盘点实际库存进行库存更新;是否确定保存?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......
......@@ -176,7 +176,7 @@ export default {
mounted() {
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({}).then(res => {
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqMerchantList = res
this.getOptionsList('showFormData')
})
......
......@@ -2,17 +2,33 @@
<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">
<h2>预警列表</h2>
<div>
<el-button type="primary" size="small" @click="gotoReplenishment">去补货</el-button>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
<el-button type="primary"
size="small"
@click="gotoReplenishment">去补货</el-button>
<el-button type="primary"
size="small"
@click="exportExcel">导出</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="earlyWarningRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
<GLTable ref="earlyWarningRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end -->
</div>
</div>
......@@ -31,6 +47,7 @@ export default {
searchForm: {
upgradeGoodsName: '',
yqMerchantId: '',
merchantId: '',
goodsType: '',
goodsSeries: '',
productCode: ''
......@@ -69,13 +86,28 @@ export default {
optionsName: 'productTypeList'
},
{
label: '所属门店',
label: '所属仓库',
name: 'yqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqMerchantList'
optionsName: 'yqMerchantList',
changeAttr: (value, targetItem) => {
value
? this.getServicemerchantrefList(value)
: (this.baseData.merchantIdList = [])
this.searchForm.merchantId = ''
this.getOptionsList('showFormData')
}
}, {
label: '所属门店',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantIdList'
}
],
// 表格
......@@ -88,7 +120,7 @@ export default {
label: '商品名称',
prop: 'upgradeGoodsName'
},
{
{
label: '商品编码',
prop: 'productCode'
},
......@@ -115,8 +147,12 @@ export default {
}
},
{
label: '所属门店',
label: '所属仓库',
prop: 'yqMerchantName'
},
{
label: '所属门店',
prop: 'merchantName'
}
]
},
......@@ -124,7 +160,8 @@ export default {
// 基本数据
baseData: {
productTypeList: [],
yqMerchantList: []
yqMerchantList: [],
merchantIdList: []
}
}
},
......@@ -136,7 +173,7 @@ export default {
})
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({}).then(res => {
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqMerchantList = res
this.getOptionsList('showFormData')
})
......@@ -149,6 +186,20 @@ export default {
resolve()
})
},
// 获取仓库门店
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')
})
},
// 查看详情
handleDetail(row) {
this.stockInfo = row
......@@ -206,10 +257,11 @@ export default {
this.searchForm = {
upgradeGoodsName: '',
yqMerchantId: '',
merchantId: '',
goodsType: '',
goodsSeries: '',
productCode: ''
}
this.handleSearch()
}
......
......@@ -2,17 +2,28 @@
<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">
<h2>出库列表</h2>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
<el-button type="primary"
size="small"
@click="exportExcel">导出</el-button>
</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>
......@@ -34,6 +45,7 @@ export default {
eventType: '',
upgradeGoodsName: '',
yqMerchantId: '',
merchantId: '',
goodsType: '',
businessCode: '',
goodsSeries: '',
......@@ -74,15 +86,29 @@ export default {
isClear: true
},
{
label: '出库门店',
label: '出库仓库',
name: 'yqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqMerchantList'
optionsName: 'yqMerchantList',
changeAttr: (value, targetItem) => {
value
? this.getServicemerchantrefList(value)
: (this.baseData.merchantIdList = [])
this.searchForm.merchantId = ''
this.getOptionsList('showFormData')
}
}, {
label: '出库门店',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantIdList'
},
{
label: '使用门店',
name: 'storeUsage',
......@@ -177,11 +203,16 @@ export default {
prop: 'businessCode'
},
{
label: '出库门店',
label: '出库仓库',
prop: 'yqMerchantName',
width: 200
},
{
label: '出库门店',
prop: 'merchantName',
width: 200
},
{
// label: '适用门店',
label: '使用门店',
prop: 'storeUsage',
......@@ -210,7 +241,8 @@ export default {
}
],
productTypeList: [],
yqMerchantList: []
yqMerchantList: [],
merchantIdList: []
}
}
},
......@@ -222,7 +254,7 @@ export default {
})
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({}).then(res => {
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqMerchantList = res
this.getOptionsList('showFormData')
})
......@@ -244,6 +276,20 @@ export default {
resolve()
})
},
// 获取仓库门店
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')
})
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
......@@ -289,6 +335,7 @@ export default {
eventType: '',
upgradeGoodsName: '',
yqMerchantId: '',
merchantId: '',
goodsType: '',
businessCode: '',
goodsSeries: '',
......
......@@ -2,22 +2,42 @@
<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">
<h2>库存列表</h2>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
<el-button type="primary"
size="small"
@click="exportExcel">导出</el-button>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="stockRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<GLTable ref="stockRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="handleDetail(scope.scope)">查看</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 查看 -->
<stock-month-dialog :stock-month-visible="stockMonthVisible" :stockInfo="stockInfo" v-if="stockMonthVisible" @dialogClose="dialogClose" />
<stock-month-dialog :stock-month-visible="stockMonthVisible"
:stockInfo="stockInfo"
v-if="stockMonthVisible"
@dialogClose="dialogClose" />
</div>
</template>
......@@ -68,7 +88,7 @@ export default {
isClear: true
},
{
label: '所属门店',
label: '所属仓库',
name: 'yqMerchantId',
type: 'select',
optionList: [],
......@@ -135,7 +155,7 @@ export default {
}
},
{
label: '所属门店',
label: '所属仓库',
prop: 'yqMerchantName',
width: 200
}
......@@ -157,7 +177,7 @@ export default {
})
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({}).then(res => {
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqMerchantList = res
this.getOptionsList('showFormData')
})
......
<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">
<h2>入库列表</h2>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
<el-button type="primary"
size="small"
@click="exportExcel">导出</el-button>
</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>
......@@ -30,6 +44,7 @@ export default {
increaseStockType: '',
upgradeGoodsName: '',
yqMerchantId: '',
merchantId: '',
goodsType: '',
businessCode: '',
goodsSeries: '',
......@@ -70,15 +85,6 @@ export default {
isClear: true
},
{
label: '入库门店',
name: 'yqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqMerchantList'
},
{
label: '所属分类',
name: 'goodsType',
type: 'select',
......@@ -100,6 +106,29 @@ export default {
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '入库仓库',
name: 'yqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqMerchantList',
changeAttr: (value, targetItem) => {
value
? this.getServicemerchantrefList(value)
: (this.baseData.merchantIdList = [])
this.searchForm.merchantId = ''
this.getOptionsList('showFormData')
}
}, {
label: '入库门店',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantIdList'
}
],
// 表格
......@@ -144,7 +173,7 @@ export default {
label: '入库数量',
prop: 'increaseStockNum',
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
},
......@@ -170,9 +199,14 @@ export default {
minWidth: 150
},
{
label: '入库门店',
label: '入库仓库',
prop: 'yqMerchantName',
width: 200
},
{
label: '入库门店',
prop: 'merchantName',
width: 200
}
]
},
......@@ -194,7 +228,8 @@ export default {
}
],
productTypeList: [],
yqMerchantList: []
yqMerchantList: [],
merchantIdList: []
}
}
},
......@@ -206,7 +241,7 @@ export default {
})
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({}).then(res => {
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqMerchantList = res
this.getOptionsList('showFormData')
})
......@@ -229,6 +264,21 @@ 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')
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
......@@ -312,6 +362,7 @@ export default {
increaseStockType: '',
upgradeGoodsName: '',
yqMerchantId: '',
merchantId: '',
goodsType: '',
businessCode: '',
goodsSeries: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!