Commit 65db206c by 前端

紧急版本功能代码及BUG修复

1 parent f2a1f08b
...@@ -1058,3 +1058,10 @@ export const operationResultOpt = [ ...@@ -1058,3 +1058,10 @@ export const operationResultOpt = [
{ confId: "Y", confValue: "成功" }, { confId: "Y", confValue: "成功" },
{ confId: "N", confValue: "失败" } { confId: "N", confValue: "失败" }
] ]
// 订单管理 会员权益订单 上传协议
export const zyVoucherStatusOpt = [
{ confId: "0", confValue: "无需上传" },
{ confId: "1", confValue: "待上传" },
{ confId: "2", confValue: "已上传" }
]
...@@ -18,24 +18,6 @@ ...@@ -18,24 +18,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- <d2-container class="staffWarn">
<div class="header"
slot="header">
<el-tabs v-model="activeName"
@tab-click="handleClickTabs">
<el-tab-pane label="预警看板"
name="noticeBoard" />
<el-tab-pane label="预警明细"
name="details" />
</el-tabs>
</div>
<div>
<notice-board v-if="activeName === 'noticeBoard'"
@gotoDetail="gotoDetail" />
<staff-detail v-if="activeName === 'details'"
:params-obj="recordInfo" />
</div>
</d2-container> -->
</template> </template>
<script> <script>
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<d2-table-header> <d2-table-header>
<span slot="left">累计订单金额:¥{{ totalCount }}元</span> <span slot="left">累计订单金额:¥{{ totalCount }}元</span>
<!-- 车损权益营收概况 分润&成本分析 导出 --> <!-- 车损权益营收概况 分润&成本分析 导出 -->
<auth-button :show-btn-ids="['9040129', '9040130', '9040131']" <auth-button :show-btn-ids="['9040129', '9040130', '9040131']"
category="Button" /> category="Button" />
</d2-table-header> </d2-table-header>
<el-table :data="tableData" <el-table :data="tableData"
v-loading="$store.state.d2admin.loading.value" v-loading="$store.state.d2admin.loading.value"
...@@ -287,6 +287,13 @@ ...@@ -287,6 +287,13 @@
<span>{{ invoiceStatusOpts[scope.row.invoiceStatus] }}</span> <span>{{ invoiceStatusOpts[scope.row.invoiceStatus] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="上传协议"
align="center"
prop="zyVoucherStatus">
<template slot-scope="scope">
<span>{{ zyVoucherStatusOpts[scope.row.zyVoucherStatus] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
align="center" align="center"
fixed="right"> fixed="right">
...@@ -406,7 +413,7 @@ import { ...@@ -406,7 +413,7 @@ import {
cancelDivideAccountsAPI cancelDivideAccountsAPI
} from "@api/order" } from "@api/order"
import { getDiversionMerchantRef, listShop4sByRef } from "@api/merchant" import { getDiversionMerchantRef, listShop4sByRef } from "@api/merchant"
import { manageTypeList, BaseData } from "@/common/constants" import { manageTypeList, BaseData, zyVoucherStatusOpt } from "@/common/constants"
import { mapActions, mapState, mapMutations } from "vuex" import { mapActions, mapState, mapMutations } from "vuex"
import { getParkStore } from "@api/editCustomer" import { getParkStore } from "@api/editCustomer"
import chooseRuleDialog from './chooseRuleDialog' import chooseRuleDialog from './chooseRuleDialog'
...@@ -451,12 +458,18 @@ export default { ...@@ -451,12 +458,18 @@ export default {
1: '未分账', 1: '未分账',
2: '已分账', 2: '已分账',
4: '待分账', 4: '待分账',
5: '分账中' 5: '分账中',
6: '挂单'
}, },
invoiceStatusOpts: { invoiceStatusOpts: {
1: '未开票', 1: '未开票',
2: '已开票' 2: '已开票'
}, },
zyVoucherStatusOpts: {
0: '无需上传',
1: '待上传',
2: ' 已上传'
},
showFormData: [ showFormData: [
{ {
label: "客户姓名", label: "客户姓名",
...@@ -609,6 +622,7 @@ export default { ...@@ -609,6 +622,7 @@ export default {
label: '分账状态', label: '分账状态',
name: 'profitAllocationStatus', name: 'profitAllocationStatus',
type: 'select', type: 'select',
optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'profitAllocationStatusList' optionsName: 'profitAllocationStatusList'
...@@ -644,15 +658,23 @@ export default { ...@@ -644,15 +658,23 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'invoiceStatusList' optionsName: 'invoiceStatusList'
},{ }, {
label: '客户来源', label: '客户来源',
name: 'salesType', name: 'salesType',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'salesTypeList' optionsName: 'salesTypeList'
} }, {
label: '上传协议',
name: 'zyVoucherStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'zyVoucherStatusOpt'
}
], ],
searchForm: { searchForm: {
sceneType: 0, sceneType: 0,
...@@ -671,7 +693,9 @@ export default { ...@@ -671,7 +693,9 @@ export default {
paySuccessDate: '', paySuccessDate: '',
provinceId: '', provinceId: '',
invoiceStatus: '', invoiceStatus: '',
salesType:'' salesType: '',
zyVoucherStatus: '',
profitAllocationStatus: ''
}, },
baseData: { baseData: {
orderStatusList: [ orderStatusList: [
...@@ -768,6 +792,10 @@ export default { ...@@ -768,6 +792,10 @@ export default {
{ {
confId: '5', confId: '5',
confLabel: '分账中' confLabel: '分账中'
},
{
confId: '6',
confLabel: '挂单'
} }
], ],
businessTypeList: [ businessTypeList: [
...@@ -791,8 +819,8 @@ export default { ...@@ -791,8 +819,8 @@ export default {
confLabel: '已开票' confLabel: '已开票'
} }
], ],
salesTypeList:[ salesTypeList: [
{ {
confId: '0', confId: '0',
confLabel: '售前' confLabel: '售前'
}, },
...@@ -800,7 +828,8 @@ export default { ...@@ -800,7 +828,8 @@ export default {
confId: '1', confId: '1',
confLabel: '售后' confLabel: '售后'
} }
] ],
zyVoucherStatusOpt: Util.deepClone(zyVoucherStatusOpt)
}, },
tableData: [], tableData: [],
total: 0, total: 0,
...@@ -1018,7 +1047,9 @@ export default { ...@@ -1018,7 +1047,9 @@ export default {
businessType: "", businessType: "",
paySuccessDate: '', paySuccessDate: '',
provinceId: '', provinceId: '',
invoiceStatus: '' invoiceStatus: '',
zyVoucherStatus: '',
profitAllocationStatus: ''
} }
// this.baseData.storeIdList = [] // this.baseData.storeIdList = []
this.handleSearch() this.handleSearch()
......
...@@ -84,6 +84,18 @@ ...@@ -84,6 +84,18 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="延保协议:"
class="photoItem photoItemList"
v-if="$$(detail.payOrder, 'zyVoucherUrl')">
<div class="picItem">
<img class="icon"
src="./images/fileIcon.png">
<span class="label">文件</span>
<span class="handle"
@click="handleEnlargeFile(detail.payOrder.zyVoucherUrl)">点击查看</span>
</div>
</el-form-item>
<el-form-item class="remarkItem" <el-form-item class="remarkItem"
label="备注:"> label="备注:">
{{ detail.remark }} <el-button type="text" {{ detail.remark }} <el-button type="text"
...@@ -436,6 +448,18 @@ export default { ...@@ -436,6 +448,18 @@ export default {
this.imgList = url.map(item => item[name]) this.imgList = url.map(item => item[name])
this.imgUrlName = name this.imgUrlName = name
}, },
handleEnlargeFile(url) {
url = 'http://qcimg01.glsx.com.cn:7060/group1/M00/07/46/wKgD3mdD9oaARUE4AABxS-wgZWk991.pdf'
if (url) {
var fileExtension = url.split('.').pop().toLowerCase() // 获取文件扩展名
if (fileExtension === 'png' || fileExtension === 'jpg' || fileExtension === 'jpeg' || fileExtension === 'gif') {
this.imgVisible = !this.imgVisible
this.imgList = [url]
} else if (fileExtension === 'pdf') {
window.open(url)
}
}
},
getSummaries(param) { getSummaries(param) {
const { columns } = param const { columns } = param
const sums = [] const sums = []
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
:precision="1" :precision="1"
:step="0.1" :step="0.1"
:min="-9.9" :min="-9.9"
:max="9.9"></el-input-number> :max="9.9"
disabled></el-input-number>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -56,15 +57,15 @@ export default { ...@@ -56,15 +57,15 @@ export default {
}, },
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
formRules: { formRules: {
ruleDescription: [{ required: true, message: '请填写规则说明', trigger: 'blur' }], ruleDescription: [{ required: true, message: '请填写规则说明', trigger: 'blur' }]
pointsValue: [{ // pointsValue: [{
required: true, // required: true,
message: '请填写积分值', // message: '请填写积分值',
trigger: 'change' // trigger: 'change'
}, { // }, {
validator: checkPointValue, // validator: checkPointValue,
trigger: 'change' // trigger: 'change'
}] // }]
}, },
editFormData: [{ editFormData: [{
label: '积分分类', label: '积分分类',
...@@ -125,6 +126,7 @@ export default { ...@@ -125,6 +126,7 @@ export default {
mounted() { mounted() {
this.infoForm = deepClone(this.paramsObj) this.infoForm = deepClone(this.paramsObj)
this.infoForm.pointsValue = this.infoForm.pointsValue ? this.infoForm.pointsValue : undefined
console.log(this.infoForm) console.log(this.infoForm)
}, },
...@@ -137,7 +139,7 @@ export default { ...@@ -137,7 +139,7 @@ export default {
var params = {} var params = {}
params.id = infoForm.id params.id = infoForm.id
params.ruleDescription = infoForm.ruleDescription params.ruleDescription = infoForm.ruleDescription
params.pointsValue = infoForm.pointsValue // params.pointsValue = infoForm.pointsValue
updateStorePointsConfiguration(params).then(res => { updateStorePointsConfiguration(params).then(res => {
this.notice.okTips('操作成功') this.notice.okTips('操作成功')
this.visible = true this.visible = true
......
<!-- 类目配置 --> <!-- 类目配置 -->
<template> <template>
<div> <d2-container class="m-t-40">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns">
<el-button size="small"
type="primary"
@click="handleQuery">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span slot="left"> <span slot="left">
...@@ -91,7 +109,7 @@ ...@@ -91,7 +109,7 @@
v-if="categoryVisible" v-if="categoryVisible"
:category-info="categoryInfo" :category-info="categoryInfo"
@dialogClose="dialogClose" /> @dialogClose="dialogClose" />
</div> </d2-container>
</template> </template>
<script> <script>
...@@ -108,6 +126,16 @@ export default { ...@@ -108,6 +126,16 @@ export default {
pageSize: 10 pageSize: 10
}, },
layout: "sizes,total,->,prev,pager,next,jumper", layout: "sizes,total,->,prev,pager,next,jumper",
searchForm: {
categoryName: ''
},
showFormData: [{
label: '类目名称',
name: 'categoryName',
type: 'input',
maxlength: '20',
isClear: true
}],
baseData: { baseData: {
}, },
categoryVisible: false, categoryVisible: false,
...@@ -137,7 +165,10 @@ export default { ...@@ -137,7 +165,10 @@ export default {
}, },
getPageNew() { getPageNew() {
var params = this.page var params = {
...this.page,
...this.searchForm
}
getCategoryList_new(params).then((res) => { getCategoryList_new(params).then((res) => {
this.tableData = res.list this.tableData = res.list
this.total = res.total this.total = res.total
...@@ -236,10 +267,25 @@ export default { ...@@ -236,10 +267,25 @@ export default {
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
}) })
},
handleQuery() {
this.page.currentPage = 1
this.getPageNew()
},
handleReset() {
this.searchForm = {
categoryName: ''
}
this.refreshTable()
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.m-t-40 {
margin-top: 40px;
}
</style> </style>
<!-- 场景&类目管理 --> <!-- 场景&类目管理 -->
<template> <template>
<d2-container class="account"> <div class="sceneCategoryManage">
<div class="header" <div class="header"
slot="header"> slot="header">
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
<el-tab-pane label="类目配置" <el-tab-pane label="类目配置"
name="category" /> name="category" />
</el-tabs> </el-tabs>
<div>
<scene-list v-if="activeName === 'scene'" />
<category-list v-if="activeName === 'category'" />
</div>
</div> </div>
<div> </div>
<scene-list v-if="activeName === 'scene'" />
<category-list v-if="activeName === 'category'" />
</div>
</d2-container>
</template> </template>
<script> <script>
...@@ -43,9 +43,15 @@ export default { ...@@ -43,9 +43,15 @@ export default {
} }
</script> </script>
<style> <style lang="scss" scoped>
.account .el-tabs__header { .sceneCategoryManage {
margin: 0;
padding: 0 20px; padding: 0 20px;
.header {
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
} }
</style> </style>
<!-- 场景配置 --> <!-- 场景配置 -->
<template> <template>
<div> <d2-container class="m-t-40">
<div class="d2-container-content" <div class="header"
style="padding: 10px 20px;"> slot="header">
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
v-if="categoryVisible" v-if="categoryVisible"
:info="recordInfo" :info="recordInfo"
@dialogClose="dialogClose" /> @dialogClose="dialogClose" />
</div> </d2-container>
</template> </template>
<script> <script>
...@@ -216,4 +216,7 @@ export default { ...@@ -216,4 +216,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.m-t-40 {
margin-top: 40px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!