Commit e58f07cb by wangql

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

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