Commit 403aa71d by 张立顺

Merge branch 'dev_v4.20.0' into 'develop'

Dev v4.20.0

See merge request !170
2 parents 8eb6e8a6 6d65dd68
Showing 63 changed files with 1902 additions and 636 deletions
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
"md5": "^2.3.0", "md5": "^2.3.0",
"postcss-preset-env": "^7.7.2", "postcss-preset-env": "^7.7.2",
"postcss-px-to-viewport": "^1.1.1", "postcss-px-to-viewport": "^1.1.1",
"sass": "^1.18.0", "sass": "^1.62.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.3.1",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"vue-template-compiler": "^2.5.21", "vue-template-compiler": "^2.5.21",
"webpack": "^5.74.0" "webpack": "^5.74.0"
......
import request from "./request"
const path = 'dj.api.smartcarlife.'
// 获取上架管理 列表数据
export function getGroundingManageList(data) {
data.method = `${path}merchantGoodsInfo.page`
return request(data)
}
// 获取上架商品详情
export function getMerchantGoodsInfo(data) {
data.method = `${path}merchantGoodsInfo.getById`
return request(data)
}
// 删除
export function delGroundingById(data) {
data.method = `${path}merchantGoodsInfo.deleteById`
return request(data)
}
// 批量审核
export function batchReviewAPI(data) {
data.method = `${path}merchantGoodsInfo.updateBatchWaitAudit`
return request(data)
}
// 上下架
export function updateGoodsStatus(data) {
data.method = `${path}merchantGoodsInfo.updateStatus`
return request(data)
}
// 添加编辑上架信息
export function addOrUpdateAPI(data) {
data.method = `${path}merchantGoodsInfo.insertOrUpdate`
return request(data)
}
// 获取门店开通的场景
export function getSceneTypeListByMerchantId(data) {
data.method = `${path}scenemerchantref.listScene`
return request(data)
}
// 获取类目商品两级选择框数据
export function getAllGroupByCategory(data) {
data.method = `${path}productManager.getAllGroupByCategory`
return request(data)
}
// 获取所有上架商品
export function getAllGoodsList(data) {
data.method = `${path}productManager.search`
return request(data, 'post')
}
\ No newline at end of file \ No newline at end of file
...@@ -281,6 +281,16 @@ export function updateCardCodeFlag(data) { ...@@ -281,6 +281,16 @@ export function updateCardCodeFlag(data) {
data.method = `${path2}serviceMerchant.updateCardCodeFlag` data.method = `${path2}serviceMerchant.updateCardCodeFlag`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 修改4s店确认施工是否需要签名
export function updateSignatureConfiguration(data) {
data.method = `${path}scenemerchantref.updateSignatureConfiguration`
return request(data, RequestMethods.POST)
}
// 查询4s店确认施工是否需要签名
export function getSignatureConfiguration(data) {
data.method = `${path}scenemerchantref.getMerchantConfiguration`
return request(data, RequestMethods.POST)
}
// 删除商户关联关系 // 删除商户关联关系
export function deleteShopRef(data) { export function deleteShopRef(data) {
......
import request from "./request"
const path = 'dj.api.smartcarlife.'
// 获取产品管理 列表数据
export function getProductManageList(data) {
data.method = `${path}productManager.page`
return request(data)
}
// 新增产品
export function addProductManage(data) {
data.method = `${path}productManager.add`
return request(data, 'post')
}
// 编辑产品
export function UpdateProductManage(data) {
data.method = `${path}productManager.update`
return request(data, 'post')
}
\ No newline at end of file \ No newline at end of file
...@@ -450,17 +450,17 @@ export const warrantyProList = [1, 4, 6, 12, 14] ...@@ -450,17 +450,17 @@ export const warrantyProList = [1, 4, 6, 12, 14]
// 所属场景 // 所属场景
export const sceneCodeList = [ export const sceneCodeList = [
{ confId: 1, confValue: "1.1精品升级" }, { confId: 1, confValue: "精品升级" },
{ confId: 2, confValue: "1.2次新车转化" }, { confId: 2, confValue: "次新车转化" },
{ confId: 3, confValue: "1.3售后众筹" }, { confId: 3, confValue: "售后众筹" },
{ confId: 0, confValue: "2.0会员权益/升级" } { confId: 0, confValue: "会员权益/升级" }
] ]
// 所属场景 // 所属场景
export const sceneList = { export const sceneList = {
1: "1.1精品升级", 1: "精品升级",
2: "1.2次新车转化", 2: "次新车转化",
3: "1.3售后众筹", 3: "售后众筹",
0: "2.0会员权益/升级" 0: "会员权益/升级"
} }
// 导流方下拉选项对应 // 导流方下拉选项对应
...@@ -482,10 +482,10 @@ export const attrToVal = [ ...@@ -482,10 +482,10 @@ export const attrToVal = [
] ]
export const sceneType = { export const sceneType = {
1: "1.1精品升级", 1: "精品升级",
2: "1.2次新车转化", 2: "次新车转化",
3: "1.3售后众筹", 3: "售后众筹",
0: "2.0会员权益/升级" 0: "会员权益/升级"
} }
export const proportionType = { export const proportionType = {
...@@ -572,50 +572,50 @@ export const membraneTypeList = [1, 4, 6, 12, 14] ...@@ -572,50 +572,50 @@ export const membraneTypeList = [1, 4, 6, 12, 14]
export const businessType = [ export const businessType = [
{ {
optionId: 1, optionId: 1,
optionLabel: '1.2' optionLabel: "1.2"
}, },
{ {
optionId: 2, optionId: 2,
optionLabel: '1.3' optionLabel: "1.3"
}, },
{ {
optionId: 3, optionId: 3,
optionLabel: '2.0' optionLabel: "2.0"
} }
] ]
export const orderManageStatusList = [ export const orderManageStatusList = [
{ confId: '1', confName: '待付款' }, { confId: "1", confName: "待付款" },
{ confId: '2', confName: '已支付' }, { confId: "2", confName: "已支付" },
{ confId: '3', confName: '已失效' }, { confId: "3", confName: "已失效" },
// { confId: '21', confName: '待收货(待核销)' }, // { confId: '21', confName: '待收货(待核销)' },
{ confId: '21', confName: '待核销' }, { confId: "21", confName: "待核销" },
{ confId: '22', confName: '已核销' }, { confId: "22", confName: "已核销" },
// { confId: '22', confName: '已收货(已核销)' }, // { confId: '22', confName: '已收货(已核销)' },
{ confId: '6', confName: '待发货' }, { confId: "6", confName: "待发货" },
// { confId: '7', confName: '待核销' }, // { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' }, // { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' }, { confId: "9", confName: "售后中" },
{ confId: '10', confName: '售后完成' }, { confId: "10", confName: "售后完成" },
{ confId: '11', confName: '待审批' } { confId: "11", confName: "待审批" }
] ]
export const orderSourceList = [ export const orderSourceList = [
{ confId: '1', confName: '商城订单' }, { confId: "1", confName: "商城订单" },
{ confId: '2', confName: '直播订单' }, { confId: "2", confName: "直播订单" },
{ confId: '3', confName: '活动订单' }, { confId: "3", confName: "活动订单" },
{ confId: '4', confName: '众筹订单' } { confId: "4", confName: "众筹订单" }
] ]
export const deliveryTypeList = [ export const deliveryTypeList = [
{ confId: '1', confName: '到店核销' }, { confId: "1", confName: "到店核销" },
{ confId: '2', confName: '快递到家' } { confId: "2", confName: "快递到家" }
] ]
export const afterSaleStatusList = [ export const afterSaleStatusList = [
{ confId: '1', confName: '待审核' }, { confId: "1", confName: "待审核" },
{ confId: '2', confName: '审核成功' }, { confId: "2", confName: "审核成功" },
{ confId: '3', confName: '审核失败' }, { confId: "3", confName: "审核失败" },
{ confId: '4', confName: '待确认' }, { confId: "4", confName: "待确认" },
{ confId: '5', confName: '退款中' }, { confId: "5", confName: "退款中" },
{ confId: '6', confName: '已退款' }, { confId: "6", confName: "已退款" },
{ confId: '7', confName: '退款失败' } { confId: "7", confName: "退款失败" }
] ]
...@@ -262,6 +262,7 @@ export const Util = { ...@@ -262,6 +262,7 @@ export const Util = {
// return // return
const Temp = document.createElement("a") const Temp = document.createElement("a")
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id // Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
url = url + "?timestamp=" + new Date().getTime()
Temp.href = url Temp.href = url
// console.log(url) // console.log(url)
// console.log(Temp.href) // console.log(Temp.href)
......
...@@ -170,6 +170,10 @@ export default { ...@@ -170,6 +170,10 @@ export default {
if (targetItem.name == 'sceneType') { if (targetItem.name == 'sceneType') {
this.$emit('handleChangeSelect', value) this.$emit('handleChangeSelect', value)
} }
// 选择分类与所属系列联动
if (targetItem.name == 'goodsType') {
this.$emit('handleChangeSelect', value)
}
}, },
handleInputDown(e, item) { handleInputDown(e, item) {
if (e.keyCode === 13 && item.hasOwnProperty('keyFn')) { if (e.keyCode === 13 && item.hasOwnProperty('keyFn')) {
......
...@@ -317,21 +317,22 @@ export default { ...@@ -317,21 +317,22 @@ export default {
// item[this.tableParams.mutiSelectUniqueKey] // item[this.tableParams.mutiSelectUniqueKey]
// })) // }))
// //
if (this.filterListData) {
res[this.tableParams.listName] && res[this.tableParams.listName].forEach((val, index) => { res[this.tableParams.listName] && res[this.tableParams.listName].forEach((val, index) => {
if (!val.goodsInfo) val.goodsInfo = {}
const shopPriceArr = [] const shopPriceArr = []
let stockTotal = 0
val.ownSerialNum = index val.ownSerialNum = index
if (this.filterListData) {
val.upgradeGoodsList && val.upgradeGoodsList.forEach(v => { val.upgradeGoodsList && val.upgradeGoodsList.forEach(v => {
v.goodsInfo = {}
shopPriceArr.push(v.upgradePrice) shopPriceArr.push(v.upgradePrice)
v.listShowShopPrice = v.upgradePrice v.listShowShopPrice = v.upgradePrice
v.listShowStock = v.stock v.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 ? (v.specificationData && v.specificationData?.replace(/;~;/g, ' ')) : '-'
v.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 ? v.specificationData.replace(/;~;/g, ' ') : '-'
v.goodsInfo.goodsName = v.upgradeGoodsName v.goodsInfo.goodsName = v.upgradeGoodsName
v.goodsInfo.productName = val.goodsInfo.goodsName v.goodsInfo.goodsTypeName = val.goodsInfo?.goodsTypeName
stockTotal += v.stock v.goodsInfo.type = v.type || '-'
v.goodsInfo.thumbUrl = val.goodsInfo.thumbUrl
v.goodsSpecificationNameList = val.goodsSpecificationNameList v.goodsSpecificationNameList = val.goodsSpecificationNameList
v.upgradeGoodsMerchantRefList = val.upgradeGoodsMerchantRefList v.createdDate = val.createdDate
v.updatedDate = val.updatedDate v.updatedDate = val.updatedDate
}) })
const minPrice = shopPriceArr.length ? Math.min(...shopPriceArr) : 0 const minPrice = shopPriceArr.length ? Math.min(...shopPriceArr) : 0
...@@ -339,9 +340,9 @@ export default { ...@@ -339,9 +340,9 @@ export default {
// 父商品规格数量 // 父商品规格数量
val.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 && val.upgradeGoodsList?.length > 0 ? 'X' + val.upgradeGoodsList.length : '-' val.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 && val.upgradeGoodsList?.length > 0 ? 'X' + val.upgradeGoodsList.length : '-'
val.listShowShopPrice = minPrice == maxPrice ? maxPrice : minPrice + '~' + maxPrice val.listShowShopPrice = minPrice == maxPrice ? maxPrice : minPrice + '~' + maxPrice
val.listShowStock = stockTotal val.goodsInfo.type = '-'
})
} }
})
this.data = res[this.tableParams.listName] this.data = res[this.tableParams.listName]
if (this.tableParams.needUnique) { if (this.tableParams.needUnique) {
let temp = 1 let temp = 1
......
<template> <template>
<div <div class="d2-layout-header-aside-group" :style="styleLayoutMainGroup" :class="{ grayMode: grayActive }">
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 <div class="d2-layout-header-aside-content" flex="dir:top">
class="d2-layout-header-aside-content"
flex="dir:top">
<!-- 顶栏 --> <!-- 顶栏 -->
<div <div class="d2-theme-header" :style="{
class="d2-theme-header"
:style="{
opacity: this.searchActive ? 0.5 : 1 opacity: this.searchActive ? 0.5 : 1
}" }" flex-box="0" flex>
flex-box="0" <div class="logo-group d2-theme-header-logo" :class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0">
flex> <img v-if="asideCollapse" src="../../assets/icon-only.png">
<div <img v-else src="../../assets/all.png">
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"> --> <!-- <img style="width: 32px; height: 32px;" src="../../assets/icon-only.png"> -->
</div> </div>
<p <p v-if="show" class="d2-header-name">
v-if="show"
class="d2-header-name">
{{ info ? info.detail.merchantName : '' }} {{ info ? info.detail.merchantName : '' }}
</p> </p>
<!-- <hamburger :onClick="handleToggleAside" :isActive="asideCollapse" flex-box="0" class="toggle-aside-btn"></hamburger> <!-- <hamburger :onClick="handleToggleAside" :isActive="asideCollapse" flex-box="0" class="toggle-aside-btn"></hamburger>
<span class="header-title">{{headerTitle}}</span> --> <span class="header-title">{{headerTitle}}</span> -->
<d2-menu-header flex-box="1" /> <d2-menu-header flex-box="1" />
<!-- 顶栏右侧 --> <!-- 顶栏右侧 -->
<div <div class="d2-header-right" flex-box="0">
class="d2-header-right"
flex-box="0">
<!-- <d2-header-datetime /> --> <!-- <d2-header-datetime /> -->
<!-- 如果你只想在开发环境显示这个按钮请添加 v-if="$env === 'development'" --> <!-- 如果你只想在开发环境显示这个按钮请添加 v-if="$env === 'development'" -->
<!-- <d2-header-search @click="handleSearchClick"/> --> <!-- <d2-header-search @click="handleSearchClick"/> -->
...@@ -53,75 +33,40 @@ ...@@ -53,75 +33,40 @@
<d2-header-user /> <d2-header-user />
</div> </div>
</div> </div>
<div <div class="d2-theme-header" style="height: 40px; font-size: 14px; border-top: 1px solid #F0F2F5;" flex-box="0"
class="d2-theme-header"
style="height: 40px; font-size: 14px; border-top: 1px solid #F0F2F5;"
flex-box="0"
flex> flex>
<div <div class="logo-group d2-theme-header-logo" style="height: 1px; margin-top: -1px;"
class="logo-group d2-theme-header-logo" :class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0" />
style="height: 1px; margin-top: -1px;" <hamburger :on-click="handleToggleAside" :is-active="asideCollapse" flex-box="0" class="toggle-aside-btn" />
: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 <div class="d2-theme-container" flex-box="1" flex>
class="d2-theme-container"
flex-box="1"
flex>
<!-- 主体 侧边栏 --> <!-- 主体 侧边栏 -->
<div <div flex-box="0" ref="aside" class="d2-theme-container-aside" :style="{
flex-box="0"
ref="aside"
class="d2-theme-container-aside"
:style="{
width: asideCollapse ? asideWidthCollapse : asideWidth, width: asideCollapse ? asideWidthCollapse : asideWidth,
opacity: this.searchActive ? 0.5 : 1 opacity: this.searchActive ? 0.5 : 1
}"> }">
<d2-menu-side /> <d2-menu-side />
</div> </div>
<!-- 主体 --> <!-- 主体 -->
<div <div class="d2-theme-container-main" :class="this.searchActive ? 'is-search' : ''" flex-box="1" flex>
class="d2-theme-container-main"
:class="this.searchActive ? 'is-search' : ''"
flex-box="1"
flex>
<!-- 搜索 --> <!-- 搜索 -->
<transition name="fade-scale"> <transition name="fade-scale">
<div <div v-if="searchActive" class="d2-theme-container-main-layer" flex>
v-if="searchActive" <d2-panel-search ref="panelSearch" @close="searchPanelClose" />
class="d2-theme-container-main-layer"
flex>
<d2-panel-search
ref="panelSearch"
@close="searchPanelClose" />
</div> </div>
</transition> </transition>
<!-- 内容 --> <!-- 内容 -->
<transition name="fade-scale"> <transition name="fade-scale">
<div <div v-if="!searchActive" class="d2-theme-container-main-layer" flex="dir:top">
v-if="!searchActive"
class="d2-theme-container-main-layer"
flex="dir:top">
<!-- tab --> <!-- tab -->
<div <div class="d2-theme-container-main-header" flex-box="0">
class="d2-theme-container-main-header"
flex-box="0">
<!-- <d2-tabs/> --> <!-- <d2-tabs/> -->
</div> </div>
<!-- 页面 --> <!-- 页面 -->
<div <div class="d2-theme-container-main-body" flex-box="1">
class="d2-theme-container-main-body" <transition :name="transitionActive ? 'el-fade-in' : ''" mode="out-in">
flex-box="1">
<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>
...@@ -252,16 +197,22 @@ export default { ...@@ -252,16 +197,22 @@ export default {
<style lang="scss"> <style lang="scss">
// 注册主题 // 注册主题
@import '~@/assets/style/theme/register.scss'; @import '~@/assets/style/theme/register.scss';
@keyframes lightflow { @keyframes lightflow {
90% { 90% {
left: -300px; /*起始位置*/ left: -300px;
/*起始位置*/
} }
100% { 100% {
left: 300px; /*结束位置*/ left: 300px;
/*结束位置*/
} }
} }
.logo-all { .logo-all {
width: 200px; width: 200px;
img { img {
width: 188px; width: 188px;
height: 32px !important; height: 32px !important;
...@@ -269,8 +220,10 @@ export default { ...@@ -269,8 +220,10 @@ export default {
transform: translate3d(0, 20px, 0) !important; transform: translate3d(0, 20px, 0) !important;
} }
} }
.logo-only { .logo-only {
width: 65px; width: 65px;
img { img {
width: 32px; width: 32px;
height: 32px !important; height: 32px !important;
...@@ -278,6 +231,7 @@ export default { ...@@ -278,6 +231,7 @@ export default {
transform: translate3d(0, 16px, 0) !important; transform: translate3d(0, 16px, 0) !important;
} }
} }
.d2-header-name { .d2-header-name {
height: 60px; height: 60px;
line-height: 60px; line-height: 60px;
...@@ -286,6 +240,7 @@ export default { ...@@ -286,6 +240,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 0 0 21px; margin: 0 0 0 21px;
} }
.header-title { .header-title {
line-height: 50px; line-height: 50px;
color: #606266; color: #606266;
......
...@@ -104,12 +104,44 @@ fetch( ...@@ -104,12 +104,44 @@ fetch(
const { code, data } = response const { code, data } = response
if (code == "200") { if (code == "200") {
console.log(data) console.log(data)
baseConfig = data baseConfig = data
// console.log("baseConfig", baseConfig) // console.log("baseConfig", baseConfig)
// window.$fetchConfig = data // window.$fetchConfig = data
} else { } else {
// response.axios.baseURL =
// "http://192.168.3.226:9203/rop-dj-smartcarlife/router"
// "http://192.168.1.169:8392/rop-dj-smartcarlife/router"
// baseConfig = {
// // 系统名字
// sysName: "嘀加智享车生活",
// // 系统说明
// subName: "让你的生意慧简单",
// // 是否需要注册-true;false
// hasReg: false,
// // 是否需要配置账号权限;true-有权限,从后台获取权限信息;false-无需权限
// hasAuth: true,
// env: "backendSingle",
// css_url:
// "https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/index.css",
// axios: {
// // "baseURL": "http://192.168.1.129:8392/rop-dj-smartcarlife/router", //周杭
// // "baseURL": "http://192.168.1.204:8392/rop-dj-smartcarlife/router",//陈希
// baseURL: "http://192.168.1.169:8392/rop-dj-smartcarlife/router", // 蔡远明
// appkey: "48e5e13229b82c1b4e6e8c96151f0637",
// secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
// timeout: 50000,
// result: {
// data_key: "data",
// message_key: "message",
// code_key: "code",
// code_success_value: 0,
// code_message_map: {}
// }
// }
// }
baseConfig = response baseConfig = response
// window.$fetchConfig = response window.$fetchConfig = response
} }
}) })
.finally(() => { .finally(() => {
......
...@@ -131,6 +131,19 @@ export const routerName = { ...@@ -131,6 +131,19 @@ export const routerName = {
parentId: "90603", parentId: "90603",
label: "收款码", label: "收款码",
handle: "collectionQRcode" handle: "collectionQRcode"
},
{
authId: "90603012",
parentId: "90603",
label: "配置",
handle: "handleSet",
addRoutePath: [
{
authId: "90603013",
name: "配置页面",
parentId: "90603012"
}
]
} }
], ],
component: _import("systemConfig/merchant/merchantManage") component: _import("systemConfig/merchant/merchantManage")
...@@ -147,6 +160,18 @@ export const routerName = { ...@@ -147,6 +160,18 @@ export const routerName = {
}, },
component: _import("systemConfig/merchant/financialRules/index") component: _import("systemConfig/merchant/financialRules/index")
}, },
90603013: {
path: "/setDetail",
name: "setDetail",
meta: {
title: "配置详情",
authId: "90603013",
parentId: "90603012",
cache: false,
activePath: "/setDetail"
},
component: _import("systemConfig/merchant/setDetail")
},
90605: { 90605: {
path: "/serviceManage", path: "/serviceManage",
name: "serviceManage", name: "serviceManage",
...@@ -328,7 +353,7 @@ export const routerName = { ...@@ -328,7 +353,7 @@ export const routerName = {
authId: "90613", authId: "90613",
parentId: "90603", parentId: "90603",
cache: false, cache: false,
activePath: "/merchantManage", activePath: "/merchantManage"
}, },
component: _import("systemConfig/merchant/merchantStep/merchantCheck") component: _import("systemConfig/merchant/merchantStep/merchantCheck")
}, },
...@@ -340,7 +365,7 @@ export const routerName = { ...@@ -340,7 +365,7 @@ export const routerName = {
authId: "90614", authId: "90614",
parentId: "90603", parentId: "90603",
cache: false, cache: false,
activePath: "/merchantManage", activePath: "/merchantManage"
}, },
component: _import("systemConfig/merchant/merchantStep/merchantCheckDetail") component: _import("systemConfig/merchant/merchantStep/merchantCheckDetail")
}, },
...@@ -352,7 +377,7 @@ export const routerName = { ...@@ -352,7 +377,7 @@ export const routerName = {
authId: "90615", authId: "90615",
parentId: "90603", parentId: "90603",
cache: false, cache: false,
activePath: "/merchantManage", activePath: "/merchantManage"
}, },
component: _import("systemConfig/merchant/merchantStep/merchantCheckRecord") component: _import("systemConfig/merchant/merchantStep/merchantCheckRecord")
}, },
......
...@@ -23,18 +23,16 @@ export default { ...@@ -23,18 +23,16 @@ export default {
upgradeGoodsList: [], upgradeGoodsList: [],
distributionType: '0', distributionType: '0',
goodsSpecificationNameList: [], goodsSpecificationNameList: [],
linkMerchants: [],
speciLinkMerchants: [],
status: '', status: '',
goodsSpecificationList: [], goodsSpecificationList: [],
goodsPositionList: [], goodsPositionList: [],
applicableModelNames: '', applicableModelNames: '',
positionNames: '', positionNames: '',
copyGoodsCode: '',
shoppingMallFlag: '0', shoppingMallFlag: '0',
goodsSpecificationSingleList: [], goodsSpecificationSingleList: [],
specificationSingleDetailList: [], specificationSingleDetailList: [],
selectedSceneCode: '' selectedSceneCode: '',
goodsType: ''
} }
}, },
mutations: { mutations: {
......
...@@ -209,6 +209,16 @@ ...@@ -209,6 +209,16 @@
</td> </td>
<td>{{ detail.goodsCost?('¥ '+detail.goodsCost):'¥0' }}</td> <td>{{ detail.goodsCost?('¥ '+detail.goodsCost):'¥0' }}</td>
<td class="lb"> <td class="lb">
回收成本
</td>
<td>{{ detail.recoveryCost?('¥ '+detail.recoveryCost):'¥0' }}</td>
</tr>
<tr>
<td class="lb">
虚拟对账成本
</td>
<td>{{ detail.virtualAccountCost?('¥ '+detail.virtualAccountCost):'¥0' }}</td>
<td class="lb">
</td> </td>
<td></td> <td></td>
</tr> </tr>
......
...@@ -259,6 +259,13 @@ ...@@ -259,6 +259,13 @@
<el-table-column prop="goodsCost" <el-table-column prop="goodsCost"
label="商品成本" label="商品成本"
align="center" /> align="center" />
<el-table-column prop="recoveryCost"
label="回收成本"
align="center" />
<el-table-column prop="virtualAccountCost"
label="虚拟对账成本"
align="center"
width="110px" />
</el-table-column> </el-table-column>
<el-table-column label="支付信息" <el-table-column label="支付信息"
......
<!-- 表单 -->
<template>
<div class="grounding-detail" v-if="show">
<el-form :model="formData"
:rules="rules"
:ref="formRef + 'd2FormRuleForm'"
v-loading="$store.state.d2admin.loading.value">
<slot name="title" />
<div v-for="(i, idx) in formList"
:key="idx"
class="grounding-form-block d2-container-content">
<p v-show="i.title"
class="edit-sub-title">
{{ i.title }}
</p>
<div class="flex_item">
<div v-for="(item, index) in i.formBlock" :key="index" :class="item.type === 'incidBox' ? 'item message-box' : 'item'">
<!-- 商品附带信息 -->
<div v-if="formData['upgradeGoodsName'] && item.type === 'incidBox'">
<el-form-item :prop="item.name"
:label="item.label ? item.label + ':' : ''"
:id="item.name"
:label-width="item.label ? '160px' : '0px'"
class="dis-in-block"
style="margin-bottom: 0">
<div class="incid_box">
<div class="item" v-for="(subItem, subIndex) in item.detailInfo" :key="subIndex">
<div class="label">{{ subItem.label }}:</div>
<div class="value">{{ formData[subItem.value] }}</div>
</div>
<!-- 商品分类 1太阳膜 -->
<div class="item" v-if="formData[item.key] == '1'">
<div class="label">部位:</div>
<div class="value">{{ formData['positionNames'] }}</div>
</div>
<!-- 商品分类 权益升级 (线上126) -->
<div class="item" v-if="equitySceneType.includes(formData[item.key])">
<div class="label">服务项目:</div>
<div class="value">{{ formData['serviceItemNames'] }}</div>
</div>
</div>
</el-form-item>
</div>
<!-- 审核信息 -->
<div v-else-if="item.type === 'checkView'">
<el-timeline v-show="formData[item.name]">
<el-timeline-item v-for="(reviewInfo,infoId) in formData[item.name]"
color="#0bbd87"
:key="infoId"
:timestamp="reviewInfo.updatedDateStr">
{{ reviewInfo.reviewMessage }}
</el-timeline-item>
</el-timeline>
</div>
<div v-else>
<el-form-item :prop="item.name"
:label="item.label ? item.label + ':' : ''"
:id="item.name"
:label-width="item.label ? '160px' : '0px'"
class="dis-in-block"
style="margin-bottom: 0">
<div>{{ formData[item.name] }}</div>
</el-form-item>
</div>
</div>
</div>
</div>
<el-form-item style="margin-top: 40px;text-align: center;">
<el-button type="primary"
@click="handleUp"
class="width_100"
v-if="examineFlag && formData.status == 4"
:disabled="$store.state.d2admin.loading.value">
审核
</el-button>
<el-button class="width_100 cancel-btn"
type="primary"
plain
@click="handleClose">
返回
</el-button>
</el-form-item>
</el-form>
</div>
</template>
<script>
import { deepClone } from '@/common/util'
import { mapActions } from 'vuex'
import { baseConfig } from "@/main"
export default {
name: 'groundingForm',
data() {
return {
equitySceneType: baseConfig.equitySceneType || [],
userInfo: this.$store.state.d2admin.user.info,
formData: {},
selectedValue: '',
show: false,
examineFlag: false
}
},
props: {
formRef: {
type: String,
default: ''
},
rules: {
type: Object,
default: () => { }
},
originData: {
type: Object,
default: () => {
return {}
}
},
formList: {
type: Array,
default: () => { }
}
},
watch: {
originData: {
handler(newVal) {
if (newVal) {
this.formData = deepClone(this.originData)
}
},
deep: true
},
formData: {
handler(newVal) {
if (newVal) {
this.filterEditForm()
}
},
deep: true
}
},
mounted() {
this.formData = deepClone(this.originData)
this.copyFormList = deepClone(this.formList)
this.$nextTick(() => {
const $store = this.$store.getters['d2admin/auth/curBtns']
const btnId = '9031101' // 审核权限ID
const _item = $store?.find(i => (i.authId === btnId))
if (_item) {
this.examineFlag = true
}
})
this.filterEditForm()
},
methods: {
...mapActions({
get: 'd2admin/base/get'
}),
// 出来form表单显示内容
filterEditForm() {
let { copyFormList, formData } = this
// 1 太阳膜 2 (1.3场景商品)
let shopType = formData?.goodsType == 1 ? '1' : formData?.sceneType == 3 ? '2' : ''
let shopForm = deepClone(copyFormList[1].formBlock)
let spliceForm = shopType == '1' ? ['giftCost', 'recoveryCost', 'virtualAccountCost'] : shopType == '2' ? ['productTypeStr', 'warrantyTypeStr', 'baseSupplyModeStr', 'giftCost', 'recoveryCost', 'virtualAccountCost'] : ['productTypeStr', 'warrantyTypeStr', 'baseSupplyModeStr', 'upgradeSupplyModeStr', 'giftCost', 'recoveryCost', 'virtualAccountCost']
// 未勾选基础商品类型
if (!this.formData.productType?.includes(1)) spliceForm.push('baseSupplyModeStr')
// 赠送成本:仅产品类型选择“基础产品”时展示
if (formData.productType?.includes(1)) spliceForm.indexOf('giftCost') > -1 && spliceForm.splice(spliceForm.indexOf('giftCost'), 1)
// 回收成本:仅产品类型选择“升级产品”且升级/产品供货模式选择“门店回收原厂+嘀加”时展示
if (formData.productType?.includes(2) && formData.upgradeSupplyMode == 4) {
spliceForm.indexOf('recoveryCost') > -1 && spliceForm.splice(spliceForm.indexOf('recoveryCost'), 1)
}
// 虚拟对账成本:仅产品类型选择“升级产品”且升级/产品供货模式选择“门店套码+嘀加”“ 服务商自采+嘀加”时展示
if ((formData.productType?.includes(2) && formData.upgradeSupplyMode == 3) || (formData.productType?.includes(2) && formData.upgradeSupplyMode == 5)) {
spliceForm.indexOf('virtualAccountCost') > -1 && spliceForm.splice(spliceForm.indexOf('virtualAccountCost'), 1)
}
// 仅选中基础产品类型 不展示 售价字段
if (formData.productType?.length == 1 && formData.productType?.includes(1)) spliceForm.push('sellPrice', 'minSellPrice', 'upgradeProductCost', 'upgradeSupplyModeStr')
let newForm = shopForm.filter(v => !spliceForm?.includes(v.name))
this.$set(this.formList[1], 'formBlock', newForm)
this.$nextTick(() => {
this.show = true
})
},
// 选择框-添加其他属性
selectAddAttr(value, targetItem) {
if (targetItem.name === 'goodsCode') {
var tempVal = targetItem.optionList.find(item => item.goodsCode === value)
this.formData.goodsTypeName = tempVal.goodsTypeName
this.formData.thumbUrl = tempVal.thumbUrl
this.formData.sapCode = tempVal.sapCode
}
this.selectedValue = value
},
handleClose() {
this.$emit('handleClose')
},
jumpScroll(idName) {
document.getElementById(idName).scrollIntoView()
},
filterEmpty(data) {
return (data ?? '') === ''
},
handleUp(e) {
this.$refs[this.formRef + 'd2FormRuleForm'].validate((valid, options) => {
if (valid) {
let arr = []
this.formData.goodsPositionList = arr
this.$emit('handleAddConfirm', { ...this.formData, num: e })
} else {
var needRuleList = Object.keys(options)
this.jumpScroll(needRuleList[0])
return true
}
})
}
}
}
</script>
<style lang="scss" scoped>
.grounding-detail{
.grounding-form-block {
padding: 20px 0px;
.flex_item{
display: flex;
flex-flow: wrap;
.item {
flex: 0 0 33%;
}
.message-box{
flex: 0 0 100%;
font-size: 14px;
.incid_box{
margin: 10px 0;
background: #F9F9F9;
border-radius: 8px;
display: flex;
flex-wrap: wrap;
padding: 15px;
.item{
flex: 0 0 33%;
display: flex;
.label{
flex-shrink: 0;
color: #666666;
width: 100px;
text-align: right;
}
}
}
}
}
}
.width_100{
display: inline-block;
width: 100px;
}
}
</style>
export const productList = [{
confId: 1,
confName: '基础产品'
}, {
confId: 2,
confName: '升级产品'
}]
export const baseSupplyModeList = [{
confId: 1,
confName: '嘀加'
}, {
confId: 2,
confName: '门店'
}]
// 太阳膜升级产品供货模式
export const upgradeSupplyModeList = [{
confId: 1,
confName: '嘀加'
}, {
confId: 3,
confName: '门店套码+嘀加'
}, {
confId: 4,
confName: '门店回收原厂+嘀加'
}, {
confId: 5,
confName: '服务商自采+嘀加'
}]
// 1.3场景 升级产品供货模式
export const crowdUpgradeSupplyModeList = [{
confId: 1,
confName: '嘀加'
}, {
confId: 2,
confName: '门店'
}]
<!-- 查看上架 -->
<template>
<d2-container class="edit-commodity">
<div class="" v-if="show">
<detail
ref="d2GroundingDetail"
:rules="rules"
form-name="grounding"
:origin-data="editData"
:form-list="editForm"
:productServiceItemList="productServiceItemList"
@handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose"></detail>
</div>
</d2-container>
</template>
<script>
import { getMerchantGoodsInfo, batchReviewAPI } from '@api/grounding'
import detail from './components/detail.vue'
import { sceneList } from '@/common/constants.js'
import { mapActions } from 'vuex'
import { deepClone, Util } from '@/common/util'
import { positionTypeList } from '@/common/constants'
import { productList, baseSupplyModeList, upgradeSupplyModeList, crowdUpgradeSupplyModeList} from './constants/data'
export default {
name: 'groundingDetail',
components: {
detail
},
data() {
return {
rules: {
merchantName: [{ required: true }],
sceneName: [{ required: true }],
goodsName: [{ required: true }],
productTypeStr: [{ required: true }],
baseSupplyModeStr: [{ required: true }],
upgradeSupplyModeStr: [{ required: true }],
sellPrice: [{ required: true }],
minSellPrice: [{ required: true }],
upgradeProductCost: [{ required: true }],
giftCost: [{ required: true }],
recoveryCost: [{ required: true }],
virtualAccountCost: [{ required: true }],
warrantyTypeStr: {required: true}
},
editForm: [{
title: '门店信息',
formBlock: [{
name: 'merchantName',
label: '上架门店'
}, {
name: 'sceneName',
label: '业务场景'
}]
}, {
title: '商品信息',
formBlock: [{
name: 'goodsName',
label: '上架商品',
type: 'incidBox',
key: 'goodsType',
detailInfo: [{
label: '商品名称',
value: 'upgradeGoodsName'
}, {
label: '商品编码',
value: 'type'
}, {
label: '参考售价/元',
value: 'upgradePrice'
}, {
label: '所属系列',
value: 'goodsName'
}, {
label: '所属分类',
value: 'goodsTypeName'
}]
}, {
name: 'goodsAlias',
label: '商品别名'
}, {
name: 'warrantyTypeStr',
label: '质保卡类型'
}, {
name: 'productTypeStr',
label: '产品类型'
}, {
name: 'baseSupplyModeStr',
label: '基础产品供货模式'
}, {
name: 'upgradeSupplyModeStr',
label: '升级/产品供货模式'
}, {
name: 'sellPrice',
label: '售价/元'
}, {
name: 'minSellPrice',
label: '最低售价/元'
}, {
name: 'upgradeProductCost',
label: '产品、升级成本/元'
}, {
name: 'giftCost',
label: '赠送成本/元'
}, {
name: 'recoveryCost',
label: '回收成本/元'
}, {
name: 'virtualAccountCost',
label: '虚拟对账成本/元'
}]
}, {
title: '操作信息',
formBlock: [{
type: 'checkView',
name: 'reviewLogList'
}]
}],
show: false,
editData: {},
examineFlag: false,
warrantyTypeShow: {
0: '质保卡',
1: '质保权益卡'
},
detailId: '',
productServiceItemList: []
}
},
mounted() {
// 获取商品详情
let id = this.$route.params.id
this.detailId = id
if (!id) return
this.getDetailInfo(id)
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
getDetailInfo(id) {
getMerchantGoodsInfo({ id }).then(res => {
let productType = []
if (res?.upgradeProductFlag == 'Y') productType.push(2)
if (res?.baseProductFlag == 'Y') productType.push(1)
let productTypeTextArr = []
// 太阳膜回显 部位
let positionNamesArr = res?.goodsType == 1 ? deepClone(positionTypeList).filter(val => res.upgradeGoods.position == val.position) : []
// 产品类型
productList.forEach(v => {
if (productType.includes(v.confId)) productTypeTextArr.push(v.confName)
})
res.reviewLogList?.forEach(val => {
val.updatedDateStr = val.updatedDate ? Util.dateFormate(val.updatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
})
let arr = []
if (res.sceneType == 3) { // 1.3场景 升级产品供货模式
arr = crowdUpgradeSupplyModeList
}
if (res.goodsType == 1) { // 太阳膜类 升级产品供货模式(优先级高)
arr = upgradeSupplyModeList
}
res.productTypeStr = productTypeTextArr?.length ? productTypeTextArr.join(';') : '-'
res.warrantyTypeStr = this.warrantyTypeShow[res?.warrantyType] || '-'
res.baseSupplyModeStr = baseSupplyModeList?.filter(v => v.confId == res.baseSupplyMode)[0]?.confName || ''
res.upgradeSupplyModeStr = arr?.filter(v => v.confId == res.upgradeSupplyMode)[0]?.confName || ''
res.sceneName = sceneList[res.sceneType] || '-'
res.upgradePrice = !this.filterEmpty(res.upgradeGoods?.upgradePrice) ? res.upgradeGoods?.upgradePrice : '-'
res.positionNames = positionNamesArr.length ? positionNamesArr[0]?.confName : ''
res.productType = productType
res.serviceItemNames = res.upgradeGoods?.upgradeGoodsServiceItemsList?.map(v => {return v.serviceName})?.join(',')
this.editData = res || {}
this.$nextTick(() => {
this.show = true
})
})
},
filterEmpty(data) {
return (data ?? '') === ''
},
handleAddConfirm() {
this.$confirm('<p>审核通过后,商品完成上架,对应的门店可使用该商品</p>是否确定审核?', '提示', {
confirmButtonText: '确定',
dangerouslyUseHTMLString: true,
type: 'warning'
}).then(() => {
batchReviewAPI({ ids: [this.detailId] }).then(res => {
this.notice.okTips()
this.handleClose(true)
})
}).catch(err => {
console.log(err)
})
},
handleClose(isRefresh = false) {
if (isRefresh) {
this.close({ tagName: '/grounding' })
this.$router.push({ name: 'grounding' })
this.close({ tagName: '/grounding' })
} else {
this.$confirm('内容未保存,是否返回?', '提示', {
confirmButtonText: '确定',
type: 'warning'
}).then(() => {
this.close({ tagName: '/grounding' })
this.$router.push({ name: 'grounding' })
this.close({ tagName: '/grounding' })
})
}
},
handleAddClose() {
this.handleClose(true)
}
}
}
</script>
<style lang="scss" scoped></style>
\ No newline at end of file \ No newline at end of file
<!-- 查看详情 -->
<template>
<el-drawer size="60%"
class="drawerContainer"
:with-header="false"
:visible.sync="drawerDetailVisible"
:before-close="handleDrawerClose">
<div class="d2-drawer-content car-txt"
style="background: #F2F4F7;">
<div class="d2-drawer-block title-block">
<p class="parentGoods">
产品详情
</p>
<p class="close-icon"
@click="handleDrawerClose">
×
</p>
</div>
<el-form class="child-drawer-block"
label-width="110px"
:inline="true"
v-for="(item,index) in commodityInfo.upgradeGoodsList"
:key="index">
<p class="car-sub-head">
商品{{ index + 1 }}-{{ item.upgradeGoodsName }}
</p>
<el-form-item class="d2-drawer-item"
label="编码:">
<span>{{ item.type }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
label="品牌方:">
<span>{{ commodityInfo.goodsInfo.brandMerchantName || '--' }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
label="类目:">
<span>{{ commodityInfo.goodsInfo.goodsTypeName }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
label="参考售价/元:">
<span>{{ !filterEmpty(item.upgradePrice) ? item.upgradePrice : '无' }}</span>
</el-form-item>
<el-form-item class="d2-drawer-item"
label="采购价/元:">
<span>{{ !filterEmpty(item.purchasePrice) ? item.purchasePrice : '无' }}</span>
</el-form-item>
<el-form-item
class="d2-drawer-item"
label="质保年限:">
<span>{{ !filterEmpty(item.warrantyPeriod) ? (item.warrantyPeriod + '年') : '无' }}</span>
</el-form-item>
</el-form>
</div>
</el-drawer>
</template>
<script>
import { getGoodsInfoById } from '@/api/commodity'
export default {
name: 'DrawerDetail',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
commodityInfo: {}
}
},
props: {
drawerDetailVisible: {
type: Boolean,
default: false
},
commodityInfoId: {
type: [String, Number],
default: () => { }
}
},
mounted() {
this.getInfo(this.commodityInfoId)
},
methods: {
handleDrawerClose() {
this.$emit('handleDrawerClose')
},
getInfo(id) {
getGoodsInfoById({ id: id }).then(res => {
this.commodityInfo = res
})
},
filterEmpty(data) {
return data instanceof Array ? data.length <= 0 : (data ?? '') === ''
}
}
}
</script>
<style lang="scss" scoped>
::v-deep.drawerContainer {
.el-drawer__body {
overflow: scroll;
}
.d2-drawer-content .close-icon {
font-size: 24px;
height: 22px;
line-height: 22px;
cursor: pointer;
}
.d2-drawer-content .d2-drawer-block {
border-bottom: 1px solid #e7eaec;
padding: 0 20px 20px;
margin-bottom: 20px;
background: #ffffff;
}
.d2-drawer-content .d2-drawer-block.title-block {
position: relative;
display: flex;
justify-content: space-between;
padding: 20px 20px;
background: #ffffff;
}
.d2-drawer-block .d2-drawer-item {
width: 47%;
margin-bottom: 0;
}
.d2-drawer-block .d2-drawer-row {
width: 100%;
margin-bottom: 0;
}
.parentGoods {
font-family: PingFangSC-Medium;
font-size: 18px;
color: #333333;
line-height: 28px;
font-weight: 600;
}
.parent-type {
font-family: PingFangSC-Regular;
font-size: 16px;
color: #666666;
line-height: 24px;
font-weight: 400;
padding-left: 15px;
}
.car-txt .examineP {
font-family: PingFangSC-Regular;
font-size: 16px;
margin-left: auto;
margin-right: 40px;
padding: 3px;
}
.d2-drawer-content .child-drawer-block {
border-bottom: 1px solid #e7eaec;
padding: 20px 20px 20px;
margin-bottom: 20px;
background: #ffffff;
margin: 10px 8px 0 10px;
}
.child-drawer-block .d2-drawer-item {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #333333;
font-weight: 400;
width: 30%;
margin: 0 0 0 0;
}
/* .child-drawer-block .d2-drawer-row {
width: 100%;
margin-bottom: 0;
} */
.child-drawer-block .car-sub-head {
font-family: PingFangSC-Medium;
font-size: 16px;
color: #333333;
line-height: 24px;
font-weight: 600;
}
.timeline-item_wrapper {
.el-form-item__content {
width: calc(100% - 110px);
}
.el-timeline-item__wrapper {
display: flex;
align-items: center;
justify-content: space-between;
// margin-top: 5px;
}
.el-timeline-item__timestamp.is-bottom {
margin-top: 0;
}
}
.timeline-item_wrapper .el-timeline-item__tail {
position: absolute;
left: 4px;
height: 100%;
top: 8px;
border-left: 2px solid #e4e7ed;
}
.timeline-item_wrapper .el-timeline-item__node--normal {
left: -1px;
top: 8px;
width: 12px;
height: 12px;
}
}
</style>
<template>
<div class="sourceMaterial-form" id="sourceMaterial-form">
<div class="title">产品系列-SPU</div>
<productForm v-if="show"
ref="d2GoodsProductForm"
:rules="rules"
:add-or-edit="addOrEdit"
form-name="product"
:origin-data="editData"
:form-list="editForm"
:form-ref="proFormRef"
:isProduct="false"
@handleAddBrandSupplyConfirm="handleAddBrandSupplyConfirm"
@handleEditBrandSupplyConfirm="handleEditBrandSupplyConfirm">
</productForm>
</div>
</template>
<script>
import { deepClone } from '@/common/util'
import { mapActions } from 'vuex'
import { getBrandSupplyMerchant, addBrandSupplyMerchant, editBrandSupplyMerchant, getProductTypeBySceneId } from '@/api/product'
import productForm from './productForm.vue'
import { baseConfig } from '@/main'
export default {
name: 'sourceMaterial',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
show: false,
rules: {
goodsName: [{ required: true, message: '请输入产品名称', trigger: 'change' }],
goodsType: [{ required: true, message: '请选择类目', trigger: 'change' }],
supplierCode: [{ required: true, message: '请选择供应方', trigger: 'change'}],
sapCode: [{
validator: (rule, value, cb) => {
if (value && (!/^[0-9A-Za-z]+$/.test(value))) {
return cb(new Error('只能输入数字或字母'))
} else {
cb()
}
},
trigger: 'change'
}],
thumbUrl: [{ required: true, message: '请选择缩略图', trigger: 'blur' }],
positionIds: [{ required: true, message: '请选择部位', trigger: 'change' }],
convertedValue: [{ required: true, message: '请输入比例换算', trigger: 'change'}]
},
editData: {
goodsName: '',
goodsType: '',
goodsTypeName: '',
sapCode: '',
brandMerchantCode: '',
brandMerchantName: '',
supplierCode: '',
supplierName: '',
thumbUrl: '',
goodsImgList: [],
goodsDescList: [],
videoUrl: '',
convertedValue: '',
positionIds: [],
carTypeList: [1, 2, 3, 4],
goodsPositionList: [],
goodsSource: 0
},
proFormRef: 'pro',
editForm: [{
formBlock: [
{
name: 'goodsName',
label: '产品名称',
type: 'input',
maxlength: 20,
width: '432px'
},
{
name: 'goodsType',
label: '类目',
isRequired: true,
type: 'select',
isClear: false,
optionList: [],
optionId: 'categoryType',
optionLabel: 'categoryName',
width: '432px'
}, {
name: 'sapCode',
label: '编号',
type: 'input',
maxlength: 32,
width: '432px'
}, {
name: 'brandMerchantCode',
label: '品牌方',
isRequired: true,
type: 'special-select',
isClear: true,
optionList: [],
optionId: 'id',
optionLabel: 'relatedPartyName',
partitionFlag: 1,
width: '432px'
}, {
name: 'supplierCode',
label: '供应方',
isRequired: true,
type: 'select',
isClear: true,
optionList: [],
optionId: 'id',
optionLabel: 'relatedPartyName',
partitionFlag: 2,
width: '432px'
}, {
name: 'thumbUrl',
label: '缩略图',
type: 'photo',
tips: ['注:用于小程序主页商品列表配图展示', '请上传2M以内的jpg、jpeg、png图片,建议图片尺寸256*216'],
maxPhotoNum: 1
}, {
name: 'goodsImgList',
label: '产品主图',
type: 'photo',
tips: ['注:用于在小程序商品详情页的顶部展示', '请上传2M以内的jpg、jpeg、png图片,建议图片尺寸256*216'],
maxPhotoNum: 10
}, {
name: 'videoUrl',
label: '产品视频',
type: 'video',
tips: ['注:作为商品详情页顶部展示,格式建议mp4,大小不超过20M'],
maxPhotoNum: 1
}, {
name: 'goodsDescList',
label: '详情描述',
type: 'descList',
maxlength: 256
}]
}],
baseData: {
productType: []
},
selfBuildGoodsType: baseConfig.selfBuildGoodsType || '' // 服务商自建类目值
}
},
components: {
productForm: productForm
},
props: {
addOrEdit: String,
formData: Object
},
mounted() {
if (this.addOrEdit === 'edit') {
this.show = false
this.editData = deepClone(this.formData)
this.editData.brandMerchantCode = Number(deepClone(this.formData).brandMerchantCode) || ''
this.editData.supplierCode = Number(deepClone(this.formData).supplierCode) || ''
if (!this.editData.goodsDescList) this.editData.goodsDescList = []
// 太阳膜默认适用全部车型 部位回显
if (this.editData.goodsType == 1) {
this.editData.carTypeList = deepClone(this.formData).carTypeList ? deepClone(this.formData).carTypeList : [1, 2, 3, 4]
this.editData.positionIds = deepClone(this.formData)?.goodsPositionList?.map(item => { return item.position })
}
this.editData.goodsImgList = this.editData.goodsImgList || []
this.editData.goodsImgList.forEach(i => {
delete i.createdDate
delete i.updatedDate
})
this.editData.goodsDescList.forEach(i => {
delete i.createdDate
delete i.updatedDate
})
this.$nextTick(() => {
this.show = true
})
} else {
this.show = true
}
// 获取品牌方/供应方数据 1品牌商 2供应方
this.getBrandSupplyList(1)
this.getBrandSupplyList(2)
// 获取类目
this.getGoodTypeList()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
// 获取全部类目 屏蔽服务商自建类目
getGoodTypeList() {
getProductTypeBySceneId({categoryTypeList: this.selfBuildGoodsType}).then(res => {
this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'goodsType')].optionList = res
})
},
// 获取品牌/供应方
getBrandSupplyList(num) {
getBrandSupplyMerchant({
partitionFlag: num
}).then(res => {
if (num == 1) {
this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'brandMerchantCode')].optionList = res
} else {
this.editForm[0].formBlock[this.editForm[0].formBlock.findIndex(val => val.name == 'supplierCode')].optionList = res
}
})
},
// 新增品牌商/供应商
handleAddBrandSupplyConfirm(data) {
addBrandSupplyMerchant(data).then(res => {
this.getBrandSupplyList(data.partitionFlag)
})
},
// 编辑删除 品牌商/供应商
handleEditBrandSupplyConfirm(data) {
editBrandSupplyMerchant(data).then(res => {
this.getBrandSupplyList(data.partitionFlag)
})
}
}
}
</script>
<style lang="scss" scoped>
.sourceMaterial-form{
background: #ffffff;
.title{
height: 50px;
line-height: 50px;
padding: 0 20px;
border-bottom: 1px solid #E5E5E5;
font-size: 16px;
font-weight: 600;
color: #333333;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="specifications-form" ref="specifications-form">
<p class="title">产品信息-SKU</p>
<div class="content-box">
<div class="sync_type_class">
<span class="label"><span class="color-red">*</span>使用模式:</span>
<el-radio-group v-model="goodsInfoData.shoppingMallFlag">
<el-radio :label="'1'">采购上架及分发至单店</el-radio>
<el-radio :label="'0'">仅分发至单店</el-radio>
</el-radio-group>
</div>
<div style="margin-left: 120px;">
<div class="add-btns">
<el-button icon="el-icon-plus" v-if="goodsInfoData.specificationType == '2'" @click="handleSpecsEdit(1)">新增规格</el-button>
<el-button icon="el-icon-plus" v-if="goodsInfoData.specificationType == '1'" @click="addShop">新增商品</el-button>
<div class="assi_type">
<span>规格:</span>
<el-radio-group v-model="goodsInfoData.specificationType" @change="changeRadio">
<el-radio :label="'1'">单规格</el-radio>
<el-radio :label="'2'">多规格</el-radio>
</el-radio-group>
</div>
</div>
<div class="speci-box" id="specificationDetailList">
<singleSpecificationForm ref="singleSpecificationFormRef" v-show="goodsInfoData.specificationType == '1'" :productServiceItemList="productServiceItemList"></singleSpecificationForm>
<multipleSpecificationForm ref="multipleSpecificationFormRef" v-show="goodsInfoData.specificationType == '2'" :productServiceItemList="productServiceItemList"></multipleSpecificationForm>
</div>
</div>
</div>
</div>
</template>
<script>
import multipleSpecificationForm from './multipleSpecificationForm.vue'
import singleSpecificationForm from './singleSpecificationForm.vue'
import { mapGetters, mapMutations, mapActions } from 'vuex'
import { BaseData } from '@/common/constants.js'
export default {
name: 'specifications',
components: {
singleSpecificationForm,
multipleSpecificationForm
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
productPositionTypeList: [],
productServiceItemList: []
}
},
computed: {
...mapGetters('goodsInfoData', {goodsInfoData: 'getGoodsInfoData'})
},
mounted() {
if (this.goodsInfoData.goodsSpecificationNameList?.length > 1) {
// 多规格
this.goodsInfoData.specificationType = '2'
}
this.getProductServiceItemList()
},
methods: {
...mapActions({
get: 'd2admin/base/get'
}),
async getProductServiceItemList() {
this.productServiceItemList = await this.get(BaseData.productServiceItemList)
},
...mapMutations('goodsInfoData', ['setUpdateGoodsInfo']),
// 新增规格
handleSpecsEdit(num) {
this.$refs['multipleSpecificationFormRef'].handleSpecsEdit(num)
},
// 新增商品
addShop() {
this.$refs['singleSpecificationFormRef'].addShop()
},
// 切换规格将数据清空
changeRadio(value) {
if (value == 1) { // 单规格
this.setUpdateGoodsInfo({specificationSingleDetailList: [], goodsSpecificationSingleList: []})
} else { // 多规格
this.setUpdateGoodsInfo({specificationDetailList: []})
}
}
}
}
</script>
<style lang="scss" scoped>
.specifications-form{
margin-top: 20px;
background: #ffffff;
.title{
height: 50px;
line-height: 50px;
padding: 0 20px;
border-bottom: 1px solid #E5E5E5;
font-size: 16px;
font-weight: 600;
color: #333333;
}
.content-box{
padding: 20px 20px 40px 20px;
}
.add-btns{
display: flex;
justify-content: space-between;
font-size: 14px;
.el-button{
width: 140px;
}
}
.speci-box {
width: 100%;
.title-tip {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 15px;
height: 40px;
font-weight: bold;
background: #F2F4F7;
}
}
.sync_type_class{
font-size: 14px;
padding: 20px 0;
.label{
display: inline-block;
text-align: right;
width: 120px;
.color-red{
color: #eb4e4e;
font-size: 14px;
margin-right: 4px;
cursor: pointer;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<d2-dialog :title="'单店目标产值'" <d2-dialog :title="'编辑单店信息'" :is-visible="outputVisible" :width="'900px'" @closeDialog="handleImport"
:is-visible="outputVisible"
:width="'880px'"
@closeDialog="handleImport"
@confirmDialog="handleConfirmImport"> @confirmDialog="handleConfirmImport">
<slot> <slot>
<div class="searchWrap"> <div class="searchWrap">
<el-col :span="13"> <el-col :span="11">
<el-date-picker v-model="search.targetDate" <el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月"
:clearable="false" value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
type="month"
format="yyyy 年 MM 月"
value-format="yyyy-MM"
:picker-options="pickerOptions"
placeholder="选择月" />
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-input v-model="search.keyword" <el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
clearable
placeholder="输入门店名称搜索" />
</el-col> </el-col>
<el-col :span="2" <el-col :span="4" class="btnContainer">
class="btnContainer"> <el-button type="primary" @click="getList" class="searchBtn">
<el-button type="primary"
@click="getList"
class="searchBtn">
搜索 搜索
</el-button> </el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</el-col> </el-col>
<!-- <div class="searchInput"> <!-- <div class="searchInput">
...@@ -34,41 +24,45 @@ ...@@ -34,41 +24,45 @@
</div> </div>
<div class="yqdTableContainer"> <div class="yqdTableContainer">
<!-- border --> <!-- border -->
<el-table :data="tableData" <el-table :data="tableData" stripe max-height="450" :header-cell-style="rowClass" style="width: 100%">
stripe <el-table-column label="序号" type="index" width="50" />
max-height="450" <!-- <el-table-column prop="yqMerchantName" label="园区店列表" width="200" /> -->
:header-cell-style="rowClass" <el-table-column prop="merchantName" label="门店列表" width="200" />
style="width: 100%">
<el-table-column label="序号"
type="index"
width="50" />
<el-table-column prop="yqMerchantName"
label="园区店列表"
width="300" />
<el-table-column prop="merchantName"
label="门店列表"
width="300" />
<!-- <el-table-column prop="outputValue" <!-- <el-table-column prop="outputValue"
label="门店列表"> label="门店列表">
</el-table-column> --> </el-table-column> -->
<!-- width="260" --> <!-- width="260" -->
<el-table-column prop="outputValue" <el-table-column prop="outputValue" label="场景在营" width="220">
label="产值目标"> <template slot-scope="scope">
<el-select v-model="scope.row['businessScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in sceneCodeList" :key="item.confId" :label="item.confValue" :value="item.confId">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="部署状态" width="220">
<template slot-scope="scope">
<el-select v-model="scope.row['deployScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in sceneCodeList" :key="item.confId" :label="item.confValue" :value="item.confId">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="产值目标">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <div>slot-scope="scope"</div> &&item.isEdit--> <!-- <div>slot-scope="scope"</div> &&item.isEdit-->
<span v-if="!scope.row['isEdit']">{{ scope.row['outputValue'] }}</span> <span v-if="!scope.row['isEdit']">{{ scope.row['outputValue'] }}</span>
<!-- @input="input($event,item)" --> <!-- @input="input($event,item)" -->
<el-input v-else <el-input v-else style="width: 140px" @input="handleInput($event, scope)" v-model="scope.row['outputValue']"
style="width: 140px"
@input="handleInput($event,scope)"
v-model="scope.row['outputValue']"
placeholder="" /> placeholder="" />
<!-- <div></div> --> <!-- <div></div> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="tips"> <div class="tips">
填写后不支持修改,请谨慎输入。 产值目标填写后不支持修改,请谨慎输入。
<!-- 填写后不支持修改,请谨慎输入。 -->
</div> </div>
</div> </div>
</slot> </slot>
...@@ -77,6 +71,7 @@ ...@@ -77,6 +71,7 @@
<script> <script>
import { limitPrice } from '@/common/format' import { limitPrice } from '@/common/format'
import { sceneCodeList } from '@/common/constants'
// import moment from 'moment' // import moment from 'moment'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { getMerchantOutputValueTarget, setMerchantOutputValueTarget } from '@api/index' import { getMerchantOutputValueTarget, setMerchantOutputValueTarget } from '@api/index'
...@@ -106,59 +101,9 @@ export default { ...@@ -106,59 +101,9 @@ export default {
keyword: '', keyword: '',
targetDate: '' targetDate: ''
}, },
// tableLabel: [], tableData: [],
tableData: [ value2: [],
// { sceneCodeList
// date: '2016-05-02',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1518 弄'
// }
// , {
// date: '2016-05-04',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1517 弄'
// }, {
// date: '2016-05-04',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1517 弄'
// }, {
// date: '2016-05-04',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1517 弄'
// }, {
// date: '2016-05-04',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1517 弄'
// }, {
// date: '2016-05-04',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1517 弄'
// }, {
// date: '2016-05-01',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1519 弄'
// }, {
// date: '2016-05-01',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1519 弄'
// }, {
// date: '2016-05-01',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1519 弄'
// }, {
// date: '2016-05-01',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1519 弄'
// }, {
// date: '2016-05-01',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1519 弄'
// }, {
// date: '2016-05-03',
// name: '王小虎',
// address: '上海市普陀区金沙江路 1516 弄'
// }
]
// outputVisible: true // outputVisible: true
} }
}, },
...@@ -180,6 +125,11 @@ export default { ...@@ -180,6 +125,11 @@ export default {
// console.log(moment().subtract(5, 'months').startOf('month').format('YYYY-MM-DD')) // console.log(moment().subtract(5, 'months').startOf('month').format('YYYY-MM-DD'))
}, },
methods: { methods: {
handleReset() {
this.search.targetDate = this.nowMonth
this.search.keyword = ''
this.getList()
},
getList() { getList() {
getMerchantOutputValueTarget(this.search).then((result) => { getMerchantOutputValueTarget(this.search).then((result) => {
const monthCheck = [this.nowMonth, this.nextMonth].includes(this.search.targetDate) const monthCheck = [this.nowMonth, this.nextMonth].includes(this.search.targetDate)
...@@ -219,7 +169,7 @@ export default { ...@@ -219,7 +169,7 @@ export default {
// 删除无需字段 避免后台类型报错 // 删除无需字段 避免后台类型报错
delete item.createdDate delete item.createdDate
delete item.updatedDate delete item.updatedDate
return item.isEdit && item.outputValue return (item.isEdit && item.outputValue) || item.deployScene || item.businessScene
}) })
if (filterList.length) { if (filterList.length) {
// console.log('请求修改') // console.log('请求修改')
...@@ -243,35 +193,49 @@ export default { ...@@ -243,35 +193,49 @@ export default {
::v-deep.searchWrap { ::v-deep.searchWrap {
height: 30px; height: 30px;
margin-bottom: 10px; margin-bottom: 10px;
.el-input__inner { .el-input__inner {
height: 30px; height: 30px;
} }
.el-input__icon { .el-input__icon {
line-height: 30px; line-height: 30px;
} }
.btnContainer { .btnContainer {
text-align: right; text-align: right;
padding-right: 10px; padding-right: 10px;
} }
.searchBtn { .searchBtn {
font-size: 12px; font-size: 12px;
padding: 8px 10px; padding: 8px 10px;
} }
} }
::v-deep.yqdTableContainer { ::v-deep.yqdTableContainer {
.el-table .cell { .el-table .cell {
padding: 0 10px; padding: 0 10px;
} }
// padding-right: 3px; // padding-right: 3px;
.el-table__body-wrapper { .el-table__body-wrapper {
.el-table__row td:nth-child(1) { .el-table__row td:nth-child(1) {
border-left: 1px solid #ebeef5; border-left: 1px solid #ebeef5;
} }
.el-table__row td:nth-last-child(1) { .el-table__row td:nth-last-child(1) {
border-right: 1px solid #ebeef5; border-right: 1px solid #ebeef5;
} }
} }
.select {
.el-tag {
width: auto;
}
}
} }
.tips { .tips {
margin-top: 10px; margin-top: 10px;
font-size: 12px; font-size: 12px;
......
...@@ -9,12 +9,8 @@ ...@@ -9,12 +9,8 @@
<div class="selectContainer"> <div class="selectContainer">
<div>选择日期</div> <div>选择日期</div>
<div class="daySelect"> <div class="daySelect">
<el-date-picker v-model="dateValue" <el-date-picker v-model="dateValue" type="date" :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日"
type="date" value-format="yyyy-MM-dd" placeholder="选择日期" />
:picker-options="pickerOptions"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
placeholder="选择日期" />
<!-- <el-select v-model="model" <!-- <el-select v-model="model"
placeholder=""> placeholder="">
<el-option v-for="item in options" <el-option v-for="item in options"
...@@ -25,9 +21,7 @@ ...@@ -25,9 +21,7 @@
</el-select> --> </el-select> -->
</div> </div>
<!-- --> <!-- -->
<el-button type="primary" <el-button type="primary" @click="exportDailyReport" :loading="exportDailyReportBtn"
@click="exportDailyReport"
:loading="exportDailyReportBtn"
class="exportBtn">导出日报</el-button> class="exportBtn">导出日报</el-button>
<!-- <span class="exportBtn"> <!-- <span class="exportBtn">
<auth-button category="Button" <auth-button category="Button"
...@@ -35,15 +29,13 @@ ...@@ -35,15 +29,13 @@
</span> --> </span> -->
</div> </div>
<div class="inputTargetBtn"> <div class="inputTargetBtn">
<div @click="goCheck" <div @click="goCheck" style="margin-right: 32px;"><i class="el-icon-chat-round"></i>查看企微推送对象</div>
style="margin-right: 32px;"><i class="el-icon-chat-round"></i>查看企微推送对象</div> <div @click="outputVisible = true"><i class="el-icon-edit"></i>编辑单店信息</div>
<div @click="outputVisible = true"><i class="el-icon-edit"></i>输入单店产值目标</div>
</div> </div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
<outputValueDialog v-if="outputVisible" <outputValueDialog v-if="outputVisible" :is-show.sync="outputVisible" />
:is-show.sync="outputVisible" />
</el-row> </el-row>
</template> </template>
...@@ -138,6 +130,7 @@ export default { ...@@ -138,6 +130,7 @@ export default {
display: flex; display: flex;
height: 30px; height: 30px;
font-size: 14px; font-size: 14px;
.reportTips { .reportTips {
font-size: 20px; font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
...@@ -146,29 +139,36 @@ export default { ...@@ -146,29 +139,36 @@ export default {
padding-right: 25px; padding-right: 25px;
border-right: 1px solid #dcdfe6; border-right: 1px solid #dcdfe6;
} }
.selectContainer { .selectContainer {
display: flex; display: flex;
align-items: center; align-items: center;
padding-left: 25px; padding-left: 25px;
.exportBtn { .exportBtn {
font-size: 12px; font-size: 12px;
padding: 8px 10px; padding: 8px 10px;
} }
} }
.daySelect { .daySelect {
margin: 0 8px; margin: 0 8px;
.el-input__inner { .el-input__inner {
height: 30px; height: 30px;
} }
.el-input__icon { .el-input__icon {
line-height: 30px; line-height: 30px;
} }
} }
.inputTargetBtn { .inputTargetBtn {
display: flex; display: flex;
margin-left: auto; margin-left: auto;
line-height: 30px; line-height: 30px;
cursor: pointer; cursor: pointer;
.el-icon-edit, .el-icon-edit,
.el-icon-chat-round { .el-icon-chat-round {
margin-right: 5px; margin-right: 5px;
......
...@@ -4,24 +4,20 @@ ...@@ -4,24 +4,20 @@
<div class="edit-box"> <div class="edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true" <el-form label-width="100px"
> :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index"> <el-row v-for="(item, index) in detailFormDataRow"
<el-form-item :key="index">
v-for="(subItem, subIndex) in item.rowList" <el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex" :key="subIndex"
:label="subItem.label" :label="subItem.label"
class="row-item" class="row-item">
> <span class="detail-txt ellipsis-1"
<span :title="detailForm[subItem.name]">{{
class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]"
>{{
detailForm[subItem.name] detailForm[subItem.name]
? detailForm[subItem.name] + (subItem.suffix || "") ? detailForm[subItem.name] + (subItem.suffix || "")
: "-" : "-"
}}</span }}</span>
>
</el-form-item> </el-form-item>
</el-row> </el-row>
<template v-if="detailForm.formDescribe"> <template v-if="detailForm.formDescribe">
...@@ -33,24 +29,23 @@ ...@@ -33,24 +29,23 @@
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p> <p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
:inline="true">
<el-form-item label="物流信息"> <el-form-item label="物流信息">
<span <span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{
>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{
detailForm.deliveryNumber detailForm.deliveryNumber
}}</span }}</span>
>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-if="orderGoods.length" class="p-l-40"> <div v-if="orderGoods.length"
class="p-l-40">
<table class="show-table"> <table class="show-table">
<tbody> <tbody>
<tr <tr v-for="(item, index) in orderGoods"
v-for="(item, index) in orderGoods"
:key="index" :key="index"
style="height: 70px" style="height: 70px">
> <td><img :src="item.goodsImage"
<td><img :src="item.goodsImage" class="img-60" /></td> class="img-60" /></td>
<td>{{ item.goodsName }}</td> <td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td> <td>{{ item.specificationData }}</td>
<td> <td>
...@@ -59,41 +54,41 @@ ...@@ -59,41 +54,41 @@
}}元 * {{ item.goodsNumber }} }}元 * {{ item.goodsNumber }}
</td> </td>
</tr> </tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px"> <tr v-if="detailForm.subOrderCoupon"
<td style="text-align: left" colspan="3">优惠券</td> style="height: 40px">
<td style="text-align: left"
colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td> <td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>
<div class="container edit-container" v-if="orderRefund"> <div class="container edit-container"
v-if="orderRefund">
<p class="edit-title">售后信息</p> <p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
<el-row v-for="(item, index) in afterInfoDataRow" :key="index"> :inline="true">
<el-form-item <el-row v-for="(item, index) in afterInfoDataRow"
v-for="(subItem, subIndex) in item.rowList" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex" :key="subIndex"
:label="subItem.label" :label="subItem.label">
> <span class="detail-txt ellipsis-1"
<span :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || "-" }}</span>
class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]"
>{{ orderRefund[subItem.name] || "-" }}</span
>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="form-img"> <div class="form-img">
<el-form label-width="100px" :inline="true"> <el-form label-width="100px"
:inline="true">
<el-form-item label="售后凭证"> <el-form-item label="售后凭证">
<div class="flex"> <div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index"> <span v-for="(item, index) in orderRefund.imgUrls"
<el-image :key="index">
class="img-60 comment-img" <el-image class="img-60 comment-img"
:src="item" :src="item"
:preview-src-list="[item]" :preview-src-list="[item]"></el-image>
></el-image>
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -102,7 +97,8 @@ ...@@ -102,7 +97,8 @@
</div> </div>
</div> </div>
<!-- <GLFooter> --> <!-- <GLFooter> -->
<el-button @click="handleCancel" size="medium">取消</el-button> <el-button @click="handleCancel"
size="medium">取消</el-button>
<!-- </GLFooter> --> <!-- </GLFooter> -->
</div> </div>
</template> </template>
...@@ -182,7 +178,7 @@ export default { ...@@ -182,7 +178,7 @@ export default {
} }
}, },
created() {}, created() { },
mounted() { mounted() {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
...@@ -430,7 +426,7 @@ export default { ...@@ -430,7 +426,7 @@ export default {
} }
.detail-txt { .detail-txt {
display: inline-block; display: inline-block;
width: 220px; width: 320px;
} }
.order-detail .show-table > tbody > tr > td { .order-detail .show-table > tbody > tr > td {
text-align: center; text-align: center;
......
...@@ -671,7 +671,8 @@ export default { ...@@ -671,7 +671,8 @@ export default {
constructionFlag: '', constructionFlag: '',
channelType: '', channelType: '',
businessModel: '', businessModel: '',
subShopMerchantId: '' subShopMerchantId: '',
sourceList: ''
} }
this.baseData.storeIdList = [] this.baseData.storeIdList = []
this.getOptionsList() this.getOptionsList()
......
...@@ -31,15 +31,15 @@ export default { ...@@ -31,15 +31,15 @@ export default {
activeName: "1", activeName: "1",
tabPaneList: [ tabPaneList: [
{ {
label: "1.1精品升级", label: "精品升级",
name: "1" name: "1"
}, },
{ {
label: "1.3众筹订单", label: "售后众筹",
name: "2" name: "2"
}, },
{ {
label: "2.0车损升级", label: "会员权益/升级",
name: "3" name: "3"
} }
], ],
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="label">规格:</div> <div class="label">规格:</div>
<div class="itemCon"> <div class="itemCon">
<div class="skuItem one-line-ellipsis pointer" :class="{ active: index === selectIndex }" <div class="skuItem one-line-ellipsis pointer" :class="{ active: index === selectIndex }"
v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" v-for="(item, index) in goodsInfo.upgradeGoodsList " :key="index"
@click="selectIndex = index; setHandleItemInfo(item)">{{ item.upgradeGoodsName }} @click="selectIndex = index; setHandleItemInfo(item)">{{ item.upgradeGoodsName }}
</div> </div>
</div> </div>
...@@ -27,23 +27,28 @@ ...@@ -27,23 +27,28 @@
<div class="munCom"> <div class="munCom">
<div class="label">数量:</div> <div class="label">数量:</div>
<div class="munItem"> <div class="munItem">
<el-input-number v-model="handleItemInfo.goodsNumber" :min="1" :max="9999"></el-input-number> <el-input-number v-model=" handleItemInfo.goodsNumber " :min=" 1 " :max=" 9999 "></el-input-number>
</div> </div>
<div class="tips"> <div class="tips">
<!-- goodsItem.goodsType == 1 --> <!-- goodsItem.goodsType == 1 -->
{{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷=${goodsInfo.convertedValue || 30}米)` : '件' }} {{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷 = ${ goodsInfo.convertedValue || 30 } 米)` : '件' }}
</div> </div>
</div> </div>
<el-button class="carBtn" icon="carIcon" type="primary" @click="updateCarShopping">加入购物车</el-button> <el-button class="carBtn" icon="carIcon" type="primary" @click=" updateCarShopping ">加入购物车</el-button>
</div> </div>
<!-- <i class="carIcon"></i> --> <!-- <i class="carIcon"></i> -->
</div> </div>
<div class="table" v-if=" tableInfo.length ">
<h3>适用门店</h3>
<d2-table :has-num=" false " :has-page=" false " :table-params=" tableParams " :table-data=" tableInfo ">
</d2-table>
</div>
<h3>产品详情</h3> <h3>产品详情</h3>
<div class="goodsDescList"> <div class="goodsDescList">
<div class="goodsDescItem" v-for="(item, index) in goodsInfo.goodsDescList" :key="index"> <div class="goodsDescItem" v-for="( item, index ) in goodsInfo.goodsDescList " :key=" index ">
<img :src="item.content" v-if="item.resType == 1" class="productDetailsImg" alt=""> <img :src=" item.content " v-if=" item.resType == 1 " class="productDetailsImg" alt="">
<!-- <div class="goodsDescItem__title">{{ item.title }}</div> --> <!-- <div class="goodsDescItem__title">{{ item.title }}</div> -->
<div v-if="item.resType == 2" class="goodsDescItem__content" v-html="item.content"></div> <div v-if=" item.resType == 2 " class="goodsDescItem__content" v-html=" item.content "></div>
</div> </div>
</div> </div>
...@@ -92,6 +97,22 @@ export default { ...@@ -92,6 +97,22 @@ export default {
} }
}, },
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableColumns: [{
label: '商户名称',
prop: 'merchantName'
}, {
label: '商户号',
prop: 'merchantId'
}, {
label: '商品别名',
prop: 'goodsAlias'
}]
},
tableInfo: [],
goodsInfo: {}, goodsInfo: {},
selectIndex: 0, selectIndex: 0,
handleItemInfo: { handleItemInfo: {
...@@ -133,6 +154,7 @@ export default { ...@@ -133,6 +154,7 @@ export default {
getGoodsDetail() { getGoodsDetail() {
getProductInfo({ id: this.goodsId }).then(res => { getProductInfo({ id: this.goodsId }).then(res => {
this.goodsInfo = res this.goodsInfo = res
// 调试用 // 调试用
// for (let index = 0; index < 12; index++) { // for (let index = 0; index < 12; index++) {
// this.goodsInfo.upgradeGoodsList[index] = this.goodsInfo.upgradeGoodsList[0] // this.goodsInfo.upgradeGoodsList[index] = this.goodsInfo.upgradeGoodsList[0]
...@@ -150,6 +172,8 @@ export default { ...@@ -150,6 +172,8 @@ export default {
upgradeGoodsId: id, upgradeGoodsId: id,
purchasePrice purchasePrice
}) })
console.log(item)
this.tableInfo = item.merchantGoodsInfo.filter(item => item.goodsAlias)
}, },
handleDetailClose() { handleDetailClose() {
......
...@@ -69,6 +69,10 @@ export default { ...@@ -69,6 +69,10 @@ export default {
{ {
label: '商品名称', label: '商品名称',
prop: 'upgradeGoodsName' prop: 'upgradeGoodsName'
},
{
label: '商品编码',
prop: 'type'
}, },
{ {
......
<!-- 采购订单 --> <!-- 采购订单 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
<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" <el-button :id="tableParams.btnId" size="small" type="primary" handle>
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@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" <span slot="left" v-if="!userInfo.beSuper && userInfo.beYQMerchant">
v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<!-- <auth-button category="Button" /> --> <!-- <auth-button category="Button" /> -->
<auth-button category="Button" /> <auth-button category="Button" />
</span> </span>
<span> <span>
<el-button type="primary" <el-button type="primary" size="mini" @click="handleExport">
size="mini"
@click="handleExport">
导出 导出
</el-button> </el-button>
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseOrderTable" <d2-table ref="purchaseOrderTable" :search-form="tableSearchForm" :table-params="tableParams"
:search-form="tableSearchForm" :table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:table-params="tableParams" <div slot="auth-button" slot-scope="scope">
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090102']" />
:show-btn-ids="['9090102']" />
</span> </span>
<!-- 取消 --> <!-- 取消 -->
<span style="margin-right: 10px;" <span style="margin-right: 10px;"
v-show="scope.scope.status == 1 && !userInfo.beSuper && userInfo.beYQMerchant"> v-show="scope.scope.status == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090103']" />
:show-btn-ids="['9090103']" />
</span> </span>
<!-- 入库 --> <!-- 入库 -->
<span v-show="scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant"> <span v-show="scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090104']" />
:show-btn-ids="['9090104']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" <orderDeatilDialog :visible.sync="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
:paramsObj="paramsObj"></orderDeatilDialog>
</d2-container> </d2-container>
</template> </template>
...@@ -195,7 +175,7 @@ export default { ...@@ -195,7 +175,7 @@ export default {
label: '发货状态', label: '发货状态',
prop: 'deliveryStatus', prop: 'deliveryStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultDeliveryStatusOptions.find(item => item.id == cellValue.deliveryStatus).label || '-' return defaultDeliveryStatusOptions.find(item => item.id == cellValue.deliveryStatus)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
...@@ -250,13 +230,13 @@ export default { ...@@ -250,13 +230,13 @@ export default {
label: '订单状态', label: '订单状态',
prop: 'status', prop: 'status',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-' return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot', 3: 'ashSpot'
}[cellValue.status] }[cellValue.status]
} }
} }
...@@ -281,7 +261,7 @@ export default { ...@@ -281,7 +261,7 @@ export default {
mounted() { mounted() {
getMerchantList({}).then(res => { getMerchantList({}).then(res => {
let opt = { const opt = {
merchantNo: '', merchantNo: '',
merchantName: '全部' merchantName: '全部'
} }
...@@ -414,5 +394,4 @@ export default { ...@@ -414,5 +394,4 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -2,74 +2,46 @@ ...@@ -2,74 +2,46 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <el-form :inline="true" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules"
style="padding: 10px 20px;">
<el-form :inline="true"
:model="editAllocationForm"
ref="editAllocationFormRef"
:rules="formRules"
class="demo-form-inline"> class="demo-form-inline">
<el-form-item label="调出门店:" <el-form-item label="调出门店:" prop="callOutYqMerchantId">
prop="callOutYqMerchantId"> <el-select v-model="editAllocationForm.callOutYqMerchantId" style="width:300px">
<el-select v-model="editAllocationForm.callOutYqMerchantId" <el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName"
style="width:300px">
<el-option v-for="item in callOutYqMerchantList"
:key="item.merchantNo"
:label="item.merchantName"
:value="item.merchantNo" /> :value="item.merchantNo" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="调入门店:" <el-form-item label="调入门店:" prop="callInYqMerchantId">
prop="callInYqMerchantId"> <el-select v-model="editAllocationForm.callInYqMerchantId" filterable style="width:300px">
<el-select v-model="editAllocationForm.callInYqMerchantId" <el-option v-for="item in callInYqMerchantList" :key="item.merchantId" :label="item.merchantName"
filterable
style="width:300px">
<el-option v-for="item in callInYqMerchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId" /> :value="item.merchantId" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<div class="header" <div class="header" slot="header" style="padding: 15px 0;">
slot="header"
style="padding: 15px 0;">
<!-- <d2-search ref="showSearch" <!-- <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" /> --> :form-data="showFormData" /> -->
<div> <div>
<el-input v-model="searchForm.searchName" <el-input v-model="searchForm.searchName" style="width:200px;" placeholder="请输入商品名称/系列" maxlength="20"
style="width:200px;"
placeholder="请输入商品名称/系列"
maxlength="20"
clearable /> clearable />
<!-- <el-button :id="tableParams.btnId" <!-- <el-button :id="tableParams.btnId"
size="small" size="small"
type="primary"> type="primary">
查询 查询
</el-button> --> </el-button> -->
<el-button @click="handleSearch" <el-button @click="handleSearch" size="small" type="primary" style="marginLeft:15px">
size="small"
type="primary"
style="marginLeft:15px">
查询 查询
</el-button> </el-button>
</div> </div>
</div> </div>
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="auth-button" <div slot="auth-button" slot-scope="scope">
slot-scope="scope"> <el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">
<el-button type="text"
@click="allocation(scope.scope)"
:disabled="setDisabled(scope.scope)">
选择 选择
</el-button> </el-button>
</div> </div>
...@@ -77,10 +49,7 @@ ...@@ -77,10 +49,7 @@
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<p>调拨确认单</p> <p>调拨确认单</p>
<d2-table ref="recordTable2" <d2-table ref="recordTable2" :table-data="chooseDataList" :table-params="tableParams2" :has-page="false">
:table-data="chooseDataList"
:table-params="tableParams2"
:hasPage="false">
<!-- <template slot="profitAndLoss" <!-- <template slot="profitAndLoss"
slot-scope="scope"> slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0"> <span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
...@@ -94,28 +63,20 @@ ...@@ -94,28 +63,20 @@
</span> </span>
<span v-else>-</span> <span v-else>-</span>
</template> --> </template> -->
<div slot="auth-button" <div slot="auth-button" slot-scope="scope">
slot-scope="scope"> <el-button type="text" @click="cancelAllocation(scope.row, scope.$index)">
<el-button type="text"
@click="cancelAllocation(scope.row,scope.$index)">
取消 取消
</el-button> </el-button>
</div> </div>
</d2-table> </d2-table>
</div> </div>
<d2-form ref="addAllocationForm" <d2-form ref="addAllocationForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef"
:origin-data="editData" @handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose">
:form-list="editForm"
form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose">
</d2-form> </d2-form>
</d2-container> </d2-container>
<!-- 调拨 --> <!-- 调拨 -->
<allocation-num-dialog :allocation-num-visible="allocationNumVisible" <allocation-num-dialog :allocation-num-visible="allocationNumVisible" :record-info="recordInfo"
:recordInfo="recordInfo" v-if="allocationNumVisible" @dialogClose="dialogClose" />
v-if="allocationNumVisible"
@dialogClose="dialogClose" />
</div> </div>
</template> </template>
...@@ -161,6 +122,10 @@ export default { ...@@ -161,6 +122,10 @@ export default {
prop: 'goodsName', prop: 'goodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'sourceMaterialName', prop: 'sourceMaterialName',
width: '250px' width: '250px'
...@@ -190,6 +155,10 @@ export default { ...@@ -190,6 +155,10 @@ export default {
prop: 'goodsName', prop: 'goodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'sourceMaterialName', prop: 'sourceMaterialName',
width: '250px' width: '250px'
...@@ -249,7 +218,7 @@ export default { ...@@ -249,7 +218,7 @@ export default {
message: '请选择调入门店', message: '请选择调入门店',
trigger: 'change' trigger: 'change'
}] }]
}, }
} }
}, },
computed: { computed: {
...@@ -259,7 +228,7 @@ export default { ...@@ -259,7 +228,7 @@ export default {
}, },
mounted() { mounted() {
this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
//调入门店 // 调入门店
yqRelatedList({ includeSelf: false }).then(res => { yqRelatedList({ includeSelf: false }).then(res => {
this.callInYqMerchantList = res this.callInYqMerchantList = res
// this.getOptionsList() // this.getOptionsList()
...@@ -308,7 +277,7 @@ export default { ...@@ -308,7 +277,7 @@ export default {
this.allocationNumVisible = true this.allocationNumVisible = true
}, },
//设置禁选 // 设置禁选
setDisabled(row) { setDisabled(row) {
const index = this.chooseDataList.findIndex(item => item.id == row.id) const index = this.chooseDataList.findIndex(item => item.id == row.id)
if (index == -1) { if (index == -1) {
...@@ -320,7 +289,7 @@ export default { ...@@ -320,7 +289,7 @@ export default {
dialogClose(chooseData) { dialogClose(chooseData) {
this.allocationNumVisible = !this.allocationNumVisible this.allocationNumVisible = !this.allocationNumVisible
console.log(chooseData); console.log(chooseData)
if (chooseData) { if (chooseData) {
this.chooseDataList.push(chooseData) this.chooseDataList.push(chooseData)
} }
...@@ -368,7 +337,7 @@ export default { ...@@ -368,7 +337,7 @@ export default {
handleAddClose(isRefresh = false) { handleAddClose(isRefresh = false) {
this.close({ tagName: '/addAllocation' }) this.close({ tagName: '/addAllocation' })
this.$router.push({ name: 'allocationList' }) this.$router.push({ name: 'allocationList' })
}, }
} }
} }
...@@ -380,6 +349,7 @@ export default { ...@@ -380,6 +349,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
<!-- 调拨详情弹窗弹窗 --> <!-- 调拨详情弹窗弹窗 -->
<template> <template>
<d2-dialog title="详细信息" <d2-dialog title="详细信息" :is-visible="allocationDetailVisible" class="allocationDetailDailog" width="70%"
:is-visible="allocationDetailVisible" :no-cancel="true" btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
class="allocationDetailDailog"
width="70%"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<div> <div>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :search-select-obj="searchSelectObj"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData" /> :form-data="showFormData" />
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
</d2-table> </d2-table>
</div> </div>
...@@ -58,9 +44,13 @@ export default { ...@@ -58,9 +44,13 @@ export default {
tableOption: false, tableOption: false,
tableColumns: [{ tableColumns: [{
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName'
// width: '200px' // width: '200px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, { }, {
...@@ -77,7 +67,7 @@ export default { ...@@ -77,7 +67,7 @@ export default {
}, },
baseData: { baseData: {
}, }
} }
}, },
...@@ -89,7 +79,7 @@ export default { ...@@ -89,7 +79,7 @@ export default {
recordInfo: { recordInfo: {
type: Object, type: Object,
default: () => { } default: () => { }
}, }
}, },
computed: { computed: {
...@@ -127,6 +117,7 @@ export default { ...@@ -127,6 +117,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.allocationDetailDailog .el-dialog { .allocationDetailDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
......
...@@ -2,21 +2,13 @@ ...@@ -2,21 +2,13 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
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" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,14 +17,9 @@ ...@@ -25,14 +17,9 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -74,6 +61,12 @@ export default { ...@@ -74,6 +61,12 @@ export default {
maxlength: '20', maxlength: '20',
isClear: true isClear: true
}, { }, {
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
}, {
label: '系列', label: '系列',
name: 'goodsSeries', name: 'goodsSeries',
type: 'input', type: 'input',
...@@ -106,6 +99,10 @@ export default { ...@@ -106,6 +99,10 @@ export default {
prop: 'upgradeGoodsName', prop: 'upgradeGoodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'goodsSeries', prop: 'goodsSeries',
width: '250px' width: '250px'
...@@ -135,7 +132,7 @@ export default { ...@@ -135,7 +132,7 @@ export default {
baseData: { baseData: {
productTypeList: [], productTypeList: [],
yqMerchantList: [] yqMerchantList: []
}, }
} }
}, },
computed: { computed: {
...@@ -203,7 +200,7 @@ export default { ...@@ -203,7 +200,7 @@ export default {
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
}, },
//去补货 // 去补货
gotoReplenishment() { gotoReplenishment() {
// this.close({ tagName: '/orderList' }) // this.close({ tagName: '/orderList' })
this.$router.push({ name: 'purchasingMall' }) this.$router.push({ name: 'purchasingMall' })
...@@ -222,9 +219,7 @@ export default { ...@@ -222,9 +219,7 @@ export default {
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
}, }
} }
} }
...@@ -236,6 +231,7 @@ export default { ...@@ -236,6 +231,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -103,6 +103,10 @@ export default { ...@@ -103,6 +103,10 @@ export default {
prop: 'goodsName', prop: 'goodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'sourceMaterialName', prop: 'sourceMaterialName',
width: '250px' width: '250px'
...@@ -131,6 +135,11 @@ export default { ...@@ -131,6 +135,11 @@ export default {
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
width: '160px' width: '160px'
},
{
label: '商品编码',
prop: 'productCode',
width: '250px'
}, { }, {
label: '系列', label: '系列',
prop: 'sourceMaterialName', prop: 'sourceMaterialName',
......
<!-- 盘点详情弹窗弹窗 --> <!-- 盘点详情弹窗弹窗 -->
<template> <template>
<d2-dialog title="详细信息" <d2-dialog title="详细信息" :is-visible="inventoryDetailVisible" class="inventoryDetailDailog" width="70%" :no-cancel="true"
:is-visible="inventoryDetailVisible" btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
class="inventoryDetailDailog"
width="70%"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<div> <div>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :search-select-obj="searchSelectObj"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData" /> :form-data="showFormData" />
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<template slot="profitAndLoss" <template slot="profitAndLoss" slot-scope="scope">
slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0"> <span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0" <span v-if="parseFloat(scope.scope.profitAndLoss) > 0" style="color:blue">{{ '+' +
style="color:blue">{{ '+' + parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" : '件') }}</span>
style="color:red">{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> <span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" style="color:red">{{
<span parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span> : '件') }}</span>
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span> </span>
</span> </span>
<span v-else>-</span> <span v-else>-</span>
...@@ -72,9 +59,13 @@ export default { ...@@ -72,9 +59,13 @@ export default {
tableOption: false, tableOption: false,
tableColumns: [{ tableColumns: [{
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName'
// width: '200px' // width: '200px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'sourceMaterialName' prop: 'sourceMaterialName'
}, { }, {
...@@ -104,7 +95,7 @@ export default { ...@@ -104,7 +95,7 @@ export default {
}, },
baseData: { baseData: {
}, }
} }
}, },
...@@ -116,7 +107,7 @@ export default { ...@@ -116,7 +107,7 @@ export default {
recordInfo: { recordInfo: {
type: Object, type: Object,
default: () => { } default: () => { }
}, }
}, },
computed: { computed: {
...@@ -139,7 +130,6 @@ export default { ...@@ -139,7 +130,6 @@ export default {
}) })
}, },
handleClose() { handleClose() {
this.$emit('dialogClose') this.$emit('dialogClose')
} }
...@@ -154,6 +144,7 @@ export default { ...@@ -154,6 +144,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.inventoryDetailDailog .el-dialog { .inventoryDetailDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
......
...@@ -2,21 +2,13 @@ ...@@ -2,21 +2,13 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
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" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,14 +17,9 @@ ...@@ -25,14 +17,9 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -90,7 +77,15 @@ export default { ...@@ -90,7 +77,15 @@ export default {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
}, { },
{
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
},
{
label: '出库门店', label: '出库门店',
name: 'yqMerchantId', name: 'yqMerchantId',
type: 'select', type: 'select',
...@@ -98,7 +93,16 @@ export default { ...@@ -98,7 +93,16 @@ export default {
optionId: 'merchantNo', optionId: 'merchantNo',
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'yqMerchantList' optionsName: 'yqMerchantList'
}, { },
{
label: '使用门店',
name: 'storeUsage',
type: 'input',
maxlength: '20',
isClear: true
},
{
label: '所属分类', label: '所属分类',
name: 'goodsType', name: 'goodsType',
type: 'select', type: 'select',
...@@ -136,6 +140,10 @@ export default { ...@@ -136,6 +140,10 @@ export default {
prop: 'upgradeGoodsName', prop: 'upgradeGoodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'goodsSeries', prop: 'goodsSeries',
width: '250px' width: '250px'
...@@ -169,6 +177,14 @@ export default { ...@@ -169,6 +177,14 @@ export default {
label: '出库门店', label: '出库门店',
prop: 'yqMerchantName', prop: 'yqMerchantName',
width: '200px' width: '200px'
}, {
// label: '适用门店',
label: '使用门店',
prop: 'storeUsage',
width: '200px',
formatter: cellValue => {
return cellValue.storeUsage || '-'
}
} }
] ]
}, },
...@@ -189,7 +205,7 @@ export default { ...@@ -189,7 +205,7 @@ export default {
], ],
productTypeList: [], productTypeList: [],
yqMerchantList: [] yqMerchantList: []
}, }
} }
}, },
...@@ -209,6 +225,7 @@ export default { ...@@ -209,6 +225,7 @@ export default {
// 获取当前登录账号可见的园区店列表 // 获取当前登录账号可见的园区店列表
getyqMerchantList({}).then(res => { getyqMerchantList({}).then(res => {
this.baseData.yqMerchantList = res this.baseData.yqMerchantList = res
this.baseData.storeUsageList = res
this.getOptionsList() this.getOptionsList()
}) })
}, },
...@@ -279,9 +296,7 @@ export default { ...@@ -279,9 +296,7 @@ export default {
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
}, }
} }
} }
...@@ -293,6 +308,7 @@ export default { ...@@ -293,6 +308,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -2,21 +2,13 @@ ...@@ -2,21 +2,13 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
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" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,21 +17,14 @@ ...@@ -25,21 +17,14 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
<!-- 查看 --> <!-- 查看 -->
<stock-month-dialog :stock-month-visible="stockMonthVisible" <stock-month-dialog :stock-month-visible="stockMonthVisible" :record-info="recordInfo" v-if="stockMonthVisible"
:recordInfo="recordInfo"
v-if="stockMonthVisible"
@dialogClose="dialogClose" /> @dialogClose="dialogClose" />
</div> </div>
</template> </template>
...@@ -79,6 +64,13 @@ export default { ...@@ -79,6 +64,13 @@ export default {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
},
{
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
}, { }, {
label: '系列', label: '系列',
name: 'goodsSeries', name: 'goodsSeries',
...@@ -112,6 +104,10 @@ export default { ...@@ -112,6 +104,10 @@ export default {
prop: 'upgradeGoodsName', prop: 'upgradeGoodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'goodsSeries', prop: 'goodsSeries',
width: '250px' width: '250px'
...@@ -150,7 +146,7 @@ export default { ...@@ -150,7 +146,7 @@ export default {
}, },
stockMonthVisible: false, stockMonthVisible: false,
recordInfo: null, recordInfo: null
} }
}, },
computed: { computed: {
...@@ -246,7 +242,7 @@ export default { ...@@ -246,7 +242,7 @@ export default {
// if (flag) { // if (flag) {
// this.$refs.recordTable.refreshTable() // this.$refs.recordTable.refreshTable()
// } // }
}, }
} }
} }
...@@ -258,6 +254,7 @@ export default { ...@@ -258,6 +254,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -2,21 +2,13 @@ ...@@ -2,21 +2,13 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
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" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,14 +17,9 @@ ...@@ -25,14 +17,9 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -84,13 +71,22 @@ export default { ...@@ -84,13 +71,22 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'storageTypeList' optionsName: 'storageTypeList'
}, { },
{
label: '商品名称', label: '商品名称',
name: 'upgradeGoodsName', name: 'upgradeGoodsName',
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
isClear: true isClear: true
}, { },
{
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
},
{
label: '入库门店', label: '入库门店',
name: 'yqMerchantId', name: 'yqMerchantId',
type: 'select', type: 'select',
...@@ -136,6 +132,10 @@ export default { ...@@ -136,6 +132,10 @@ export default {
prop: 'upgradeGoodsName', prop: 'upgradeGoodsName',
width: '160px' width: '160px'
}, { }, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列', label: '系列',
prop: 'goodsSeries', prop: 'goodsSeries',
width: '250px' width: '250px'
...@@ -188,8 +188,8 @@ export default { ...@@ -188,8 +188,8 @@ export default {
} }
], ],
productTypeList: [], productTypeList: [],
yqMerchantList: [], yqMerchantList: []
}, }
} }
}, },
computed: { computed: {
...@@ -278,9 +278,7 @@ export default { ...@@ -278,9 +278,7 @@ export default {
} }
] ]
this.actionSetDownloadList({ list, type: 'dowloadList' }) this.actionSetDownloadList({ list, type: 'dowloadList' })
}, }
} }
} }
...@@ -292,6 +290,7 @@ export default { ...@@ -292,6 +290,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -85,18 +85,18 @@ export default { ...@@ -85,18 +85,18 @@ export default {
[ [
{ {
confId: 1, confId: 1,
confLabel: '1.1精品升级' confLabel: '精品升级'
}, { }, {
confId: 2, confId: 2,
confLabel: '1.2次新车转化', confLabel: '次新车转化',
disabled: true disabled: true
}, { }, {
confId: 3, confId: 3,
confLabel: '1.3售后众筹' confLabel: '售后众筹'
}, },
{ {
confId: 0, confId: 0,
confLabel: '2.0会员权益/升级', confLabel: '会员权益/升级',
// disabled: true // disabled: true
} }
] ]
......
<!-- 对账 --> <!-- 对账 -->
<template> <template>
<div> <div>
<!-- shopMerchantTotalFeeCalculateType,
shopMerchantExpenseCategoryValue,
partnerMerchantTotalFeeCalculateType,
partnerMerchantExpenseCategoryValue -->
<div class="header">
<div class="shop" v-if="formItem.shopMerchantTotalFeeCalculateType">
<span class="label">流量方总对账费用:{{ severSelectOptionsLabel[formItem.shopMerchantTotalFeeCalculateType] }}</span>
<span class="value">{{ formItem.shopMerchantExpenseCategoryValue }}{{
formItem.shopMerchantExpenseCategoryValue == 3 ? '' : '%' }}</span>
</div>
<div class="serve" v-if="formItem.partnerMerchantTotalFeeCalculateType">
<span class="label">服务商总对账费用:{{ severSelectOptionsLabel[formItem.partnerMerchantTotalFeeCalculateType] }}</span>
<span class="value">{{ formItem.partnerMerchantExpenseCategoryValue }}{{
formItem.partnerMerchantExpenseCategoryValue == 3 ? '' : '%' }}</span>
</div>
</div>
<div class="type"> <div class="type">
<template v-for="(item, index) in items"> <template v-for="(item, index) in items">
<div class="btn" :key="index + 'type'" v-if="item.groupType == 1" :class="{act:activeType==index}" @click="handleType(index)">全部分类</div> <div class="btn" :key="index + 'type'" v-if="item.groupType == 1" :class="{ act: activeType == index }"
<div class="btn" :key="index + 'type'" v-if="item.groupType == 2" :class="{act:activeType==index}" @click="handleType(index)">特殊品类{{ index }}</div> @click="handleType(index)">全部分类</div>
<div class="btn" :key="index + 'type'" v-if="item.groupType == 2" :class="{ act: activeType == index }"
@click="handleType(index)">特殊品类{{ index }}</div>
</template> </template>
</div> </div>
<div class="content" v-for="(item, index) in items" :key="index + 'reconc'"> <div class="content" v-for="(item, index) in items" :key="index + 'reconc'">
...@@ -18,7 +36,7 @@ ...@@ -18,7 +36,7 @@
<div class="msg"> <div class="msg">
<div class="msg-title">分账品类:</div> <div class="msg-title">分账品类:</div>
<div class="msg-val"> <div class="msg-val">
{{ formatGoodsTypeGroupRelations(item.groupType,item.goodsTypeGroupRelations) }} {{ formatGoodsTypeGroupRelations(item.groupType, item.goodsTypeGroupRelations) }}
</div> </div>
</div> </div>
</div> </div>
...@@ -40,7 +58,8 @@ ...@@ -40,7 +58,8 @@
<div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules1'"> <div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules1'">
<div class="detail" v-if="childItem.targetType == 1"> <div class="detail" v-if="childItem.targetType == 1">
<div class="detail-i">{{ childItem.expenseCategoryName }}</div> <div class="detail-i">{{ childItem.expenseCategoryName }}</div>
<div class="detail-i">{{ childItem.calculateMode == 1 ? '按类目计算' : childItem.calculateMode == 2 ? '按整单计算' : '-' }}</div> <div class="detail-i">{{ childItem.calculateMode == 1 ? '按类目计算' : childItem.calculateMode == 2 ? '按整单计算'
: '-' }}</div>
<div class="detail-i">{{ childItem.ruleDescription }}</div> <div class="detail-i">{{ childItem.ruleDescription }}</div>
<div class="detail-i">{{ childItem.targetMerchantName }}</div> <div class="detail-i">{{ childItem.targetMerchantName }}</div>
<div class="detail-i">{{ childItem.targetMerchantId }}</div> <div class="detail-i">{{ childItem.targetMerchantId }}</div>
...@@ -64,13 +83,11 @@ ...@@ -64,13 +83,11 @@
<div class="cost">对账对象</div> <div class="cost">对账对象</div>
<div class="cost">商户号</div> <div class="cost">商户号</div>
</div> </div>
<div v-for="(childItem, idx) in item.expenseCategoryRules" <div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules2'">
:key="idx + 'expenseCategoryRules2'"> <div class="detail" v-if="childItem.targetType == 2">
<div
class="detail"
v-if="childItem.targetType == 2">
<div class="detail-i">{{ childItem.expenseCategoryName }}</div> <div class="detail-i">{{ childItem.expenseCategoryName }}</div>
<div class="detail-i">{{ childItem.calculateMode == 1 ? '按类目计算' : childItem.calculateMode == 2 ? '按整单计算' : '-' }}</div> <div class="detail-i">{{ childItem.calculateMode == 1 ? '按类目计算' : childItem.calculateMode == 2 ? '按整单计算'
: '-' }}</div>
<div class="detail-i">{{ childItem.ruleDescription }}</div> <div class="detail-i">{{ childItem.ruleDescription }}</div>
<div class="detail-i">{{ childItem.targetMerchantName }}</div> <div class="detail-i">{{ childItem.targetMerchantName }}</div>
<div class="detail-i">{{ childItem.targetMerchantId }}</div> <div class="detail-i">{{ childItem.targetMerchantId }}</div>
...@@ -93,21 +110,29 @@ ...@@ -93,21 +110,29 @@
</template> </template>
<script> <script>
import {
severSelectOptionsLabel
} from "@/common/constant/merchant"
export default { export default {
name: "Reconciliation", name: "Reconciliation",
props: { props: {
items: { items: {
type: Array, type: Array,
default: () => [] default: () => []
},
formItem: {
type: Object,
default: () => { }
} }
}, },
data() { data() {
return { return {
activeType: 0 activeType: 0,
severSelectOptionsLabel
} }
}, },
created() {}, created() { },
mounted() {}, mounted() { },
methods: { methods: {
handleType(num) { handleType(num) {
this.activeType = num this.activeType = num
......
...@@ -2,12 +2,9 @@ ...@@ -2,12 +2,9 @@
<d2-Container> <d2-Container>
<div class="merchant-checkdetail"> <div class="merchant-checkdetail">
<div class="title"> <div class="title">
<el-tabs v-model="activeName" <el-tabs v-model="activeName" @tab-click="handleClick">
@tab-click="handleClick"> <el-tab-pane label="分账规则" name="first"></el-tab-pane>
<el-tab-pane label="分账规则" <el-tab-pane label="对账规则" name="second"></el-tab-pane>
name="first"></el-tab-pane>
<el-tab-pane label="对账规则"
name="second"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<!-- <div class="type"> <!-- <div class="type">
...@@ -22,13 +19,11 @@ ...@@ -22,13 +19,11 @@
<!-- 对账 --> <!-- 对账 -->
<template v-if="activeName == 'second'"> <template v-if="activeName == 'second'">
<reconciliation :items="checkRecordList" /> <reconciliation :form-item="checkRecordList" :items="checkRecordList.goodsTypeGroupReconciliationRules || []" />
</template> </template>
<div class="btns"> <div class="btns">
<el-button @click="handleConfirm" <el-button @click="handleConfirm" size="small" type="primary">
size="small"
type="primary">
返回 返回
</el-button> </el-button>
<!-- <el-button size="small" <!-- <el-button size="small"
...@@ -55,8 +50,7 @@ export default { ...@@ -55,8 +50,7 @@ export default {
// 分账数据 // 分账数据
checkDetailItem: {}, checkDetailItem: {},
// 对账数据 // 对账数据
checkRecordList: [] checkRecordList: {}
} }
}, },
created() { created() {
...@@ -95,7 +89,8 @@ export default { ...@@ -95,7 +89,8 @@ export default {
} }
const res = await getEffectRuleApi(params) const res = await getEffectRuleApi(params)
this.checkRecordList = res?.goodsTypeGroupReconciliationRules this.checkRecordList = res
// this.checkRecordList = res?.goodsTypeGroupReconciliationRules
// console.log('res: ', res) // console.log('res: ', res)
}, },
getRowItem() { getRowItem() {
...@@ -132,17 +127,20 @@ export default { ...@@ -132,17 +127,20 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
$color: #2a58ad; $color: #2a58ad;
.merchant-checkdetail { .merchant-checkdetail {
// height: 100%; // height: 100%;
padding-left: 20px; padding-left: 20px;
padding-right: 16px; padding-right: 16px;
padding-bottom: 20px; padding-bottom: 20px;
// overflow-y: auto; // overflow-y: auto;
.title { .title {}
}
.type { .type {
margin-top: 6px; margin-top: 6px;
display: flex; display: flex;
.btn { .btn {
width: 96px; width: 96px;
height: 40px; height: 40px;
...@@ -152,14 +150,17 @@ $color: #2a58ad; ...@@ -152,14 +150,17 @@ $color: #2a58ad;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
.act { .act {
font-weight: 500; font-weight: 500;
color: $color; color: $color;
background: #fff; background: #fff;
} }
} }
.content { .content {
background: #ffffff; background: #ffffff;
.part1 { .part1 {
.tit { .tit {
display: flex; display: flex;
...@@ -171,6 +172,7 @@ $color: #2a58ad; ...@@ -171,6 +172,7 @@ $color: #2a58ad;
color: #333333; color: #333333;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #ebebeb; border-bottom: 1px solid #ebebeb;
.line { .line {
margin-left: 16px; margin-left: 16px;
margin-right: 8px; margin-right: 8px;
...@@ -180,19 +182,24 @@ $color: #2a58ad; ...@@ -180,19 +182,24 @@ $color: #2a58ad;
border-radius: 2px; border-radius: 2px;
} }
} }
.cont { .cont {
&.cont-table { &.cont-table {
display: block; display: block;
} }
&.cont-table1 { &.cont-table1 {
padding: 16px 20px 20px; padding: 16px 20px 20px;
} }
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 16px 20px 32px; padding: 16px 20px 32px;
.mt16 { .mt16 {
margin-top: 16px; margin-top: 16px;
} }
.msg { .msg {
padding-bottom: 12px; padding-bottom: 12px;
flex: 1 0 auto; flex: 1 0 auto;
...@@ -200,6 +207,7 @@ $color: #2a58ad; ...@@ -200,6 +207,7 @@ $color: #2a58ad;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
line-height: 24px; line-height: 24px;
.msg-title { .msg-title {
width: 138px; width: 138px;
// height: 20px; // height: 20px;
...@@ -207,6 +215,7 @@ $color: #2a58ad; ...@@ -207,6 +215,7 @@ $color: #2a58ad;
color: #666666; color: #666666;
text-align: right; text-align: right;
} }
.msg-val { .msg-val {
// height: 20px; // height: 20px;
font-size: 14px; font-size: 14px;
...@@ -214,20 +223,24 @@ $color: #2a58ad; ...@@ -214,20 +223,24 @@ $color: #2a58ad;
text-align: left; text-align: left;
} }
} }
.compute { .compute {
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
.manner {
} .manner {}
.online { .online {
& + .online { &+.online {
margin-left: 44px; margin-left: 44px;
} }
color: $color; color: $color;
} }
} }
.white-table { .white-table {
margin-bottom: 16px; margin-bottom: 16px;
display: flex; display: flex;
...@@ -236,6 +249,7 @@ $color: #2a58ad; ...@@ -236,6 +249,7 @@ $color: #2a58ad;
color: #666666; color: #666666;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5;
.type1 { .type1 {
// &:first-child { // &:first-child {
// border-top: 1px solid #E5E5E5; // border-top: 1px solid #E5E5E5;
...@@ -248,62 +262,76 @@ $color: #2a58ad; ...@@ -248,62 +262,76 @@ $color: #2a58ad;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5;
box-sizing: border-box; box-sizing: border-box;
.type-name { .type-name {
text-align: right; text-align: right;
width: 90px; width: 90px;
} }
.type-val { .type-val {
flex: 1; flex: 1;
display: flex; display: flex;
color: #1d1d1d; color: #1d1d1d;
} }
.type-color { .type-color {
color: $color; color: $color;
} }
.date { .date {
margin-right: 10px; margin-right: 10px;
color: #1d1d1d; color: #1d1d1d;
} }
} }
.type2 { .type2 {
width: 66.66%; width: 66.66%;
} }
} }
.title-table { .title-table {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
border: 1px solid #e8e8ea; border: 1px solid #e8e8ea;
.head { .head {
display: flex; display: flex;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
text-align: center; text-align: center;
background: #f2f4f7; background: #f2f4f7;
.cost { .cost {
& + .cost { &+.cost {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
flex: 1; flex: 1;
} }
} }
.detail { .detail {
display: flex; display: flex;
min-height: 40px; min-height: 40px;
color: #666666; color: #666666;
border-top: 1px solid #e8e8ea; border-top: 1px solid #e8e8ea;
.detail-i { .detail-i {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
& + .detail-i {
&+.detail-i {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
flex: 1; flex: 1;
} }
} }
} }
} }
} }
// .part2 { // .part2 {
// } // }
// .part3 { // .part3 {
...@@ -313,6 +341,7 @@ $color: #2a58ad; ...@@ -313,6 +341,7 @@ $color: #2a58ad;
// .part5 { // .part5 {
// } // }
} }
.btns { .btns {
margin-top: 16px; margin-top: 16px;
display: flex; display: flex;
......
...@@ -2,24 +2,17 @@ ...@@ -2,24 +2,17 @@
<d2-Container> <d2-Container>
<div class="merchant-checkrecord"> <div class="merchant-checkrecord">
<div class="title"> <div class="title">
<el-tabs v-model="activeName" <el-tabs v-model="activeName" @tab-click="handleClick">
@tab-click="handleClick"> <el-tab-pane label="分账规则" name="first"></el-tab-pane>
<el-tab-pane label="分账规则" <el-tab-pane label="对账规则" name="second"></el-tab-pane>
name="first"></el-tab-pane>
<el-tab-pane label="对账规则"
name="second"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="account-detail" <div class="account-detail" ref="accountDetail">
ref="accountDetail">
<!-- v-resize="resetTableHeight" <!-- v-resize="resetTableHeight"
:ref="'resize' + index" --> :ref="'resize' + index" -->
<div v-if="formArray && formArray.length"> <div v-if="formArray && formArray.length">
<div v-for="(formItem, index) in formArray" <div v-for="(formItem, index) in formArray" :ref="'resize' + index" :key="index">
:ref="'resize' + index" <p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }">
:key="index">
<p class="edit-sub-title"
:class="{ 'sub-border': !formItem.show }">
<span class="label"> <span class="label">
<span>{{ formItem.formatEffectStartDate }}</span> <span>{{ formItem.formatEffectStartDate }}</span>
<span v-if="formItem.formatEffectStartDate"> - </span> <span v-if="formItem.formatEffectStartDate"> - </span>
...@@ -35,10 +28,8 @@ ...@@ -35,10 +28,8 @@
操作人: {{ formItem.updatedBy }} 操作时间: 操作人: {{ formItem.updatedBy }} 操作时间:
{{ formItem.formatUpdatedDate }} {{ formItem.formatUpdatedDate }}
</span> </span>
<span class="collapse" <span class="collapse" @click="collapseItem(index)">
@click="collapseItem(index)"> <i :class="{ move: formItem.show }" class="arrow el-icon-arrow-down" />
<i :class="{ move: formItem.show }"
class="arrow el-icon-arrow-down" />
{{ formItem.show ? "收起" : "展开" }} {{ formItem.show ? "收起" : "展开" }}
</span> </span>
</p> </p>
...@@ -55,21 +46,17 @@ ...@@ -55,21 +46,17 @@
<!-- 对账 --> <!-- 对账 -->
<template v-if="activeName == 'second'"> <template v-if="activeName == 'second'">
<reconciliation :items="formItem.typeList" /> <reconciliation :form-item="formItem" :items="formItem.typeList" />
</template> </template>
</div> </div>
</el-collapse-transition> </el-collapse-transition>
</div> </div>
</div> </div>
<div v-else <div v-else class="nothingtips">
class="nothingtips"> <img style="height: 109px; width: 109px" src="../images/empty.png" />
<img style="height: 109px; width: 109px" <p class="title" v-if="activeName == 'first'">暂无财务规则</p>
src="../images/empty.png" /> <p class="title" v-else>暂无对账规则</p>
<p class="title"
v-if="activeName == 'first'">暂无财务规则</p>
<p class="title"
v-else>暂无对账规则</p>
<p class="tips">快去设置看看~</p> <p class="tips">快去设置看看~</p>
</div> </div>
...@@ -248,10 +235,12 @@ export default { ...@@ -248,10 +235,12 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
$color: #2a58ad; $color: #2a58ad;
.merchant-checkrecord { .merchant-checkrecord {
padding-left: 20px; padding-left: 20px;
padding-right: 16px; padding-right: 16px;
padding-bottom: 20px; padding-bottom: 20px;
.account-detail { .account-detail {
// height: 400px; // height: 400px;
// height: calc(100vh - 200px); // height: calc(100vh - 200px);
...@@ -259,12 +248,14 @@ $color: #2a58ad; ...@@ -259,12 +248,14 @@ $color: #2a58ad;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
} }
.edit-sub-title { .edit-sub-title {
padding: 17px 0; padding: 17px 0;
margin: 0; margin: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
&::before { &::before {
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
...@@ -274,37 +265,46 @@ $color: #2a58ad; ...@@ -274,37 +265,46 @@ $color: #2a58ad;
padding-left: 8px; padding-left: 8px;
width: 37%; width: 37%;
} }
.labelColor { .labelColor {
color: #0947c6; color: #0947c6;
} }
.updatedInfo { .updatedInfo {
width: 40%; width: 40%;
text-align: left; text-align: left;
} }
.collapse { .collapse {
padding-right: 20px; padding-right: 20px;
color: #0947c6; color: #0947c6;
cursor: pointer; cursor: pointer;
.arrow { .arrow {
transition: all 1s; transition: all 1s;
} }
.move { .move {
transform: rotate(-180deg); transform: rotate(-180deg);
} }
} }
} }
.sub-border { .sub-border {
animation: border-delay 1s forwards; animation: border-delay 1s forwards;
} }
@keyframes border-delay { @keyframes border-delay {
0% { 0% {
/* opacity: 0; */ /* opacity: 0; */
/* right: -100%; */ /* right: -100%; */
} }
100% { 100% {
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
} }
.account-detail .detail-img { .account-detail .detail-img {
width: 180px; width: 180px;
height: 104px; height: 104px;
...@@ -315,6 +315,7 @@ $color: #2a58ad; ...@@ -315,6 +315,7 @@ $color: #2a58ad;
cursor: pointer; cursor: pointer;
margin-right: 100px; margin-right: 100px;
} }
// .account-detail .detail-img:hover { // .account-detail .detail-img:hover {
// margin-right: 0px; // margin-right: 0px;
// width: 90%; // width: 90%;
...@@ -328,6 +329,7 @@ $color: #2a58ad; ...@@ -328,6 +329,7 @@ $color: #2a58ad;
background: #f4f6fc; background: #f4f6fc;
border-radius: 2px; border-radius: 2px;
} }
.imageContainer { .imageContainer {
// style="display: inline-block;" // style="display: inline-block;"
// max-height: 50%; // max-height: 50%;
...@@ -340,6 +342,7 @@ $color: #2a58ad; ...@@ -340,6 +342,7 @@ $color: #2a58ad;
// justify-content: space-between; // justify-content: space-between;
} }
.imageLabel { .imageLabel {
line-height: 14px; line-height: 14px;
width: 137px; width: 137px;
...@@ -349,6 +352,7 @@ $color: #2a58ad; ...@@ -349,6 +352,7 @@ $color: #2a58ad;
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
} }
.img-btns { .img-btns {
display: none; display: none;
position: absolute; position: absolute;
...@@ -361,6 +365,7 @@ $color: #2a58ad; ...@@ -361,6 +365,7 @@ $color: #2a58ad;
cursor: pointer; cursor: pointer;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
} }
.img-btns .btn-item { .img-btns .btn-item {
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -377,6 +382,7 @@ $color: #2a58ad; ...@@ -377,6 +382,7 @@ $color: #2a58ad;
.imageContainer:hover .img-btns { .imageContainer:hover .img-btns {
display: block; display: block;
} }
/* .transition-box { /* .transition-box {
margin-bottom: 10px; margin-bottom: 10px;
width: 200px; width: 200px;
...@@ -394,45 +400,54 @@ $color: #2a58ad; ...@@ -394,45 +400,54 @@ $color: #2a58ad;
cursor: pointer; cursor: pointer;
// /* 鼠标样式*/ // /* 鼠标样式*/
} }
.link:link { .link:link {
color: #06f; color: #06f;
text-decoration: none; text-decoration: none;
// /* 未访问的链接 */ // /* 未访问的链接 */
} }
.link:visited { .link:visited {
color: #999; color: #999;
text-decoration: line-through; text-decoration: line-through;
// /* 已访问的链接 */ // /* 已访问的链接 */
} }
.link:hover { .link:hover {
color: #f00; color: #f00;
//* 鼠标移动到链接上 */ //* 鼠标移动到链接上 */
text-decoration: underline; text-decoration: underline;
} }
.link:active { .link:active {
// /* 选定的链接 */ // /* 选定的链接 */
color: #f0f; color: #f0f;
} }
.nothingtips { .nothingtips {
// align-items: center; // align-items: center;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
padding-top: 40px; padding-top: 40px;
.title { .title {
font-size: 20px; font-size: 20px;
color: #666; color: #666;
margin: 16px 0; margin: 16px 0;
} }
.tips { .tips {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
} }
.title {
} .title {}
.type { .type {
margin-top: 6px; margin-top: 6px;
display: flex; display: flex;
.btn { .btn {
width: 96px; width: 96px;
height: 40px; height: 40px;
...@@ -442,14 +457,17 @@ $color: #2a58ad; ...@@ -442,14 +457,17 @@ $color: #2a58ad;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
.act { .act {
font-weight: 500; font-weight: 500;
color: $color; color: $color;
background: #fff; background: #fff;
} }
} }
.content { .content {
background: #ffffff; background: #ffffff;
.part1 { .part1 {
.tit { .tit {
display: flex; display: flex;
...@@ -461,6 +479,7 @@ $color: #2a58ad; ...@@ -461,6 +479,7 @@ $color: #2a58ad;
color: #333333; color: #333333;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #ebebeb; border-bottom: 1px solid #ebebeb;
.line { .line {
margin-left: 16px; margin-left: 16px;
margin-right: 8px; margin-right: 8px;
...@@ -470,19 +489,24 @@ $color: #2a58ad; ...@@ -470,19 +489,24 @@ $color: #2a58ad;
border-radius: 2px; border-radius: 2px;
} }
} }
.cont { .cont {
&.cont-table { &.cont-table {
display: block; display: block;
} }
&.cont-table1 { &.cont-table1 {
padding: 16px 20px 20px; padding: 16px 20px 20px;
} }
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 16px 20px 32px; padding: 16px 20px 32px;
.mt16 { .mt16 {
margin-top: 16px; margin-top: 16px;
} }
.msg { .msg {
padding-bottom: 12px; padding-bottom: 12px;
flex: 1 0 auto; flex: 1 0 auto;
...@@ -490,6 +514,7 @@ $color: #2a58ad; ...@@ -490,6 +514,7 @@ $color: #2a58ad;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
line-height: 24px; line-height: 24px;
.msg-title { .msg-title {
width: 138px; width: 138px;
// height: 20px; // height: 20px;
...@@ -497,6 +522,7 @@ $color: #2a58ad; ...@@ -497,6 +522,7 @@ $color: #2a58ad;
color: #666666; color: #666666;
text-align: right; text-align: right;
} }
.msg-val { .msg-val {
// height: 20px; // height: 20px;
font-size: 14px; font-size: 14px;
...@@ -504,24 +530,29 @@ $color: #2a58ad; ...@@ -504,24 +530,29 @@ $color: #2a58ad;
text-align: left; text-align: left;
} }
} }
.compute { .compute {
&:first-child { &:first-child {
margin-top: 0px; margin-top: 0px;
} }
margin-top: 16px; margin-top: 16px;
margin-bottom: 10px; margin-bottom: 10px;
display: flex; display: flex;
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
.manner {
} .manner {}
.online { .online {
& + .online { &+.online {
margin-left: 44px; margin-left: 44px;
} }
color: $color; color: $color;
} }
} }
.white-table { .white-table {
margin-bottom: 16px; margin-bottom: 16px;
display: flex; display: flex;
...@@ -530,6 +561,7 @@ $color: #2a58ad; ...@@ -530,6 +561,7 @@ $color: #2a58ad;
color: #666666; color: #666666;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5;
.type1 { .type1 {
// &:first-child { // &:first-child {
// border-top: 1px solid #E5E5E5; // border-top: 1px solid #E5E5E5;
...@@ -542,62 +574,76 @@ $color: #2a58ad; ...@@ -542,62 +574,76 @@ $color: #2a58ad;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5;
box-sizing: border-box; box-sizing: border-box;
.type-name { .type-name {
text-align: right; text-align: right;
width: 90px; width: 90px;
} }
.type-val { .type-val {
flex: 1; flex: 1;
display: flex; display: flex;
color: #1d1d1d; color: #1d1d1d;
} }
.type-color { .type-color {
color: $color; color: $color;
} }
.date { .date {
margin-right: 10px; margin-right: 10px;
color: #1d1d1d; color: #1d1d1d;
} }
} }
.type2 { .type2 {
width: 66.66%; width: 66.66%;
} }
} }
.title-table { .title-table {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
border: 1px solid #e8e8ea; border: 1px solid #e8e8ea;
.head { .head {
display: flex; display: flex;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
text-align: center; text-align: center;
background: #f2f4f7; background: #f2f4f7;
.cost { .cost {
& + .cost { &+.cost {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
flex: 1; flex: 1;
} }
} }
.detail { .detail {
display: flex; display: flex;
min-height: 40px; min-height: 40px;
color: #666666; color: #666666;
border-top: 1px solid #e8e8ea; border-top: 1px solid #e8e8ea;
.detail-i { .detail-i {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
& + .detail-i {
&+.detail-i {
border-left: 1px solid #e8e8ea; border-left: 1px solid #e8e8ea;
} }
flex: 1; flex: 1;
} }
} }
} }
} }
} }
// .part2 { // .part2 {
// } // }
// .part3 { // .part3 {
...@@ -607,5 +653,4 @@ $color: #2a58ad; ...@@ -607,5 +653,4 @@ $color: #2a58ad;
// .part5 { // .part5 {
// } // }
} }
} }</style>
</style>
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
numList: [ numList: [
{ {
confId: 0, confId: 0,
confLabel: '1.0' confLabel: '2.0'
}, { }, {
confId: 1, confId: 1,
confLabel: '1.1' confLabel: '1.1'
......
代码合并记录 代码合并记录
dj_dev_18.0版本 dj_dev_19.0版本
代码合并操作人:王琦琳,张晓伟 代码合并操作人:张晓玮
代码合并检查人:张杰 代码合并检查人:张杰
### 需求列表 ### 需求列表
dev_v4.18.0 版本功能需求 dev_v4.19.0 版本功能需求
...@@ -16,8 +16,8 @@ dev_v4.18.0 版本功能需求 ...@@ -16,8 +16,8 @@ dev_v4.18.0 版本功能需求
| gitlab地址 | 分支标识 | 分支创建人 | 分支合并人 | 代码检查人 | | gitlab地址 | 分支标识 | 分支创建人 | 分支合并人 | 代码检查人 |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---------- | ---------- | ---------- | | ------------------------------------------------------------ | ------------------------------------------------------------ | ---------- | ---------- | ---------- |
| http://192.168.3.233:8090/glsx-business/dj-car-boutique-work-wechat | [dev_v4.18.0](http://qcimg01.glsx.com.cn:7060/group1/M00/04/57/wKgD3mP9oNyAF5L3AAFf6CsJYvg142.png) | 张晓玮 | 张晓玮 | 张杰 | | http://192.168.3.233:8090/saas_plus/dj-car-boutique-work-wechat | [dev_v4.19.0](http://qcimg01.glsx.com.cn:7060/group1/M00/04/57/wKgD3mP9oNyAF5L3AAFf6CsJYvg142.png) | 张立顺 | 张晓玮 | 张杰 |
| http://192.168.3.233:8090/saas_plus/dj-car-life-system | dev_v4.18.0 | 王琦琳 | 王琦琳 | 张杰 | | http://192.168.3.233:8090/saas_plus/dj-car-life-system | dev_v4.19.0 | 王琦琳 | 张晓玮 | 张杰 |
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!