Commit 0bced492 by zhangxw

Merge branch 'SAAS+V5.6.2' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.6.2
2 parents 537c9441 74e90dac
...@@ -155,6 +155,12 @@ export function merchantShopGoodsStockPage(data) { ...@@ -155,6 +155,12 @@ export function merchantShopGoodsStockPage(data) {
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 获取门店库存列表 (H5)
export function merchantShopGoodsStockPageH5(data) {
data.method = "dj.smartcarlife.api.stock.allocate.h5.merchantShopGoodsStock.page"
return request(data, RequestMethods.POST)
}
// 分页查询库存管理-权益卡 // 分页查询库存管理-权益卡
export function vdCardPage(data) { export function vdCardPage(data) {
data.method = `dj.smartcarlife.stock.vdCard.page` data.method = `dj.smartcarlife.stock.vdCard.page`
......
<template> <template>
<div class="d2-layout-header-aside-group" :style="styleLayoutMainGroup" :class="{ grayMode: grayActive }"> <div
class="d2-layout-header-aside-group"
:style="styleLayoutMainGroup"
:class="{ grayMode: grayActive }"
>
<!-- 半透明遮罩 --> <!-- 半透明遮罩 -->
<div class="d2-layout-header-aside-mask" /> <div class="d2-layout-header-aside-mask" />
<!-- 主体内容 --> <!-- 主体内容 -->
<div class="d2-layout-header-aside-content" flex="dir:top"> <div class="d2-layout-header-aside-content" flex="dir:top">
<!-- 顶栏 --> <!-- 顶栏 -->
<div class="d2-theme-header" :style="{ <div
opacity: this.searchActive ? 0.5 : 1 class="d2-theme-header"
}" flex-box="0" flex> :style="{
<div class="logo-group d2-theme-header-logo" :class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0"> opacity: this.searchActive ? 0.5 : 1
}"
flex-box="0"
flex
>
<div
class="logo-group d2-theme-header-logo"
:class="asideCollapse ? 'logo-only' : 'logo-all'"
flex-box="0"
>
<img v-if="asideCollapse" src="../../assets/icon-only.png" /> <img v-if="asideCollapse" src="../../assets/icon-only.png" />
<img v-else src="../../assets/all.png" /> <img v-else src="../../assets/all.png" />
<!-- <img style="width: 32px; height: 32px;" src="../../assets/icon-only.png"> --> <!-- <img style="width: 32px; height: 32px;" src="../../assets/icon-only.png"> -->
...@@ -35,24 +48,47 @@ ...@@ -35,24 +48,47 @@
<d2-header-user /> <d2-header-user />
</div> </div>
</div> </div>
<div class="d2-theme-header" style="height: 40px; font-size: 14px; border-top: 1px solid #f0f2f5" flex-box="0" <div
flex> class="d2-theme-header"
<div class="logo-group d2-theme-header-logo" style="height: 1px; margin-top: -1px" style="height: 40px; font-size: 14px; border-top: 1px solid #f0f2f5"
:class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0" /> flex-box="0"
<hamburger :on-click="handleToggleAside" :is-active="asideCollapse" flex-box="0" class="toggle-aside-btn" /> flex
>
<div
class="logo-group d2-theme-header-logo"
style="height: 1px; margin-top: -1px"
:class="asideCollapse ? 'logo-only' : 'logo-all'"
flex-box="0"
/>
<hamburger
:on-click="handleToggleAside"
:is-active="asideCollapse"
flex-box="0"
class="toggle-aside-btn"
/>
<span class="header-title">{{ headerTitle }}</span> <span class="header-title">{{ headerTitle }}</span>
</div> </div>
<!-- 下面 主体 --> <!-- 下面 主体 -->
<div class="d2-theme-container" flex-box="1" flex> <div class="d2-theme-container" flex-box="1" flex>
<!-- 主体 侧边栏 --> <!-- 主体 侧边栏 -->
<div flex-box="0" ref="aside" class="d2-theme-container-aside" :style="{ <div
width: asideCollapse ? asideWidthCollapse : asideWidth, flex-box="0"
opacity: this.searchActive ? 0.5 : 1 ref="aside"
}"> class="d2-theme-container-aside"
:style="{
width: asideCollapse ? asideWidthCollapse : asideWidth,
opacity: this.searchActive ? 0.5 : 1
}"
>
<d2-menu-side /> <d2-menu-side />
</div> </div>
<!-- 主体 --> <!-- 主体 -->
<div class="d2-theme-container-main" :class="this.searchActive ? 'is-search' : ''" flex-box="1" flex> <div
class="d2-theme-container-main"
:class="this.searchActive ? 'is-search' : ''"
flex-box="1"
flex
>
<!-- 搜索 --> <!-- 搜索 -->
<transition name="fade-scale"> <transition name="fade-scale">
<div v-if="searchActive" class="d2-theme-container-main-layer" flex> <div v-if="searchActive" class="d2-theme-container-main-layer" flex>
...@@ -61,14 +97,21 @@ ...@@ -61,14 +97,21 @@
</transition> </transition>
<!-- 内容 --> <!-- 内容 -->
<transition name="fade-scale"> <transition name="fade-scale">
<div v-if="!searchActive" class="d2-theme-container-main-layer" flex="dir:top"> <div
v-if="!searchActive"
class="d2-theme-container-main-layer"
flex="dir:top"
>
<!-- tab --> <!-- tab -->
<div class="d2-theme-container-main-header" flex-box="0"> <div class="d2-theme-container-main-header" flex-box="0">
<!-- <d2-tabs/> --> <!-- <d2-tabs/> -->
</div> </div>
<!-- 页面 --> <!-- 页面 -->
<div class="d2-theme-container-main-body" flex-box="1"> <div class="d2-theme-container-main-body" flex-box="1">
<transition :name="transitionActive ? 'el-fade-in' : ''" mode="out-in"> <transition
:name="transitionActive ? 'el-fade-in' : ''"
mode="out-in"
>
<keep-alive :include="keepAlive"> <keep-alive :include="keepAlive">
<router-view /> <router-view />
</keep-alive> </keep-alive>
...@@ -163,8 +206,8 @@ export default { ...@@ -163,8 +206,8 @@ export default {
return { return {
...(this.themeActiveSetting.backgroundImage ...(this.themeActiveSetting.backgroundImage
? { ? {
backgroundImage: `url('${this.$baseUrl}${this.themeActiveSetting.backgroundImage}')` backgroundImage: `url('${this.$baseUrl}${this.themeActiveSetting.backgroundImage}')`
} }
: {}) : {})
} }
} }
...@@ -173,8 +216,12 @@ export default { ...@@ -173,8 +216,12 @@ export default {
...mapActions("d2admin/menu", ["asideCollapseToggle"]), ...mapActions("d2admin/menu", ["asideCollapseToggle"]),
...mapActions("d2admin/user", ["load"]), ...mapActions("d2admin/user", ["load"]),
findTitle(val) { findTitle(val) {
this.headerTitle = val?.title let title = val?.title
? val.title + (this.headerTitle ? " / " : "") + this.headerTitle if (val?.dynamicTitle && typeof val.dynamicTitle === "function") {
title = val.dynamicTitle(this.$route) || title
}
this.headerTitle = title
? title + (this.headerTitle ? " / " : "") + this.headerTitle
: "" : ""
if (val?.parentId && +val?.parentId !== 1) { if (val?.parentId && +val?.parentId !== 1) {
return this.findTitle( return this.findTitle(
......
...@@ -527,7 +527,12 @@ export const routerName = { ...@@ -527,7 +527,12 @@ export const routerName = {
title: "审批", title: "审批",
authId: "908090301", authId: "908090301",
parentId: "90809", parentId: "90809",
cache: false cache: false,
dynamicTitle: (route) => {
if (route.query.reviewType === "operator") return "运营审核"
if (route.query.reviewType === "business") return "商务审核"
return "审批"
}
}, },
component: _import("stockManage/transferOperationsReview/handleReview") component: _import("stockManage/transferOperationsReview/handleReview")
}, },
...@@ -538,7 +543,12 @@ export const routerName = { ...@@ -538,7 +543,12 @@ export const routerName = {
title: "驳回", title: "驳回",
authId: "908090401", authId: "908090401",
parentId: "90809", parentId: "90809",
cache: false cache: false,
dynamicTitle: (route) => {
if (route.query.reviewType === "operator") return "运营驳回"
if (route.query.reviewType === "business") return "商务驳回"
return "驳回"
}
}, },
component: _import("stockManage/transferOperationsReview/handleReject") component: _import("stockManage/transferOperationsReview/handleReject")
}, },
...@@ -549,7 +559,12 @@ export const routerName = { ...@@ -549,7 +559,12 @@ export const routerName = {
title: "审批", title: "审批",
authId: "908100301", authId: "908100301",
parentId: "90810", parentId: "90810",
cache: false cache: false,
dynamicTitle: (route) => {
if (route.query.reviewType === "operator") return "运营审核"
if (route.query.reviewType === "business") return "商务审核"
return "审批"
}
}, },
component: _import("stockManage/transferOperationsReview/handleReview") component: _import("stockManage/transferOperationsReview/handleReview")
}, },
...@@ -560,7 +575,12 @@ export const routerName = { ...@@ -560,7 +575,12 @@ export const routerName = {
title: "驳回", title: "驳回",
authId: "908100401", authId: "908100401",
parentId: "90810", parentId: "90810",
cache: false cache: false,
dynamicTitle: (route) => {
if (route.query.reviewType === "operator") return "运营驳回"
if (route.query.reviewType === "business") return "商务驳回"
return "驳回"
}
}, },
component: _import("stockManage/transferOperationsReview/handleReject") component: _import("stockManage/transferOperationsReview/handleReject")
} }
......
<!-- 库存明细弹窗 -->
<template>
<d2-dialog
title="库存明细"
:is-visible="dialogVisible"
class="stockMonthDailog"
width="50%"
:no-cancel="false"
btn-ok-label="确定"
btn-cancel-label="取消"
@closeDialog="handleClose"
@confirmDialog="handleClose"
>
<div class="d2-container-content">
<div class="search-box">
<el-input
v-model="searchForm.merchantName"
size="small"
placeholder="请输入商户名称"
prefix-icon="el-icon-search"
style="width: 200px; margin-right: 10px"
></el-input>
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
</div>
<d2-table
ref="recordTable"
:get-list-api="getListApi"
:search-form="searchForm"
:table-params="tableParams"
>
</d2-table>
</div>
</d2-dialog>
</template>
<script>
import { mapActions, mapState } from "vuex"
import { merchantShopGoodsStockPageH5 } from "@api/stockManage"
import { baseConfig } from "@/main"
export default {
name: "StockDetailDialog",
props: {
visible: {
type: Boolean,
default: false
},
recordInfo: {
type: Object,
default: () => {}
}
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: baseConfig.membraneTypeList,
searchForm: {
upgradeGoodsId: "",
merchantName: ""
// yqMerchantId: ""
},
getListApi: merchantShopGoodsStockPageH5,
tableData: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: "list",
// tableOption: false,
tableColumns: [
{
label: "门店",
prop: "merchantName"
},
{
label: "当前库存",
prop: "stock",
// width: ''
formatter: (cellValue) => {
return cellValue.stock || cellValue.stock == 0
? parseFloat(cellValue.stock).toFixed(2) +
(this.membraneTypeList.includes(cellValue.goodsType)
? "米"
: "件")
: "-"
}
},
{
label: "膜卷号",
prop: "filmRollNo",
formatter: (cellValue) => {
return cellValue?.filmRollNo || "-"
}
}
]
}
}
},
computed: {
dialogVisible: {
get() {
return this.visible
},
set(val) {
this.$emit("update:visible", val)
}
}
},
mounted() {
if (this.recordInfo) {
// this.searchForm.yqMerchantId = this.recordInfo.yqMerchantId
this.searchForm.upgradeGoodsId = this.recordInfo.upgradeGoodsId
}
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
// beforeSearchFn() {
// return new Promise(resolve => {
// this.searchFormSearch = deepClone(this.searchForm)
// resolve()
// })
// },
// chooseYear() {
// this.getList()
// },
// handleSearch() {
// this.$refs.recordTable.handleSearch()
// },
handleReset() {
// this.handleSearch()
this.searchForm.merchantName = ""
// this.$refs.showSearch.handleReset(true, true)
},
handleClose() {
// this.$emit('dialogClose')
this.dialogVisible = false
}
}
}
</script>
<style scoped lang="scss">
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.stockMonthDailog ::v-deep.el-dialog__body {
padding: 0px 20px;
.d2-container-content {
padding: 0px 0px !important;
}
}
.stockMonthDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
}
.stockMonthDailog .btn-tips img {
width: 18px;
height: 15px;
margin-right: 9px;
vertical-align: bottom;
}
.stockMonthDailog .btn-tips {
display: inline-block;
font-size: 12px;
height: 14px;
line-height: 14px;
background-color: #fff2e5;
color: #999999;
margin-right: 24px;
padding: 6.5px 10px;
}
.search-box {
display: flex;
margin-bottom: 15px;
}
</style>
...@@ -5,19 +5,19 @@ ...@@ -5,19 +5,19 @@
<div class="info-content"> <div class="info-content">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8" <el-col :span="8"
>调出门店:{{ detailInfo.callOutMerchantName || "-" }}</el-col >调出仓库:{{ detailInfo.callOutYqMerchantName || "-" }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>调出仓库:{{ detailInfo.callOutYqMerchantName || "-" }}</el-col >调出门店:{{ detailInfo.callOutMerchantName || "-" }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>调入门店:{{ detailInfo.callInMerchantName || "-" }}</el-col >调入仓库:{{ detailInfo.callInYqMerchantName || "-" }}</el-col
> >
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: 15px"> <el-row :gutter="20" style="margin-top: 15px">
<el-col :span="8" <el-col :span="8"
>调入仓库:{{ detailInfo.callInYqMerchantName || "-" }}</el-col >调入门店:{{ detailInfo.callInMerchantName || "-" }}</el-col
> >
<el-col :span="16">备注:{{ detailInfo.remark || "-" }}</el-col> <el-col :span="16">备注:{{ detailInfo.remark || "-" }}</el-col>
</el-row> </el-row>
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<stockDetailDialog <stockDetailDialog
v-if="stockDetailDialogVisible" v-if="stockDetailDialogVisible"
:visible.sync="stockDetailDialogVisible" :visible.sync="stockDetailDialogVisible"
:stockDetailInfo="stockDetailInfo" :recordInfo="stockDetailInfo"
/> />
</d2-container> </d2-container>
</template> </template>
...@@ -288,7 +288,7 @@ import { ...@@ -288,7 +288,7 @@ import {
} from "@api/stockManage" } from "@api/stockManage"
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import { deepClone, Util } from "@/common/util" import { deepClone, Util } from "@/common/util"
import stockDetailDialog from "@/views/stockManage/stock/stockDetailDialog.vue" import stockDetailDialog from "@/views/stockManage/components/stockDetailDialog.vue"
export default { export default {
name: "TransferReviewReject", name: "TransferReviewReject",
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
<template v-if="isOperatorReview"> <template v-if="isOperatorReview">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8" <el-col :span="8"
>调出门店:{{ detailInfo.callOutMerchantName || "-" }}</el-col >调出仓库:{{ detailInfo.callOutYqMerchantName || "-" }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>调出仓库:{{ detailInfo.callOutYqMerchantName || "-" }}</el-col >调出门店:{{ detailInfo.callOutMerchantName || "-" }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>调入门店:{{ detailInfo.callInMerchantName || "-" }}</el-col >调入仓库:{{ detailInfo.callInYqMerchantName || "-" }}</el-col
> >
</el-row> </el-row>
</template> </template>
...@@ -56,14 +56,14 @@ ...@@ -56,14 +56,14 @@
</el-col> </el-col>
<el-col :span="8" <el-col :span="8"
>调入门店:{{ detailInfo.callInMerchantName || "-" }}</el-col >调入仓库:{{ detailInfo.callInYqMerchantName || "-" }}</el-col
> >
</el-row> </el-row>
</template> </template>
<el-row :gutter="20" style="margin-top: 15px"> <el-row :gutter="20" style="margin-top: 15px">
<el-col :span="8" <el-col :span="8"
>调入仓库:{{ detailInfo.callInYqMerchantName || "-" }}</el-col >调入门店:{{ detailInfo.callInMerchantName || "-" }}</el-col
> >
<el-col :span="16">备注:{{ detailInfo.remark || "-" }}</el-col> <el-col :span="16">备注:{{ detailInfo.remark || "-" }}</el-col>
</el-row> </el-row>
...@@ -197,10 +197,7 @@ ...@@ -197,10 +197,7 @@
<span class="span-txt-one">{{ <span class="span-txt-one">{{
item.status ? $$(statusForShow, [item.status], "text") : "" item.status ? $$(statusForShow, [item.status], "text") : ""
}}</span> }}</span>
<span <span class="span-txt-two">
class="span-txt-two"
style="display: inline-block; width: 116px"
>
<span <span
:class="item.status ? examineStatusClass[item.status] : ''" :class="item.status ? examineStatusClass[item.status] : ''"
> >
...@@ -317,7 +314,7 @@ import { ...@@ -317,7 +314,7 @@ import {
} from "@api/stockManage" } from "@api/stockManage"
import { baseConfig } from "@/main" import { baseConfig } from "@/main"
import { deepClone, Util } from "@/common/util" import { deepClone, Util } from "@/common/util"
import stockDetailDialog from "@/views/stockManage/stock/stockDetailDialog.vue" import stockDetailDialog from "@/views/stockManage/components/stockDetailDialog.vue"
export default { export default {
name: "TransferReviewHandle", name: "TransferReviewHandle",
...@@ -565,8 +562,8 @@ export default { ...@@ -565,8 +562,8 @@ export default {
}, },
handleInventoryDetail(row) { handleInventoryDetail(row) {
this.stockDetailInfo = { this.stockDetailInfo = {
upgradeGoodsId: row?.goodsId || row?.id, upgradeGoodsId: row?.goodsId || row?.id
yqMerchantId: this.detailInfo.callOutYqMerchantId // yqMerchantId: this.detailInfo.callOutYqMerchantId
} }
this.stockDetailDialogVisible = true this.stockDetailDialogVisible = true
}, },
...@@ -600,12 +597,13 @@ export default { ...@@ -600,12 +597,13 @@ export default {
} }
params = { params = {
allocateCode: this.detailInfo.allocateCode, allocateCode: this.detailInfo.allocateCode,
callOutYqMerchantId: this.detailInfo.callOutYqMerchantId, callOutYqMerchantId: String(this.detailInfo.callOutYqMerchantId),
callOutYqMerchantName: this.detailInfo.callOutYqMerchantName, callOutYqMerchantName: this.detailInfo.callOutYqMerchantName,
callOutMerchantId: this.detailInfo.callOutMerchantId, callOutMerchantId: String(this.detailInfo.callOutMerchantId),
callOutMerchantName: this.detailInfo.callOutMerchantName, callOutMerchantName: this.detailInfo.callOutMerchantName,
remark: this.auditRemark, remark: this.auditRemark,
id: this.detailInfo.id id: this.detailInfo.id,
updatedBy: this.userInfo.detail ? this.userInfo.detail.userName : ""
} }
} }
...@@ -680,13 +678,12 @@ export default { ...@@ -680,13 +678,12 @@ export default {
.audit-form { .audit-form {
margin-bottom: 30px; margin-bottom: 30px;
max-width: 800px;
} }
} }
.examine-record { .examine-record {
position: relative; position: relative;
width: 850px; width: 100%;
min-height: 60px; min-height: 60px;
border-radius: 4px; border-radius: 4px;
border: 1px solid #fafafa; border: 1px solid #fafafa;
...@@ -734,21 +731,22 @@ export default { ...@@ -734,21 +731,22 @@ export default {
.record-div-d { .record-div-d {
margin-top: 10px; margin-top: 10px;
display: flex;
align-items: center;
} }
.span-txt-one { .span-txt-one {
margin-left: 14px; margin-left: 14px;
width: 203px; margin-right: 30px;
height: 21px;
} }
.reviewer { .reviewer {
display: inline-block; display: inline-block;
width: 140px; margin-right: 30px;
} }
.span-txt-two { .span-txt-two {
margin-left: 20px; margin-right: 30px;
} }
.greenSp { .greenSp {
......
...@@ -272,11 +272,11 @@ export default { ...@@ -272,11 +272,11 @@ export default {
{ {
confId: 3, confId: 3,
confLabel: "部分发货" confLabel: "部分发货"
},
{
confId: 4,
confLabel: "结束发货"
} }
// {
// confId: 4,
// confLabel: "结束发货"
// }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!