Commit e6767cea by wangzhihui

积分提现审批

1 parent be2248ba
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
}, },
dataInfo: { dataInfo: {
type: Object, type: Object,
default: {} default:()=> {}
} }
}, },
computed: { computed: {
......
...@@ -133,8 +133,8 @@ export default { ...@@ -133,8 +133,8 @@ export default {
default: false default: false
}, },
id: { id: {
type: Number, type: String,
default: "" default: ''
} }
}, },
computed: { computed: {
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
}, },
watch: { watch: {
id(val) { id(val) {
if (val) this.getDetail() // if (val) this.getDetail()
} }
}, },
mounted() { mounted() {
...@@ -176,29 +176,29 @@ export default { ...@@ -176,29 +176,29 @@ export default {
handleDetailClose() { handleDetailClose() {
this.dialogShow = false this.dialogShow = false
}, },
getDetail() { // getDetail() {
getScoreDetail({ id: this.id }).then((res) => { // getScoreDetail({ id: this.id }).then((res) => {
if (res) { // if (res) {
// res.updatedTime = res.updatedTime // res.updatedTime = res.updatedTime
// ? Util.dateFormate(res.updatedTime, "YYYY-MM-DD HH:mm:ss") // ? Util.dateFormate(res.updatedTime, "YYYY-MM-DD HH:mm:ss")
// : "--" // : "--"
// res.withdrawalTime = res.withdrawalTime // res.withdrawalTime = res.withdrawalTime
// ? Util.dateFormate(res.withdrawalTime, "YYYY-MM-DD HH:mm:ss") // ? Util.dateFormate(res.withdrawalTime, "YYYY-MM-DD HH:mm:ss")
// : "--" // : "--"
// res.refundTime = res.refundTime // res.refundTime = res.refundTime
// ? Util.dateFormate(res.refundTime, "YYYY-MM-DD HH:mm:ss") // ? Util.dateFormate(res.refundTime, "YYYY-MM-DD HH:mm:ss")
// : "--" // : "--"
// res.failTime = res.failTime // res.failTime = res.failTime
// ? Util.dateFormate(res.failTime, "YYYY-MM-DD HH:mm:ss") // ? Util.dateFormate(res.failTime, "YYYY-MM-DD HH:mm:ss")
// : "--" // : "--"
// res.revokeTime = res.revokeTime // res.revokeTime = res.revokeTime
// ? Util.dateFormate(res.revokeTime, "YYYY-MM-DD HH:mm:ss") // ? Util.dateFormate(res.revokeTime, "YYYY-MM-DD HH:mm:ss")
// : "--" // : "--"
this.detailInfo = res // this.detailInfo = res
} // }
}) // })
} // }
} }
} }
</script> </script>
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
default: false default: false
}, },
id: { id: {
type: Number, type: String,
default: "" default: ""
} }
}, },
...@@ -76,24 +76,24 @@ export default { ...@@ -76,24 +76,24 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
handleAddConfirm() { // handleAddConfirm() {
this.$refs.formRef.$refs[this.rejectRef].validate(async (valid) => { // this.$refs.formRef.$refs[this.rejectRef].validate(async (valid) => {
if (valid) { // if (valid) {
let detailData = await getScoreDetail({ id: this.id }) // let detailData = await getScoreDetail({ id: this.id })
let params = {} // let params = {}
params.remark = this.infoForm.remark // params.remark = this.infoForm.remark
params.orderCode = detailData.orderCode // params.orderCode = detailData.orderCode
params.scoreId = this.id // params.scoreId = this.id
cancelDeduct(params).then((res) => { // cancelDeduct(params).then((res) => {
console.log(res) // console.log(res)
if (res) { // if (res) {
this.$emit("handleConfirm", false) // this.$emit("handleConfirm", false)
this.notice.okTips("操作成功") // this.notice.okTips("操作成功")
} // }
}) // })
} // }
}) // })
}, // },
handleClose() { handleClose() {
this.$emit("dialogClose", false) this.$emit("dialogClose", false)
} }
......
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
}, },
{ {
label: 'OA审批时间', label: 'OA审批时间',
name: 'oaApprovalTimeStart', name: 'oaApprovalTime',
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
...@@ -149,9 +149,9 @@ export default { ...@@ -149,9 +149,9 @@ export default {
type: 'text', type: 'text',
fn: '付款审批' fn: '付款审批'
}, },
// condition: row => { condition: row => {
// return row.status == 0 return row.status == 0||row.status ==3
// }, },
listeners: { listeners: {
click: row => { click: row => {
this.handleCheck(row) this.handleCheck(row)
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
{ {
label: '批次生成时间', label: '批次生成时间',
prop: 'createdDate', prop: 'createdDate',
width: 150 width: 180
}, },
{ {
label: '审批人', label: '审批人',
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
{ {
label: '审批时间', label: '审批时间',
prop: 'approvalTime', prop: 'approvalTime',
width: '200px' width: 180
}, },
{ {
label: 'OA审批编号', label: 'OA审批编号',
...@@ -262,19 +262,18 @@ export default { ...@@ -262,19 +262,18 @@ export default {
{ {
label: 'OA审批时间', label: 'OA审批时间',
prop: 'oaApprovalTime', prop: 'oaApprovalTime',
line: 1, width: 180
width: 150
}, },
{ {
label: '渠道到账时间', label: '渠道到账时间',
prop: 'channelSettleTime', prop: 'channelSettleTime',
width: 150 width: 180
}, },
{ {
label: '用户到账时间', label: '用户到账时间',
prop: 'userSettleTime', prop: 'userSettleTime',
width: 150 width: 180
} }
] ]
}, },
...@@ -311,7 +310,12 @@ export default { ...@@ -311,7 +310,12 @@ export default {
this.detailVisible = true this.detailVisible = true
}, },
//导出 //导出
handleExport(row) {}, handleExport(row) {
const params ={approvalId: row.id}
this.$apis.withdraw.orderExport(params).then(res => {
this.$utils.aToExport(res)
})
},
//到账明细 //到账明细
handleParticulars(row) { handleParticulars(row) {
this.$router.push({ this.$router.push({
...@@ -341,6 +345,7 @@ export default { ...@@ -341,6 +345,7 @@ export default {
params.userSettleTimeStart = dayjs(this.searchForm.userSettleTime[0]).format('YYYY-MM-DD') + ' 00:00:01' params.userSettleTimeStart = dayjs(this.searchForm.userSettleTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.userSettleTimeEnd = dayjs(this.searchForm.userSettleTime[1]).format('YYYY-MM-DD') + ' 23:59:59' params.userSettleTimeEnd = dayjs(this.searchForm.userSettleTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
console.log(this.searchForm.oaApprovalTime)
if (this.searchForm.oaApprovalTime && this.searchForm.oaApprovalTime.length) { if (this.searchForm.oaApprovalTime && this.searchForm.oaApprovalTime.length) {
params.oaApprovalTimeStart = dayjs(this.searchForm.oaApprovalTime[0]).format('YYYY-MM-DD') + ' 00:00:01' params.oaApprovalTimeStart = dayjs(this.searchForm.oaApprovalTime[0]).format('YYYY-MM-DD') + ' 00:00:01'
params.oaApprovalTimeEnd = dayjs(this.searchForm.oaApprovalTime[1]).format('YYYY-MM-DD') + ' 23:59:59' params.oaApprovalTimeEnd = dayjs(this.searchForm.oaApprovalTime[1]).format('YYYY-MM-DD') + ' 23:59:59'
......
...@@ -800,8 +800,7 @@ export default { ...@@ -800,8 +800,7 @@ export default {
//全部生成批次 //全部生成批次
async handleAllBatch(all = true) { async handleAllBatch(all = true) {
let title = all ? '全部生成批次提示' : '生成批次提示', let title = all ? '全部生成批次提示' : '生成批次提示',
// cxt = await this.generateBatchCount(all), cxt = await this.generateBatchCount(all),
cxt = '当前共 ${numberOfRecord}条未处理【积分提现】记录,付款金额共',
params = { params = {
type: all ? 2 : 1 type: all ? 2 : 1
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!