Commit e0effb58 by chenwq

commit

1 parent e616839d
...@@ -70,10 +70,10 @@ ...@@ -70,10 +70,10 @@
</div> </div>
<glsx-dialog class="refund-fill-boxss" :width="'576px'" title="提示" :show-close="true" :isVisible="isShow" @confirmDialog="isShow = false" @closeDialog="isShow = false" :noCancel="true"> <glsx-dialog class="refund-fill-boxss" :width="'576px'" title="提示" :show-close="true" :isVisible="isShow" @confirmDialog="isShow = false" @closeDialog="isShow = false" :noCancel="true">
<div class="dialog-refund"> <div class="dialog-refund">
<img class="img" src="../../images/warn.png" /> <img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div> <div>该会员在升级黑卡会员期间,已购买过生活权益</div>
<div style="color: #FF4D4F;padding: 6px 0;">(时间:{{orderDate}} 金额:{{orderPrice}}元)</div> <div style="color: #FF4D4F;padding: 6px 0;">(时间:{{orderDate}} 金额:{{orderPrice}}元)</div>
<div>暂不支持退款</div> <div>暂不支持退款</div>
</div> </div>
</glsx-dialog> </glsx-dialog>
<glsx-dialog class="refund-fill-box" :width="'720px'" title="退款确认" :isVisible="refundVisible" @confirmDialog="refundConfirmDialog" @closeDialog="refundVisible = false" :isShowCloseBtn="true"> <glsx-dialog class="refund-fill-box" :width="'720px'" title="退款确认" :isVisible="refundVisible" @confirmDialog="refundConfirmDialog" @closeDialog="refundVisible = false" :isShowCloseBtn="true">
...@@ -88,13 +88,13 @@ ...@@ -88,13 +88,13 @@
<script> <script>
import { orderTypesList, orderStatusList, exportFn } from '@/common/constant' import { orderTypesList, orderStatusList, exportFn } from '@/common/constant'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { getOrderListApi, orderExportApi, orderRefund,ordeRefundApi } from '@/api/modules/order' import { getOrderListApi, orderExportApi, orderRefund, ordeRefundApi } from '@/api/modules/order'
export default { export default {
data() { data() {
return { return {
isShow:false, isShow: false,
orderPrice:'', orderPrice: '',
orderDate:'', orderDate: '',
orderCode: '', orderCode: '',
refund: '', refund: '',
refundVisible: false, refundVisible: false,
...@@ -151,7 +151,13 @@ export default { ...@@ -151,7 +151,13 @@ export default {
name: 'merchantName', name: 'merchantName',
type: 'input', type: 'input',
maxlength: 100 maxlength: 100
} },
{
label: '推荐人',
name: 'shareStaffName',
type: 'input',
maxlength: 100
},
], ],
choseList: ['全部', '待收货', '已完成', '退款|售后'], choseList: ['全部', '待收货', '已完成', '退款|售后'],
currentIndex: 1, currentIndex: 1,
...@@ -180,7 +186,7 @@ export default { ...@@ -180,7 +186,7 @@ export default {
fn: '退款' fn: '退款'
}, },
condition: row => { condition: row => {
if(row.packageType == 2) { if (row.packageType == 2) {
return row.refundFlag == 1 && row.show return row.refundFlag == 1 && row.show
} else { } else {
return row.refundFlag == 1 return row.refundFlag == 1
...@@ -214,7 +220,8 @@ export default { ...@@ -214,7 +220,8 @@ export default {
}, },
{ {
label: '价格/元', label: '价格/元',
prop: 'originalPrice' prop: 'originalPrice',
width: '100'
}, },
{ {
label: '实收金额/元', label: '实收金额/元',
...@@ -224,7 +231,7 @@ export default { ...@@ -224,7 +231,7 @@ export default {
{ {
label: '订单状态', label: '订单状态',
prop: 'orderStatus', prop: 'orderStatus',
width: '80', width: '100',
formatter: cellValue => { formatter: cellValue => {
return this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName return this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName
} }
...@@ -283,10 +290,10 @@ export default { ...@@ -283,10 +290,10 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
if (this.$isGroupUp) { // if (this.$isGroupUp) {
let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人') // let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
this.tableParams.tableColumns.splice(idx, 1) // this.tableParams.tableColumns.splice(idx, 1)
} // }
}, },
mounted() { mounted() {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
...@@ -366,21 +373,21 @@ export default { ...@@ -366,21 +373,21 @@ export default {
}) })
}, },
ordeRefund(orderCode) { ordeRefund(orderCode) {
ordeRefundApi({orderCode}).then(res => { ordeRefundApi({ orderCode }).then(res => {
if(res != null) { if (res != null) {
this.orderDate = res.orderDate this.orderDate = res.orderDate
this.orderPrice = res.orderPrice this.orderPrice = res.orderPrice
this.isShow = true this.isShow = true
} else { } else {
this.refundVisible = true this.refundVisible = true
} }
}) })
}, },
handleRefund(data) { handleRefund(data) {
this.orderCode = data.orderCode this.orderCode = data.orderCode
this.refund = '' this.refund = ''
// this.refundVisible = !this.refundVisible // this.refundVisible = !this.refundVisible
if(data.packageType == 2) { if (data.packageType == 2) {
this.ordeRefund(data.orderCode) this.ordeRefund(data.orderCode)
} else { } else {
this.refundVisible = true this.refundVisible = true
...@@ -433,12 +440,12 @@ export default { ...@@ -433,12 +440,12 @@ export default {
//接收到的数据为空 //接收到的数据为空
this.$refs.memberOrderRef.data.length ? (this.$refs.memberOrderRef.tableHeightValues = '') : this.$refs.memberOrderRef.setTableHeightFun() this.$refs.memberOrderRef.data.length ? (this.$refs.memberOrderRef.tableHeightValues = '') : this.$refs.memberOrderRef.setTableHeightFun()
let arr = this.$refs.memberOrderRef.data let arr = this.$refs.memberOrderRef.data
if(arr.length > 0) { if (arr.length > 0) {
arr.map(e => { arr.map(e => {
if(e.refundFlag == 1 && e.packageType == 2) { if (e.refundFlag == 1 && e.packageType == 2) {
let time = new Date(`${e.createDate}`) let time = new Date(`${e.createDate}`)
let timer = new Date() let timer = new Date()
if(timer.getTime() < time.getTime() + 604800000) { if (timer.getTime() < time.getTime() + 604800000) {
e.show = true e.show = true
} }
} }
...@@ -532,7 +539,7 @@ export default { ...@@ -532,7 +539,7 @@ export default {
padding-bottom: 12px; padding-bottom: 12px;
} }
} }
::v-deep .el-dialog__footer { ::v-deep .el-dialog__footer {
text-align: center; text-align: center;
} }
} }
......
...@@ -179,6 +179,13 @@ import { limitPrice } from '@/common/constant' ...@@ -179,6 +179,13 @@ import { limitPrice } from '@/common/constant'
export default { export default {
name: 'editActivity', name: 'editActivity',
data() { data() {
var validatorPhone = function (rule, value, callback) {
if (!/^(0|86|17951)?(13[0-9]|15[0123456789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(value)) {
callback(new Error('手机号格式错误'))
} else {
callback()
}
}
return { return {
size: 'small', size: 'small',
footerLeft: '0', footerLeft: '0',
...@@ -269,6 +276,7 @@ export default { ...@@ -269,6 +276,7 @@ export default {
// selectedAllProList: [], // selectedAllProList: [],
// selectedProList: [], // selectedProList: [],
editRule: { editRule: {
customerServicePhone: { required: false, validator: validatorPhone, trigger: 'blur' },
activityName: [{ required: true, message: '请输入活动名称', trigger: 'change' }], activityName: [{ required: true, message: '请输入活动名称', trigger: 'change' }],
activityImg: [{ required: true, message: '请选择活动宣传图', trigger: 'change' }], activityImg: [{ required: true, message: '请选择活动宣传图', trigger: 'change' }],
promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }], promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!