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 1963 additions and 697 deletions
......@@ -78,8 +78,8 @@
"md5": "^2.3.0",
"postcss-preset-env": "^7.7.2",
"postcss-px-to-viewport": "^1.1.1",
"sass": "^1.18.0",
"sass-loader": "^7.1.0",
"sass": "^1.62.0",
"sass-loader": "^7.3.1",
"script-loader": "^0.7.2",
"vue-template-compiler": "^2.5.21",
"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
......@@ -281,6 +281,16 @@ export function updateCardCodeFlag(data) {
data.method = `${path2}serviceMerchant.updateCardCodeFlag`
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) {
......
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
......@@ -450,17 +450,17 @@ export const warrantyProList = [1, 4, 6, 12, 14]
// 所属场景
export const sceneCodeList = [
{ confId: 1, confValue: "1.1精品升级" },
{ confId: 2, confValue: "1.2次新车转化" },
{ confId: 3, confValue: "1.3售后众筹" },
{ confId: 0, confValue: "2.0会员权益/升级" }
{ confId: 1, confValue: "精品升级" },
{ confId: 2, confValue: "次新车转化" },
{ confId: 3, confValue: "售后众筹" },
{ confId: 0, confValue: "会员权益/升级" }
]
// 所属场景
export const sceneList = {
1: "1.1精品升级",
2: "1.2次新车转化",
3: "1.3售后众筹",
0: "2.0会员权益/升级"
1: "精品升级",
2: "次新车转化",
3: "售后众筹",
0: "会员权益/升级"
}
// 导流方下拉选项对应
......@@ -482,10 +482,10 @@ export const attrToVal = [
]
export const sceneType = {
1: "1.1精品升级",
2: "1.2次新车转化",
3: "1.3售后众筹",
0: "2.0会员权益/升级"
1: "精品升级",
2: "次新车转化",
3: "售后众筹",
0: "会员权益/升级"
}
export const proportionType = {
......@@ -572,50 +572,50 @@ export const membraneTypeList = [1, 4, 6, 12, 14]
export const businessType = [
{
optionId: 1,
optionLabel: '1.2'
optionLabel: "1.2"
},
{
optionId: 2,
optionLabel: '1.3'
optionLabel: "1.3"
},
{
optionId: 3,
optionLabel: '2.0'
optionLabel: "2.0"
}
]
export const orderManageStatusList = [
{ confId: '1', confName: '待付款' },
{ confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' },
{ confId: "1", confName: "待付款" },
{ confId: "2", confName: "已支付" },
{ confId: "3", confName: "已失效" },
// { confId: '21', confName: '待收货(待核销)' },
{ confId: '21', confName: '待核销' },
{ confId: '22', confName: '已核销' },
{ confId: "21", confName: "待核销" },
{ confId: "22", confName: "已核销" },
// { confId: '22', confName: '已收货(已核销)' },
{ confId: '6', confName: '待发货' },
{ confId: "6", confName: "待发货" },
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' },
{ confId: '11', confName: '待审批' }
{ confId: "9", confName: "售后中" },
{ confId: "10", confName: "售后完成" },
{ confId: "11", confName: "待审批" }
]
export const orderSourceList = [
{ confId: '1', confName: '商城订单' },
{ confId: '2', confName: '直播订单' },
{ confId: '3', confName: '活动订单' },
{ confId: '4', confName: '众筹订单' }
{ confId: "1", confName: "商城订单" },
{ confId: "2", confName: "直播订单" },
{ confId: "3", confName: "活动订单" },
{ confId: "4", confName: "众筹订单" }
]
export const deliveryTypeList = [
{ confId: '1', confName: '到店核销' },
{ confId: '2', confName: '快递到家' }
{ confId: "1", confName: "到店核销" },
{ confId: "2", confName: "快递到家" }
]
export const afterSaleStatusList = [
{ confId: '1', confName: '待审核' },
{ confId: '2', confName: '审核成功' },
{ confId: '3', confName: '审核失败' },
{ confId: '4', confName: '待确认' },
{ confId: '5', confName: '退款中' },
{ confId: '6', confName: '已退款' },
{ confId: '7', confName: '退款失败' }
{ confId: "1", confName: "待审核" },
{ confId: "2", confName: "审核成功" },
{ confId: "3", confName: "审核失败" },
{ confId: "4", confName: "待确认" },
{ confId: "5", confName: "退款中" },
{ confId: "6", confName: "已退款" },
{ confId: "7", confName: "退款失败" }
]
......@@ -262,6 +262,7 @@ export const Util = {
// return
const Temp = document.createElement("a")
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
url = url + "?timestamp=" + new Date().getTime()
Temp.href = url
// console.log(url)
// console.log(Temp.href)
......
......@@ -170,6 +170,10 @@ export default {
if (targetItem.name == 'sceneType') {
this.$emit('handleChangeSelect', value)
}
// 选择分类与所属系列联动
if (targetItem.name == 'goodsType') {
this.$emit('handleChangeSelect', value)
}
},
handleInputDown(e, item) {
if (e.keyCode === 13 && item.hasOwnProperty('keyFn')) {
......
......@@ -317,21 +317,22 @@ export default {
// item[this.tableParams.mutiSelectUniqueKey]
// }))
//
if (this.filterListData) {
res[this.tableParams.listName] && res[this.tableParams.listName].forEach((val, index) => {
const shopPriceArr = []
let stockTotal = 0
val.ownSerialNum = index
res[this.tableParams.listName] && res[this.tableParams.listName].forEach((val, index) => {
if (!val.goodsInfo) val.goodsInfo = {}
const shopPriceArr = []
val.ownSerialNum = index
if (this.filterListData) {
val.upgradeGoodsList && val.upgradeGoodsList.forEach(v => {
v.goodsInfo = {}
shopPriceArr.push(v.upgradePrice)
v.listShowShopPrice = v.upgradePrice
v.listShowStock = v.stock
v.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 ? v.specificationData.replace(/;~;/g, ' ') : '-'
v.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 ? (v.specificationData && v.specificationData?.replace(/;~;/g, ' ')) : '-'
v.goodsInfo.goodsName = v.upgradeGoodsName
v.goodsInfo.productName = val.goodsInfo.goodsName
stockTotal += v.stock
v.goodsInfo.goodsTypeName = val.goodsInfo?.goodsTypeName
v.goodsInfo.type = v.type || '-'
v.goodsInfo.thumbUrl = val.goodsInfo.thumbUrl
v.goodsSpecificationNameList = val.goodsSpecificationNameList
v.upgradeGoodsMerchantRefList = val.upgradeGoodsMerchantRefList
v.createdDate = val.createdDate
v.updatedDate = val.updatedDate
})
const minPrice = shopPriceArr.length ? Math.min(...shopPriceArr) : 0
......@@ -339,9 +340,9 @@ export default {
// 父商品规格数量
val.listShowSpecificationData = val.goodsSpecificationNameList?.length > 1 && val.upgradeGoodsList?.length > 0 ? 'X' + val.upgradeGoodsList.length : '-'
val.listShowShopPrice = minPrice == maxPrice ? maxPrice : minPrice + '~' + maxPrice
val.listShowStock = stockTotal
})
}
val.goodsInfo.type = '-'
}
})
this.data = res[this.tableParams.listName]
if (this.tableParams.needUnique) {
let temp = 1
......
<template>
<div
class="d2-layout-header-aside-group"
:style="styleLayoutMainGroup"
:class="{grayMode: grayActive}">
<div class="d2-layout-header-aside-group" :style="styleLayoutMainGroup" :class="{ grayMode: grayActive }">
<!-- 半透明遮罩 -->
<div class="d2-layout-header-aside-mask" />
<!-- 主体内容 -->
<div
class="d2-layout-header-aside-content"
flex="dir:top">
<div class="d2-layout-header-aside-content" flex="dir:top">
<!-- 顶栏 -->
<div
class="d2-theme-header"
:style="{
opacity: this.searchActive ? 0.5 : 1
}"
flex-box="0"
flex>
<div
class="logo-group d2-theme-header-logo"
:class="asideCollapse ? 'logo-only' : 'logo-all'"
flex-box="0">
<img
v-if="asideCollapse"
src="../../assets/icon-only.png">
<img
v-else
src="../../assets/all.png">
<div class="d2-theme-header" :style="{
opacity: this.searchActive ? 0.5 : 1
}" flex-box="0" flex>
<div class="logo-group d2-theme-header-logo" :class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0">
<img v-if="asideCollapse" src="../../assets/icon-only.png">
<img v-else src="../../assets/all.png">
<!-- <img style="width: 32px; height: 32px;" src="../../assets/icon-only.png"> -->
</div>
<p
v-if="show"
class="d2-header-name">
{{ info ? info.detail.merchantName : '' }}
<p v-if="show" class="d2-header-name">
{{ info ? info.detail.merchantName : '' }}
</p>
<!-- <hamburger :onClick="handleToggleAside" :isActive="asideCollapse" flex-box="0" class="toggle-aside-btn"></hamburger>
<span class="header-title">{{headerTitle}}</span> -->
<d2-menu-header flex-box="1" />
<!-- 顶栏右侧 -->
<div
class="d2-header-right"
flex-box="0">
<div class="d2-header-right" flex-box="0">
<!-- <d2-header-datetime /> -->
<!-- 如果你只想在开发环境显示这个按钮请添加 v-if="$env === 'development'" -->
<!-- <d2-header-search @click="handleSearchClick"/> -->
......@@ -53,75 +33,40 @@
<d2-header-user />
</div>
</div>
<div
class="d2-theme-header"
style="height: 40px; font-size: 14px; border-top: 1px solid #F0F2F5;"
flex-box="0"
<div class="d2-theme-header" style="height: 40px; font-size: 14px; border-top: 1px solid #F0F2F5;" flex-box="0"
flex>
<div
class="logo-group d2-theme-header-logo"
style="height: 1px; margin-top: -1px;"
:class="asideCollapse ? 'logo-only' : 'logo-all'"
flex-box="0" />
<hamburger
:on-click="handleToggleAside"
:is-active="asideCollapse"
flex-box="0"
class="toggle-aside-btn" />
<div class="logo-group d2-theme-header-logo" style="height: 1px; margin-top: -1px;"
:class="asideCollapse ? 'logo-only' : 'logo-all'" flex-box="0" />
<hamburger :on-click="handleToggleAside" :is-active="asideCollapse" flex-box="0" class="toggle-aside-btn" />
<span class="header-title">{{ headerTitle }}</span>
</div>
<!-- 下面 主体 -->
<div
class="d2-theme-container"
flex-box="1"
flex>
<div class="d2-theme-container" flex-box="1" flex>
<!-- 主体 侧边栏 -->
<div
flex-box="0"
ref="aside"
class="d2-theme-container-aside"
:style="{
width: asideCollapse ? asideWidthCollapse : asideWidth,
opacity: this.searchActive ? 0.5 : 1
}">
<div flex-box="0" ref="aside" class="d2-theme-container-aside" :style="{
width: asideCollapse ? asideWidthCollapse : asideWidth,
opacity: this.searchActive ? 0.5 : 1
}">
<d2-menu-side />
</div>
<!-- 主体 -->
<div
class="d2-theme-container-main"
:class="this.searchActive ? 'is-search' : ''"
flex-box="1"
flex>
<div class="d2-theme-container-main" :class="this.searchActive ? 'is-search' : ''" flex-box="1" flex>
<!-- 搜索 -->
<transition name="fade-scale">
<div
v-if="searchActive"
class="d2-theme-container-main-layer"
flex>
<d2-panel-search
ref="panelSearch"
@close="searchPanelClose" />
<div v-if="searchActive" class="d2-theme-container-main-layer" flex>
<d2-panel-search ref="panelSearch" @close="searchPanelClose" />
</div>
</transition>
<!-- 内容 -->
<transition name="fade-scale">
<div
v-if="!searchActive"
class="d2-theme-container-main-layer"
flex="dir:top">
<div v-if="!searchActive" class="d2-theme-container-main-layer" flex="dir:top">
<!-- tab -->
<div
class="d2-theme-container-main-header"
flex-box="0">
<div class="d2-theme-container-main-header" flex-box="0">
<!-- <d2-tabs/> -->
</div>
<!-- 页面 -->
<div
class="d2-theme-container-main-body"
flex-box="1">
<transition
:name="transitionActive ? 'el-fade-in' : '' "
mode="out-in">
<div class="d2-theme-container-main-body" flex-box="1">
<transition :name="transitionActive ? 'el-fade-in' : ''" mode="out-in">
<keep-alive :include="keepAlive">
<router-view />
</keep-alive>
......@@ -214,10 +159,10 @@ export default {
*/
styleLayoutMainGroup() {
return {
...this.themeActiveSetting.backgroundImage
...this.themeActiveSetting.backgroundImage
? {
backgroundImage: `url('${this.$baseUrl}${this.themeActiveSetting.backgroundImage}')`
}
}
: {}
}
}
......@@ -252,16 +197,22 @@ export default {
<style lang="scss">
// 注册主题
@import '~@/assets/style/theme/register.scss';
@keyframes lightflow {
90% {
left: -300px; /*起始位置*/
left: -300px;
/*起始位置*/
}
100% {
left: 300px; /*结束位置*/
left: 300px;
/*结束位置*/
}
}
.logo-all {
width: 200px;
img {
width: 188px;
height: 32px !important;
......@@ -269,8 +220,10 @@ export default {
transform: translate3d(0, 20px, 0) !important;
}
}
.logo-only {
width: 65px;
img {
width: 32px;
height: 32px !important;
......@@ -278,6 +231,7 @@ export default {
transform: translate3d(0, 16px, 0) !important;
}
}
.d2-header-name {
height: 60px;
line-height: 60px;
......@@ -286,6 +240,7 @@ export default {
color: #2a58ad;
margin: 0 0 0 21px;
}
.header-title {
line-height: 50px;
color: #606266;
......
......@@ -104,12 +104,44 @@ fetch(
const { code, data } = response
if (code == "200") {
console.log(data)
baseConfig = data
// console.log("baseConfig", baseConfig)
// window.$fetchConfig = data
} 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
// window.$fetchConfig = response
window.$fetchConfig = response
}
})
.finally(() => {
......
......@@ -131,6 +131,19 @@ export const routerName = {
parentId: "90603",
label: "收款码",
handle: "collectionQRcode"
},
{
authId: "90603012",
parentId: "90603",
label: "配置",
handle: "handleSet",
addRoutePath: [
{
authId: "90603013",
name: "配置页面",
parentId: "90603012"
}
]
}
],
component: _import("systemConfig/merchant/merchantManage")
......@@ -147,6 +160,18 @@ export const routerName = {
},
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: {
path: "/serviceManage",
name: "serviceManage",
......@@ -328,7 +353,7 @@ export const routerName = {
authId: "90613",
parentId: "90603",
cache: false,
activePath: "/merchantManage",
activePath: "/merchantManage"
},
component: _import("systemConfig/merchant/merchantStep/merchantCheck")
},
......@@ -340,7 +365,7 @@ export const routerName = {
authId: "90614",
parentId: "90603",
cache: false,
activePath: "/merchantManage",
activePath: "/merchantManage"
},
component: _import("systemConfig/merchant/merchantStep/merchantCheckDetail")
},
......@@ -352,7 +377,7 @@ export const routerName = {
authId: "90615",
parentId: "90603",
cache: false,
activePath: "/merchantManage",
activePath: "/merchantManage"
},
component: _import("systemConfig/merchant/merchantStep/merchantCheckRecord")
},
......
......@@ -23,18 +23,16 @@ export default {
upgradeGoodsList: [],
distributionType: '0',
goodsSpecificationNameList: [],
linkMerchants: [],
speciLinkMerchants: [],
status: '',
goodsSpecificationList: [],
goodsPositionList: [],
applicableModelNames: '',
positionNames: '',
copyGoodsCode: '',
shoppingMallFlag: '0',
goodsSpecificationSingleList: [],
specificationSingleDetailList: [],
selectedSceneCode: ''
selectedSceneCode: '',
goodsType: ''
}
},
mutations: {
......
......@@ -209,6 +209,16 @@
</td>
<td>{{ detail.goodsCost?('¥ '+detail.goodsCost):'¥0' }}</td>
<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>
</tr>
......
......@@ -259,6 +259,13 @@
<el-table-column prop="goodsCost"
label="商品成本"
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 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
<!-- 查看详情 -->
<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
<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
<template>
<d2-dialog :title="'单店目标产值'"
:is-visible="outputVisible"
:width="'880px'"
@closeDialog="handleImport"
@confirmDialog="handleConfirmImport">
<d2-dialog :title="'编辑单店信息'" :is-visible="outputVisible" :width="'900px'" @closeDialog="handleImport"
@confirmDialog="handleConfirmImport">
<slot>
<div class="searchWrap">
<el-col :span="13">
<el-date-picker v-model="search.targetDate"
:clearable="false"
type="month"
format="yyyy 年 MM 月"
value-format="yyyy-MM"
:picker-options="pickerOptions"
placeholder="选择月" />
<el-col :span="11">
<el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月"
value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
</el-col>
<el-col :span="9">
<el-input v-model="search.keyword"
clearable
placeholder="输入门店名称搜索" />
<el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
</el-col>
<el-col :span="2"
class="btnContainer">
<el-button type="primary"
@click="getList"
class="searchBtn">
<el-col :span="4" class="btnContainer">
<el-button type="primary" @click="getList" class="searchBtn">
搜索
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</el-col>
<!-- <div class="searchInput">
......@@ -34,41 +24,45 @@
</div>
<div class="yqdTableContainer">
<!-- border -->
<el-table :data="tableData"
stripe
max-height="450"
:header-cell-style="rowClass"
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 :data="tableData" stripe max-height="450" :header-cell-style="rowClass" style="width: 100%">
<el-table-column label="序号" type="index" width="50" />
<!-- <el-table-column prop="yqMerchantName" label="园区店列表" width="200" /> -->
<el-table-column prop="merchantName" label="门店列表" width="200" />
<!-- <el-table-column prop="outputValue"
label="门店列表">
</el-table-column> -->
<!-- width="260" -->
<el-table-column prop="outputValue"
label="产值目标">
<el-table-column prop="outputValue" label="场景在营" width="220">
<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">
<!-- <div>slot-scope="scope"</div> &&item.isEdit-->
<span v-if="!scope.row['isEdit']">{{ scope.row['outputValue'] }}</span>
<!-- @input="input($event,item)" -->
<el-input v-else
style="width: 140px"
@input="handleInput($event,scope)"
v-model="scope.row['outputValue']"
placeholder="" />
<el-input v-else style="width: 140px" @input="handleInput($event, scope)" v-model="scope.row['outputValue']"
placeholder="" />
<!-- <div></div> -->
</template>
</el-table-column>
</el-table>
<div class="tips">
填写后不支持修改,请谨慎输入。
产值目标填写后不支持修改,请谨慎输入。
<!-- 填写后不支持修改,请谨慎输入。 -->
</div>
</div>
</slot>
......@@ -77,6 +71,7 @@
<script>
import { limitPrice } from '@/common/format'
import { sceneCodeList } from '@/common/constants'
// import moment from 'moment'
import dayjs from 'dayjs'
import { getMerchantOutputValueTarget, setMerchantOutputValueTarget } from '@api/index'
......@@ -106,59 +101,9 @@ export default {
keyword: '',
targetDate: ''
},
// tableLabel: [],
tableData: [
// {
// 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 弄'
// }
]
tableData: [],
value2: [],
sceneCodeList
// outputVisible: true
}
},
......@@ -180,6 +125,11 @@ export default {
// console.log(moment().subtract(5, 'months').startOf('month').format('YYYY-MM-DD'))
},
methods: {
handleReset() {
this.search.targetDate = this.nowMonth
this.search.keyword = ''
this.getList()
},
getList() {
getMerchantOutputValueTarget(this.search).then((result) => {
const monthCheck = [this.nowMonth, this.nextMonth].includes(this.search.targetDate)
......@@ -219,7 +169,7 @@ export default {
// 删除无需字段 避免后台类型报错
delete item.createdDate
delete item.updatedDate
return item.isEdit && item.outputValue
return (item.isEdit && item.outputValue) || item.deployScene || item.businessScene
})
if (filterList.length) {
// console.log('请求修改')
......@@ -243,35 +193,49 @@ export default {
::v-deep.searchWrap {
height: 30px;
margin-bottom: 10px;
.el-input__inner {
height: 30px;
}
.el-input__icon {
line-height: 30px;
}
.btnContainer {
text-align: right;
padding-right: 10px;
}
.searchBtn {
font-size: 12px;
padding: 8px 10px;
}
}
::v-deep.yqdTableContainer {
.el-table .cell {
padding: 0 10px;
}
// padding-right: 3px;
.el-table__body-wrapper {
.el-table__row td:nth-child(1) {
border-left: 1px solid #ebeef5;
}
.el-table__row td:nth-last-child(1) {
border-right: 1px solid #ebeef5;
}
}
.select {
.el-tag {
width: auto;
}
}
}
.tips {
margin-top: 10px;
font-size: 12px;
......
......@@ -9,12 +9,8 @@
<div class="selectContainer">
<div>选择日期</div>
<div class="daySelect">
<el-date-picker v-model="dateValue"
type="date"
:picker-options="pickerOptions"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
placeholder="选择日期" />
<el-date-picker v-model="dateValue" type="date" :picker-options="pickerOptions" format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd" placeholder="选择日期" />
<!-- <el-select v-model="model"
placeholder="">
<el-option v-for="item in options"
......@@ -25,25 +21,21 @@
</el-select> -->
</div>
<!-- -->
<el-button type="primary"
@click="exportDailyReport"
:loading="exportDailyReportBtn"
class="exportBtn">导出日报</el-button>
<el-button type="primary" @click="exportDailyReport" :loading="exportDailyReportBtn"
class="exportBtn">导出日报</el-button>
<!-- <span class="exportBtn">
<auth-button category="Button"
:showBtnIds="['90702']"></auth-button>
</span> -->
</div>
<div class="inputTargetBtn">
<div @click="goCheck"
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="goCheck" style="margin-right: 32px;"><i class="el-icon-chat-round"></i>查看企微推送对象</div>
<div @click="outputVisible = true"><i class="el-icon-edit"></i>编辑单店信息</div>
</div>
</div>
</el-card>
</el-col>
<outputValueDialog v-if="outputVisible"
:is-show.sync="outputVisible" />
<outputValueDialog v-if="outputVisible" :is-show.sync="outputVisible" />
</el-row>
</template>
......@@ -138,6 +130,7 @@ export default {
display: flex;
height: 30px;
font-size: 14px;
.reportTips {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
......@@ -146,29 +139,36 @@ export default {
padding-right: 25px;
border-right: 1px solid #dcdfe6;
}
.selectContainer {
display: flex;
align-items: center;
padding-left: 25px;
.exportBtn {
font-size: 12px;
padding: 8px 10px;
}
}
.daySelect {
margin: 0 8px;
.el-input__inner {
height: 30px;
}
.el-input__icon {
line-height: 30px;
}
}
.inputTargetBtn {
display: flex;
margin-left: auto;
line-height: 30px;
cursor: pointer;
.el-icon-edit,
.el-icon-chat-round {
margin-right: 5px;
......
......@@ -4,24 +4,20 @@
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"
>
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item
v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item"
>
<span
class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]"
>{{
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in detailFormDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
class="row-item">
<span class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]">{{
detailForm[subItem.name]
? detailForm[subItem.name] + (subItem.suffix || "")
: "-"
}}</span
>
}}</span>
</el-form-item>
</el-row>
<template v-if="detailForm.formDescribe">
......@@ -33,24 +29,23 @@
</div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p>
<el-form label-width="100px" :inline="true">
<el-form label-width="100px"
:inline="true">
<el-form-item label="物流信息">
<span
>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{
detailForm.deliveryNumber
}}</span
>
}}</span>
</el-form-item>
</el-form>
<div v-if="orderGoods.length" class="p-l-40">
<div v-if="orderGoods.length"
class="p-l-40">
<table class="show-table">
<tbody>
<tr
v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px"
>
<td><img :src="item.goodsImage" class="img-60" /></td>
<tr v-for="(item, index) in orderGoods"
:key="index"
style="height: 70px">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td>
<td>
......@@ -59,41 +54,41 @@
}}元 * {{ item.goodsNumber }}
</td>
</tr>
<tr v-if="detailForm.subOrderCoupon" style="height: 40px">
<td style="text-align: left" colspan="3">优惠券</td>
<tr v-if="detailForm.subOrderCoupon"
style="height: 40px">
<td style="text-align: left"
colspan="3">优惠券</td>
<td>{{ detailForm.subOrderCoupon.discountAmount }}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container edit-container" v-if="orderRefund">
<div class="container edit-container"
v-if="orderRefund">
<p class="edit-title">售后信息</p>
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-form-item
v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label"
>
<span
class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]"
>{{ orderRefund[subItem.name] || "-" }}</span
>
<el-form label-width="100px"
:inline="true">
<el-row v-for="(item, index) in afterInfoDataRow"
:key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList"
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || "-" }}</span>
</el-form-item>
</el-row>
</el-form>
<div class="form-img">
<el-form label-width="100px" :inline="true">
<el-form label-width="100px"
:inline="true">
<el-form-item label="售后凭证">
<div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" :key="index">
<el-image
class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"
></el-image>
<span v-for="(item, index) in orderRefund.imgUrls"
:key="index">
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
</span>
</div>
</el-form-item>
......@@ -102,7 +97,8 @@
</div>
</div>
<!-- <GLFooter> -->
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button @click="handleCancel"
size="medium">取消</el-button>
<!-- </GLFooter> -->
</div>
</template>
......@@ -182,7 +178,7 @@ export default {
}
},
created() {},
created() { },
mounted() {
this.getCrowdfundingOrderConfig()
......@@ -306,8 +302,8 @@ export default {
.map((item) => item.confId)
.includes(res.orderRefund.refundType + "")
? this.baseData.refundTypeList.find(
(item) => item.confId == res.orderRefund.refundType
).confName
(item) => item.confId == res.orderRefund.refundType
).confName
: "-"
this.orderRefund.createdDateStr = Util.dateFormate(
this.orderRefund.createdDate,
......@@ -321,8 +317,8 @@ export default {
.map((item) => item.confId)
.includes(this.detailForm.shareStaffType + "")
? this.baseData.shareStaffTypeList.find(
(item) => item.confId == this.detailForm.shareStaffType
).confName
(item) => item.confId == this.detailForm.shareStaffType
).confName
: "-"
}
if (this.detailForm.subOrderCoupon) {
......@@ -338,15 +334,15 @@ export default {
.map((item) => item.confId)
.includes(res.orderSource + "")
? this.baseData.orderSourceList.find(
(item) => item.confId == res.orderSource
).confName
(item) => item.confId == res.orderSource
).confName
: "-"
this.detailForm.orderStatusName = this.baseData.orderStatusList
.map((item) => item.confId)
.includes(res.orderStatus + "")
? this.baseData.orderStatusList.find(
(item) => item.confId == res.orderStatus
).confName
(item) => item.confId == res.orderStatus
).confName
: "-"
if (!this.detailForm.takeFee) {
var takeFeeIdx = this.detailFormData.findIndex(
......@@ -381,8 +377,8 @@ export default {
// 商品名称
this.detailForm.goodsName = this.detailForm.orderGoods.length
? this.detailForm.orderGoods
.map((item) => item.goodsName)
.join(",")
.map((item) => item.goodsName)
.join(",")
: "-"
this.formToRow("detailFormData")
......@@ -430,7 +426,7 @@ export default {
}
.detail-txt {
display: inline-block;
width: 220px;
width: 320px;
}
.order-detail .show-table > tbody > tr > td {
text-align: center;
......
......@@ -23,13 +23,13 @@
</el-button>
<!-- @click="downloadAccount" -->
<!-- <auth-button category="Button"></auth-button> -->
<!-- <auth-button :showBtnIds="['9040104']"
<!-- <auth-button :showBtnIds="['9040104']"
class="p-r-20"
category="Button"></auth-button> -->
<auth-button :show-btn-ids="['9040101', '9040104']" category="Button" />
</d2-table-header>
<el-table :data="tableData" v-loading="$store.state.d2admin.loading.value" border>
<!-- <el-table-column type="expand">
<!-- <el-table-column type="expand">
<template slot-scope="props">
<div v-if="props.row.goods" class="product_list">
<div class="product_item" v-for="(item, index) in props.row.goods" :key="index">
......@@ -54,7 +54,7 @@
<span>{{ scope.row.customerSex == 1 ? '男' : '女' }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="客户手机号"
<!-- <el-table-column label="客户手机号"
align="center"
width="150"
prop="customerPhone" /> -->
......@@ -66,7 +66,7 @@
</template>
</el-table-column>
<el-table-column label="客户车牌号" align="center" width="110" prop="plateNumber" />
<!-- <el-table-column label="客户车架号"
<!-- <el-table-column label="客户车架号"
align="center"
width="150"
prop="standNo" /> -->
......@@ -126,7 +126,7 @@
</span>
</template>
</el-table-column>
<!-- <el-table-column label="4s店"
<!-- <el-table-column label="4s店"
align="center"
width="170"
prop="merchantName" /> -->
......@@ -671,7 +671,8 @@ export default {
constructionFlag: '',
channelType: '',
businessModel: '',
subShopMerchantId: ''
subShopMerchantId: '',
sourceList: ''
}
this.baseData.storeIdList = []
this.getOptionsList()
......
......@@ -31,15 +31,15 @@ export default {
activeName: "1",
tabPaneList: [
{
label: "1.1精品升级",
label: "精品升级",
name: "1"
},
{
label: "1.3众筹订单",
label: "售后众筹",
name: "2"
},
{
label: "2.0车损升级",
label: "会员权益/升级",
name: "3"
}
],
......
......@@ -19,7 +19,7 @@
<div class="label">规格:</div>
<div class="itemCon">
<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 }}
</div>
</div>
......@@ -27,23 +27,28 @@
<div class="munCom">
<div class="label">数量:</div>
<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 class="tips">
<!-- goodsItem.goodsType == 1 -->
{{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷=${goodsInfo.convertedValue || 30}米)` : '件' }}
{{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷 = ${ goodsInfo.convertedValue || 30 } 米)` : '件' }}
</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>
<!-- <i class="carIcon"></i> -->
</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>
<div class="goodsDescList">
<div class="goodsDescItem" v-for="(item, index) in goodsInfo.goodsDescList" :key="index">
<img :src="item.content" v-if="item.resType == 1" class="productDetailsImg" alt="">
<div class="goodsDescItem" v-for="( item, index ) in goodsInfo.goodsDescList " :key=" index ">
<img :src=" item.content " v-if=" item.resType == 1 " class="productDetailsImg" alt="">
<!-- <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>
......@@ -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: {},
selectIndex: 0,
handleItemInfo: {
......@@ -133,6 +154,7 @@ export default {
getGoodsDetail() {
getProductInfo({ id: this.goodsId }).then(res => {
this.goodsInfo = res
// 调试用
// for (let index = 0; index < 12; index++) {
// this.goodsInfo.upgradeGoodsList[index] = this.goodsInfo.upgradeGoodsList[0]
......@@ -150,6 +172,8 @@ export default {
upgradeGoodsId: id,
purchasePrice
})
console.log(item)
this.tableInfo = item.merchantGoodsInfo.filter(item => item.goodsAlias)
},
handleDetailClose() {
......
......@@ -69,6 +69,10 @@ export default {
{
label: '商品名称',
prop: 'upgradeGoodsName'
},
{
label: '商品编码',
prop: 'type'
},
{
......
<!-- 采购订单 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<span slot="left" v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<!-- <auth-button category="Button" /> -->
<auth-button category="Button" />
</span>
<span>
<el-button type="primary"
size="mini"
@click="handleExport">
<el-button type="primary" size="mini" @click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchaseOrderTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<d2-table ref="purchaseOrderTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090102']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090102']" />
</span>
<!-- 取消 -->
<span style="margin-right: 10px;"
v-show="scope.scope.status == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope"
:show-btn-ids="['9090103']" />
v-show="scope.scope.status == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope" :show-btn-ids="['9090103']" />
</span>
<!-- 入库 -->
<span v-show="scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope"
:show-btn-ids="['9090104']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090104']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
:paramsObj="paramsObj"></orderDeatilDialog>
<orderDeatilDialog :visible.sync="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
</d2-container>
</template>
......@@ -195,7 +175,7 @@ export default {
label: '发货状态',
prop: 'deliveryStatus',
formatter: (cellValue) => {
return defaultDeliveryStatusOptions.find(item => item.id == cellValue.deliveryStatus).label || '-'
return defaultDeliveryStatusOptions.find(item => item.id == cellValue.deliveryStatus)?.label || '-'
},
className: (cellValue) => {
return {
......@@ -250,13 +230,13 @@ export default {
label: '订单状态',
prop: 'status',
formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-'
return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot',
3: 'ashSpot',
3: 'ashSpot'
}[cellValue.status]
}
}
......@@ -281,7 +261,7 @@ export default {
mounted() {
getMerchantList({}).then(res => {
let opt = {
const opt = {
merchantNo: '',
merchantName: '全部'
}
......@@ -414,5 +394,4 @@ export default {
}
}
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
......@@ -2,74 +2,46 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<el-form :inline="true"
:model="editAllocationForm"
ref="editAllocationFormRef"
:rules="formRules"
class="demo-form-inline">
<el-form-item label="调出门店:"
prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId"
style="width:300px">
<el-option v-for="item in callOutYqMerchantList"
:key="item.merchantNo"
:label="item.merchantName"
:value="item.merchantNo" />
<div class="header" slot="header" style="padding: 10px 20px;">
<el-form :inline="true" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules"
class="demo-form-inline">
<el-form-item label="调出门店:" prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId" style="width:300px">
<el-option v-for="item in callOutYqMerchantList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo" />
</el-select>
</el-form-item>
<el-form-item label="调入门店:"
prop="callInYqMerchantId">
<el-select v-model="editAllocationForm.callInYqMerchantId"
filterable
style="width:300px">
<el-option v-for="item in callInYqMerchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId" />
<el-form-item label="调入门店:" prop="callInYqMerchantId">
<el-select v-model="editAllocationForm.callInYqMerchantId" filterable style="width:300px">
<el-option v-for="item in callInYqMerchantList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId" />
</el-select>
</el-form-item>
</el-form>
</div>
<div class="d2-container-content">
<div class="header"
slot="header"
style="padding: 15px 0;">
<div class="header" slot="header" style="padding: 15px 0;">
<!-- <d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" /> -->
:form-data="showFormData" /> -->
<div>
<el-input v-model="searchForm.searchName"
style="width:200px;"
placeholder="请输入商品名称/系列"
maxlength="20"
clearable />
<el-input v-model="searchForm.searchName" style="width:200px;" placeholder="请输入商品名称/系列" maxlength="20"
clearable />
<!-- <el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button> -->
<el-button @click="handleSearch"
size="small"
type="primary"
style="marginLeft:15px">
</el-button> -->
<el-button @click="handleSearch" size="small" type="primary" style="marginLeft:15px">
查询
</el-button>
</div>
</div>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="allocation(scope.scope)"
:disabled="setDisabled(scope.scope)">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="allocation(scope.scope)" :disabled="setDisabled(scope.scope)">
选择
</el-button>
</div>
......@@ -77,10 +49,7 @@
</div>
<div class="d2-container-content">
<p>调拨确认单</p>
<d2-table ref="recordTable2"
:table-data="chooseDataList"
:table-params="tableParams2"
:hasPage="false">
<d2-table ref="recordTable2" :table-data="chooseDataList" :table-params="tableParams2" :has-page="false">
<!-- <template slot="profitAndLoss"
slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
......@@ -93,29 +62,21 @@
</span>
</span>
<span v-else>-</span>
</template> -->
<div slot="auth-button"
slot-scope="scope">
<el-button type="text"
@click="cancelAllocation(scope.row,scope.$index)">
</template> -->
<div slot="auth-button" slot-scope="scope">
<el-button type="text" @click="cancelAllocation(scope.row, scope.$index)">
取消
</el-button>
</div>
</d2-table>
</div>
<d2-form ref="addAllocationForm"
:origin-data="editData"
:form-list="editForm"
form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose">
<d2-form ref="addAllocationForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef"
@handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose">
</d2-form>
</d2-container>
<!-- 调拨 -->
<allocation-num-dialog :allocation-num-visible="allocationNumVisible"
:recordInfo="recordInfo"
v-if="allocationNumVisible"
@dialogClose="dialogClose" />
<allocation-num-dialog :allocation-num-visible="allocationNumVisible" :record-info="recordInfo"
v-if="allocationNumVisible" @dialogClose="dialogClose" />
</div>
</template>
......@@ -161,6 +122,10 @@ export default {
prop: 'goodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
......@@ -190,6 +155,10 @@ export default {
prop: 'goodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
......@@ -249,7 +218,7 @@ export default {
message: '请选择调入门店',
trigger: 'change'
}]
},
}
}
},
computed: {
......@@ -259,7 +228,7 @@ export default {
},
mounted() {
this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
//调入门店
// 调入门店
yqRelatedList({ includeSelf: false }).then(res => {
this.callInYqMerchantList = res
// this.getOptionsList()
......@@ -308,7 +277,7 @@ export default {
this.allocationNumVisible = true
},
//设置禁选
// 设置禁选
setDisabled(row) {
const index = this.chooseDataList.findIndex(item => item.id == row.id)
if (index == -1) {
......@@ -320,7 +289,7 @@ export default {
dialogClose(chooseData) {
this.allocationNumVisible = !this.allocationNumVisible
console.log(chooseData);
console.log(chooseData)
if (chooseData) {
this.chooseDataList.push(chooseData)
}
......@@ -368,7 +337,7 @@ export default {
handleAddClose(isRefresh = false) {
this.close({ tagName: '/addAllocation' })
this.$router.push({ name: 'allocationList' })
},
}
}
}
......@@ -380,6 +349,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
<!-- 调拨详情弹窗弹窗 -->
<template>
<d2-dialog title="详细信息"
:is-visible="allocationDetailVisible"
class="allocationDetailDailog"
width="70%"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<d2-dialog title="详细信息" :is-visible="allocationDetailVisible" class="allocationDetailDailog" width="70%"
:no-cancel="true" btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<div>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :search-select-obj="searchSelectObj"
:form-data="showFormData" />
</div>
<div class="d2-container-content">
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
</d2-table>
</div>
</div>
......@@ -58,9 +44,13 @@ export default {
tableOption: false,
tableColumns: [{
label: '商品名称',
prop: 'goodsName',
prop: 'goodsName'
// width: '200px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'sourceMaterialName'
}, {
......@@ -77,7 +67,7 @@ export default {
},
baseData: {
},
}
}
},
......@@ -89,7 +79,7 @@ export default {
recordInfo: {
type: Object,
default: () => { }
},
}
},
computed: {
......@@ -127,6 +117,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.allocationDetailDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
......
......@@ -2,21 +2,13 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,14 +17,9 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
......@@ -74,6 +61,12 @@ export default {
maxlength: '20',
isClear: true
}, {
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
}, {
label: '系列',
name: 'goodsSeries',
type: 'input',
......@@ -106,6 +99,10 @@ export default {
prop: 'upgradeGoodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'goodsSeries',
width: '250px'
......@@ -135,7 +132,7 @@ export default {
baseData: {
productTypeList: [],
yqMerchantList: []
},
}
}
},
computed: {
......@@ -203,7 +200,7 @@ export default {
this.$refs.recordTable.refreshTable()
},
//去补货
// 去补货
gotoReplenishment() {
// this.close({ tagName: '/orderList' })
this.$router.push({ name: 'purchasingMall' })
......@@ -222,9 +219,7 @@ export default {
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
}
}
}
......@@ -236,6 +231,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
......@@ -4,18 +4,18 @@
<d2-container>
<div class="d2-container-content">
<div class="header" slot="header" style="padding: 15px 0;">
<!-- <d2-search ref="showSearch"
<!-- <d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" /> -->
:form-data="showFormData" /> -->
<div>
<el-input v-model="searchForm.searchName" style="width:200px;" placeholder="请输入商品名称/系列" maxlength="20"
clearable />
<!-- <el-button :id="tableParams.btnId"
<!-- <el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button> -->
</el-button> -->
<el-button @click="handleSearch" size="small" type="primary" style="marginLeft:15px">
查询
</el-button>
......@@ -103,6 +103,10 @@ export default {
prop: 'goodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'sourceMaterialName',
width: '250px'
......@@ -131,6 +135,11 @@ export default {
label: '商品名称',
prop: 'goodsName',
width: '160px'
},
{
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'sourceMaterialName',
......
<!-- 盘点详情弹窗弹窗 -->
<template>
<d2-dialog title="详细信息"
:is-visible="inventoryDetailVisible"
class="inventoryDetailDailog"
width="70%"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<d2-dialog title="详细信息" :is-visible="inventoryDetailVisible" class="inventoryDetailDailog" width="70%" :no-cancel="true"
btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<div>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:search-select-obj="searchSelectObj"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :search-select-obj="searchSelectObj"
:form-data="showFormData" />
</div>
<div class="d2-container-content">
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="profitAndLoss"
slot-scope="scope">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="profitAndLoss" slot-scope="scope">
<span v-if="scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0">
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0"
style="color:blue">{{ '+' + parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0"
style="color:red">{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span
v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
<span v-if="parseFloat(scope.scope.profitAndLoss) > 0" style="color:blue">{{ '+' +
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
: '件') }}</span>
<span v-else-if="parseFloat(scope.scope.profitAndLoss) < 0" style="color:red">{{
parseFloat(scope.scope.profitAndLoss).toFixed(2) + (membraneTypeList.includes(scope.scope.goodsType) ? '米'
: '件') }}</span>
<span v-else>{{ parseFloat(scope.scope.profitAndLoss).toFixed(2) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') }}</span>
</span>
</span>
<span v-else>-</span>
......@@ -72,9 +59,13 @@ export default {
tableOption: false,
tableColumns: [{
label: '商品名称',
prop: 'goodsName',
prop: 'goodsName'
// width: '200px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'sourceMaterialName'
}, {
......@@ -104,7 +95,7 @@ export default {
},
baseData: {
},
}
}
},
......@@ -116,7 +107,7 @@ export default {
recordInfo: {
type: Object,
default: () => { }
},
}
},
computed: {
......@@ -139,7 +130,6 @@ export default {
})
},
handleClose() {
this.$emit('dialogClose')
}
......@@ -154,6 +144,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.inventoryDetailDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
......
......@@ -2,21 +2,13 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,14 +17,9 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
......@@ -90,7 +77,15 @@ export default {
type: 'input',
maxlength: '20',
isClear: true
}, {
},
{
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
},
{
label: '出库门店',
name: 'yqMerchantId',
type: 'select',
......@@ -98,7 +93,16 @@ export default {
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'yqMerchantList'
}, {
},
{
label: '使用门店',
name: 'storeUsage',
type: 'input',
maxlength: '20',
isClear: true
},
{
label: '所属分类',
name: 'goodsType',
type: 'select',
......@@ -136,6 +140,10 @@ export default {
prop: 'upgradeGoodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'goodsSeries',
width: '250px'
......@@ -169,6 +177,14 @@ export default {
label: '出库门店',
prop: 'yqMerchantName',
width: '200px'
}, {
// label: '适用门店',
label: '使用门店',
prop: 'storeUsage',
width: '200px',
formatter: cellValue => {
return cellValue.storeUsage || '-'
}
}
]
},
......@@ -189,7 +205,7 @@ export default {
],
productTypeList: [],
yqMerchantList: []
},
}
}
},
......@@ -209,6 +225,7 @@ export default {
// 获取当前登录账号可见的园区店列表
getyqMerchantList({}).then(res => {
this.baseData.yqMerchantList = res
this.baseData.storeUsageList = res
this.getOptionsList()
})
},
......@@ -279,9 +296,7 @@ export default {
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
}
}
}
......@@ -293,6 +308,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
......@@ -2,21 +2,13 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,22 +17,15 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
<!-- 查看 -->
<stock-month-dialog :stock-month-visible="stockMonthVisible"
:recordInfo="recordInfo"
v-if="stockMonthVisible"
@dialogClose="dialogClose" />
<stock-month-dialog :stock-month-visible="stockMonthVisible" :record-info="recordInfo" v-if="stockMonthVisible"
@dialogClose="dialogClose" />
</div>
</template>
......@@ -79,6 +64,13 @@ export default {
type: 'input',
maxlength: '20',
isClear: true
},
{
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
}, {
label: '系列',
name: 'goodsSeries',
......@@ -112,6 +104,10 @@ export default {
prop: 'upgradeGoodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'goodsSeries',
width: '250px'
......@@ -150,7 +146,7 @@ export default {
},
stockMonthVisible: false,
recordInfo: null,
recordInfo: null
}
},
computed: {
......@@ -246,7 +242,7 @@ export default {
// if (flag) {
// this.$refs.recordTable.refreshTable()
// }
},
}
}
}
......@@ -258,6 +254,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
......@@ -2,21 +2,13 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,14 +17,9 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
......@@ -84,13 +71,22 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'storageTypeList'
}, {
},
{
label: '商品名称',
name: 'upgradeGoodsName',
type: 'input',
maxlength: '20',
isClear: true
}, {
},
{
label: '商品编号',
name: 'productCode',
type: 'input',
maxlength: '40',
isClear: true
},
{
label: '入库门店',
name: 'yqMerchantId',
type: 'select',
......@@ -136,6 +132,10 @@ export default {
prop: 'upgradeGoodsName',
width: '160px'
}, {
label: '商品编码',
prop: 'productCode',
width: '250px'
}, {
label: '系列',
prop: 'goodsSeries',
width: '250px'
......@@ -188,8 +188,8 @@ export default {
}
],
productTypeList: [],
yqMerchantList: [],
},
yqMerchantList: []
}
}
},
computed: {
......@@ -278,9 +278,7 @@ export default {
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
}
}
}
......@@ -292,6 +290,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
......@@ -85,18 +85,18 @@ export default {
[
{
confId: 1,
confLabel: '1.1精品升级'
confLabel: '精品升级'
}, {
confId: 2,
confLabel: '1.2次新车转化',
confLabel: '次新车转化',
disabled: true
}, {
confId: 3,
confLabel: '1.3售后众筹'
confLabel: '售后众筹'
},
{
confId: 0,
confLabel: '2.0会员权益/升级',
confLabel: '会员权益/升级',
// disabled: true
}
]
......
<!-- 对账 -->
<template>
<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">
<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 == 2" :class="{act:activeType==index}" @click="handleType(index)">特殊品类{{ index }}</div>
<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 == 2" :class="{ act: activeType == index }"
@click="handleType(index)">特殊品类{{ index }}</div>
</template>
</div>
<div class="content" v-for="(item, index) in items" :key="index + 'reconc'">
......@@ -18,7 +36,7 @@
<div class="msg">
<div class="msg-title">分账品类:</div>
<div class="msg-val">
{{ formatGoodsTypeGroupRelations(item.groupType,item.goodsTypeGroupRelations) }}
{{ formatGoodsTypeGroupRelations(item.groupType, item.goodsTypeGroupRelations) }}
</div>
</div>
</div>
......@@ -40,7 +58,8 @@
<div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules1'">
<div class="detail" v-if="childItem.targetType == 1">
<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.targetMerchantName }}</div>
<div class="detail-i">{{ childItem.targetMerchantId }}</div>
......@@ -64,23 +83,21 @@
<div class="cost">对账对象</div>
<div class="cost">商户号</div>
</div>
<div v-for="(childItem, idx) in item.expenseCategoryRules"
:key="idx + 'expenseCategoryRules2'">
<div
class="detail"
v-if="childItem.targetType == 2">
<div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules2'">
<div class="detail" v-if="childItem.targetType == 2">
<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.targetMerchantName }}</div>
<div class="detail-i">{{ childItem.targetMerchantId }}</div>
</div>
<!-- <div class="detail">
<!-- <div class="detail">
<div class="detail-i">对账费用2</div>
<div class="detail-i">按收入25%</div>
<div class="detail-i">商户名称商户名称商户名称</div>
<div class="detail-i">48936562165%</div>
</div> -->
</div> -->
</div>
</div>
......@@ -93,21 +110,29 @@
</template>
<script>
import {
severSelectOptionsLabel
} from "@/common/constant/merchant"
export default {
name: "Reconciliation",
props: {
items: {
type: Array,
default: () => []
},
formItem: {
type: Object,
default: () => { }
}
},
data() {
return {
activeType: 0
activeType: 0,
severSelectOptionsLabel
}
},
created() {},
mounted() {},
created() { },
mounted() { },
methods: {
handleType(num) {
this.activeType = num
......
......@@ -2,12 +2,9 @@
<d2-Container>
<div class="merchant-checkdetail">
<div class="title">
<el-tabs v-model="activeName"
@tab-click="handleClick">
<el-tab-pane label="分账规则"
name="first"></el-tab-pane>
<el-tab-pane label="对账规则"
name="second"></el-tab-pane>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="分账规则" name="first"></el-tab-pane>
<el-tab-pane label="对账规则" name="second"></el-tab-pane>
</el-tabs>
</div>
<!-- <div class="type">
......@@ -22,13 +19,11 @@
<!-- 对账 -->
<template v-if="activeName == 'second'">
<reconciliation :items="checkRecordList" />
<reconciliation :form-item="checkRecordList" :items="checkRecordList.goodsTypeGroupReconciliationRules || []" />
</template>
<div class="btns">
<el-button @click="handleConfirm"
size="small"
type="primary">
<el-button @click="handleConfirm" size="small" type="primary">
返回
</el-button>
<!-- <el-button size="small"
......@@ -55,8 +50,7 @@ export default {
// 分账数据
checkDetailItem: {},
// 对账数据
checkRecordList: []
checkRecordList: {}
}
},
created() {
......@@ -95,7 +89,8 @@ export default {
}
const res = await getEffectRuleApi(params)
this.checkRecordList = res?.goodsTypeGroupReconciliationRules
this.checkRecordList = res
// this.checkRecordList = res?.goodsTypeGroupReconciliationRules
// console.log('res: ', res)
},
getRowItem() {
......@@ -132,17 +127,20 @@ export default {
</script>
<style lang="scss">
$color: #2a58ad;
.merchant-checkdetail {
// height: 100%;
padding-left: 20px;
padding-right: 16px;
padding-bottom: 20px;
// overflow-y: auto;
.title {
}
.title {}
.type {
margin-top: 6px;
display: flex;
.btn {
width: 96px;
height: 40px;
......@@ -152,14 +150,17 @@ $color: #2a58ad;
text-align: center;
cursor: pointer;
}
.act {
font-weight: 500;
color: $color;
background: #fff;
}
}
.content {
background: #ffffff;
.part1 {
.tit {
display: flex;
......@@ -171,6 +172,7 @@ $color: #2a58ad;
color: #333333;
box-sizing: border-box;
border-bottom: 1px solid #ebebeb;
.line {
margin-left: 16px;
margin-right: 8px;
......@@ -180,19 +182,24 @@ $color: #2a58ad;
border-radius: 2px;
}
}
.cont {
&.cont-table {
display: block;
}
&.cont-table1 {
padding: 16px 20px 20px;
}
display: flex;
flex-wrap: wrap;
padding: 16px 20px 32px;
.mt16 {
margin-top: 16px;
}
.msg {
padding-bottom: 12px;
flex: 1 0 auto;
......@@ -200,6 +207,7 @@ $color: #2a58ad;
display: flex;
align-items: flex-start;
line-height: 24px;
.msg-title {
width: 138px;
// height: 20px;
......@@ -207,6 +215,7 @@ $color: #2a58ad;
color: #666666;
text-align: right;
}
.msg-val {
// height: 20px;
font-size: 14px;
......@@ -214,20 +223,24 @@ $color: #2a58ad;
text-align: left;
}
}
.compute {
margin-bottom: 10px;
display: flex;
font-size: 14px;
color: #666666;
.manner {
}
.manner {}
.online {
& + .online {
&+.online {
margin-left: 44px;
}
color: $color;
}
}
.white-table {
margin-bottom: 16px;
display: flex;
......@@ -236,6 +249,7 @@ $color: #2a58ad;
color: #666666;
border-top: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5;
.type1 {
// &:first-child {
// border-top: 1px solid #E5E5E5;
......@@ -248,62 +262,76 @@ $color: #2a58ad;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
.type-name {
text-align: right;
width: 90px;
}
.type-val {
flex: 1;
display: flex;
color: #1d1d1d;
}
.type-color {
color: $color;
}
.date {
margin-right: 10px;
color: #1d1d1d;
}
}
.type2 {
width: 66.66%;
}
}
.title-table {
font-size: 14px;
color: #333333;
border: 1px solid #e8e8ea;
.head {
display: flex;
height: 40px;
line-height: 40px;
text-align: center;
background: #f2f4f7;
.cost {
& + .cost {
&+.cost {
border-left: 1px solid #e8e8ea;
}
flex: 1;
}
}
.detail {
display: flex;
min-height: 40px;
color: #666666;
border-top: 1px solid #e8e8ea;
.detail-i {
display: flex;
justify-content: center;
align-items: center;
& + .detail-i {
&+.detail-i {
border-left: 1px solid #e8e8ea;
}
flex: 1;
}
}
}
}
}
// .part2 {
// }
// .part3 {
......@@ -313,6 +341,7 @@ $color: #2a58ad;
// .part5 {
// }
}
.btns {
margin-top: 16px;
display: flex;
......
......@@ -2,43 +2,34 @@
<d2-Container>
<div class="merchant-checkrecord">
<div class="title">
<el-tabs v-model="activeName"
@tab-click="handleClick">
<el-tab-pane label="分账规则"
name="first"></el-tab-pane>
<el-tab-pane label="对账规则"
name="second"></el-tab-pane>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="分账规则" name="first"></el-tab-pane>
<el-tab-pane label="对账规则" name="second"></el-tab-pane>
</el-tabs>
</div>
<div class="account-detail"
ref="accountDetail">
<div class="account-detail" ref="accountDetail">
<!-- v-resize="resetTableHeight"
:ref="'resize' + index" -->
<div v-if="formArray && formArray.length">
<div v-for="(formItem, index) in formArray"
:ref="'resize' + index"
:key="index">
<p class="edit-sub-title"
:class="{ 'sub-border': !formItem.show }">
<div v-for="(formItem, index) in formArray" :ref="'resize' + index" :key="index">
<p class="edit-sub-title" :class="{ 'sub-border': !formItem.show }">
<span class="label">
<span>{{ formItem.formatEffectStartDate }}</span>
<span v-if="formItem.formatEffectStartDate"> - </span>
<span :class="{ labelColor: !formItem.formatEffectEndDate }">{{
formItem.formatEffectStartDate
? formItem.formatEffectEndDate
? formItem.formatEffectEndDate
? formItem.formatEffectEndDate
: "生效中"
: "待生效"
: "生效中"
: "待生效"
}}</span>
</span>
<span class="updatedInfo">
操作人: {{ formItem.updatedBy }} 操作时间:
{{ formItem.formatUpdatedDate }}
</span>
<span class="collapse"
@click="collapseItem(index)">
<i :class="{ move: formItem.show }"
class="arrow el-icon-arrow-down" />
<span class="collapse" @click="collapseItem(index)">
<i :class="{ move: formItem.show }" class="arrow el-icon-arrow-down" />
{{ formItem.show ? "收起" : "展开" }}
</span>
</p>
......@@ -55,21 +46,17 @@
<!-- 对账 -->
<template v-if="activeName == 'second'">
<reconciliation :items="formItem.typeList" />
<reconciliation :form-item="formItem" :items="formItem.typeList" />
</template>
</div>
</el-collapse-transition>
</div>
</div>
<div v-else
class="nothingtips">
<img style="height: 109px; width: 109px"
src="../images/empty.png" />
<p class="title"
v-if="activeName == 'first'">暂无财务规则</p>
<p class="title"
v-else>暂无对账规则</p>
<div v-else class="nothingtips">
<img style="height: 109px; width: 109px" src="../images/empty.png" />
<p class="title" v-if="activeName == 'first'">暂无财务规则</p>
<p class="title" v-else>暂无对账规则</p>
<p class="tips">快去设置看看~</p>
</div>
......@@ -248,10 +235,12 @@ export default {
</script>
<style lang="scss">
$color: #2a58ad;
.merchant-checkrecord {
padding-left: 20px;
padding-right: 16px;
padding-bottom: 20px;
.account-detail {
// height: 400px;
// height: calc(100vh - 200px);
......@@ -259,12 +248,14 @@ $color: #2a58ad;
overflow-y: scroll;
overflow-x: hidden;
}
.edit-sub-title {
padding: 17px 0;
margin: 0;
display: flex;
justify-content: space-between;
font-size: 14px;
&::before {
top: 50%;
transform: translateY(-50%);
......@@ -274,37 +265,46 @@ $color: #2a58ad;
padding-left: 8px;
width: 37%;
}
.labelColor {
color: #0947c6;
}
.updatedInfo {
width: 40%;
text-align: left;
}
.collapse {
padding-right: 20px;
color: #0947c6;
cursor: pointer;
.arrow {
transition: all 1s;
}
.move {
transform: rotate(-180deg);
}
}
}
.sub-border {
animation: border-delay 1s forwards;
}
@keyframes border-delay {
0% {
/* opacity: 0; */
/* right: -100%; */
}
100% {
border-bottom: 1px solid #d8d8d8;
}
}
.account-detail .detail-img {
width: 180px;
height: 104px;
......@@ -315,6 +315,7 @@ $color: #2a58ad;
cursor: pointer;
margin-right: 100px;
}
// .account-detail .detail-img:hover {
// margin-right: 0px;
// width: 90%;
......@@ -328,6 +329,7 @@ $color: #2a58ad;
background: #f4f6fc;
border-radius: 2px;
}
.imageContainer {
// style="display: inline-block;"
// max-height: 50%;
......@@ -340,6 +342,7 @@ $color: #2a58ad;
// justify-content: space-between;
}
.imageLabel {
line-height: 14px;
width: 137px;
......@@ -349,6 +352,7 @@ $color: #2a58ad;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
}
.img-btns {
display: none;
position: absolute;
......@@ -361,6 +365,7 @@ $color: #2a58ad;
cursor: pointer;
background: rgba(0, 0, 0, 0.5);
}
.img-btns .btn-item {
position: absolute;
top: 50%;
......@@ -377,6 +382,7 @@ $color: #2a58ad;
.imageContainer:hover .img-btns {
display: block;
}
/* .transition-box {
margin-bottom: 10px;
width: 200px;
......@@ -394,45 +400,54 @@ $color: #2a58ad;
cursor: pointer;
// /* 鼠标样式*/
}
.link:link {
color: #06f;
text-decoration: none;
// /* 未访问的链接 */
}
.link:visited {
color: #999;
text-decoration: line-through;
// /* 已访问的链接 */
}
.link:hover {
color: #f00;
//* 鼠标移动到链接上 */
text-decoration: underline;
}
.link:active {
// /* 选定的链接 */
color: #f0f;
}
.nothingtips {
// align-items: center;
text-align: center;
font-size: 16px;
padding-top: 40px;
.title {
font-size: 20px;
color: #666;
margin: 16px 0;
}
.tips {
font-size: 12px;
color: #999;
}
}
.title {
}
.title {}
.type {
margin-top: 6px;
display: flex;
.btn {
width: 96px;
height: 40px;
......@@ -442,14 +457,17 @@ $color: #2a58ad;
text-align: center;
cursor: pointer;
}
.act {
font-weight: 500;
color: $color;
background: #fff;
}
}
.content {
background: #ffffff;
.part1 {
.tit {
display: flex;
......@@ -461,6 +479,7 @@ $color: #2a58ad;
color: #333333;
box-sizing: border-box;
border-bottom: 1px solid #ebebeb;
.line {
margin-left: 16px;
margin-right: 8px;
......@@ -470,19 +489,24 @@ $color: #2a58ad;
border-radius: 2px;
}
}
.cont {
&.cont-table {
display: block;
}
&.cont-table1 {
padding: 16px 20px 20px;
}
display: flex;
flex-wrap: wrap;
padding: 16px 20px 32px;
.mt16 {
margin-top: 16px;
}
.msg {
padding-bottom: 12px;
flex: 1 0 auto;
......@@ -490,6 +514,7 @@ $color: #2a58ad;
display: flex;
align-items: flex-start;
line-height: 24px;
.msg-title {
width: 138px;
// height: 20px;
......@@ -497,6 +522,7 @@ $color: #2a58ad;
color: #666666;
text-align: right;
}
.msg-val {
// height: 20px;
font-size: 14px;
......@@ -504,24 +530,29 @@ $color: #2a58ad;
text-align: left;
}
}
.compute {
&:first-child {
margin-top: 0px;
}
margin-top: 16px;
margin-bottom: 10px;
display: flex;
font-size: 14px;
color: #666666;
.manner {
}
.manner {}
.online {
& + .online {
&+.online {
margin-left: 44px;
}
color: $color;
}
}
.white-table {
margin-bottom: 16px;
display: flex;
......@@ -530,6 +561,7 @@ $color: #2a58ad;
color: #666666;
border-top: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5;
.type1 {
// &:first-child {
// border-top: 1px solid #E5E5E5;
......@@ -542,62 +574,76 @@ $color: #2a58ad;
border-bottom: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
box-sizing: border-box;
.type-name {
text-align: right;
width: 90px;
}
.type-val {
flex: 1;
display: flex;
color: #1d1d1d;
}
.type-color {
color: $color;
}
.date {
margin-right: 10px;
color: #1d1d1d;
}
}
.type2 {
width: 66.66%;
}
}
.title-table {
font-size: 14px;
color: #333333;
border: 1px solid #e8e8ea;
.head {
display: flex;
height: 40px;
line-height: 40px;
text-align: center;
background: #f2f4f7;
.cost {
& + .cost {
&+.cost {
border-left: 1px solid #e8e8ea;
}
flex: 1;
}
}
.detail {
display: flex;
min-height: 40px;
color: #666666;
border-top: 1px solid #e8e8ea;
.detail-i {
display: flex;
justify-content: center;
align-items: center;
& + .detail-i {
&+.detail-i {
border-left: 1px solid #e8e8ea;
}
flex: 1;
}
}
}
}
}
// .part2 {
// }
// .part3 {
......@@ -607,5 +653,4 @@ $color: #2a58ad;
// .part5 {
// }
}
}
</style>
}</style>
......@@ -120,7 +120,7 @@ export default {
numList: [
{
confId: 0,
confLabel: '1.0'
confLabel: '2.0'
}, {
confId: 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 版本功能需求
| 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-life-system | dev_v4.18.0 | 王琦琳 | 王琦琳 | 张杰 |
| 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.19.0 | 王琦琳 | 张晓玮 | 张杰 |
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!