Browse Source

完善单车返利核对

master
yunuo970428 9 months ago
parent
commit
1380ea640f
  1. 2
      anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatecheck.js
  2. 2
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatecheck.vue
  3. 32
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue

2
anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatecheck.js

@ -49,7 +49,7 @@ export default {
// 删除
delete: function(params) {
return request({
url: '/scm/v1/scmvehrebate/delBySids',
url: '/scm/v1/scmvehrebatecheckapply/delBySids',
method: 'DELETE',
data: params,
headers: { 'Content-Type': 'application/json' }

2
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatecheck.vue

@ -126,7 +126,7 @@ import ButtonBar from '@/components/ButtonBar'
import { brandDown, getOrgSidByPath } from '@/api/cheliang/dictcommons'
import bicyclerebatecheckAdd from './bicyclerebatecheckAdd'
import bicyclerebatecheckInfo from './bicyclerebatecheckInfo'
import {getStorage} from "@/utils/auth";
import { getStorage } from '@/utils/auth'
export default {
name: 'BicycleRebateCheck',

32
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue

@ -422,9 +422,6 @@ export default {
case 'doImport':
this.doImport()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
@ -654,35 +651,6 @@ export default {
this.formobj.secondaryUploadMoney = 0
this.formobj.surplusRebate = parseInt(row.estimateRebate) - parseInt(row.uploadMoney)
},
doDel() {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.delete(this.sids).then(resp => {
if (resp.success) {
this.$message({ type: 'success', message: resp.msg, showClose: true })
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {
})
},
resetState() {
this.viewState = 1
},

Loading…
Cancel
Save