Commit 10115c9f by 吴娟华

'合并修改'

2 parents 53787cb2 ed7619c3
...@@ -46,7 +46,8 @@ export function baseGoodsUpdate(data) { ...@@ -46,7 +46,8 @@ export function baseGoodsUpdate(data) {
// 下架商品 // 下架商品
export function baseGoodsUpOrDown(data) { export function baseGoodsUpOrDown(data) {
data.method = `${path2}basegoods.changeShelfStatus` // data.method = `${path2}basegoods.changeShelfStatus`
data.method = `${path2}basegoods.shelfStatus.update`
return request(data, 'post') return request(data, 'post')
} }
......
...@@ -41,7 +41,8 @@ export function getGoods(data) { ...@@ -41,7 +41,8 @@ export function getGoods(data) {
/** 预录订单 */ /** 预录订单 */
export function addOrder(data) { export function addOrder(data) {
data.method = `${path}order.advanceCreate` // data.method = `${path}order.advanceCreate`
data.method = `${path}order.advance.add`
return request(data, 'post') return request(data, 'post')
} }
......
...@@ -5,7 +5,7 @@ $private-left-side-color:#0947C6; ...@@ -5,7 +5,7 @@ $private-left-side-color:#0947C6;
// $private-menu-active-background-color:#154190; // $private-menu-active-background-color:#154190;
$private-menu-active-background-color:#7EA8FF; $private-menu-active-background-color:#7EA8FF;
$private-item-hover:rgba(#000,.05); $private-item-hover:rgba(#000,.05);
$private-menu-text-color:#7F8FA4; $private-menu-text-color:rgba(#FFFFFF,.5);
$active-i-color:#FFFFFF; $active-i-color:#FFFFFF;
// 主题背景颜色 // 主题背景颜色
......
...@@ -94,7 +94,8 @@ ...@@ -94,7 +94,8 @@
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
right: 0px; right: 0px;
background-color: #E7EAEC; // background-color: #E7EAEC;
background-color: #F0F2F5;
} }
.d2-theme-container-main-body { .d2-theme-container-main-body {
position: relative; position: relative;
...@@ -245,10 +246,11 @@ ...@@ -245,10 +246,11 @@
// 主体部分分为多页面控制器 和主体 // 主体部分分为多页面控制器 和主体
.d2-theme-container-main-header { .d2-theme-container-main-header {
height: 40px; height: 40px;
margin: 20px 16px; // margin: 20px 16px;
margin-bottom: 20px;
// 多页面控制器 // 多页面控制器
.d2-multiple-page-control-group { .d2-multiple-page-control-group {
padding: 5px 10px 0px; padding: 5px 16px 0px;
.d2-multiple-page-control-content { .d2-multiple-page-control-content {
overflow: auto; overflow: auto;
position: relative; position: relative;
...@@ -257,12 +259,17 @@ ...@@ -257,12 +259,17 @@
.el-tabs__header.is-top { .el-tabs__header.is-top {
margin: 0px; margin: 0px;
} }
.el-tabs__header {
border-bottom: none;
}
.el-tabs__nav-wrap{ .el-tabs__nav-wrap{
margin-bottom: 0;
.el-tabs__nav-scroll{ .el-tabs__nav-scroll{
// padding-left: 20px; // padding-left: 20px;
} }
} }
.el-tabs__nav-wrap.is-scrollable{ .el-tabs__nav-wrap.is-scrollable{
padding-left: 0px;
.el-tabs__nav-scroll{ .el-tabs__nav-scroll{
padding-left: 0; padding-left: 0;
} }
...@@ -270,8 +277,9 @@ ...@@ -270,8 +277,9 @@
.el-tabs__nav { .el-tabs__nav {
overflow: hidden; overflow: hidden;
.el-tabs__item{ .el-tabs__item{
height: 33px; height: 34px;
line-height: 33px; line-height: 34px;
border-bottom: none;
} }
} }
} }
...@@ -308,20 +316,22 @@ ...@@ -308,20 +316,22 @@
top: 0px; top: 0px;
right: 16px; right: 16px;
bottom: 20px; bottom: 20px;
left: 16px; left: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
// overflow: hidden; // overflow: hidden;
overflow-y: scroll; overflow-y: scroll;
.d2-container-full__header { .d2-container-full__header {
// padding: 10px 10px; // padding: 10px 10px;
margin-bottom: 10px; margin-bottom: 20px;
border-radius: 5px;
} }
.d2-container-full__body { .d2-container-full__body {
// flex-grow: 1; // flex-grow: 1;
// height: 100%; // height: 100%;
// padding: 20px 20px; // padding: 20px 20px;
// overflow: auto; // overflow: auto;
border-radius: 5px;
position: relative; position: relative;
.d2-container-content { .d2-container-content {
padding: 20px 40px; padding: 20px 40px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: limin * @Author: limin
* @Date: 2019-09-01 19:06:01 * @Date: 2019-09-01 19:06:01
* @Last Modified by: chenwq * @Last Modified by: chenwq
* @Last Modified time: 2021-01-08 16:49:52 * @Last Modified time: 2021-01-12 10:58:12
*/ */
// import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account' // import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account'
...@@ -193,3 +193,15 @@ export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minVal ...@@ -193,3 +193,15 @@ export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minVal
return newValue ? oldValue : '' return newValue ? oldValue : ''
} }
} }
/**
* 时间控件-限制月份
*/
export const rangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
...@@ -48,8 +48,9 @@ ...@@ -48,8 +48,9 @@
/> />
<span <span
v-show="!formData[i.headImg.attr]" v-show="!formData[i.headImg.attr]"
class="commodity-img seat-img" >
></span> <img class="commodity-img" src="./image/no-choice.png"/>
</span>
</span> </span>
<div :style="{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}"> <div :style="{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
<div <div
...@@ -74,7 +75,9 @@ ...@@ -74,7 +75,9 @@
:disabled="item.isDisabled" :disabled="item.isDisabled"
clearable clearable
@input="item.handleInput" @input="item.handleInput"
></el-input> >
<i slot="suffix" class="item-unit">{{item.unit}}</i>
</el-input>
<!-- 选择框 --> <!-- 选择框 -->
<el-select <el-select
v-else-if="item.type === 'select'" v-else-if="item.type === 'select'"
...@@ -453,10 +456,10 @@ ...@@ -453,10 +456,10 @@
</template> </template>
<span v-else>{{item.name ? formData[item.name] : item.value}}</span> <span v-else>{{item.name ? formData[item.name] : item.value}}</span>
</el-form-item> </el-form-item>
<span <!-- <span
v-show="item.unit" v-show="item.unit"
class="item-unit" class="item-unit"
>{{item.unit}}</span> >{{item.unit}}</span> -->
<div <div
v-show="item.tips" v-show="item.tips"
class="item-tips" class="item-tips"
...@@ -708,11 +711,6 @@ export default { ...@@ -708,11 +711,6 @@ export default {
if (this.proIndex !== -1) { if (this.proIndex !== -1) {
this.formData.upgradeGoods[this.proIndex] = proInfo this.formData.upgradeGoods[this.proIndex] = proInfo
} else { } else {
proInfo = {
...proInfo,
profitType: 1,
profitValue: '0'
}
console.log(proInfo) console.log(proInfo)
this.profitOldVal.push('0') this.profitOldVal.push('0')
this.formData.upgradeGoods.push(proInfo) this.formData.upgradeGoods.push(proInfo)
...@@ -949,7 +947,9 @@ export default { ...@@ -949,7 +947,9 @@ export default {
text-align-last: justify; text-align-last: justify;
} */ } */
.d2-form .item-unit { .d2-form .item-unit {
margin-left: 10px; /* margin-left: 10px; */
font-style: inherit;
color: #606266;
} }
.d2-form .item-tips { .d2-form .item-tips {
position: absolute; position: absolute;
......
...@@ -10,7 +10,14 @@ ...@@ -10,7 +10,14 @@
class="relatePro" class="relatePro"
> >
<div class="relateProDialog flex"> <div class="relateProDialog flex">
<img :src="proInfo.thumbUrl" /> <img
v-show="proInfo.thumbUrl"
:src="proInfo.thumbUrl"
/>
<img
v-show="!proInfo.thumbUrl"
src="./image/no-choice.png"
/>
<el-form <el-form
:model="proInfo" :model="proInfo"
:rules="rules" :rules="rules"
...@@ -43,6 +50,7 @@ ...@@ -43,6 +50,7 @@
<el-form-item label="分类"> <el-form-item label="分类">
<el-input <el-input
disabled disabled
placeholder="分类"
:value="proInfo.goodsTypeName" :value="proInfo.goodsTypeName"
class="dis-in-block" class="dis-in-block"
></el-input> ></el-input>
...@@ -54,6 +62,7 @@ ...@@ -54,6 +62,7 @@
<el-form-item label="编号"> <el-form-item label="编号">
<el-input <el-input
disabled disabled
placeholder="编号"
:value="proInfo.goodsCode" :value="proInfo.goodsCode"
class="dis-in-block" class="dis-in-block"
></el-input> ></el-input>
...@@ -69,8 +78,12 @@ ...@@ -69,8 +78,12 @@
placeholder="请输入建议到店价格" placeholder="请输入建议到店价格"
class="dis-in-block" class="dis-in-block"
@input="handleShopPrice" @input="handleShopPrice"
></el-input> >
<span>元</span> <i
slot="suffix"
class="input-suffix"
>元</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="w-50"> <div class="w-50">
...@@ -83,8 +96,12 @@ ...@@ -83,8 +96,12 @@
placeholder="请输入建议升级价格" placeholder="请输入建议升级价格"
class="dis-in-block" class="dis-in-block"
@input="handleUpgradePrice" @input="handleUpgradePrice"
></el-input> >
<span>元</span> <i
slot="suffix"
class="input-suffix"
>元</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="w-50"> <div class="w-50">
...@@ -97,8 +114,12 @@ ...@@ -97,8 +114,12 @@
placeholder="请输入额外成本" placeholder="请输入额外成本"
class="dis-in-block" class="dis-in-block"
@input="handleExtraCost" @input="handleExtraCost"
></el-input> >
<span>元</span> <i
slot="suffix"
class="input-suffix"
>元</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="w-50"> <div class="w-50">
...@@ -109,8 +130,12 @@ ...@@ -109,8 +130,12 @@
clearable clearable
class="dis-in-block" class="dis-in-block"
@input="handleMaxUpgradeDiscount" @input="handleMaxUpgradeDiscount"
></el-input> >
<span>折</span> <i
slot="suffix"
class="input-suffix"
>折</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -150,7 +175,12 @@ ...@@ -150,7 +175,12 @@
@input="handleProfitInput" @input="handleProfitInput"
placeholder="请输入分润比例" placeholder="请输入分润比例"
class="dis-in-block" class="dis-in-block"
></el-input>% >
<i
slot="suffix"
class="input-suffix"
>%</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -177,12 +207,20 @@ ...@@ -177,12 +207,20 @@
@input="handlePartnerProfitPer" @input="handlePartnerProfitPer"
placeholder="请输入分润比例" placeholder="请输入分润比例"
class="dis-in-block" class="dis-in-block"
></el-input>% >
<i
slot="suffix"
class="input-suffix"
>%</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
</div> </div>
<span class="btn-txt" slot="btn-start">提示:配置的分润规则和比例将优先根据门店打开方式结算。</span> <span
class="btn-txt"
slot="btn-start"
>提示:配置的分润规则和比例将优先根据门店打开方式结算。</span>
</d2-dialog> </d2-dialog>
</template> </template>
...@@ -232,18 +270,6 @@ export default { ...@@ -232,18 +270,6 @@ export default {
} }
}, },
// watch: {
// 'proInfo.upgradePrice'(val, oldVal) {
// this.proInfo.upgradePrice = limitPrice(val, oldVal, 8, 2)
// },
// 'proInfo.shopPrice'(val, oldVal) {
// this.proInfo.shopPrice = limitPrice(val, oldVal, 6, 2)
// },
// 'proInfo.maxUpgradeDiscount'(val, oldVal) {
// this.proInfo.maxUpgradeDiscount = limitPrice(val, oldVal, 1, 1, 1)
// }
// },
props: { props: {
relateProVisible: { relateProVisible: {
type: Boolean, type: Boolean,
...@@ -331,13 +357,17 @@ export default { ...@@ -331,13 +357,17 @@ export default {
margin-right: 20px; margin-right: 20px;
} }
.relateProDialog .dis-in-block { .relateProDialog .dis-in-block {
display: inline-block; /* display: inline-block; */
width: 75%; width: 87%;
margin-right: 6px; /* margin-right: 6px; */
} }
.relatePro .btn-txt { .relatePro .btn-txt {
display: inline-block; display: inline-block;
margin-right: 154px; margin-right: 154px;
color: #606266; color: #606266;
} }
.relatePro .input-suffix {
font-style: inherit;
color: #606266;
}
</style> </style>
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div class="d2-search"> <div class="d2-search">
<el-col <!-- <el-col
v-if="hasTitle" v-if="hasTitle"
class="d2-search-title" class="d2-search-title"
>搜索条件</el-col> >搜索条件</el-col> -->
<el-form <el-form
:inline="true" :inline="true"
v-model="searchForm" v-model="searchForm"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
v-model="searchForm[item.name]" v-model="searchForm[item.name]"
:clearable="item.isClear || false" :clearable="item.isClear || false"
:placeholder="'请选择' + item.label" :placeholder="'请选择' + item.label"
:filterable="item.filterable" :filterable="!item.noFilter"
:disabled="item.isDisabled" :disabled="item.isDisabled"
@change="selectAddAttr($event, item)" @change="selectAddAttr($event, item)"
> >
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:picker-options="pickerOption[item.pickerOptions]"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
...@@ -61,10 +62,14 @@ ...@@ -61,10 +62,14 @@
</template> </template>
<script> <script>
import { rangePickerOptions } from '@/common/constants'
export default { export default {
name: 'd2-search', name: 'd2-search',
data() { data() {
return { return {
pickerOption: {
rangePickerOptions: rangePickerOptions
}
} }
}, },
...@@ -104,7 +109,7 @@ export default { ...@@ -104,7 +109,7 @@ export default {
.d2-search { .d2-search {
min-width: 922px; min-width: 922px;
} }
.d2-search .d2-search-title { /* .d2-search .d2-search-title {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
color: #0947c6; color: #0947c6;
...@@ -113,9 +118,9 @@ export default { ...@@ -113,9 +118,9 @@ export default {
padding: 0 20px; padding: 0 20px;
border-bottom: 1px solid #e7eaec; border-bottom: 1px solid #e7eaec;
margin-bottom: 30px !important; margin-bottom: 30px !important;
} } */
.d2-search .d2-search-block { .d2-search .d2-search-block {
padding: 0 40px; padding: 16px 40px 0;
} }
/* .d2-search .d2-search-block */ /* .d2-search .d2-search-block */
.d2-search .el-form-item { .d2-search .el-form-item {
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
v-loading="loading" v-loading="loading"
border border
:highlight-current-row="true" :highlight-current-row="true"
:stripe="true"
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelect" @selection-change="handleSelect"
:tree-props="{children: 'upgradeGoodsList'}" :tree-props="{children: 'upgradeGoodsList'}"
...@@ -79,7 +78,6 @@ ...@@ -79,7 +78,6 @@
label="操作" label="操作"
:align="tableParams.tableOption.align||'center'" :align="tableParams.tableOption.align||'center'"
:width="tableParams.tableOption.width||'200'" :width="tableParams.tableOption.width||'200'"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<slot <slot
......
...@@ -51,7 +51,7 @@ export const sys = [ ...@@ -51,7 +51,7 @@ export const sys = [
* 所有需动态过滤的资源点 * 所有需动态过滤的资源点
* 907 - 总览 * 907 - 总览
* 902 - 流量管理 * 902 - 流量管理
* 903 - 商品库 * 903 - 产品管理
* 904 - 订单管理 * 904 - 订单管理
* 905 - 财务管理 * 905 - 财务管理
* 906 - 系统设置 * 906 - 系统设置
...@@ -93,7 +93,7 @@ export const resources = { ...@@ -93,7 +93,7 @@ export const resources = {
name: 'recordList', name: 'recordList',
icon: 'document', icon: 'document',
meta: { meta: {
title: '预录客户列表', title: '预录信息',
authId: '90202', authId: '90202',
parentId: '902', parentId: '902',
cache: true cache: true
...@@ -139,7 +139,7 @@ export const resources = { ...@@ -139,7 +139,7 @@ export const resources = {
name: 'goods', name: 'goods',
icon: 's-goods', icon: 's-goods',
meta: { meta: {
title: '商品库', title: '产品管理',
authId: '903', authId: '903',
parentId: '1', parentId: '1',
cache: true cache: true
......
...@@ -10,18 +10,6 @@ ...@@ -10,18 +10,6 @@
class="show-search" class="show-search"
:searchForm="searchForm" :searchForm="searchForm"
:formData="showFormData" :formData="showFormData"
></d2-search>
<i
@click="handleShowHide"
:class="{'search-icon': true, 'el-icon-arrow-down': !hideVisible, 'el-icon-arrow-up': hideVisible}"
></i>
<d2-search
ref="hideSearch"
class="hide-search"
v-show="hideVisible"
:searchForm="searchForm"
:hasTitle="hasTitle"
:formData="hideFormData"
> >
<p> <p>
<el-input <el-input
...@@ -163,6 +151,7 @@ ...@@ -163,6 +151,7 @@
label="流量来源" label="流量来源"
align="center" align="center"
prop="merchantName" prop="merchantName"
:width="merchantMaxLen < 11 ? '90px' : ((merchantMaxLen / 2) * 15) + 'px'"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="推荐人" label="推荐人"
...@@ -206,7 +195,7 @@ ...@@ -206,7 +195,7 @@
:page-sizes="[10,20,30,40]" :page-sizes="[10,20,30,40]"
:page-size="page.pageSize" :page-size="page.pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="sizes,total,->,prev,pager,next,jumper"
> >
</el-pagination> </el-pagination>
</div> </div>
...@@ -221,8 +210,7 @@ export default { ...@@ -221,8 +210,7 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
hasTitle: false, merchantMaxLen: 0,
hideVisible: false,
count: { count: {
orderCount: 0, orderCount: 0,
upgradeCount: 0 upgradeCount: 0
...@@ -286,20 +274,21 @@ export default { ...@@ -286,20 +274,21 @@ export default {
}, { }, {
label: '服务时间', label: '服务时间',
name: 'updateTime', name: 'updateTime',
type: 'datePicker' type: 'datePicker',
}], pickerOptions: 'rangePickerOptions'
hideFormData: [{ }, {
label: '基础商品', label: '基础商品',
name: 'baseGoodsId', name: 'baseGoodsId',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'id', optionId: 'goodsCode',
optionLabel: 'goodsName', optionLabel: 'goodsName',
optionsName: 'goodList' optionsName: 'goodList'
}, { }, {
label: '创建时间', label: '创建时间',
name: 'createTime', name: 'createTime',
type: 'datePicker' type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}, { }, {
label: '创建方式', label: '创建方式',
name: 'source', name: 'source',
...@@ -416,6 +405,7 @@ export default { ...@@ -416,6 +405,7 @@ export default {
getList(params).then(res => { getList(params).then(res => {
// console.log(res) // console.log(res)
this.tableData = res.list this.tableData = res.list
this.merchantMaxLen = Math.max(...this.tableData.map(item => item.merchantName.length))
this.page.pageNum = res.pageNum this.page.pageNum = res.pageNum
this.page.pageSize = res.pageSize this.page.pageSize = res.pageSize
this.total = res.total this.total = res.total
...@@ -430,7 +420,7 @@ export default { ...@@ -430,7 +420,7 @@ export default {
}) })
}, },
getOptionsList() { getOptionsList() {
var formList = ['showFormData', 'hideFormData'] var formList = ['showFormData']
formList.forEach(i => { formList.forEach(i => {
this[i].forEach((item, index) => { this[i].forEach((item, index) => {
if (item.type === 'select') { if (item.type === 'select') {
...@@ -466,6 +456,7 @@ export default { ...@@ -466,6 +456,7 @@ export default {
merchantId: '', merchantId: '',
baseGoodsId: '' baseGoodsId: ''
} }
this.userInfo.beSuper && (this.baseData.storeIdList = [])
this.baseData.goodList = [] this.baseData.goodList = []
this.getOptionsList() this.getOptionsList()
}, },
...@@ -475,9 +466,6 @@ export default { ...@@ -475,9 +466,6 @@ export default {
exportFile(params).then(res => { exportFile(params).then(res => {
this.$open(res) this.$open(res)
}) })
},
handleShowHide() {
this.hideVisible = !this.hideVisible
} }
} }
} }
...@@ -490,13 +478,13 @@ export default { ...@@ -490,13 +478,13 @@ export default {
.search-icon { .search-icon {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
height: 20px; height: 10px;
text-align: center; text-align: center;
border-bottom: 1px solid #dcdfe6; /* border-bottom: 1px solid #dcdfe6; */
cursor: pointer; cursor: pointer;
} }
.customer-list .hide-search { .customer-list .hide-search {
margin-top: 20px; /* margin-top: 20px; */
} }
.customer-list .custom-input { .customer-list .custom-input {
display: inline-block; display: inline-block;
......
...@@ -19,9 +19,11 @@ ...@@ -19,9 +19,11 @@
v-show="userInfo.beSuper" v-show="userInfo.beSuper"
> >
<el-select <el-select
v-if="!isDisabled"
v-model="form.sellerMerchantId" v-model="form.sellerMerchantId"
placeholder="请选择" placeholder="请选择"
class="el_select itd" class="el_select itd"
:disabled="isDisabled"
@change="handleSellerMerchantChange" @change="handleSellerMerchantChange"
> >
<el-option <el-option
...@@ -31,6 +33,7 @@ ...@@ -31,6 +33,7 @@
:label="item.merchantName" :label="item.merchantName"
/> />
</el-select> </el-select>
<span v-else>{{form.sellerMerchantName}}</span>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -40,9 +43,11 @@ ...@@ -40,9 +43,11 @@
:class="{'is-error': hasCusError }" :class="{'is-error': hasCusError }"
> >
<el-select <el-select
v-if="!isDisabled"
v-model="form.merchantId" v-model="form.merchantId"
placeholder="请选择" placeholder="请选择"
class="el_select itd" class="el_select itd"
:disabled="isDisabled"
@change="getAdviser(form.merchantId)" @change="getAdviser(form.merchantId)"
> >
<el-option <el-option
...@@ -52,6 +57,7 @@ ...@@ -52,6 +57,7 @@
:label="item.merchantName" :label="item.merchantName"
/> />
</el-select> </el-select>
<span v-else>{{form.merchantName}}</span>
&nbsp;&nbsp;&nbsp;<span &nbsp;&nbsp;&nbsp;<span
class="warningFont" class="warningFont"
v-if="nostoreError" v-if="nostoreError"
...@@ -68,6 +74,7 @@ ...@@ -68,6 +74,7 @@
:key="item.userId" :key="item.userId"
v-model="form.userId" v-model="form.userId"
:label="item.userId" :label="item.userId"
:disabled="isDisabled"
>{{item.name}}</el-radio> >{{item.name}}</el-radio>
<p <p
class="warningFont" class="warningFont"
...@@ -274,7 +281,10 @@ ...@@ -274,7 +281,10 @@
v-if="hasProError" v-if="hasProError"
>该门店无分配商品</span> >该门店无分配商品</span>
<div> <div>
<el-checkbox-group v-model="baseGoodsIds"> <el-checkbox-group
v-model="baseGoodsIds"
:disabled="isDisabled"
>
<div <div
class="base-pro-block base-pro-block-wh" class="base-pro-block base-pro-block-wh"
v-for="(item, index) in goodList" v-for="(item, index) in goodList"
...@@ -366,6 +376,7 @@ export default { ...@@ -366,6 +376,7 @@ export default {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
key: new Date(), key: new Date(),
isDisabled: false,
form: { form: {
merchantId: '', merchantId: '',
userId: '', userId: '',
...@@ -454,9 +465,10 @@ export default { ...@@ -454,9 +465,10 @@ export default {
// this.getServiceStore() // this.getServiceStore()
if (this.addOrEdit === 'edit') { if (this.addOrEdit === 'edit') {
this.form = _.cloneDeep(this.$route.params.form) this.form = _.cloneDeep(this.$route.params.form)
// console.log(this.form)
this.isDisabled = (this.form.operStatus !== 1)
this.form.customerSex = this.form.customerSex ? (this.form.customerSex + '') : '' this.form.customerSex = this.form.customerSex ? (this.form.customerSex + '') : ''
this.userInfo.beSuper && (this.form.sellerMerchantId = this.form.yqMerchantId) this.userInfo.beSuper && (this.form.sellerMerchantId = this.form.yqMerchantId)
this.getAllVehicleBrand(() => { this.getAllVehicleBrand(() => {
this.form.carChildsBrandId && this.changeCarBrand(this.form.carBrandId, () => { this.form.carChildsBrandId && this.changeCarBrand(this.form.carBrandId, () => {
this.form.carChildsBrandId = this.$route.params.form.carChildsBrandId this.form.carChildsBrandId = this.$route.params.form.carChildsBrandId
......
...@@ -249,7 +249,8 @@ export default { ...@@ -249,7 +249,8 @@ export default {
}, { }, {
label: '录入日期', label: '录入日期',
name: 'entryTime', name: 'entryTime',
type: 'datePicker' type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}], }],
getListApi: getList, getListApi: getList,
// 表格参数 // 表格参数
......
...@@ -321,7 +321,8 @@ export default { ...@@ -321,7 +321,8 @@ export default {
showFormData: [{ showFormData: [{
label: '按时间', label: '按时间',
name: 'time', name: 'time',
type: 'datePicker' type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}, { }, {
label: '服务门店', label: '服务门店',
name: 'ydMerchantId', name: 'ydMerchantId',
......
...@@ -144,7 +144,8 @@ export default { ...@@ -144,7 +144,8 @@ export default {
}, { }, {
label: '创建时间', label: '创建时间',
name: 'createTime', name: 'createTime',
type: 'datePicker' type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}], }],
getListApi: getList, getListApi: getList,
// 表格参数 // 表格参数
......
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
shopPrice: '', shopPrice: '',
maxRetailDiscount: '' maxRetailDiscount: ''
}, },
formItemWidth: '200px',
rules: { rules: {
yqMerchantId: [{ required: true, message: '请选择园区店', trigger: 'change' }], yqMerchantId: [{ required: true, message: '请选择园区店', trigger: 'change' }],
goodsCode: [{ required: true, message: '请选择产品名称', trigger: 'change' }], goodsCode: [{ required: true, message: '请选择产品名称', trigger: 'change' }],
......
...@@ -121,7 +121,8 @@ export default { ...@@ -121,7 +121,8 @@ export default {
}, { }, {
label: '创建时间', label: '创建时间',
name: 'createTime', name: 'createTime',
type: 'datePicker' type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}], }],
getListApi: getList, getListApi: getList,
// 表格参数 // 表格参数
...@@ -137,7 +138,7 @@ export default { ...@@ -137,7 +138,7 @@ export default {
label: '素材名称', label: '素材名称',
prop: 'goodsName' prop: 'goodsName'
}, { }, {
label: '产品ID', label: '素材ID',
prop: 'id' prop: 'id'
}, { }, {
label: '分类', label: '分类',
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
:page-sizes="[10,20,30,40]" :page-sizes="[10,20,30,40]"
:page-size="page.pageSize" :page-size="page.pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="sizes,total,->,prev,pager,next,jumper"
> >
</el-pagination> </el-pagination>
</div> </div>
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
3: '待支付', 3: '待支付',
4: '已支付', 4: '已支付',
5: '已退款', 5: '已退款',
6: '已完成', 6: '已完成'
}, },
showFormData: [{ showFormData: [{
label: '订单状态', label: '订单状态',
...@@ -153,7 +153,8 @@ export default { ...@@ -153,7 +153,8 @@ export default {
}, { }, {
label: '下单日期', label: '下单日期',
name: 'orderTime', name: 'orderTime',
type: 'datePicker' type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}], }],
searchForm: { searchForm: {
orderStatus: '', orderStatus: '',
...@@ -161,7 +162,7 @@ export default { ...@@ -161,7 +162,7 @@ export default {
orderTime: '' orderTime: ''
}, },
baseData: { baseData: {
}, },
tableData: [], tableData: [],
total: 0, total: 0,
...@@ -172,7 +173,7 @@ export default { ...@@ -172,7 +173,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.getList() this.getList()
}, },
...@@ -184,21 +185,19 @@ export default { ...@@ -184,21 +185,19 @@ export default {
name: '', name: '',
orderTime: '' orderTime: ''
} }
}, },
getParams() { getParams() {
const params = {} const params = {}
const form = this.searchForm const form = this.searchForm
if(form.name) { if (form.name) {
params.customerName = form.name params.customerName = form.name
} }
if(form.orderTime && form.orderTime.length) { if (form.orderTime && form.orderTime.length) {
params.placeOrderStartDateStr = Util.dateFormate(form.orderTime[0], 'YYYY-MM-DD HH:mm:ss') params.placeOrderStartDateStr = Util.dateFormate(form.orderTime[0], 'YYYY-MM-DD HH:mm:ss')
params.placeOrderEndDateStr = Util.dateFormate(form.orderTime[1], 'YYYY-MM-DD') + ' 23:59:59' params.placeOrderEndDateStr = Util.dateFormate(form.orderTime[1], 'YYYY-MM-DD') + ' 23:59:59'
} }
if(form.orderStatus) { if (form.orderStatus) {
params.status = form.orderStatus params.status = form.orderStatus
} }
...@@ -223,7 +222,7 @@ export default { ...@@ -223,7 +222,7 @@ export default {
this.getList() this.getList()
}, },
// 导出 // 导出
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
params.pageNum = 1 params.pageNum = 1
exportFile(params).then(res => { exportFile(params).then(res => {
...@@ -233,11 +232,11 @@ export default { ...@@ -233,11 +232,11 @@ export default {
// 查看详情 // 查看详情
handleDetail(data) { handleDetail(data) {
this.close({ tagName: '/orderDetail' }) this.close({ tagName: '/orderDetail' })
this.$router.push({ this.$router.push({
name: 'orderDetail', name: 'orderDetail',
params: { params: {
detail: data.row detail: data.row
} }
}) })
}, },
// 每页条数 // 每页条数
...@@ -250,7 +249,7 @@ export default { ...@@ -250,7 +249,7 @@ export default {
handleCurrentChange(value) { handleCurrentChange(value) {
this.page.pageNum = value this.page.pageNum = value
this.getList() this.getList()
}, }
} }
} }
...@@ -280,5 +279,5 @@ export default { ...@@ -280,5 +279,5 @@ export default {
} }
} }
} }
</style> </style>
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
</template> </template>
<script> <script>
import _ from 'lodash'
import { getList } from '@api/merchant' import { getList } from '@api/merchant'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { BaseData, userTypeList, ghUserTypeList, userType, ghUserType, merchantClassifyList } from '@/common/constants.js' import { BaseData, userTypeList, ghUserTypeList, userType, ghUserType, merchantClassifyList } from '@/common/constants.js'
...@@ -65,7 +66,7 @@ export default { ...@@ -65,7 +66,7 @@ export default {
optionsName: 'channelTypeList', optionsName: 'channelTypeList',
changeAttr: (value, targetItem) => { changeAttr: (value, targetItem) => {
if (value) { if (value) {
this.baseData.userTypeList = value === 2 ? ghUserTypeList : userTypeList this.baseData.userTypeList = value === 2 ? this.ghUserTypeList : this.userTypeList
} }
this.searchForm.userType = '' this.searchForm.userType = ''
this.getOptionsList() this.getOptionsList()
...@@ -140,7 +141,7 @@ export default { ...@@ -140,7 +141,7 @@ export default {
}, { }, {
label: '更新时间', label: '更新时间',
formatter: (cellValue) => { formatter: (cellValue) => {
if(cellValue && cellValue.settleAccountRule) { if (cellValue && cellValue.settleAccountRule) {
return cellValue.settleAccountRule.updateDateStr return cellValue.settleAccountRule.updateDateStr
} }
return '' return ''
...@@ -166,6 +167,8 @@ export default { ...@@ -166,6 +167,8 @@ export default {
mounted() { mounted() {
this.getBaseData() this.getBaseData()
this.userTypeList = _.cloneDeep(userTypeList).filter(item => item.confLabel !== '员工')
this.ghUserTypeList = _.cloneDeep(ghUserTypeList).filter(item => !['员工', '供应商'].includes(item.confLabel))
}, },
methods: { methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!