Commit 65db206c by 前端

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

1 parent f2a1f08b
......@@ -1058,3 +1058,10 @@ export const operationResultOpt = [
{ confId: "Y", confValue: "成功" },
{ confId: "N", confValue: "失败" }
]
// 订单管理 会员权益订单 上传协议
export const zyVoucherStatusOpt = [
{ confId: "0", confValue: "无需上传" },
{ confId: "1", confValue: "待上传" },
{ confId: "2", confValue: "已上传" }
]
......@@ -18,24 +18,6 @@
</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>
<script>
......
......@@ -287,6 +287,13 @@
<span>{{ invoiceStatusOpts[scope.row.invoiceStatus] }}</span>
</template>
</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="操作"
align="center"
fixed="right">
......@@ -406,7 +413,7 @@ import {
cancelDivideAccountsAPI
} from "@api/order"
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 { getParkStore } from "@api/editCustomer"
import chooseRuleDialog from './chooseRuleDialog'
......@@ -451,12 +458,18 @@ export default {
1: '未分账',
2: '已分账',
4: '待分账',
5: '分账中'
5: '分账中',
6: '挂单'
},
invoiceStatusOpts: {
1: '未开票',
2: '已开票'
},
zyVoucherStatusOpts: {
0: '无需上传',
1: '待上传',
2: ' 已上传'
},
showFormData: [
{
label: "客户姓名",
......@@ -609,6 +622,7 @@ export default {
label: '分账状态',
name: 'profitAllocationStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'profitAllocationStatusList'
......@@ -644,7 +658,7 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'invoiceStatusList'
},{
}, {
label: '客户来源',
name: 'salesType',
type: 'select',
......@@ -652,6 +666,14 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'salesTypeList'
}, {
label: '上传协议',
name: 'zyVoucherStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'zyVoucherStatusOpt'
}
],
searchForm: {
......@@ -671,7 +693,9 @@ export default {
paySuccessDate: '',
provinceId: '',
invoiceStatus: '',
salesType:''
salesType: '',
zyVoucherStatus: '',
profitAllocationStatus: ''
},
baseData: {
orderStatusList: [
......@@ -768,6 +792,10 @@ export default {
{
confId: '5',
confLabel: '分账中'
},
{
confId: '6',
confLabel: '挂单'
}
],
businessTypeList: [
......@@ -791,7 +819,7 @@ export default {
confLabel: '已开票'
}
],
salesTypeList:[
salesTypeList: [
{
confId: '0',
confLabel: '售前'
......@@ -800,7 +828,8 @@ export default {
confId: '1',
confLabel: '售后'
}
]
],
zyVoucherStatusOpt: Util.deepClone(zyVoucherStatusOpt)
},
tableData: [],
total: 0,
......@@ -1018,7 +1047,9 @@ export default {
businessType: "",
paySuccessDate: '',
provinceId: '',
invoiceStatus: ''
invoiceStatus: '',
zyVoucherStatus: '',
profitAllocationStatus: ''
}
// this.baseData.storeIdList = []
this.handleSearch()
......
......@@ -84,6 +84,18 @@
</div>
</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"
label="备注:">
{{ detail.remark }} <el-button type="text"
......@@ -436,6 +448,18 @@ export default {
this.imgList = url.map(item => item[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) {
const { columns } = param
const sums = []
......
......@@ -20,7 +20,8 @@
:precision="1"
:step="0.1"
:min="-9.9"
:max="9.9"></el-input-number>
:max="9.9"
disabled></el-input-number>
</div>
</glsx-combi-form>
</div>
......@@ -56,15 +57,15 @@ export default {
},
editChildRef: 'editChildRef',
formRules: {
ruleDescription: [{ required: true, message: '请填写规则说明', trigger: 'blur' }],
pointsValue: [{
required: true,
message: '请填写积分值',
trigger: 'change'
}, {
validator: checkPointValue,
trigger: 'change'
}]
ruleDescription: [{ required: true, message: '请填写规则说明', trigger: 'blur' }]
// pointsValue: [{
// required: true,
// message: '请填写积分值',
// trigger: 'change'
// }, {
// validator: checkPointValue,
// trigger: 'change'
// }]
},
editFormData: [{
label: '积分分类',
......@@ -125,6 +126,7 @@ export default {
mounted() {
this.infoForm = deepClone(this.paramsObj)
this.infoForm.pointsValue = this.infoForm.pointsValue ? this.infoForm.pointsValue : undefined
console.log(this.infoForm)
},
......@@ -137,7 +139,7 @@ export default {
var params = {}
params.id = infoForm.id
params.ruleDescription = infoForm.ruleDescription
params.pointsValue = infoForm.pointsValue
// params.pointsValue = infoForm.pointsValue
updateStorePointsConfiguration(params).then(res => {
this.notice.okTips('操作成功')
this.visible = true
......
<!-- 类目配置 -->
<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">
<d2-table-header>
<span slot="left">
......@@ -91,7 +109,7 @@
v-if="categoryVisible"
:category-info="categoryInfo"
@dialogClose="dialogClose" />
</div>
</d2-container>
</template>
<script>
......@@ -108,6 +126,16 @@ export default {
pageSize: 10
},
layout: "sizes,total,->,prev,pager,next,jumper",
searchForm: {
categoryName: ''
},
showFormData: [{
label: '类目名称',
name: 'categoryName',
type: 'input',
maxlength: '20',
isClear: true
}],
baseData: {
},
categoryVisible: false,
......@@ -137,7 +165,10 @@ export default {
},
getPageNew() {
var params = this.page
var params = {
...this.page,
...this.searchForm
}
getCategoryList_new(params).then((res) => {
this.tableData = res.list
this.total = res.total
......@@ -236,10 +267,25 @@ export default {
.catch((err) => {
console.log(err)
})
},
handleQuery() {
this.page.currentPage = 1
this.getPageNew()
},
handleReset() {
this.searchForm = {
categoryName: ''
}
this.refreshTable()
}
}
}
</script>
<style scoped>
.m-t-40 {
margin-top: 40px;
}
</style>
<!-- 场景&类目管理 -->
<template>
<d2-container class="account">
<div class="sceneCategoryManage">
<div class="header"
slot="header">
<el-tabs v-model="activeName">
......@@ -9,12 +9,12 @@
<el-tab-pane label="类目配置"
name="category" />
</el-tabs>
</div>
<div>
<scene-list v-if="activeName === 'scene'" />
<category-list v-if="activeName === 'category'" />
</div>
</d2-container>
</div>
</div>
</template>
<script>
......@@ -43,9 +43,15 @@ export default {
}
</script>
<style>
.account .el-tabs__header {
<style lang="scss" scoped>
.sceneCategoryManage {
padding: 0 20px;
.header {
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
}
</style>
<!-- 场景配置 -->
<template>
<div>
<div class="d2-container-content"
style="padding: 10px 20px;">
<d2-container class="m-t-40">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
......@@ -38,7 +38,7 @@
v-if="categoryVisible"
:info="recordInfo"
@dialogClose="dialogClose" />
</div>
</d2-container>
</template>
<script>
......@@ -216,4 +216,7 @@ export default {
</script>
<style scoped>
.m-t-40 {
margin-top: 40px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!