Commit e6767cea by wangzhihui

积分提现审批

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