Commit 152cc1b7 by 张立顺

Merge branch 'dev_v4.25.0' into 'develop'

Dev v4.25.0

See merge request !5
2 parents 05228015 1f97075c
......@@ -6,12 +6,14 @@
"extends": ["plugin:vue/essential", "@vue/prettier"],
"rules": {
"no-console": "off",
"no-unused-vars":"off",
"no-unused-vars": "off",
"prettier.endOfLine": "crlf",
"endOfLine":"auto"
"endOfLine": "auto"
},
"parserOptions": {
"parser": "babel-eslint"
},
"globals": {
"AMap": true
}
}
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
presets: ['@vue/cli-plugin-babel/preset'],
plugins: [
[
"component",
'component',
{
libraryName: "element-ui",
styleLibraryName: "theme-chalk"
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
}
]
]
};
}
......@@ -32,9 +32,9 @@
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"sass": "^1.64.1",
"sass-loader": "^8.0.2",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
......
......@@ -198,5 +198,16 @@ const contractExportApi = params => {
sign: true
})
}
// 查询合同号列表
const listContracts = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smartcarlife.vd.equity.order.listContracts`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getList, getOrderDetail, getOrderCount, shopmallOrderList, goodsOrderDetail, getServiceStore, getListApi, getCrowdfundingParams, getCountApi, orderExportApi, getOrderDetailApi, getQuotationPageApi, quotationFindByIdApi, exportOrderApi, quotationExportApi, quotationPrintApi, contractExportApi }
export default { getList, getOrderDetail, getOrderCount, shopmallOrderList, goodsOrderDetail, getServiceStore, getListApi, getCrowdfundingParams, getCountApi, orderExportApi, getOrderDetailApi, getQuotationPageApi, quotationFindByIdApi, exportOrderApi, quotationExportApi, quotationPrintApi, contractExportApi, listContracts }
......@@ -3,7 +3,7 @@ import { http } from '@/main'
const path = 'dj.api.'
const path2 = 'dj.smartcarlife.api.'
// 获取素材详情
const getProductInfo = (params) => {
const getProductInfo = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}goodsinfo.get.byId`
return http({
......@@ -15,7 +15,7 @@ const getProductInfo = (params) => {
}
// 获取场景下类目
const getProductTypeBySceneId = (params) => {
const getProductTypeBySceneId = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}goodsCategoryConfiguration.queryGoodsCategoryBySceneId`
return http({
......@@ -27,7 +27,7 @@ const getProductTypeBySceneId = (params) => {
}
// 查询产品列表
const getGoodsList = (params) => {
const getGoodsList = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}goodsinfo.list`
return http({
......@@ -38,4 +38,4 @@ const getGoodsList = (params) => {
})
}
export default { getGoodsList,getProductInfo, getProductTypeBySceneId }
export default { getGoodsList, getProductInfo, getProductTypeBySceneId }
......@@ -4,7 +4,7 @@ const path = 'dj.api.smarcarlife.'
const path2 = 'dj.api.goodsInfo.'
const path3 = 'dj.api.smartcarlife.'
// 分页查询采购订单
const getPurchaseOrderList = (params) => {
const getPurchaseOrderList = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.page`
return http({
......@@ -15,7 +15,7 @@ const getPurchaseOrderList = (params) => {
})
}
// 采购订单取消/审核
const purchaseOrderCancelOrCheck = (params) => {
const purchaseOrderCancelOrCheck = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.cancelOrCheck`
return http({
......@@ -27,7 +27,7 @@ const purchaseOrderCancelOrCheck = (params) => {
})
}
// 查看采购订单
const purchaseOrderDetail = (params) => {
const purchaseOrderDetail = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.view`
return http({
......@@ -38,7 +38,7 @@ const purchaseOrderDetail = (params) => {
})
}
// 分页查询采购商城素材信息
const listWithPagePurchaseInfo = (params) => {
const listWithPagePurchaseInfo = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path2}listWithPage.purchaseInfo`
return http({
......@@ -61,9 +61,8 @@ const addressGet = (params = {}) => {
})
}
// 保存园区店商户收货地址
const addressSave = (params) => {
const addressSave = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}yqMerchantDeliveryAddress.save`
return http({
......@@ -75,7 +74,7 @@ const addressSave = (params) => {
}
// 按商品类目分组获取购物车列表
const listGroupByGoodsType = (params) => {
const listGroupByGoodsType = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.listGroupByGoodsType`
return http({
......@@ -86,9 +85,8 @@ const listGroupByGoodsType = (params) => {
})
}
// 更新购物车商品选中标识
const updateSelectedFlag = (params) => {
const updateSelectedFlag = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.updateSelectedFlag`
return http({
......@@ -99,7 +97,7 @@ const updateSelectedFlag = (params) => {
})
}
// 移除购物车商品
const shoppingCarRemove = (params) => {
const shoppingCarRemove = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.remove`
return http({
......@@ -111,7 +109,7 @@ const shoppingCarRemove = (params) => {
}
// 添加到购物车
const shoppingCarAdd = (params) => {
const shoppingCarAdd = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.add`
return http({
......@@ -122,8 +120,6 @@ const shoppingCarAdd = (params) => {
})
}
// 修改购物车商品数量
export function shoppingCarUpdateNumber(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
......@@ -135,12 +131,6 @@ export function shoppingCarUpdateNumber(params) {
})
}
// 添加采购订单
export function purchaseOrderAdd(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
......@@ -153,8 +143,6 @@ export function purchaseOrderAdd(params) {
})
}
export function exportExcel(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseOrder.export`
......@@ -189,8 +177,6 @@ export function getMerchantList(params) {
})
}
// 确认发货
// export function purchaseOrderConfirmDelivery(data) {
// params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
......@@ -198,4 +184,4 @@ export function getMerchantList(params) {
// return http(data)
// }
export default { getMerchantList,purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave }
\ No newline at end of file
export default { getMerchantList, purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave }
import { http,http_common } from '@/main'
const path = "dj.api."
import { http, http_common } from '@/main'
const path = 'dj.api.'
const defaultPath = 'scrm.api.carlife.'
// 获取不同场景的商品分类
const getGoodsCategoryConfiguration = (params) => {
const getGoodsCategoryConfiguration = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.currentPage = 1
params.pageSize = 999999
......
......@@ -4,47 +4,29 @@ export function getCurrentSixMonth(n = 5) {
}
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
export function limitPrice(
newValue,
oldValue,
intergerDigit,
pointDigit,
minValue,
maxValue,
regRule
) {
export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, maxValue, regRule) {
var reg = {
priceReg: /^\d[\d\.]*$/, // eslint-disable-line
numReg: /^[1-9]\d*$/
}
regRule = regRule || "priceReg"
if (
newValue &&
((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) {
return oldValue || ""
regRule = regRule || 'priceReg'
if (newValue && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))) {
return oldValue || ''
}
if (newValue && reg[regRule].test(newValue + "")) {
if (newValue && reg[regRule].test(newValue + '')) {
if (/\./.test(newValue)) {
newValue = newValue + ""
var interger = newValue.split(".")[0]
var point = newValue.split(".")[1]
var intergerNum =
interger.length > intergerDigit ? oldValue.split(".")[0] : interger
var pointNum =
point.length > pointDigit ? point.slice(0, pointDigit) : point
newValue = pointDigit
? intergerNum + "." + pointNum
: newValue.split(".")[0]
newValue = newValue + ''
var interger = newValue.split('.')[0]
var point = newValue.split('.')[1]
var intergerNum = interger.length > intergerDigit ? oldValue.split('.')[0] : interger
var pointNum = point.length > pointDigit ? point.slice(0, pointDigit) : point
newValue = pointDigit ? intergerNum + '.' + pointNum : newValue.split('.')[0]
} else {
newValue =
newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit)
: newValue
newValue = newValue.length > intergerDigit ? oldValue.slice(0, intergerDigit) : newValue
}
return newValue
} else {
return newValue ? oldValue : ""
return newValue ? oldValue : ''
}
}
......@@ -70,11 +52,7 @@ export const rangePickerOptions = {
export const appointDays = 35
export const afterTodayOptions = {
disabledDate(date) {
if (
date < new Date(new Date().toLocaleDateString()) ||
date >
new Date(new Date().setDate(new Date().getDate() + (appointDays - 1)))
) {
if (date < new Date(new Date().toLocaleDateString()) || date > new Date(new Date().setDate(new Date().getDate() + (appointDays - 1)))) {
return true
}
return false
......@@ -90,10 +68,7 @@ export const rangePickerOptions_year_2023 = {
// console.log(date.getFullYear())
// console.log(new Date())
if (
date.getFullYear() > new Date().getFullYear() ||
date.getFullYear() < 2023
) {
if (date.getFullYear() > new Date().getFullYear() || date.getFullYear() < 2023) {
return true
}
return false
......
......@@ -77,7 +77,7 @@ export default {
map.addControl(new AMap.ToolBar())
this.geocoder = new AMap.Geocoder()
map.setDefaultCursor('pointer')
AMap.plugin(['AMap.PlaceSearch'], function () {
AMap.plugin(['AMap.PlaceSearch'], function() {
//构造地点查询类
placeSearch = new AMap.PlaceSearch({
pageSize: 8, // 单页显示结果条数
......@@ -99,7 +99,7 @@ export default {
return true
}
let _this = this
placeSearch.search(query, function (status, result) {
placeSearch.search(query, function(status, result) {
if (status === 'complete' && result.poiList.pois.length) {
_this.adrList = result.poiList.pois
}
......@@ -206,4 +206,4 @@ export default {
margin-right: 6px;
}
}
</style>
\ No newline at end of file
</style>
<!-- 弹窗 -->
<template>
<div>
<el-dialog
:title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:modal-append-to-body="false"
:width="width"
class="app-dialog"
>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width" class="app-dialog">
<el-scrollbar v-if="hasScroll">
<span slot="title">
<span class="main-title"></span>
......@@ -32,24 +23,9 @@
<div slot="footer">
<slot name="btn-start"></slot>
<el-button
:type="typeName"
v-if="!noClose"
:size="btnSize"
@click="handleClose"
></el-button>
<el-button
type="default"
v-if="!noCancel"
:size="btnSize"
@click="handleClose"
></el-button>
<el-button
type="primary"
v-if="!noBtnOk"
:size="btnSize"
@click="handleConfirm"
></el-button>
<el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose"></el-button>
<el-button type="default" v-if="!noCancel" :size="btnSize" @click="handleClose"></el-button>
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm"></el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
......
......@@ -12,4 +12,4 @@ import glsxDialog from '@/components/glsx-dialog/index.vue'
import GlsxCombiForm from '@/components/glsx-combi-form/index.vue'
Vue.component('glsx-dialog', glsxDialog)
Vue.component('GlsxCombiForm', GlsxCombiForm)
\ No newline at end of file
Vue.component('GlsxCombiForm', GlsxCombiForm)
import Vue from 'vue'
import { defaultStatusOptions, defaultDeliveryStatusOptions, defaultPutStatusOptions, tableData } from '@/utils/constants.js'
// 发货状态
// 发货状态
Vue.filter('deliveryStatus', (id, formatString) => {
const text = '--'
for (let i = 0; i < defaultDeliveryStatusOptions.length; i++) {
if (defaultDeliveryStatusOptions[i].id === id) {
return defaultDeliveryStatusOptions[i].label
}
const text = '--'
for (let i = 0; i < defaultDeliveryStatusOptions.length; i++) {
if (defaultDeliveryStatusOptions[i].id === id) {
return defaultDeliveryStatusOptions[i].label
}
return text
})
// 入库状态
Vue.filter('putStatus', (id, formatString) => {
const text = '--'
for (let i = 0; i < defaultPutStatusOptions.length; i++) {
if (defaultPutStatusOptions[i].id === id) {
return defaultPutStatusOptions[i].label
}
}
return text
})
// 入库状态
Vue.filter('putStatus', (id, formatString) => {
const text = '--'
for (let i = 0; i < defaultPutStatusOptions.length; i++) {
if (defaultPutStatusOptions[i].id === id) {
return defaultPutStatusOptions[i].label
}
return text
})
}
return text
})
// 订单状态状态
Vue.filter('orderStatus', (id, formatString) => {
const text = '--'
for (let i = 0; i < defaultStatusOptions.length; i++) {
if (defaultStatusOptions[i].id === id) {
return defaultStatusOptions[i].label
}
}
return text
})
// 订单状态状态
Vue.filter('orderStatus', (id, formatString) => {
const text = '--'
for (let i = 0; i < defaultStatusOptions.length; i++) {
if (defaultStatusOptions[i].id === id) {
return defaultStatusOptions[i].label
}
}
return text
})
......@@ -9,7 +9,7 @@
*/
import Vue from 'vue'
import apis from './api'
import {optionalChaining} from './utils/chaining'
import { optionalChaining } from './utils/chaining'
import './public-path'
import '@/assets/css/public.scss'
import '@/components'
......
if (window.__POWERED_BY_QIANKUN__) {
// eslint-disable-next-line no-undef
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
__webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__
}
export const optionalChaining = (obj, ...rest) => {
return rest.reduce((newObj, key) => newObj?.[key], obj)
return rest.reduce((newObj, key) => newObj?.[key], obj) || ''
// let tmp = obj
// for (const key in rest) {
// const name = rest[key]
......
export function debounce(func, wait = 200) {
let timeout;
return function (event) {
let timeout
return function(event) {
clearTimeout(timeout)
timeout = setTimeout(() => {
func.call(this, event)
......@@ -24,10 +24,9 @@ export function dateFormat(dateTime, format = 'YYYY-MM-DD HH:mm') {
return format
}
/**
* 校验手机号码格式
*/
* 校验手机号码格式
*/
export function checkPhone(mobile) {
const myreg =
/^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/
const myreg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/
return myreg.test(mobile)
}
......@@ -93,7 +93,7 @@
<el-form-item label="商品:" class="goods">
<img v-if="$$(detail, 'quotationGoodsInfo', 'titlePictureUrl')" class="order-img"
:src="$$(detail, 'quotationGoodsInfo', 'titlePictureUrl')" @click="handleEnlargeImg" />
{{ $$(detail, 'quotationGoodsInfo', 'goodsName') }}
{{ $$(detail, 'goodsName') }}
</el-form-item>
<el-form-item label="增值权益价格/元:" style="width:450px">
{{ detail.quotedPriceUpdate / 100 }}
......@@ -241,7 +241,12 @@ export default {
}
.goods {
height: 100px;
// height: 100px;
::v-deep .el-form-item__content {
max-width: 240px;
word-break: break-all;
}
// display: flex;
}
......
<template>
<div>
<div>
<el-form ref="form"
:model="company"
label-width="154px"></el-form>
<el-form ref="form" :model="company" label-width="154px"></el-form>
</div>
<div class="member-wrapper">
<div class="member-left">
<div class="member-content">
<div class="member-content-head">
<el-checkbox :indeterminate="isIndeterminate"
v-model="checkAll"
@change="handleCheckAllChange">全选</el-checkbox>
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
</div>
<div class="table-content">
<el-input size="medium"
v-model="filterText"
suffix-icon="el-icon-search"
clearable
placeholder="请输入搜索关键字"></el-input>
<el-tree :data="departmentList"
:default-expanded-keys="expandedKeys"
show-checkbox
ref="tree"
node-key="id"
:props="defaultProps"
@check="handleNodeClick"
:filter-node-method="filterNode"></el-tree>
<el-input size="medium" v-model="filterText" suffix-icon="el-icon-search" clearable placeholder="请输入搜索关键字"></el-input>
<el-tree :data="departmentList" :default-expanded-keys="expandedKeys" show-checkbox ref="tree" node-key="id" :props="defaultProps" @check="handleNodeClick" :filter-node-method="filterNode"></el-tree>
</div>
</div>
</div>
<div class="member-right">
<div class="member-name member-content-head">
<div>已选名称</div>
<div class="blue"
@click="clear">清空</div>
<div class="blue" @click="clear">清空</div>
</div>
<div class="input-tag-wrapper">
<div class="tag-box">
<el-tag v-for="(label, idx) in userList"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(idx)">
<el-tag v-for="(label, idx) in userList" :key="idx" type="info" closable :disable-transitions="false" @close="remove(idx)">
{{ label.name }}
</el-tag>
</div>
......@@ -181,7 +160,7 @@ export default {
if (!value) return true
return data.name.indexOf(value) !== -1
},
search() { },
search() {},
handleNodeClick() {
this.userList = this.$refs.tree.getCheckedNodes().filter(item => item.children && item.children.length == 0)
this.isIndeterminate = this.userList.length > 0 && this.userList.length < this.ids.length
......
......@@ -21,10 +21,10 @@ export default {
data() {
return {
groupStyle: '',
includeData:['el-input__inner','placeholder','el-select__caret el-input__icon el-icon-arrow-up']
includeData: ['el-input__inner', 'placeholder', 'el-select__caret el-input__icon el-icon-arrow-up']
}
},
mounted() {
mounted() {
if (this.appendToBody) document.body.appendChild(this.$el)
this.getBoundingClientRect()
window.addEventListener('resize', this.getBoundingClientRect)
......@@ -40,8 +40,8 @@ export default {
this.groupStyle = { left: left + 'px', top: top + 45 + 'px' }
},
removeEl() {
document.body.contains(this.$el) && document.body.removeChild(this.$el)
this.$emit('changeStatu')
document.body.contains(this.$el) && document.body.removeChild(this.$el)
this.$emit('changeStatu')
}
},
beforeDestroy() {
......@@ -57,7 +57,8 @@ export default {
position: fixed;
top: 740px;
left: 600px;
/deep/ .el-select-dropdown__item {
::v-deep .el-select-dropdown__item {
width: 236px;
text-overflow: ellipsis;
white-space: nowrap;
......@@ -65,4 +66,3 @@ export default {
}
}
</style>
......@@ -4,16 +4,10 @@
<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]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
<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>
</el-form-item>
</el-row>
<template v-if="detailForm.formDescribe">
......@@ -23,61 +17,43 @@
</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;{{ detailForm.deliveryNumber }}</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>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 *
{{ item.goodsNumber }}</td>
<td>{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ 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>
......@@ -162,7 +138,7 @@ export default {
}
},
created() { },
created() {},
mounted() {
this.getCrowdfundingOrderConfig()
......@@ -172,87 +148,87 @@ export default {
async getCrowdfundingOrderConfig() {
let detailFormData = [
{
label: "订单编号",
name: "orderCode"
label: '订单编号',
name: 'orderCode'
},
{
label: "商户订单号",
name: "outTradeNo"
label: '商户订单号',
name: 'outTradeNo'
},
{
label: "订单时间",
name: "createdDateStr"
label: '订单时间',
name: 'createdDateStr'
},
{
label: "手机号码",
name: "customerPhone"
label: '手机号码',
name: 'customerPhone'
},
{
label: "推荐人",
name: "shareStaffName"
label: '推荐人',
name: 'shareStaffName'
},
{
label: "推荐人ID",
name: "shareStaffId"
label: '推荐人ID',
name: 'shareStaffId'
},
{
label: "推荐人类型",
name: "shareStaffTypeName"
label: '推荐人类型',
name: 'shareStaffTypeName'
},
{
label: "车架号",
name: "vin"
label: '车架号',
name: 'vin'
},
{
label: "门店信息",
name: "merchantName"
label: '门店信息',
name: 'merchantName'
},
{
label: "客户名称",
name: "customerName"
label: '客户名称',
name: 'customerName'
},
{
label: "分润比例",
name: "takeFee",
suffix: "%"
label: '分润比例',
name: 'takeFee',
suffix: '%'
},
{
label: "订单类型",
name: "orderSourceName"
label: '订单类型',
name: 'orderSourceName'
},
{
label: "订单状态",
name: "orderStatusName"
label: '订单状态',
name: 'orderStatusName'
},
{
label: "支付定金",
name: "payPrice"
label: '支付定金',
name: 'payPrice'
},
{
label: "尾款",
name: "crowdFundingPrice"
label: '尾款',
name: 'crowdFundingPrice'
},
{
label: "发货地址",
name: "shipAddress"
label: '发货地址',
name: 'shipAddress'
},
{
label: "微信名称",
name: "weChatName"
label: '微信名称',
name: 'weChatName'
},
{
label: "活动名称",
name: "activityName"
label: '活动名称',
name: 'activityName'
},
{
label: "商品名称",
name: "goodsName"
label: '商品名称',
name: 'goodsName'
}
]
this.detailFormData = detailFormData
this.routeInfo = this.$route.query
this.getInfo()
this.formToRow("afterInfoData")
this.formToRow('afterInfoData')
},
formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
......@@ -318,7 +294,7 @@ export default {
console.log(this.detailForm)
this.formToRow('detailFormData')
})
},
}
// handleCancel() {
// this.$router.push({
// path: '/orderManage/index'
......
<template>
<div class="activity">
<GLTabs v-model="activeName"
:tabPaneList="tabPaneList"
@tab-click="handleClick"></GLTabs>
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs>
<components :is="tabName"></components>
<!-- 表格区域 开始 -->
<!-- <div class="container">
......@@ -57,9 +55,9 @@
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { dateFormat } from '../../utils/index'
import Order from "./components/order.vue"
import Crowdfunding from "./components/crowdfunding.vue"
import CarDamage from "./components/carDamage.vue"
import Order from './components/order.vue'
import Crowdfunding from './components/crowdfunding.vue'
import CarDamage from './components/carDamage.vue'
export default {
components: {
Order,
......@@ -68,22 +66,22 @@ export default {
},
data() {
return {
activeName: "1",
activeName: '1',
tabPaneList: [
{
label: "精品升级",
name: "1"
label: '精品升级',
name: '1'
},
{
label: "售后众筹",
name: "2"
label: '售后众筹',
name: '2'
},
{
label: "车损升级",
name: "3"
label: '车损升级',
name: '3'
}
],
tabName: "Order"
tabName: 'Order'
}
},
mounted() {
......@@ -421,7 +419,7 @@ export default {
this.setectEditList = []
this.battleVisible = false
},
handleDetails() { },
handleDetails() {},
handlebattleOn(data, sign) {
this.setectEditList = []
this.userList = []
......@@ -489,13 +487,12 @@ export default {
},
handleClick() {
let arr = {
1: "order",
2: "crowdfunding",
3: "carDamage"
1: 'order',
2: 'crowdfunding',
3: 'carDamage'
}
this.tabName = arr[+this.activeName]
console.log('this.tabName', this.tabName);
console.log('this.tabName', this.tabName)
},
handleReset() {
this.tableSearchForm = {}
......@@ -578,20 +575,24 @@ export default {
</script>
<style scoped lang="scss">
.activity {
/deep/ {
::v-deep {
.el-select .el-tag {
max-width: 60% !important;
}
.el-form-item__content {
overflow: inherit !important;
}
}
.container {
margin-top: 16px;
.title {
height: 32px;
line-height: 32px;
margin-bottom: 10px;
.title-text {
font-weight: 600;
font-size: 16px;
......@@ -600,6 +601,7 @@ export default {
}
}
}
.empty-btn {
position: absolute;
right: -40px;
......@@ -607,14 +609,17 @@ export default {
font-size: 14px;
color: #5850ff;
}
.config-pannel {
background: #f9f9f9;
width: 520px;
height: 168px;
display: flex;
.config-item {
padding: 26px 20px;
}
.clear-btn {
cursor: pointer;
background: #f1f1f1;
......@@ -627,6 +632,7 @@ export default {
box-sizing: border-box;
}
}
.input-tag-wrapper {
position: relative;
font-size: 14px;
......@@ -648,28 +654,34 @@ export default {
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
/deep/ .el-tag {
::v-deep .el-tag {
background-color: #fff !important;
margin-bottom: 4px;
}
}
.select-wrap {
.common {
margin: 4px 0;
height: 40px !important;
overflow: hidden;
/deep/ .el-input {
::v-deep .el-input {
height: 40px !important;
line-height: 40px !important;
}
/deep/ .el-input__suffix {
::v-deep .el-input__suffix {
height: 40px !important;
margin-top: -4px;
.is-reverse {
transform: rotate(180deg);
}
......@@ -677,16 +689,20 @@ export default {
}
}
}
.search-groomname {
width: 252px;
margin: 12px 16px 0;
/deep/.el-input {
::v-deep.el-input {
width: 252px;
}
}
.filter-tree {
padding: 0 16px;
}
.empty {
padding: 10px 0;
margin: 0;
......@@ -694,6 +710,7 @@ export default {
color: #999;
font-size: 13px;
}
.placeholder {
font-size: 14px;
color: #c0c6ce;
......
......@@ -166,7 +166,7 @@
<el-table-column prop="logContent" align="center" label="当前进度" />
<el-table-column prop="userName" align="center" label="关联操作员">
<template slot-scope="scope">
<span v-if="detail.payType == 1 && scope.row.logType == 3">用户 微信支付</span>
<span v-if="detail.payOrder.payType == 1 && scope.row.logType == 3">用户 微信支付</span>
<span v-else>{{ logType[scope.row.logType] }} {{ scope.row.userName }}</span>
</template>
</el-table-column>
......
......@@ -37,7 +37,7 @@
<GLCombiForm ref="showSearch" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleRest"></GLCombiForm>
</div>
<div class="goodsCon">
<div class="goodsItemCon" v-for="(item, index) in purchaseList" :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index" >
<div class="goodsItemCon" v-for="(item, index) in purchaseList" :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片{{ item.thumbUrl }} -->
<img :src="item.thumbUrl" class="img" alt="" />
<span class="goodsName one-line-ellipsis">{{ item.goodsName }}</span>
......@@ -212,16 +212,20 @@ export default {
max-width: 1350px;
margin: 0 auto;
overflow: scroll;
.bg {
background: #fff;
}
.d2-header-switch {
display: none;
}
.d2-container-content {
margin: 20px auto;
background: #fff;
}
.shopMallCon {
padding: 0 0 20px !important;
}
......@@ -245,9 +249,11 @@ export default {
margin: 0 16px 16px;
overflow: hidden;
padding: 8px 8px 16px;
&:hover{
border: 1px solid #5850ff;
&:hover {
border: 1px solid #5850ff;
}
&.active {
border: 1px solid #5850ff;
}
......@@ -371,7 +377,8 @@ export default {
width: 670px !important;
min-width: 670px;
}
/deep/ .name {
::v-deep .name {
width: 20px !important;
}
}
......
<template>
<el-drawer class="shoppingCartDrawerCon" title="收货地址管理" size="500px" :visible.sync="dialogShow" :direction="direction">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="100px" default-width="350px"
:form-ref="editChildRef" :form-obj="editForm" :form-data="editFormData" :form-rules="editRule"></glsx-combi-form>
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="100px" default-width="350px" :form-ref="editChildRef" :form-obj="editForm" :form-data="editFormData" :form-rules="editRule"></glsx-combi-form>
<div class="footer-btn">
<el-button @click="submit" type="primary">保存</el-button>
<el-button @click="dialogShow = false">取消</el-button>
</div>
</el-drawer>
</template>
......@@ -60,7 +58,6 @@ export default {
inputType: 'textarea'
// tips: '如XX店车主关怀活动'
}
],
editForm: {
contactName: '',
......@@ -69,12 +66,13 @@ export default {
},
editRule: {
contactName: [{ required: true, message: '请输入姓名', trigger: 'change' }],
contactPhone: [{ required: true, message: '请输入电话号码', trigger: 'change' },
{ validator: checkPhone, trigger: 'blur' }],
contactPhone: [
{ required: true, message: '请输入电话号码', trigger: 'change' },
{ validator: checkPhone, trigger: 'blur' }
],
contactAddress: [{ required: true, message: '请输入收货地址', trigger: 'change' }]
},
editChildRef: 'editChildRef'
}
},
computed: {
......@@ -95,9 +93,7 @@ export default {
}
},
methods: {
handleDetailClose() {
},
handleDetailClose() {},
handleOkFn() {
// console.log('您点击了确定')
},
......@@ -108,29 +104,27 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) {
const params = this.$common.utils.deepClone(this.editForm)
this.$apis.purchaseShopping.addressSave(params).then((result) => {
this.$notify({
type: 'success',
title: '保存成功'
this.$apis.purchaseShopping
.addressSave(params)
.then(result => {
this.$notify({
type: 'success',
title: '保存成功'
})
this.dialogShow = false
this.$emit('handleConfirmAddress')
})
this.dialogShow = false
this.$emit('handleConfirmAddress')
}).catch((err) => {
})
.catch(err => {})
}
})
},
navBack() {
}
navBack() {}
}
}
</script>
<style lang="scss" scoped>
.shoppingCartDrawerCon {
// position: relative;
::v-deep .el-drawer__header {
border-bottom: 1px solid #e7eaec;
......
......@@ -221,7 +221,7 @@ export default {
font-weight: 600;
font-size: 30px;
color: #ee3040;
margin-left:8px;
margin-left: 8px;
}
}
......@@ -290,7 +290,7 @@ export default {
align-items: center;
width: 168px;
height: 40px;
margin-left:18px;
margin-left: 18px;
background: #5850ff;
border-radius: 4px;
}
......
......@@ -426,7 +426,7 @@ li {
.car-txt {
font-size: 14px;
color: #ffffff;
writing-mode:vertical-rl;
writing-mode: vertical-rl;
}
&::after {
// content: "123";
......@@ -582,14 +582,14 @@ li {
text-align: center;
font-size: 20px;
color: #f8ba37;
margin:20px 0 40px 0;
margin: 20px 0 40px 0;
}
.tips {
display: flex;
justify-content: space-between;
span{
margin-bottom:20px;
span {
margin-bottom: 20px;
}
}
......
......@@ -31,7 +31,9 @@
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">
取消
</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1 && scope.scope.deliveryStatus == 2" @click="handleWarehousing(scope.scope)" fn="入库">入库</GLButton>
<!-- <el-button type="text" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)">取消</el-button> -->
</div>
......@@ -392,39 +394,47 @@ export default {
<style scoped lang="scss">
@import '@/assets/css/mixin.scss';
.purchase {
.table-header {
display: flex;
align-items: center;
margin-bottom: 25px;
margin-top:20px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
.glbtn{
left: 46px;
.glbtn {
left: 46px;
position: absolute;
}
.btn {
right: 47px;
position: absolute;
}
}
.greenSpot {
@include dot;
background: $color-green;
}
.yellowSpot {
@include dot;
background: $color-yellow;
}
.ashSpot {
@include dot;
background: $color-gray;
}
.table-btns /deep/.el-button--text {
.table-btns ::v-deep.el-button--text {
min-width: 0 !important;
padding: 0;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!