Commit 79412858 by 吴娟华

Merge branch 'v1.1.1' of http://192.168.3.233:8090/glsx-business/dj-car-life-system into v1.1.1

2 parents f56f6b38 f9f8d108
......@@ -142,7 +142,7 @@
align="center"
>
<template slot-scope="scope">
<span>{{customerStatusObj[1].includes(scope.row.status) ? '' : new Date(scope.row.updatedDate).toLocaleDateString()}}</span>
<span>{{!scope.row.payOrder ? '' : (!scope.row.payOrder.successDate ? '' : new Date(scope.row.payOrder.successDate).toLocaleDateString())}}</span>
</template>
</el-table-column>
</el-table-column>
......@@ -273,7 +273,7 @@ export default {
}
}, {
label: '服务时间',
name: 'updateTime',
name: 'successTime',
type: 'datePicker',
pickerOptions: 'rangePickerOptions'
}, {
......@@ -379,9 +379,9 @@ export default {
this.searchForm.baseGoodsId && (params.baseGoodsCodeList = [this.searchForm.baseGoodsId])
this.searchForm.customerStatus && (params.statusList = this.customerStatusObj[this.searchForm.customerStatus])
this.searchForm.source && (params.sourceList = this.sourceStatusObj[this.searchForm.source])
if (this.searchForm.updateTime) {
params.updateStartDate = new Date(this.searchForm.updateTime[0]).toLocaleDateString().replace(/\//g, '-')
params.updateEndDate = new Date(this.searchForm.updateTime[1]).toLocaleDateString().replace(/\//g, '-')
if (this.searchForm.successTime) {
params.paySuccessStartDate = new Date(this.searchForm.successTime[0]).toLocaleDateString().replace(/\//g, '-')
params.paySuccessEndDate = new Date(this.searchForm.successTime[1]).toLocaleDateString().replace(/\//g, '-')
}
if (this.searchForm.createTime) {
params.startDate = new Date(this.searchForm.createTime[0]).toLocaleDateString().replace(/\//g, '-')
......
......@@ -169,12 +169,11 @@ export default {
tableSearchForm: {},
searchForm: {
userId: '',
baseGoodsId: '',
yqMerchantId: this.$store.state.d2admin.user.info.detail.merchantId
baseGoodsId: ''
},
showFormData: [{
label: '服务门店',
name: 'sellerMerchantId',
name: 'yqMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
......@@ -331,7 +330,7 @@ export default {
this.getOptionsList()
})
if (!this.userInfo.beSuper) {
this.showFormData = this.showFormData.filter(item => item.name !== 'sellerMerchantId')
this.showFormData = this.showFormData.filter(item => item.name !== 'yqMerchantId')
this.getServiceStore(this.userInfo.detail.merchantId)
}
},
......@@ -343,7 +342,7 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
this.tableSearchForm = _.cloneDeep(this.searchForm)
this.userInfo.beSuper && delete this.tableSearchForm.yqMerchantId
!this.userInfo.beSuper && (this.tableSearchForm.yqMerchantId = this.userInfo.detail.merchantId)
if (this.tableSearchForm.entryTime) {
this.tableSearchForm.startDate = new Date(this.tableSearchForm.entryTime[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.endDate = new Date(this.tableSearchForm.entryTime[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
......@@ -355,8 +354,7 @@ export default {
handleReset() {
this.searchForm = {
userId: '',
baseGoodsId: '',
yqMerchantId: this.$store.state.d2admin.user.info.detail.merchantId
baseGoodsId: ''
}
this.userInfo.beSuper && (this.baseData.storeIdList = [])
this.baseData.adviserList = []
......@@ -436,12 +434,12 @@ export default {
var params = {
advanceUserId: this.userInfo.detail.userId,
advanceUserName: this.userInfo.userType === 1 ? this.userInfo.detail.name : this.userInfo.detail.merchantName,
sellerMerchantId: this.userInfo.beSuper ? this.fileForm.yqMerchantId : this.userInfo.detail.merchantId,
yqMerchantId: this.fileForm.yqMerchantId,
yqMerchantId: this.userInfo.beSuper ? this.fileForm.yqMerchantId : this.userInfo.detail.merchantId,
file: this.fileInfo
}
recordUpload(params).then(res => {
this.showNum = !!res.failNum
res.succNum && this.$refs.recordTable.refreshTable()
if (res.failNum) {
this.importNum = {
succNum: res.succNum,
......@@ -451,7 +449,6 @@ export default {
return true
}
this.notice.okTips('导入成功')
this.$refs.recordTable.refreshTable()
})
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!