Commit 74e90dac by 张立顺

feat 样式调整

1 parent 57831ba9
<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-content" flex="dir:top">
<!-- 顶栏 -->
<div class="d2-theme-header" :style="{
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">
<div
class="d2-theme-header"
:style="{
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-else src="../../assets/all.png" />
<!-- <img style="width: 32px; height: 32px;" src="../../assets/icon-only.png"> -->
......@@ -35,24 +48,47 @@
<d2-header-user />
</div>
</div>
<div class="d2-theme-header" style="height: 40px; font-size: 14px; border-top: 1px solid #f0f2f5" flex-box="0"
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" />
<div
class="d2-theme-header"
style="height: 40px; font-size: 14px; border-top: 1px solid #f0f2f5"
flex-box="0"
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>
</div>
<!-- 下面 主体 -->
<div class="d2-theme-container" flex-box="1" flex>
<!-- 主体 侧边栏 -->
<div flex-box="0" ref="aside" class="d2-theme-container-aside" :style="{
width: asideCollapse ? asideWidthCollapse : asideWidth,
opacity: this.searchActive ? 0.5 : 1
}">
<div
flex-box="0"
ref="aside"
class="d2-theme-container-aside"
:style="{
width: asideCollapse ? asideWidthCollapse : asideWidth,
opacity: this.searchActive ? 0.5 : 1
}"
>
<d2-menu-side />
</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">
<div v-if="searchActive" class="d2-theme-container-main-layer" flex>
......@@ -61,14 +97,21 @@
</transition>
<!-- 内容 -->
<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 -->
<div class="d2-theme-container-main-header" flex-box="0">
<!-- <d2-tabs/> -->
</div>
<!-- 页面 -->
<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">
<router-view />
</keep-alive>
......@@ -163,8 +206,8 @@ export default {
return {
...(this.themeActiveSetting.backgroundImage
? {
backgroundImage: `url('${this.$baseUrl}${this.themeActiveSetting.backgroundImage}')`
}
backgroundImage: `url('${this.$baseUrl}${this.themeActiveSetting.backgroundImage}')`
}
: {})
}
}
......@@ -173,8 +216,12 @@ export default {
...mapActions("d2admin/menu", ["asideCollapseToggle"]),
...mapActions("d2admin/user", ["load"]),
findTitle(val) {
this.headerTitle = val?.title
? val.title + (this.headerTitle ? " / " : "") + this.headerTitle
let title = val?.title
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) {
return this.findTitle(
......
......@@ -527,7 +527,12 @@ export const routerName = {
title: "审批",
authId: "908090301",
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")
},
......@@ -538,7 +543,12 @@ export const routerName = {
title: "驳回",
authId: "908090401",
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")
},
......@@ -549,7 +559,12 @@ export const routerName = {
title: "审批",
authId: "908100301",
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")
},
......@@ -560,7 +575,12 @@ export const routerName = {
title: "驳回",
authId: "908100401",
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")
}
......
......@@ -4,32 +4,40 @@
title="库存明细"
:is-visible="dialogVisible"
class="stockMonthDailog"
width="40%"
:no-cancel="true"
btn-ok-label="关闭"
width="50%"
:no-cancel="false"
btn-ok-label="确定"
btn-cancel-label="取消"
@closeDialog="handleClose"
@confirmDialog="handleClose"
>
<div>
<div class="d2-container-content">
<d2-table
ref="recordTable"
:get-list-api="getListApi"
:search-form="searchForm"
:table-params="tableParams"
>
</d2-table>
<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 {
merchantShopGoodsStockPage,
merchantShopGoodsStockPageH5
} from "@api/stockManage"
import { merchantShopGoodsStockPageH5 } from "@api/stockManage"
import { baseConfig } from "@/main"
export default {
......@@ -42,10 +50,6 @@ export default {
recordInfo: {
type: Object,
default: () => {}
},
useNewApi: {
type: Boolean,
default: false
}
},
data() {
......@@ -54,11 +58,10 @@ export default {
membraneTypeList: baseConfig.membraneTypeList,
searchForm: {
upgradeGoodsId: "",
yqMerchantId: ""
merchantName: ""
// yqMerchantId: ""
},
getListApi: this.useNewApi
? merchantShopGoodsStockPageH5
: merchantShopGoodsStockPage,
getListApi: merchantShopGoodsStockPageH5,
tableData: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
......@@ -67,8 +70,7 @@ export default {
tableColumns: [
{
label: "门店",
prop: "merchantName",
width: "200px"
prop: "merchantName"
},
{
label: "当前库存",
......@@ -125,17 +127,20 @@ export default {
// })
// },
chooseYear() {
this.getList()
},
// chooseYear() {
// this.getList()
// },
// getList() {
// var params = deepClone(this.searchForm)
// getReportByGoods(params).then(res => {
// this.tableData = res
// })
// handleSearch() {
// this.$refs.recordTable.handleSearch()
// },
handleReset() {
// this.handleSearch()
this.searchForm.merchantName = ""
// this.$refs.showSearch.handleReset(true, true)
},
handleClose() {
// this.$emit('dialogClose')
this.dialogVisible = false
......@@ -143,13 +148,20 @@ export default {
}
}
</script>
<style scoped>
<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;
......@@ -173,7 +185,8 @@ export default {
padding: 6.5px 10px;
}
.show-search {
margin-left: -65px;
.search-box {
display: flex;
margin-bottom: 15px;
}
</style>
......@@ -274,7 +274,6 @@
v-if="stockDetailDialogVisible"
:visible.sync="stockDetailDialogVisible"
:recordInfo="stockDetailInfo"
:use-new-api="true"
/>
</d2-container>
</template>
......
......@@ -197,10 +197,7 @@
<span class="span-txt-one">{{
item.status ? $$(statusForShow, [item.status], "text") : ""
}}</span>
<span
class="span-txt-two"
style="display: inline-block; width: 116px"
>
<span class="span-txt-two">
<span
:class="item.status ? examineStatusClass[item.status] : ''"
>
......@@ -302,7 +299,6 @@
:visible.sync="stockDetailDialogVisible"
v-if="stockDetailDialogVisible"
:record-info="stockDetailInfo"
:use-new-api="true"
/>
</d2-container>
</template>
......@@ -682,13 +678,12 @@ export default {
.audit-form {
margin-bottom: 30px;
max-width: 800px;
}
}
.examine-record {
position: relative;
width: 850px;
width: 100%;
min-height: 60px;
border-radius: 4px;
border: 1px solid #fafafa;
......@@ -736,21 +731,22 @@ export default {
.record-div-d {
margin-top: 10px;
display: flex;
align-items: center;
}
.span-txt-one {
margin-left: 14px;
width: 203px;
height: 21px;
margin-right: 30px;
}
.reviewer {
display: inline-block;
width: 140px;
margin-right: 30px;
}
.span-txt-two {
margin-left: 20px;
margin-right: 30px;
}
.greenSp {
......
......@@ -272,11 +272,11 @@ export default {
{
confId: 3,
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!