Commit 716f9bf3 by 前端

功能代码提交

1 parent dd86db44
......@@ -770,7 +770,7 @@ export const warningStatus = [
// 规则审核-类型
export const ruleReview_type = [
{ confId: 1, confValue: "清分" },
{ confId: 2, confValue: "对账" }
{ confId: 3, confValue: "对账" }
]
// 规则审核-状态
......
......@@ -42,6 +42,18 @@
<auth-button :data="scope.scope"
:show-btn-ids="['9062401']" />
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9062402']" />
</span>
<!-- 撤销 -->
<span style="margin-right: 10px;"
v-if="scope.scope.auditStatus == 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9062403']" />
</span>
</div>
</d2-table>
</div>
......@@ -54,24 +66,22 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { sceneCodeList, ruleReview_status, ruleReview_type, withdrawalManageStatusList } from '@/common/constants.js'
import { withdrawOrderRecordPage, rewithdraw } from '@api/withdrawalManage'
// import addDialog from './components/addDialog'
import { ruleAuditPage, ruleAuditReject, ruleAuditCancel } from '@api/ruleReview'
export default {
name: 'TransferAccountsList',
components: {
// addDialog
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
labelWidth: '100px',
searchForm: {
withdrawTradeNo: '',
merchantName: '',
merchantIdFuzzy: '',
// merchantIds: [],
status: '',
statuses: [],
withdrawalDate: ''
sceneType: '',
ruleType: '',
auditStatus: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -88,7 +98,7 @@ export default {
maxlength: '20',
isClear: true
}, {
label: '场景名',
label: '业务场景',
name: 'sceneType',
type: 'select',
isClear: true,
......@@ -98,7 +108,7 @@ export default {
optionsName: 'sceneTypeList'
}, {
label: '类型',
name: 'type',
name: 'ruleType',
type: 'select',
optionList: [],
optionId: 'confId',
......@@ -106,7 +116,7 @@ export default {
optionsName: 'typeList'
}, {
label: '状态',
name: 'status',
name: 'auditStatus',
type: 'select',
optionList: [],
optionId: 'confId',
......@@ -129,58 +139,62 @@ export default {
width: '160px'
}, {
label: '业务场景',
prop: 'scene',
prop: 'sceneType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.sceneTypeList.find(item => item.confId === cellValue.scene)?.confValue
return this.baseData.sceneTypeList.find(item => item.confId === cellValue.sceneType)?.confValue
}
},
{
label: '类型',
prop: 'type',
prop: 'ruleType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.typeList.find(item => item.confId === cellValue.type)?.confValue
return this.baseData.typeList.find(item => item.confId === cellValue.ruleType)?.confValue
}
},
{
label: '生效开始时间',
prop: 'withdrawTime',
prop: 'effectStartDate',
width: '150px',
formatter: (cellValue) => {
return cellValue.withdrawTime ? Util.dateFormate(cellValue.withdrawTime, 'YYYY-MM-DD HH:mm:ss') : '--'
if (cellValue.effectDateType == 2) {
return '立即生效'
} else {
return cellValue.effectStartDate ? Util.dateFormate(cellValue.effectStartDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}
},
{
label: '状态',
prop: 'status',
prop: 'auditStatus',
width: '100px',
formatter: (cellValue) => {
return this.baseData.statusList.find(item => item.confId === cellValue.status)?.confValue
return this.baseData.statusList.find(item => item.confId === cellValue.auditStatus)?.confValue
}
},
{
label: '创建人',
prop: 'createdBy'
prop: 'creatorName'
},
{
label: '创建时间',
prop: 'withdrawTime',
prop: 'createdDate',
width: '150px',
formatter: (cellValue) => {
return cellValue.withdrawTime ? Util.dateFormate(cellValue.withdrawTime, 'YYYY-MM-DD HH:mm:ss') : '--'
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
label: '审核人',
prop: 'createdBy'
prop: 'auditBy'
},
{
label: '审核时间',
prop: 'withdrawTime',
prop: 'auditDate',
width: '150px',
formatter: (cellValue) => {
return cellValue.withdrawTime ? Util.dateFormate(cellValue.withdrawTime, 'YYYY-MM-DD HH:mm:ss') : '--'
return cellValue.auditDate ? Util.dateFormate(cellValue.auditDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}
]
......@@ -191,9 +205,6 @@ export default {
typeList: deepClone(ruleReview_type),
},
infos: [],
recordInfo: null,
addVisible: false
}
},
computed: {
......@@ -219,19 +230,6 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.withdrawalDate) {
this.searchFormSearch.withdrawStartTimeStr = Util.dateFormate(this.searchFormSearch.withdrawalDate[0], 'YYYY-MM-DD HH:mm:ss')
this.searchFormSearch.withdrawEndTimeStr = Util.dateFormate(this.searchFormSearch.withdrawalDate[1], 'YYYY-MM-DD') + ' 23:59:59'
delete this.searchFormSearch.withdrawalDate
}
// if (this.searchFormSearch.merchantId) {
// this.searchFormSearch.merchantIds[0] = this.searchFormSearch.merchantId
// delete this.searchFormSearch.merchantId
// }
if (this.searchFormSearch.status) {
this.searchFormSearch.statuses[0] = this.searchFormSearch.status
delete this.searchFormSearch.status
}
resolve()
})
},
......@@ -239,7 +237,6 @@ export default {
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
console.log('this.baseData[item.optionsName]', item.optionsName)
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
......@@ -256,13 +253,11 @@ export default {
},
handleReset() {
this.searchForm = {
withdrawTradeNo: '',
merchantName: '',
merchantIdFuzzy: '',
// merchantIds: [],
status: '',
statuses: [],
withdrawalDate: ''
sceneType: '',
ruleType: '',
auditStatus: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......@@ -288,7 +283,7 @@ export default {
type: 'warning',
closeOnClickModal: false
}).then(() => {
rewithdraw({ orderCode: row.orderCode }).then(res => {
ruleAuditReject({ id: row.id }).then(res => {
this.notice.okTips()
this.$refs.recordTable.refreshTable()
})
......@@ -305,7 +300,7 @@ export default {
type: 'warning',
closeOnClickModal: false
}).then(() => {
rewithdraw({ orderCode: row.orderCode }).then(res => {
ruleAuditCancel({ id: row.id }).then(res => {
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!