Commit 421276ba by 前端

功能代码提交

1 parent 32826293
...@@ -118,3 +118,21 @@ export function vdCardCount(data) { ...@@ -118,3 +118,21 @@ export function vdCardCount(data) {
data.method = `dj.smartcarlife.stock.vdCard.count` data.method = `dj.smartcarlife.stock.vdCard.count`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 入库管理列表统计
export function goodsWarehousingInfoCount(data) {
data.method = `dj.api.life.GoodsWarehousingInfo.count`
return request(data, RequestMethods.POST)
}
// 库存记录统计
export function stockMonthReportCount(data) {
data.method = `${path}MerchantGoodsStockMonthReport.count`
return request(data, RequestMethods.POST)
}
// 出库记录列表统计
export function stockReduceRecordCount(data) {
data.method = `${path}MerchantGoodsStockReduceRecord.count`
return request(data, RequestMethods.POST)
}
...@@ -674,3 +674,8 @@ export const sceneForPerson = [ ...@@ -674,3 +674,8 @@ export const sceneForPerson = [
{ confId: "0", confValue: "2.1" }, { confId: "0", confValue: "2.1" },
{ confId: "2", confValue: "2.2" } { confId: "2", confValue: "2.2" }
] ]
// 库存管理 订单类型
export const upgradeFlags = [
{ confId: "Y", confValue: "升级" },
{ confId: "N", confValue: "战败" }
]
<template> <template>
<div> <div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config" <baseDialog :is-show.sync="dialogShow"
@closeDialog="handleDetailClose(false)"> :config="dialogConfig.setting"
<div class="edit-order-dialog" v-if="dialogShow"> :dialog-config="dialogConfig.config"
<div class="address-info" v-if="paramsObj.factoryType"> @closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog"
v-if="dialogShow">
<div class="address-info"
v-if="paramsObj.factoryType">
<!-- <img src="../images/addressIcon.webp" alt="" class="icon"> --> <!-- <img src="../images/addressIcon.webp" alt="" class="icon"> -->
<span class="title">订单号 {{ paramsObj.orderCode }}</span> <span class="title">{{ paramsObj.merchantName }}</span>
</div> </div>
<div class="addressTitle" v-else> <div class="addressTitle"
<img src="../images/addressIcon.webp" alt="" class="icon"> v-else>
<img src="../images/addressIcon.webp"
alt=""
class="icon">
<span class="title">{{ paramsObj.merchantName }}</span> <span class="title">{{ paramsObj.merchantName }}</span>
</div> </div>
<div class="address-info"> <div class="address-info">
<span class="name">收货人:<span class="label">{{ detailInfo.contactName }}</span></span> <span class="name">收货人:<span class="label">{{ detailInfo.contactName }}</span></span>
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span> <span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span> <span class="address">收货地址:<span
class="label">{{ detailInfo.contactAddress }}</span></span>
</div> </div>
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" <d2-table ref="purchaseOrderDetailTable"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> :table-params="tableParams"
<div slot="nowPurNum" slot-scope="scope"> :has-page="hasPage"
@refreshTable="refreshTable"
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal">
<div slot="nowPurNum"
slot-scope="scope">
<div <div
v-if="detailInfo.tableData[scope.index].purchaseNumber == 0 || detailInfo.tableData[scope.index].purchaseNumber != detailInfo.tableData[scope.index].goodsNumber"> v-if="detailInfo.tableData[scope.index].purchaseNumber == 0 || detailInfo.tableData[scope.index].purchaseNumber != detailInfo.tableData[scope.index].goodsNumber">
<!-- 判断是否当前账户发货 --> <!-- 判断是否当前账户发货 -->
<el-input <el-input v-if="(isEmptyEdit && !detailInfo.tableData[scope.index].shipperUuid) || (detailInfo.tableData[scope.index].shipperUuid == userInfo.detail.uuid)"
v-if="(isEmptyEdit && !detailInfo.tableData[scope.index].shipperUuid) || (detailInfo.tableData[scope.index].shipperUuid == userInfo.detail.uuid)" :class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }"
:class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入" placeholder="请输入"
v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)"></el-input> v-model="nowPurNumList[scope.index]"
@input="e => handleInput(e, scope)"></el-input>
<!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> --> <!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> -->
<div v-else>已分配:{{ detailInfo.tableData[scope.index].shipper }}</div> <div v-else>已分配:{{ detailInfo.tableData[scope.index].shipper }}</div>
</div> </div>
<div v-else>{{ detailInfo.tableData[scope.index].shipperUuid ? '已分配:' + <div v-else>{{ detailInfo.tableData[scope.index].shipperUuid ? '已分配:' +
detailInfo.tableData[scope.index].shipper : '--' }}</div> detailInfo.tableData[scope.index].shipper : '--' }}</div>
</div> </div>
<div slot="cardNum" slot-scope="scope"> <div slot="cardNum"
slot-scope="scope">
<div <div
v-if="detailInfo.tableData[scope.index].entityCardFlag != 'Y' || (detailInfo.tableData[scope.index].shipperUuid && detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid)"> v-if="detailInfo.tableData[scope.index].entityCardFlag != 'Y' || (detailInfo.tableData[scope.index].shipperUuid && detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid)">
-</div> -</div>
<div <div
v-else-if="detailInfo.tableData[scope.index].purchaseNumber != detailInfo.tableData[scope.index].goodsNumber"> v-else-if="detailInfo.tableData[scope.index].purchaseNumber != detailInfo.tableData[scope.index].goodsNumber">
<div v-if="deliveryCardList[scope.index] && deliveryCardList[scope.index].length"> <div v-if="deliveryCardList[scope.index] && deliveryCardList[scope.index].length">
+{{ deliveryCardList[scope.index].length }} +{{ deliveryCardList[scope.index].length }}
<el-button type="text" @click="handleCard(scope)">重新选择</el-button> <el-button type="text"
@click="handleCard(scope)">重新选择</el-button>
</div> </div>
<el-button v-else type="text" @click="handleCard(scope)">请选择发货卡号</el-button> <el-button v-else
type="text"
@click="handleCard(scope)">请选择发货卡号</el-button>
</div> </div>
<div v-else>-</div> <div v-else>-</div>
</div> </div>
...@@ -51,17 +69,31 @@ ...@@ -51,17 +69,31 @@
</div> </div>
<div class="form-content"> <div class="form-content">
<el-form label-width="100px" :rules="dialogRules" :model="dialogData" ref="delivery-dialog-form"> <el-form label-width="100px"
<el-form-item label="承运公司:" prop="deliveryCompany"> :rules="dialogRules"
<el-input placeholder="请输入承运物流公司" maxlength="20" v-model.trim="dialogData.deliveryCompany" :model="dialogData"
class="dis-in-block" /> ref="delivery-dialog-form">
<el-form-item label="承运公司:"
prop="deliveryCompany">
<el-input placeholder="请输入承运物流公司"
maxlength="20"
v-model.trim="dialogData.deliveryCompany"
class="dis-in-block" />
</el-form-item> </el-form-item>
<el-form-item label="承运单号:" prop="deliveryNumber"> <el-form-item label="承运单号:"
<el-input maxlength="50" placeholder="请输入承运物流单号" v-model.trim="dialogData.deliveryNumber" prop="deliveryNumber">
class="dis-in-block" @input="deliveryNumberInput" /> <el-input maxlength="50"
placeholder="请输入承运物流单号"
v-model.trim="dialogData.deliveryNumber"
class="dis-in-block"
@input="deliveryNumberInput" />
</el-form-item> </el-form-item>
<el-form-item label="发货时间:" prop="deliveryDate"> <el-form-item label="发货时间:"
<el-date-picker class="dis-in-block" v-model="dialogData.deliveryDate" type="datetime" placeholder="选择日期时间"> prop="deliveryDate">
<el-date-picker class="dis-in-block"
v-model="dialogData.deliveryDate"
type="datetime"
placeholder="选择日期时间">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -69,13 +101,20 @@ ...@@ -69,13 +101,20 @@
<div class="footer"> <div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button> <el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick <el-button @click="submit"
:loading="$store.state.d2admin.loading.value">确定</el-button> type="primary"
v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div> </div>
</div> </div>
</baseDialog> </baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :card-max-num="cardMaxNum" <card-dialog v-if="cardVisible"
:selected-list="selectedCardList" @handleClose="handleCardDialog" @handleConfirm="handleCardConfirm"></card-dialog> :card-visible="cardVisible"
:order-info="orderInfo"
:card-max-num="cardMaxNum"
:selected-list="selectedCardList"
@handleClose="handleCardDialog"
@handleConfirm="handleCardConfirm"></card-dialog>
</div> </div>
</template> </template>
...@@ -363,7 +402,7 @@ export default { ...@@ -363,7 +402,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
>span { > span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
<!-- 发货单详情弹窗 --> <!-- 发货单详情弹窗 -->
<template> <template>
<div> <div>
<baseDialog title="详细信息" :is-show.sync="detailVisible" :config="dialogConfig.setting" <baseDialog title="详细信息"
:dialog-config="dialogConfig.config" width="1050px" :no-cancel="true" btn-ok-label="关闭" @closeDialog="handleClose" :is-show.sync="detailVisible"
@confirmDialog="handleClose"> :config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
width="1050px"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<div class="stockMonthDailog"> <div class="stockMonthDailog">
<div class="detail-info orderCode"> <div class="detail-info orderCode">
<div> <div>
订单号: <span>{{ recordInfo.merchantName }}</span>
<span>{{ recordInfo.orderCode }}</span>
</div> </div>
</div> </div>
<div class="address-info" v-if="detailInfo[0]"> <div class="address-info"
v-if="detailInfo[0]">
<span class="name">收货人:<span class="label">{{ detailInfo[0].contactName }}</span></span> <span class="name">收货人:<span class="label">{{ detailInfo[0].contactName }}</span></span>
<span class="phone">电话:<span class="label">{{ detailInfo[0].contactPhone }}</span></span> <span class="phone">电话:<span class="label">{{ detailInfo[0].contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo[0].contactAddress }}</span></span> <span class="address">收货地址:<span
class="label">{{ detailInfo[0].contactAddress }}</span></span>
</div> </div>
<div v-for="(itemList, index) in detailInfo" :key="index"> <div v-for="(itemList, index) in detailInfo"
:key="index">
<div class="detail-info"> <div class="detail-info">
<div> <div>
发货单号: 发货单号:
...@@ -31,15 +39,22 @@ ...@@ -31,15 +39,22 @@
<span>{{ itemList.deliveryDate }}</span> <span>{{ itemList.deliveryDate }}</span>
</div> </div>
</div> </div>
<d2-table ref="recordTable" :table-data="itemList.deliveryDetailList" :table-params="tableParams" <d2-table ref="recordTable"
:has-page="false"> :table-data="itemList.deliveryDetailList"
<span slot="deliveryCard" slot-scope="scope"> :table-params="tableParams"
<template v-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length > 1"> :has-page="false">
<span slot="deliveryCard"
slot-scope="scope">
<template
v-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length > 1">
<!-- {{ scope.scope.deliveryCardList.length || 0 }} --> <!-- {{ scope.scope.deliveryCardList.length || 0 }} -->
<span>+{{ scope.scope.deliveryCardList.length }} </span> <span>+{{ scope.scope.deliveryCardList.length }} </span>
<el-button mini type="text" @click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button> <el-button mini
type="text"
@click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button>
</template> </template>
<template v-else-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length == 1"> <template
v-else-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length == 1">
<!-- {{ scope.scope.deliveryCardList.length || 0 }} --> <!-- {{ scope.scope.deliveryCardList.length || 0 }} -->
<span>{{ scope.scope.deliveryCardList[0] }}</span> <span>{{ scope.scope.deliveryCardList[0] }}</span>
<!-- <el-button mini type="text" @click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button> --> <!-- <el-button mini type="text" @click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button> -->
...@@ -50,11 +65,20 @@ ...@@ -50,11 +65,20 @@
</div> </div>
</div> </div>
</baseDialog> </baseDialog>
<baseDialog title="查看发货卡号" :config="carDialogConfig.setting" :dialog-config="carDialogConfig.config" <baseDialog title="查看发货卡号"
:is-show.sync="handleDeliveryCardVisible" width="500px" :no-cancel="true" btn-ok-label="关闭" :config="carDialogConfig.setting"
@closeDialog="handleDeliveryCardVisible = false" @confirmDialog="handleDeliveryCardVisible = false"> :dialog-config="carDialogConfig.config"
<d2-table class="deliveryCardCon" ref="recordTable" :table-data="deliveryCardList" :table-params="innerParams" :is-show.sync="handleDeliveryCardVisible"
:has-page="false"> width="500px"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleDeliveryCardVisible = false"
@confirmDialog="handleDeliveryCardVisible = false">
<d2-table class="deliveryCardCon"
ref="recordTable"
:table-data="deliveryCardList"
:table-params="innerParams"
:has-page="false">
</d2-table> </d2-table>
</baseDialog> </baseDialog>
</div> </div>
...@@ -246,7 +270,7 @@ export default { ...@@ -246,7 +270,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
>span { > span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
<!-- 仓库/工厂发货 --> <!-- 仓库/工厂发货 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" slot="header"> <div class="header"
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData"> slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle> <el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,17 +33,26 @@ ...@@ -25,17 +33,26 @@
</el-button> </el-button>
</span> --> </span> -->
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams" <d2-table ref="purchaseAndDeliveryTable"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn"> :search-form="tableSearchForm"
<div slot="auth-button" slot-scope="scope"> :table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;" v-if="scope.scope.deliveryStatus != 1"> <span style="margin-right: 10px;"
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" /> v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9090701']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<!-- style="margin-right: 10px;" --> <!-- style="margin-right: 10px;" -->
<span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;"> <span v-show="scope.scope.deliveryStatus != 2"
<auth-button :data="scope.scope" :show-btn-ids="['9090702']" /> style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090702']" />
</span> </span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
<!-- 发货 --> <!-- 发货 -->
...@@ -50,19 +67,35 @@ ...@@ -50,19 +67,35 @@
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :record-info="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible"
<EditOrderDialog v-if="editVisible" :page="'factory'" :visible.sync="editVisible" :params-obj="dialogData" v-if="detailVisible"
@editClose="editClose"> :record-info="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:page="'factory'"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog> </EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"--> <!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm"> <baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm" <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> --> @closeDialog="handleRejectClose"> -->
<div class="reject-dialog"> <div class="reject-dialog">
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form"> <el-form :rules="rejectRules"
<el-form-item label="驳回原因:" prop="rejectCause"> :model="rejectData"
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit label-width="150px"
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" /> ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -77,7 +110,7 @@ ...@@ -77,7 +110,7 @@
</template> </template>
<script> <script>
import { deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { defaultStatusOptionsForTable, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchasingPatternOptions } from './constant' import { defaultStatusOptionsForTable, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchasingPatternOptions } from './constant'
// import { defaultDeliveryStatusOptions } from './constant' // import { defaultDeliveryStatusOptions } from './constant'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
...@@ -116,7 +149,8 @@ export default { ...@@ -116,7 +149,8 @@ export default {
// 搜索 // 搜索
searchForm: { searchForm: {
orderCode: '', orderCode: '',
status: '' status: '',
merchantName: ""
}, },
tableSearchForm: {}, tableSearchForm: {},
tableData: [], tableData: [],
...@@ -129,6 +163,13 @@ export default { ...@@ -129,6 +163,13 @@ export default {
maxlength: 20 maxlength: 20
}, },
{ {
label: '下单商户',
name: 'merchantName',
type: 'input',
isClear: true,
maxlength: 20
},
{
label: '发货状态', label: '发货状态',
name: 'deliveryStatus', name: 'deliveryStatus',
type: 'select', type: 'select',
...@@ -150,6 +191,18 @@ export default { ...@@ -150,6 +191,18 @@ export default {
prop: 'orderCode' prop: 'orderCode'
}, },
{ {
label: '下单时间',
prop: 'orderTime',
formatter: (cellValue) => {
return cellValue.orderTime ? Util.dateFormate(cellValue.orderTime, 'YYYY-MM-DD HH:mm:ss') : '--'
},
width: 150
},
{
label: '下单商户',
prop: 'merchantName'
},
{
label: '收货人', label: '收货人',
prop: 'contactName' prop: 'contactName'
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" /> :form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button @click="handleSearch"
size="small" size="small"
type="primary"> type="primary">
查询 查询
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span slot="left"
class="leftSpan">合计:出库数量<span
class="count-txt">{{ statisticsData.totalReduceStockNum }}</span>,出库金额<span
class="count-txt">¥{{ statisticsData.totalReduceStockMoney }}</span></span>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable"
...@@ -43,8 +47,8 @@ ...@@ -43,8 +47,8 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getProductTypeBySceneId } from '@api/product' import { getProductTypeBySceneId } from '@api/product'
import { getyqMerchantList, getMerchantGoodsStockReduceRecord, getServicemerchantrefList } from '@api/stockManage' import { getyqMerchantList, getMerchantGoodsStockReduceRecord, getServicemerchantrefList, stockReduceRecordCount } from '@api/stockManage'
import { membraneTypeList } from '@/common/constants.js' import { membraneTypeList, upgradeFlags } from '@/common/constants.js'
export default { export default {
name: 'OutboundList', name: 'OutboundList',
components: { components: {
...@@ -62,7 +66,8 @@ export default { ...@@ -62,7 +66,8 @@ export default {
merchantId: '', merchantId: '',
goodsType: '', goodsType: '',
businessCode: '', businessCode: '',
goodsSeries: '' goodsSeries: '',
upgradeFlag: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: { searchSelectObj: {
...@@ -151,6 +156,14 @@ export default { ...@@ -151,6 +156,14 @@ export default {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
}, {
label: '订单类型',
name: 'upgradeFlag',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'upgradeFlags'
}], }],
getListApi: getMerchantGoodsStockReduceRecord, getListApi: getMerchantGoodsStockReduceRecord,
tableParams: { tableParams: {
...@@ -201,7 +214,15 @@ export default { ...@@ -201,7 +214,15 @@ export default {
} }
}, { }, {
label: '关联业务单号', label: '关联业务单号',
prop: 'businessCode' prop: 'businessCode',
width: '120px',
}, {
label: '订单类型',
prop: 'upgradeFlag',
width: '100px',
formatter: (cellValue) => {
return this.baseData.upgradeFlags.find(item => item.confId == cellValue.upgradeFlag)?.confValue || '-'
}
}, { }, {
label: '出库仓库', label: '出库仓库',
prop: 'yqMerchantName', prop: 'yqMerchantName',
...@@ -233,9 +254,10 @@ export default { ...@@ -233,9 +254,10 @@ export default {
], ],
productTypeList: [], productTypeList: [],
yqMerchantList: [], yqMerchantList: [],
merchantIdList: [] merchantIdList: [],
} upgradeFlags: upgradeFlags,
},
statisticsData: {}
} }
}, },
computed: { computed: {
...@@ -257,6 +279,8 @@ export default { ...@@ -257,6 +279,8 @@ export default {
this.baseData.storeUsageList = res this.baseData.storeUsageList = res
this.getOptionsList() this.getOptionsList()
}) })
this.stockReduceRecordCount()
}, },
methods: { methods: {
...@@ -270,6 +294,13 @@ export default { ...@@ -270,6 +294,13 @@ export default {
// this.getOptionsList() // this.getOptionsList()
// }, // },
// 出库记录列表统计
stockReduceRecordCount() {
stockReduceRecordCount(this.searchFormSearch).then(res => {
this.statisticsData = res
})
},
// 获取仓库门店 // 获取仓库门店
getServicemerchantrefList(merchantId) { getServicemerchantrefList(merchantId) {
getServicemerchantrefList({ getServicemerchantrefList({
...@@ -313,6 +344,7 @@ export default { ...@@ -313,6 +344,7 @@ export default {
handleSearch() { handleSearch() {
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
this.stockReduceRecordCount()
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
...@@ -323,9 +355,11 @@ export default { ...@@ -323,9 +355,11 @@ export default {
merchantId: '', merchantId: '',
goodsType: '', goodsType: '',
businessCode: '', businessCode: '',
goodsSeries: '' goodsSeries: '',
upgradeFlag: ''
} }
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
this.stockReduceRecordCount()
}, },
handleExport() { handleExport() {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" /> :form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button @click="handleSearch"
size="small" size="small"
type="primary"> type="primary">
查询 查询
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span slot="left"
class="leftSpan">合计:当前库存<span class="count-txt">{{ statisticsData }}</span></span>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable"
...@@ -52,7 +54,7 @@ ...@@ -52,7 +54,7 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getProductTypeBySceneId } from '@api/product' import { getProductTypeBySceneId } from '@api/product'
import { getyqMerchantList, getMerchantGoodsStockMonthReport } from '@api/stockManage' import { getyqMerchantList, getMerchantGoodsStockMonthReport, stockMonthReportCount } from '@api/stockManage'
import stockMonthDialog from './stockMonthDialog' import stockMonthDialog from './stockMonthDialog'
import stockDetailDialog from './stockDetailDialog' import stockDetailDialog from './stockDetailDialog'
import { membraneTypeList } from '@/common/constants.js' import { membraneTypeList } from '@/common/constants.js'
...@@ -177,7 +179,8 @@ export default { ...@@ -177,7 +179,8 @@ export default {
}, },
stockDetailDialogVisible: false, stockDetailDialogVisible: false,
stockMonthVisible: false, stockMonthVisible: false,
recordInfo: null recordInfo: null,
statisticsData: {}
} }
}, },
computed: { computed: {
...@@ -198,6 +201,8 @@ export default { ...@@ -198,6 +201,8 @@ export default {
this.baseData.yqMerchantList = res this.baseData.yqMerchantList = res
this.getOptionsList() this.getOptionsList()
}) })
this.stockMonthReportCount()
}, },
methods: { methods: {
...@@ -211,6 +216,13 @@ export default { ...@@ -211,6 +216,13 @@ export default {
// this.getOptionsList() // this.getOptionsList()
// }, // },
// 库存记录统计
stockMonthReportCount() {
stockMonthReportCount(this.searchFormSearch).then(res => {
this.statisticsData = res
})
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
...@@ -236,6 +248,7 @@ export default { ...@@ -236,6 +248,7 @@ export default {
handleSearch() { handleSearch() {
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
this.stockMonthReportCount()
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
...@@ -245,6 +258,7 @@ export default { ...@@ -245,6 +258,7 @@ export default {
goodsSeries: '' goodsSeries: ''
} }
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
this.stockMonthReportCount()
}, },
handleExport() { handleExport() {
......
...@@ -2,24 +2,41 @@ ...@@ -2,24 +2,41 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" slot="header" style="padding: 10px 20px;"> <div class="header"
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" /> slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary"> <el-button @click="handleSearch"
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span slot="left"
class="leftSpan">合计:入库数量<span
class="count-txt">{{ statisticsData.totalIncreaseStockNum }}</span>,入库金额<span
class="count-txt">¥{{ statisticsData.totalIncreaseStockMoney }}</span></span>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" <d2-table ref="recordTable"
:before-search-fn="beforeSearchFn"> :get-list-api="getListApi"
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> :search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -30,8 +47,8 @@ ...@@ -30,8 +47,8 @@
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getProductTypeBySceneId } from '@api/product' import { getProductTypeBySceneId } from '@api/product'
import { getyqMerchantList, getGoodsWarehousingList, getServicemerchantrefList } from '@api/stockManage' import { getyqMerchantList, getGoodsWarehousingList, getServicemerchantrefList, goodsWarehousingInfoCount } from '@api/stockManage'
import { membraneTypeList } from '@/common/constants.js' import { membraneTypeList, upgradeFlags } from '@/common/constants.js'
export default { export default {
name: 'WarehousingList', name: 'WarehousingList',
components: { components: {
...@@ -50,7 +67,8 @@ export default { ...@@ -50,7 +67,8 @@ export default {
goodsType: '', goodsType: '',
businessCode: '', businessCode: '',
goodsSeries: '', goodsSeries: '',
deliveryNumber: '' deliveryNumber: '',
upgradeFlag: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
searchSelectObj: { searchSelectObj: {
...@@ -138,6 +156,14 @@ export default { ...@@ -138,6 +156,14 @@ export default {
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'merchantIdList' optionsName: 'merchantIdList'
}, {
label: '订单类型',
name: 'upgradeFlag',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'upgradeFlags'
}], }],
getListApi: getGoodsWarehousingList, getListApi: getGoodsWarehousingList,
tableParams: { tableParams: {
...@@ -195,6 +221,13 @@ export default { ...@@ -195,6 +221,13 @@ export default {
prop: 'deliveryNumber', prop: 'deliveryNumber',
width: 150 width: 150
}, { }, {
label: '订单类型',
prop: 'upgradeFlag',
width: '100px',
formatter: (cellValue) => {
return this.baseData.upgradeFlags.find(item => item.confId == cellValue.upgradeFlag)?.confValue || '-'
}
}, {
label: '入库仓库', label: '入库仓库',
prop: 'yqMerchantName', prop: 'yqMerchantName',
width: '200px' width: '200px'
...@@ -226,8 +259,10 @@ export default { ...@@ -226,8 +259,10 @@ export default {
], ],
productTypeList: [], productTypeList: [],
yqMerchantList: [], yqMerchantList: [],
merchantIdList: [] merchantIdList: [],
} upgradeFlags: upgradeFlags,
},
statisticsData: {}
} }
}, },
computed: { computed: {
...@@ -248,6 +283,8 @@ export default { ...@@ -248,6 +283,8 @@ export default {
this.baseData.yqMerchantList = res this.baseData.yqMerchantList = res
this.getOptionsList() this.getOptionsList()
}) })
this.goodsWarehousingInfoCount()
}, },
methods: { methods: {
...@@ -276,6 +313,13 @@ export default { ...@@ -276,6 +313,13 @@ export default {
}) })
}, },
// 入库管理列表统计
goodsWarehousingInfoCount() {
goodsWarehousingInfoCount(this.searchFormSearch).then(res => {
this.statisticsData = res
})
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
...@@ -304,6 +348,7 @@ export default { ...@@ -304,6 +348,7 @@ export default {
handleSearch() { handleSearch() {
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
this.goodsWarehousingInfoCount()
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
...@@ -315,9 +360,11 @@ export default { ...@@ -315,9 +360,11 @@ export default {
goodsType: '', goodsType: '',
businessCode: '', businessCode: '',
goodsSeries: '', goodsSeries: '',
deliveryNumber: '' deliveryNumber: '',
upgradeFlag: ''
} }
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
this.goodsWarehousingInfoCount()
}, },
handleExport() { handleExport() {
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}, { }, {
confId: 2, confId: 2,
confLabel: '次新车转化', confLabel: '次新车转化',
disabled: true // disabled: true
}, { }, {
confId: 3, confId: 3,
confLabel: '售后众筹' confLabel: '售后众筹'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!