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