Browse Source

权限,除执行

zhangyong/milestone-20250913-现金管理
lihuilin 1 month ago
parent
commit
6d32a543d7
  1. 27
      src/views/moneyManage/refundDetail/refundCharge.vue
  2. 31
      src/views/moneyManage/refundDetail/refundFinance.vue
  3. 21
      src/views/moneyManage/refundDetail/refundHeader.vue
  4. 12
      src/views/moneyManage/refundDetail/refundService.vue

27
src/views/moneyManage/refundDetail/refundCharge.vue

@ -80,7 +80,7 @@
<el-button v-if="scope.row.status === 20" type="primary" text @click="showAudit(scope.row)">
审核
</el-button>
<el-button v-else type="primary" text @click="showSteps = true">
<el-button v-else type="primary" text @click="showStep(scope.row)">
查看进度
</el-button>
</div>
@ -369,6 +369,10 @@ const statusList = ref([
])
//
const getRefund = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeShow)) {
ElMessage.error('无此权限')
return
}
try {
searchForm.value.statuses = [20,22,30,32,40,41] //
if(searchForm.value.statuses === '审核通过'){
@ -409,11 +413,16 @@ const getRefund = async function () {
}
//
const handlePass = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeAudit)) {
ElMessage.error('无此权限')
return
}
try {
const params = {
id: auditRow.value.id,
status: 30,
rejectReason: addForm.value.remark
rejectReason: addForm.value.remark,
adminId: adminData.value.id
}
const result = await API({
url: '/Money/review',
@ -430,11 +439,16 @@ const handlePass = async function () {
}
//
const handleReject = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeAudit)) {
ElMessage.error('无此权限')
return
}
try {
const params = {
id: auditRow.value.id,
status: 22,
rejectReason: addForm.value.remark
rejectReason: addForm.value.remark,
adminId: adminData.value.id
}
const result = await API({
url: '/Money/review',
@ -449,6 +463,13 @@ const handleReject = async function () {
ElMessage.error(error.message || '审核失败')
}
}
const showStep = function (row) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeProgShow)) {
ElMessage.error('无此权限')
return
}
showSteps.value = true
}
const hideReject = function () {
showReject.value = false
addForm.value.remark = ''

31
src/views/moneyManage/refundDetail/refundFinance.vue

@ -81,7 +81,7 @@
<el-button v-if="scope.row.status === 10" type="primary" text @click="showAudit2(scope.row)">
审核
</el-button>
<el-button v-else type="primary" text @click="showSteps = true">
<el-button v-else type="primary" text @click="showStep(scope.row)">
查看进度
</el-button>
</div>
@ -376,6 +376,10 @@ const statusList = ref([
])
//
const getRefund = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceShow)) {
ElMessage.error('无此权限')
return
}
try {
if(searchForm.value.statuses === '审核通过'){
searchForm.value.statuses = [20,30,40]
@ -415,13 +419,18 @@ const getRefund = async function () {
}
//
const handlePass = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceAudit)) {
ElMessage.error('无此权限')
return
}
try {
const params = {
id: auditRow.value.id,
status: 20
status: 20,
adminId: adminData.value.id
}
const result = await API({
url: '/Money/review',
url: '/Money/finalReview',
data: params
})
if (result.code === 200) {
@ -435,14 +444,19 @@ const handlePass = async function () {
}
//
const handleReject = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceAudit)) {
ElMessage.error('无此权限')
return
}
try {
const params = {
id: auditRow.value.id,
status: 12,
rejectReason: addForm.value.remark
rejectReason: addForm.value.remark,
adminId: adminData.value.id
}
const result = await API({
url: '/Money/review',
url: '/Money/finalReview',
data: params
})
if (result.code === 200) {
@ -541,6 +555,13 @@ const channelOptions = ref([{
label: 'Ipay88-Link平台'
}
])
const showStep = function (row) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) {
ElMessage.error('无此权限')
return
}
showSteps.value = true
}
const showAudit2 = function (row) {
auditRow.value = row
showAudit.value = true

21
src/views/moneyManage/refundDetail/refundHeader.vue

@ -80,7 +80,7 @@
<el-button v-if="scope.row.status === 30" type="primary" text @click="showAudit(scope.row)">
审核
</el-button>
<el-button v-else type="primary" text @click="showSteps = true">
<el-button v-else type="primary" text @click="showStep">
查看进度
</el-button>
</div>
@ -403,6 +403,10 @@ const executorList = ref([
])
//
const getRefund = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundHeaderShow)) {
ElMessage.error('无此权限')
return
}
try {
searchForm.value.statuses = [30, 32, 40, 41] //
@ -439,6 +443,10 @@ const getRefund = async function () {
}
//
const handlePass = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundHeaderAudit)) {
ElMessage.error('无此权限')
return
}
try {
const params = {
id: auditRow.value.id,
@ -461,6 +469,10 @@ const handlePass = async function () {
}
//
const handleReject = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundHeaderAudit)) {
ElMessage.error('无此权限')
return
}
try {
const params = {
id: auditRow.value.id,
@ -492,6 +504,13 @@ const reset = function () {
dateRange.value = []
getRefund()
}
const showStep = function (row) {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundHeaderProgShow)) {
ElMessage.error('无此权限')
return
}
showSteps.value = true
}
const showAudit = function (row) {
auditRow.value = row
showAudit2.value = true

12
src/views/moneyManage/refundDetail/refundService.vue

@ -309,6 +309,10 @@ const statusList = ref([
])
//
const getRefund = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundServiceShow)) {
ElMessage.error('无此权限')
return
}
try {
if (searchForm.value.statuses === 'completed') {
searchForm.value.statuses = [41]
@ -350,6 +354,10 @@ const getRefund = async function () {
}
//
const recall = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundServiceBack)) {
ElMessage.error('无此权限')
return
}
try {
console.log(backRow.value)
const params = {
@ -374,6 +382,10 @@ const recall = async function () {
}
//
const submitEdit = async function () {
if (!hasMenuPermission(menuTree.value, permissionMapping.refundServiceEdit)) {
ElMessage.error('无此权限')
return
}
try {
console.log(editRow.value)
const params = {

Loading…
Cancel
Save