Commit 0c35c54d by 前端

Merge branch 'develop' into 'master'

上线合并

See merge request !21
2 parents 2be67a28 d7018dc7
......@@ -358,4 +358,52 @@ export function technicianUpdate(params) {
sign: true
})
}
export default { inventoryWarningList, exportaInventExcel, exportaAllocateExcel, exportCheckExcel, exportReduceExcel, exportMerchantExcel, exportExcel, saveStockAllocate, stockAllocateDetailPage, stockAllocatePage, yqRelatedList, saveStockCheck, stockRemainPage, stockCheckDetailPage, stockCheckPage, getMerchantGoodsStockCount, getMerchantGoodsStockReduceRecord, getReportByGoods, getyqMerchantList, getGoodsWarehousingCount, getGoodsWarehousingList, getMerchantGoodsStockMonthCount, getMerchantGoodsStockMonthReport, merchantShopGoodsStockPage, getServicemerchantrefList, checkShipper, exportStatementOfAccount, getRoleTechnician, technicianUpdate }
// 分页查询退货详细信息
const refundDetailPage = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path3}stock.refund.detail.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 保存退货单
const refundSave = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path3}stock.refund.save`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 分页查询退货单列表
const refundPage = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path3}stock.refund.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 退货单导出
const refundExport = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path3}stock.refund.export`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { inventoryWarningList, exportaInventExcel, exportaAllocateExcel, exportCheckExcel, exportReduceExcel, exportMerchantExcel, exportExcel, saveStockAllocate, stockAllocateDetailPage, stockAllocatePage, yqRelatedList, saveStockCheck, stockRemainPage, stockCheckDetailPage, stockCheckPage, getMerchantGoodsStockCount, getMerchantGoodsStockReduceRecord, getReportByGoods, getyqMerchantList, getGoodsWarehousingCount, getGoodsWarehousingList, getMerchantGoodsStockMonthCount, getMerchantGoodsStockMonthReport, merchantShopGoodsStockPage, getServicemerchantrefList, checkShipper, exportStatementOfAccount, getRoleTechnician, technicianUpdate, refundDetailPage, refundSave, refundPage, refundExport }
<template>
<div class="addWrap">
<div class="d2-container-content gl-form-min" style="padding: 10px 20px">
<el-form :inline="true" size="small" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules"
class="demo-form-inline">
<div class="d2-container-content gl-form-min"
style="padding: 10px 20px">
<el-form :inline="true"
size="small"
:model="editAllocationForm"
ref="editAllocationFormRef"
:rules="formRules"
class="demo-form-inline">
<el-form-item>调出方</el-form-item>
<el-form-item label="调出仓库:" prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId" style="width: 300px">
<el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo" />
<el-form-item label="调出仓库:"
prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId"
style="width: 300px">
<el-option v-for="item in callOutYqMerchantList"
:key="item.merchantNo"
:label="item.merchantName"
:value="item.merchantNo" />
</el-select>
</el-form-item>
<el-form-item label="调出门店:" prop="callOutMerchantId">
<el-select v-model="editAllocationForm.callOutMerchantId" style="width: 300px">
<el-option v-for="item in callOutMerchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId" />
<el-form-item label="调出门店:"
prop="callOutMerchantId">
<el-select v-model="editAllocationForm.callOutMerchantId"
style="width: 300px">
<el-option v-for="item in callOutMerchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId" />
</el-select>
</el-form-item>
<br />
<el-form-item>调入方</el-form-item>
<el-form-item label="调入仓库:" prop="callInYqMerchantId">
<el-form-item label="调入仓库:"
prop="callInYqMerchantId">
<el-select v-model="editAllocationForm.callInYqMerchantId"
@change="changeCallInYqMerchant(editAllocationForm.callInYqMerchantId)" style="width: 300px">
<el-option v-for="item in callInYqMerchantList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo" />
@change="changeCallInYqMerchant(editAllocationForm.callInYqMerchantId)"
style="width: 300px">
<el-option v-for="item in callInYqMerchantList"
:key="item.merchantNo"
:label="item.merchantName"
:value="item.merchantNo" />
</el-select>
</el-form-item>
<el-form-item label="调入门店:" prop="callInMerchantId">
<el-select v-model="editAllocationForm.callInMerchantId" style="width: 300px">
<el-option v-for="item in callInMerchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId" />
<el-form-item label="调入门店:"
prop="callInMerchantId">
<el-select v-model="editAllocationForm.callInMerchantId"
style="width: 300px">
<el-option v-for="item in callInMerchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId" />
</el-select>
</el-form-item>
</el-form>
......@@ -36,35 +57,62 @@
<div class="d2-container-content">
<div style="padding: 15px 0">
<div class="gl-form-min">
<el-form :inline="true" size="small" :model="editAllocationForm">
<el-form :inline="true"
size="small"
:model="editAllocationForm">
<el-form-item label="">
<el-input v-model="searchForm.upgradeGoodsNameOrSeries" style="width: 200px" placeholder="请输入商品名称/系列"
maxlength="20" clearable />
<el-input v-model="searchForm.upgradeGoodsNameOrSeries"
style="width: 200px"
placeholder="请输入商品名称/系列"
maxlength="20"
clearable />
</el-form-item>
<el-button @click="handleSearch" size="small" type="primary" style="marginleft: 15px">查询</el-button>
<el-button @click="handleSearch"
size="small"
type="primary"
style="marginleft: 15px">查询</el-button>
</el-form>
</div>
</div>
<GLTable ref="allocationTable" :getListApi="getListApi" :pageConf="pageConf" :searchForm="searchFormSearch"
:tableParams="tableParams" :beforeSearchFn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">选择</el-button>
<GLTable ref="allocationTable"
:getListApi="getListApi"
:pageConf="pageConf"
:searchForm="searchFormSearch"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="allocation(scope.scope)"
:disabled="setDisabled(scope.scope)">选择</el-button>
</div>
</GLTable>
</div>
<div class="d2-container-content">
<p class="title">调拨确认单</p>
<GLTable ref="allocationTable2" :tableData="chooseDataList" :tableParams="tableParams2" :hasPage="false">
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="cancelAllocation(scope.row, scope.$index)">取消</el-button>
<GLTable ref="allocationTable2"
:tableData="chooseDataList"
:tableParams="tableParams2"
:hasPage="false">
<div slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="cancelAllocation(scope.row, scope.$index)">取消</el-button>
</div>
</GLTable>
</div>
<glsx-form ref="allocationForm" :rules="allocationFormRules" :origin-data="editData" :form-list="editForm"
form-ref="inveFormRef" @handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form>
<glsx-form ref="allocationForm"
:rules="allocationFormRules"
:origin-data="editData"
:form-list="editForm"
form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose"></glsx-form>
<!-- 盘点 -->
<allocation-num-dialog :allocation-num-visible="allocationNumVisible" :allocation-info="allocationInfo"
v-if="allocationNumVisible" @dialogClose="dialogClose" />
<allocation-num-dialog :allocation-num-visible="allocationNumVisible"
:allocation-info="allocationInfo"
v-if="allocationNumVisible"
@dialogClose="dialogClose" />
</div>
</template>
......@@ -112,6 +160,12 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode',
width: '250px'
......@@ -155,6 +209,12 @@ export default {
prop: 'goodsName'
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode',
width: '250px'
......@@ -541,4 +601,5 @@ export default {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}</style>
}
</style>
<!-- 盘点详情弹窗弹窗 -->
<template>
<GLDialog bigTitle="详细信息" :visible.sync="allocationDetailVisible" class="inventoryDetailDailog" mode="big" okText="关闭"
@onCancel="handleClose" @onOk="handleClose" :before-close="handleClose" :hasFooter="false">
<GLDialog bigTitle="详细信息"
width="1500px"
:visible.sync="allocationDetailVisible"
class="inventoryDetailDailog"
mode="big"
okText="关闭"
@onCancel="handleClose"
@onOk="handleClose"
:before-close="handleClose"
:hasFooter="false">
<div>
<div class="d2-container-content">
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"></GLTable>
<GLTable ref="recordTable"
:getListApi="getListApi"
:searchForm="searchFormSearch"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"></GLTable>
</div>
</div>
<!-- <span slot="footer" class="dialog-footer">
......@@ -35,7 +46,15 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName'
prop: 'goodsName',
width: 180,
line: 1
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
......
<!-- 创建盘点 -->
<template>
<div class="addWrap">
<div class="d2-container-content gl-form-min" style="padding: 10px 20px">
<el-form :inline="true" size="small" :model="editCheckForm" ref="editCheckFormRef" :rules="formRules"
class="demo-form-inline">
<el-form-item label="盘点仓库:" prop="yqMerchantId">
<el-select v-model="editCheckForm.yqMerchantId" @change="changeYqMerchant(editCheckForm.yqMerchantId)"
style="width: 300px">
<el-option v-for="item in yqMerchantIdList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo" />
<div class="d2-container-content gl-form-min"
style="padding: 10px 20px">
<el-form :inline="true"
size="small"
:model="editCheckForm"
ref="editCheckFormRef"
:rules="formRules"
class="demo-form-inline">
<el-form-item label="盘点仓库:"
prop="yqMerchantId">
<el-select v-model="editCheckForm.yqMerchantId"
@change="changeYqMerchant(editCheckForm.yqMerchantId)"
style="width: 300px">
<el-option v-for="item in yqMerchantIdList"
:key="item.merchantNo"
:label="item.merchantName"
:value="item.merchantNo" />
</el-select>
</el-form-item>
<el-form-item label="盘点门店:" prop="merchantId">
<el-select v-model="editCheckForm.merchantId" @change="changeMerchant(editCheckForm.merchantId)"
style="width: 300px">
<el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId" />
<el-form-item label="盘点门店:"
prop="merchantId">
<el-select v-model="editCheckForm.merchantId"
@change="changeMerchant(editCheckForm.merchantId)"
style="width: 300px">
<el-option v-for="item in merchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId" />
</el-select>
</el-form-item>
</el-form>
......@@ -24,50 +37,75 @@
<p class="title">盘存</p>
<div style="padding: 15px 0">
<div class="gl-form-min">
<el-form ref="ruleForm" :model="searchForm" size="small" inline="true">
<el-form ref="ruleForm"
:model="searchForm"
size="small"
inline="true">
<el-form-item label="">
<el-input v-model="searchForm.upgradeGoodsNameOrSeries" style="width: 200px" placeholder="请输入商品名称/系列"
maxlength="20" clearable />
<el-input v-model="searchForm.upgradeGoodsNameOrSeries"
style="width: 200px"
placeholder="请输入商品名称/系列"
maxlength="20"
clearable />
</el-form-item>
<el-button @click="handleSearch" size="small" type="primary">查询</el-button>
<el-button @click="handleSearch"
size="small"
type="primary">查询</el-button>
</el-form>
</div>
</div>
<p class="title">盘存</p>
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn" :pageConf="pageConf">
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="inventory(scope.scope)" :disabled="setDisabled(scope.scope)">盘点</el-button>
<GLTable ref="recordTable"
:getListApi="getListApi"
:searchForm="searchFormSearch"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn"
:pageConf="pageConf">
<div slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="inventory(scope.scope)"
:disabled="setDisabled(scope.scope)">盘点</el-button>
</div>
</GLTable>
</div>
<div class="d2-container-content">
<p class="title">盘存确认单</p>
<GLTable ref="recordTable2" :tableData="chooseDataList" :tableParams="tableParams2" :hasPage="false">
<template slot="profitAndLoss" slot-scope="scope">
<GLTable ref="recordTable2"
:tableData="chooseDataList"
:tableParams="tableParams2"
:hasPage="false">
<template slot="profitAndLoss"
slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0" style="color: blue">{{ '+' +
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' :
'件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" style="color: red">{{
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' :
'件') }}</span>
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0"
style="color: blue">{{ '+' + parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0"
style="color: red">{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span
v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span>
<span v-else>-</span>
</template>
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="cancelInventory(scope.row, scope.$index)">取消</el-button>
<div slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="cancelInventory(scope.row, scope.$index)">取消</el-button>
</div>
</GLTable>
</div>
<glsx-form ref="addInventoryForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form>
<glsx-form ref="addInventoryForm"
:origin-data="editData"
:form-list="editForm"
form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose"></glsx-form>
<!-- 盘点 -->
<inventory-num-dialog :inventory-num-visible="inventoryNumVisible" :record-info="recordInfo"
v-if="inventoryNumVisible" @dialogClose="dialogClose" />
<inventory-num-dialog :inventory-num-visible="inventoryNumVisible"
:record-info="recordInfo"
v-if="inventoryNumVisible"
@dialogClose="dialogClose" />
</div>
</template>
......@@ -101,6 +139,12 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode',
width: '250px'
......@@ -144,6 +188,12 @@ export default {
prop: 'goodsName'
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode',
width: '250px'
......@@ -504,4 +554,5 @@ export default {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}</style>
}
</style>
<!-- 盘点详情弹窗弹窗 -->
<template>
<GLDialog bigTitle="详细信息" :visible.sync="inventoryDetailVisible" :hasFooter="false" :before-close="handleClose"
class="inventoryDetailDailog" mode="big" okText="关闭" @onCancel="handleClose" @onOk="handleClose">
<GLDialog bigTitle="详细信息"
width="1500px"
:visible.sync="inventoryDetailVisible"
:hasFooter="false"
:before-close="handleClose"
class="inventoryDetailDailog"
mode="big"
okText="关闭"
@onCancel="handleClose"
@onOk="handleClose">
<div>
<div class="header" slot="header" style="padding: 10px 20px">
<div class="header"
slot="header"
style="padding: 10px 20px">
<!-- <GLCombiForm ref="showSearch"
class="show-search"
:search-form="searchForm"
......@@ -11,18 +21,20 @@
:form-data="showFormData"></GLCombiForm> -->
</div>
<div class="d2-container-content">
<GLTable ref="recordTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
:beforeSearchFn="beforeSearchFn">
<template slot="profitAndLoss" slot-scope="scope">
<GLTable ref="recordTable"
:getListApi="getListApi"
:searchForm="searchFormSearch"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn">
<template slot="profitAndLoss"
slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0" style="color: blue">{{ '+' +
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
: '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" style="color: red">{{
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
: '件') }}</span>
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0"
style="color: blue">{{ '+' + parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0"
style="color: red">{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span
v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span>
<span v-else>-</span>
</template>
......@@ -55,8 +67,15 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'goodsName'
// width: '200px'
prop: 'goodsName',
width: 180,
line: 1
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
......@@ -142,4 +161,5 @@ 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">
<h2>预警列表</h2>
<div>
<el-button type="primary" plain size="small" @click="gotoReplenishment">去补货</el-button>
<el-button size="small" @click="exportExcel">导出</el-button>
<el-button type="primary"
plain
size="small"
@click="gotoReplenishment">去补货</el-button>
<el-button 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>
......@@ -107,6 +120,12 @@ export default {
prop: 'upgradeGoodsName'
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode'
},
......@@ -303,4 +322,5 @@ export default {
color: #333;
}
}
}</style>
}
</style>
......@@ -27,13 +27,13 @@
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div class="table-btns"
<!-- <div class="table-btns"
slot="auth-button"
slot-scope="scope"
v-if="scope.scope.subOrderStatus != 2">
<el-button type="text"
@click="correlationTechnician(scope.scope)">关联技师</el-button>
</div>
</div> -->
</GLTable>
<!-- 表格区域 end -->
<!-- 关联技师 -->
......@@ -191,7 +191,7 @@ export default {
getListApi: this.$apis.stockManage.getMerchantGoodsStockReduceRecord,
tableParams: {
listName: 'list',
tableOption: true,
tableOption: false,
tableColumns: [
{
label: '出库时间',
......@@ -208,6 +208,12 @@ export default {
line: 1
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode',
width: 180,
......@@ -215,7 +221,9 @@ export default {
},
{
label: '系列',
prop: 'goodsSeries'
prop: 'goodsSeries',
width: 150,
line: 1
},
{
label: '所属分类',
......@@ -264,6 +272,7 @@ export default {
{
label: '订单类型',
prop: '',
width: 100,
formatter: cellValue => {
return cellValue.eventType == '1' ? this.baseData.upgradeFlagList.find(item => item.confId === cellValue.upgradeFlag)?.confLabel : '-'
}
......@@ -288,20 +297,20 @@ export default {
formatter: cellValue => {
return cellValue.storeUsage || '-'
}
},
{
label: '操作人',
prop: 'updatedUserName',
width: '100px'
},
{
label: '最后操作时间',
prop: 'updatedDate',
width: '150px',
formatter: cellValue => {
return dayjs(cellValue.updatedDate).format('YYYY-MM-DD HH:mm:ss')
}
}
// {
// label: '操作人',
// prop: 'updatedUserName',
// width: '120px'
// },
// {
// label: '最后操作时间',
// prop: 'updatedDate',
// width: '150px',
// formatter: cellValue => {
// return dayjs(cellValue.updatedDate).format('YYYY-MM-DD HH:mm:ss')
// }
// }
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
......@@ -310,7 +319,7 @@ export default {
eventTypeList: [
{
confId: '1',
confLabel: '订单出库'
confLabel: '领料出库'
},
{
confId: '2',
......@@ -319,6 +328,10 @@ export default {
{
confId: '3',
confLabel: '调拨出库'
},
{
confId: '4',
confLabel: '退货出库'
}
],
upgradeFlagList: [
......
<!-- 退货详情弹窗弹窗 -->
<template>
<GLDialog bigTitle="详细信息"
width="1500px"
:visible.sync="detailVisible"
:hasFooter="false"
:before-close="handleClose"
class="detailDailog"
mode="big"
okText="关闭"
@onCancel="handleClose"
@onOk="handleClose">
<div>
<div class="header"
slot="header"
style="padding: 10px 20px">
<!-- <GLCombiForm ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData"></GLCombiForm> -->
</div>
<div class="d2-container-content">
<GLTable ref="recordTable"
:getListApi="getListApi"
:searchForm="searchFormSearch"
:tableParams="tableParams"
:beforeSearchFn="beforeSearchFn">
<template slot="profitAndLoss"
slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0"
style="color: blue">{{ '+' + parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0"
style="color: red">{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span
v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span>
<span v-else>-</span>
</template>
</GLTable>
</div>
</div>
</GLDialog>
</template>
<script>
// import { membraneTypeList } from '@/utils/constants.js'
export default {
name: 'DetailDialog',
data() {
return {
membraneTypeList: this.$membraneTypeList,
countObj: {},
searchForm: {
id: ''
},
searchFormSearch: {},
searchSelectObj: {},
showFormData: [],
getListApi: this.$apis.stockManage.refundDetailPage,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// singleSelectUniqueKey: 'id',
tableOption: false,
tableColumns: [
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: 180,
line: 1
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'type'
// width: 250
},
{
label: '系列',
prop: 'goodsName'
},
{
label: '所属分类',
prop: 'goodsTypeName'
},
{
label: '系统库存',
prop: 'stock',
formatter: cellValue => {
return cellValue.stock || cellValue.stock == 0 ? parseFloat(cellValue.stock).toFixed(2) + (this.$membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
}
},
{
label: '退货库存',
prop: 'refundStock',
formatter: cellValue => {
return cellValue.refundStock || cellValue.refundStock == 0 ? parseFloat(cellValue.refundStock).toFixed(2) + (this.$membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
}
},
{
label: '膜卷号',
prop: 'filmRollNo'
}
]
},
baseData: {}
}
},
props: {
detailVisible: {
type: Boolean,
default: false
},
recordInfo: {
type: Object,
default: () => { }
}
},
computed: {},
mounted() { },
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm.refundCode = this.recordInfo.refundCode
this.searchFormSearch = this.$common.utils.deepClone(this.searchForm)
resolve()
})
},
handleClose() {
this.$emit('dialogClose')
}
}
}
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.detailDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
}
</style>
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="showFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>退货列表</h2>
<div>
<GLButton type="primary"
plain
size="small"
@click="handleAdd"
fn="创建退货">创建退货</GLButton>
<el-button size="small"
@click="exportExcel">导出</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="checkRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div slot="img"
slot-scope="scope"
v-if="scope.scope.voucherPic">
<img class="img-36"
:src="scope.scope.voucherPic"
@click="handleEnlargeImg(scope.scope.voucherPic)" />
</div>
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="handleDetail(scope.scope)">查看</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 预览图片 -->
<el-dialog :visible="imgVisible"
:before-close="handleCloseImg">
<img width="100%"
:src="previewImgUrl"
alt="图片" />
</el-dialog>
<!-- 查看 -->
<detailDialog :detail-visible="detailVisible"
:recordInfo="recordInfo"
v-if="detailVisible"
@dialogClose="dialogClose" />
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
// import { membraneTypeList } from '@/utils/constants.js'
import detailDialog from './detailDialog'
export default {
name: 'warehousing',
components: {
detailDialog
},
data() {
return {
// membraneTypeList: membraneTypeList,
size: 'small',
url: url,
searchForm: {
refundTime: '',
refundCode: '',
yqMerchantId: '',
merchantId: ''
},
tableSearchForm: {},
recordInfo: {},
detailVisible: false,
showFormData: [
{
label: '退货单号',
name: 'refundCode',
type: 'input',
maxlength: '20',
isClear: true
},
{
label: '退货时间',
name: 'refundTime',
type: 'datePicker',
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
},
{
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',
noDataText: '请先选择盘点仓库',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'merchantIdList'
}
],
// 表格
getListApi: this.$apis.stockManage.refundPage,
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '退货单号',
prop: 'refundCode'
},
{
label: '退货时间',
prop: 'refundTime',
formatter: cellValue => {
return dayjs(cellValue.refundTime).format('YYYY-MM-DD HH:mm:ss')
}
},
{
label: '退货人',
prop: 'createdBy'
},
{
label: '退货类型',
prop: 'refundType',
formatter: cellValue => {
return this.baseData.refundTypeList.find(item => item.confId === cellValue.refundType)?.confLabel
}
},
{
label: '退货仓库',
prop: 'yqMerchantName'
},
{
label: '退货门店',
prop: 'merchantName'
},
{
label: '备注',
prop: 'remark',
width: 200,
line: 1
},
{
label: '凭证',
prop: 'voucherPic',
addHtml: 'img'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
baseData: {
yqMerchantList: [],
merchantIdList: [],
refundTypeList: [
{
confId: 1,
confLabel: '不良退货'
},
{
confId: 2,
confLabel: '呆滞退货'
}
]
},
imgVisible: false,
previewImgUrl: ''
}
},
mounted() {
// 获取当前登录账号可见的园区店列表
this.$apis.stockManage.getyqMerchantList({ mainPartnerMerchant: true }).then(res => {
this.baseData.yqMerchantList = res
this.getOptionsList('showFormData')
})
},
methods: {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(params)
if (this.searchForm.refundTime) {
params.refundTimeStart = new Date(this.searchForm.refundTime[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.refundTimeEnd = new Date(this.searchForm.refundTime[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.refundTime
return params
},
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = this.getParams()
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.recordInfo = row
this.detailVisible = true
},
handleAdd() {
this.$router.push({ path: '/sendBack/add' })
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', this.$common.utils.deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.checkRef.data.length ? (this.$refs.checkRef.tableHeightValues = '') : this.$refs.checkRef.setTableHeightFun()
},
exportExcel() {
var params = this.getParams()
this.$apis.stockManage.refundExport(params).then(res => {
window.location.href = res
})
},
handleSearch() {
this.$refs.checkRef.refreshTable()
},
handleReset() {
this.searchForm = {
refundTime: '',
refundCode: '',
yqMerchantId: '',
merchantId: ''
}
this.showFormData[this.findFormIdx('merchantId')].optionList = []
this.handleSearch()
},
findFormIdx(name) {
return this.showFormData.findIndex(item => item.name === name)
},
handleEnlargeImg(url) {
if (url) {
this.previewImgUrl = url
this.imgVisible = !this.imgVisible
}
},
handleCloseImg() {
this.imgVisible = !this.imgVisible
},
dialogClose() {
this.detailVisible = !this.detailVisible
}
}
}
</script>
<style scoped lang="scss">
@import '@/assets/css/mixin.scss';
.purchase {
.table-header {
@include space-between_center;
margin-bottom: 10px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
}
}
</style>
<!-- 退货 -->
<template>
<GLDialog title="退货"
:visible.sync="numVisible"
class="numDailog"
@onCancel="handleClose"
@onOk="handleAddConfirm">
<div class="gl-form-page gl-form-min">
<el-form ref="inventoryNumForm"
:model="infoForm"
:rules="formRules"
label-width="154px"
size="small">
<el-form-item label="退货数量:"
prop="inventoryNum">
<el-input placeholder="请输入退货数量"
v-model="infoForm.inventoryNum"
clearable
@input="handleUpgradeNum"></el-input>
</el-form-item>
</el-form>
</div>
</GLDialog>
</template>
<script>
import { limitPrice } from '@/common/format'
import BigNumber from 'bignumber.js'
export default {
name: 'NumDialog',
data() {
return {
infoForm: {
inventoryNum: ''
},
oldVal: {
inventoryNum: ''
},
formRules: {
inventoryNum: [
{ required: true, message: '请输入退货数量', trigger: 'blur' },
{
validator: (rule, value, callback) => {
// 先转成数字
const num = Number(value)
// 检查是否为有效数字
if (isNaN(num)) {
return callback(new Error('请输入有效数字'))
}
// 检查是否为 0
if (num === 0) {
return callback(new Error('退货数量不能为 0'))
}
// 校验通过
callback()
},
trigger: 'blur' // 或 'change'/'input'
}
]
},
selectLoading: false,
// 基本数据
baseData: {
noRelatcategoryList: []
}
}
},
props: {
numVisible: {
type: Boolean,
default: false
},
recordInfo: {
type: Object,
default: () => { }
}
},
watch: {},
created() { },
components: {},
computed: {},
mounted() { },
methods: {
handleUpgradeNum(newVal) {
this.infoForm.inventoryNum = limitPrice(newVal, this.oldVal.inventoryNum, 8, 2, 0, this.recordInfo.stock)
this.oldVal.inventoryNum = this.infoForm.inventoryNum
},
handleAddConfirm() {
this.$refs.inventoryNumForm.validate(valid => {
if (valid) {
this.recordInfo.refundStock = parseFloat(this.infoForm.inventoryNum)
this.recordInfo.profitAndLoss = BigNumber(parseFloat(this.infoForm.inventoryNum))
.minus(parseFloat(this.recordInfo.stock))
.toString()
this.handleClose(this.recordInfo)
}
})
},
handleClose(info) {
this.$emit('dialogClose', info)
}
}
}
</script>
<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>
合计:当前库存
<span class="txt-blue">{{ totalInventory || '0' }}</span>
</div>
<div>
<GLButton type="primary" plain size="small" @click="handleStatementOfAccount" fn="库存对账单">库存对账单</GLButton>
<el-button size="small" @click="exportExcel">导出</el-button>
<GLButton type="primary"
plain
size="small"
@click="handleStatementOfAccount"
fn="库存对账单">库存对账单</GLButton>
<el-button size="small"
@click="exportExcel">导出</el-button>
</div>
</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="handleInventoryDetails(scope.scope)">库存明细</el-button>
<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="handleInventoryDetails(scope.scope)">库存明细</el-button>
<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" />
<stockDetailDialog :visible.sync="stockDetailDialogVisible" :recordInfo="stockInfo" v-if="stockDetailDialogVisible" />
<stock-month-dialog :stock-month-visible="stockMonthVisible"
:stockInfo="stockInfo"
v-if="stockMonthVisible"
@dialogClose="dialogClose" />
<stockDetailDialog :visible.sync="stockDetailDialogVisible"
:recordInfo="stockInfo"
v-if="stockDetailDialogVisible" />
<!-- 库存对账单 -->
<statementOfAccountDialog :visible.sync="statementOfAccountDialogVisible" v-if="statementOfAccountDialogVisible"
:yqMerchantList="baseData.yqMerchantList" @handleRelateProConfirm="handleRelateProConfirm">
<statementOfAccountDialog :visible.sync="statementOfAccountDialogVisible"
v-if="statementOfAccountDialogVisible"
:yqMerchantList="baseData.yqMerchantList"
@handleRelateProConfirm="handleRelateProConfirm">
</statementOfAccountDialog>
</div>
</template>
......@@ -121,6 +145,12 @@ export default {
line: 1
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '商品编码',
prop: 'productCode',
width: 180,
......@@ -128,22 +158,27 @@ export default {
},
{
label: '系列',
prop: 'goodsSeries'
prop: 'goodsSeries',
width: 150,
line: 1
},
{
label: '所属分类',
prop: 'goodsTypeName'
prop: 'goodsTypeName',
minWidth: 120
},
{
label: '上月结存库存',
prop: 'lastMonthRemainStock',
width: 120,
formatter: cellValue => {
return cellValue.lastMonthRemainStock || cellValue.lastMonthRemainStock == 0 ? parseFloat(cellValue.lastMonthRemainStock).toFixed(2) + (this.$membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
}
},
{
label: '上月结存金额',
width: 120,
prop: 'lastMonthRemainMoney',
formatter: cellValue => {
return cellValue.lastMonthRemainMoney || cellValue.lastMonthRemainMoney == 0 ? '¥' + cellValue.lastMonthRemainMoney.toFixed(2) : '-'
......@@ -152,6 +187,7 @@ export default {
{
label: '当前库存',
prop: 'stock',
width: 100,
formatter: cellValue => {
return cellValue.stock || cellValue.stock == 0 ? parseFloat(cellValue.stock).toFixed(2) + (this.$membraneTypeList.includes(cellValue.goodsType) == 1 ? '米' : '件') : '-'
}
......@@ -164,7 +200,7 @@ export default {
{
label: '所属商户',
prop: 'partnerMerchantName',
width: '200px'
width: 200
}
]
},
......@@ -305,4 +341,5 @@ export default {
.txt-blue {
color: #5850ff;
}
}</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>
......@@ -12,13 +16,19 @@
<span class="txt-blue">¥{{ totalObj.totalIncreaseStockMoney || '0' }}</span>
</div>
</div>
<el-button size="small" @click="exportExcel">导出</el-button>
<el-button 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>
......@@ -181,6 +191,12 @@ export default {
line: 1
},
{
label: '规格',
prop: 'specificationData',
width: 180,
line: 1
},
{
label: '系列',
prop: 'goodsSeries',
width: 150,
......@@ -258,7 +274,7 @@ export default {
storageTypeList: [
{
confId: '1',
confLabel: '采购入库'
confLabel: '商城采购入库'
},
{
confId: '2',
......@@ -270,7 +286,11 @@ export default {
},
{
confId: '4',
confLabel: '订单入库'
confLabel: '退料入库'
},
{
confId: '5',
confLabel: '自采入库'
}
],
upgradeFlagList: [
......@@ -465,4 +485,5 @@ export default {
.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!