Commit 716f9bf3 by 前端

功能代码提交

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