Commit e58f07cb by wangql

订单状态增加已关闭,详情中订单进度撤销时操作员加管理员前缀

1 parent 0555420a
...@@ -151,7 +151,7 @@ import { mapActions } from 'vuex' ...@@ -151,7 +151,7 @@ import { mapActions } from 'vuex'
// import { getOrderDetail } from '@api/order' // import { getOrderDetail } from '@api/order'
export default { export default {
name: 'orderDetail', name: 'orderDetail',
data () { data() {
return { return {
imgVisible: false, imgVisible: false,
detail: { detail: {
...@@ -180,7 +180,8 @@ export default { ...@@ -180,7 +180,8 @@ export default {
1: '预录员', 1: '预录员',
2: '转化员', 2: '转化员',
3: '转化员', 3: '转化员',
4: '用户' 4: '用户',
5: '【管理员】'
}, },
constructioOpts: { constructioOpts: {
'Y': '已施工', 'Y': '已施工',
...@@ -195,7 +196,7 @@ export default { ...@@ -195,7 +196,7 @@ export default {
} }
}, },
mounted () { mounted() {
this.detail = this.$route.params.detail this.detail = this.$route.params.detail
// console.log(this.detail) // console.log(this.detail)
}, },
...@@ -214,10 +215,10 @@ export default { ...@@ -214,10 +215,10 @@ export default {
// getTotalNums() { // getTotalNums() {
// return this.detail.subOrderList.reduce((prev, item) => prev + item.nums, 0) // return this.detail.subOrderList.reduce((prev, item) => prev + item.nums, 0)
// }, // },
handleEnlargeImg () { handleEnlargeImg() {
this.imgVisible = !this.imgVisible this.imgVisible = !this.imgVisible
}, },
getSummaries (param) { getSummaries(param) {
const { columns } = param const { columns } = param
const sums = [] const sums = []
columns.forEach((column, index) => { columns.forEach((column, index) => {
...@@ -241,7 +242,7 @@ export default { ...@@ -241,7 +242,7 @@ export default {
return sums return sums
}, },
handleClose () { handleClose() {
this.close({ tagName: '/orderList' }) this.close({ tagName: '/orderList' })
this.$router.push({ name: 'orderList' }) this.$router.push({ name: 'orderList' })
this.close({ tagName: '/orderDetail' }) this.close({ tagName: '/orderDetail' })
......
...@@ -163,7 +163,7 @@ import { mapActions } from 'vuex' ...@@ -163,7 +163,7 @@ import { mapActions } from 'vuex'
import { getServiceStore, getParkStore } from '@api/editCustomer' import { getServiceStore, getParkStore } from '@api/editCustomer'
export default { export default {
name: 'orderList', name: 'orderList',
data () { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
statusOpts: { statusOpts: {
...@@ -173,8 +173,8 @@ export default { ...@@ -173,8 +173,8 @@ export default {
4: '已支付', 4: '已支付',
// 5: '已退款', // 5: '已退款',
6: '已评价', 6: '已评价',
9: '已撤销' 9: '已撤销',
10: '已关闭'
}, },
upgradeOpts: { upgradeOpts: {
'Y': '已升级', 'Y': '已升级',
...@@ -295,7 +295,7 @@ export default { ...@@ -295,7 +295,7 @@ export default {
}, },
{ {
confId: 10, confId: 10,
confLabel: 'test' confLabel: '已关闭'
} }
], ],
upgradeList: [{ upgradeList: [{
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
} }
}, },
mounted () { mounted() {
if (this.userInfo.beSuper) { if (this.userInfo.beSuper) {
getParkStore({}).then(res => { getParkStore({}).then(res => {
res.forEach(item => { res.forEach(item => {
...@@ -351,7 +351,7 @@ export default { ...@@ -351,7 +351,7 @@ export default {
methods: { methods: {
...mapActions({ close: 'd2admin/page/close' }), ...mapActions({ close: 'd2admin/page/close' }),
handleReset () { handleReset() {
this.searchForm = { this.searchForm = {
status: '', status: '',
upgradeFinishFlag: '', upgradeFinishFlag: '',
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
this.baseData.storeIdList = [] this.baseData.storeIdList = []
this.getOptionsList() this.getOptionsList()
}, },
getServiceStore (merchantId) { getServiceStore(merchantId) {
getServiceStore({ getServiceStore({
yqMerchantId: merchantId yqMerchantId: merchantId
}).then(res => { }).then(res => {
...@@ -372,7 +372,7 @@ export default { ...@@ -372,7 +372,7 @@ export default {
this.getOptionsList() this.getOptionsList()
}) })
}, },
getOptionsList () { getOptionsList() {
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === 'select') { if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') { if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
...@@ -385,7 +385,7 @@ export default { ...@@ -385,7 +385,7 @@ export default {
} }
}) })
}, },
getParams () { getParams() {
const params = _.cloneDeep(this.searchForm) const params = _.cloneDeep(this.searchForm)
const form = this.searchForm const form = this.searchForm
...@@ -396,10 +396,10 @@ export default { ...@@ -396,10 +396,10 @@ export default {
return params return params
}, },
keyDowmGetList () { keyDowmGetList() {
this.getList() this.getList()
}, },
getList () { getList() {
var params = this.getParams() var params = this.getParams()
params = { params = {
...this.page, ...this.page,
...@@ -413,7 +413,7 @@ export default { ...@@ -413,7 +413,7 @@ export default {
this.total = res.total this.total = res.total
}) })
}, },
getOrderCount () { getOrderCount() {
var params = this.getParams() var params = this.getParams()
params = { params = {
...params ...params
...@@ -422,13 +422,13 @@ export default { ...@@ -422,13 +422,13 @@ export default {
this.totalCount = res.totalPriceCount this.totalCount = res.totalPriceCount
}) })
}, },
handleSearch () { handleSearch() {
this.page.pageNum = 1 this.page.pageNum = 1
this.getOrderCount() this.getOrderCount()
this.getList() this.getList()
}, },
// 导出 // 导出
handleExport () { handleExport() {
var params = this.getParams() var params = this.getParams()
params.pageNum = 1 params.pageNum = 1
exportFile(params).then(res => { exportFile(params).then(res => {
...@@ -436,7 +436,7 @@ export default { ...@@ -436,7 +436,7 @@ export default {
}) })
}, },
// 查看详情 // 查看详情
handleDetail (data) { handleDetail(data) {
// console.log(data.row) // console.log(data.row)
this.close({ tagName: '/orderDetail' }) this.close({ tagName: '/orderDetail' })
this.$router.push({ this.$router.push({
...@@ -447,13 +447,13 @@ export default { ...@@ -447,13 +447,13 @@ export default {
}) })
}, },
// 每页条数 // 每页条数
handleSizeChange (value) { handleSizeChange(value) {
this.page.pageSize = value this.page.pageSize = value
this.getList() this.getList()
}, },
// 页码 // 页码
handleCurrentChange (value) { handleCurrentChange(value) {
this.page.pageNum = value this.page.pageNum = value
this.getList() this.getList()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!