Browse Source

完善单车返利核对、专项返利核对--增加清空功能

zhanglei
yunuo970428 3 days ago
parent
commit
36649c0954
  1. 167
      anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatemanagement.js
  2. 7
      anrui-scm/anrui-scm-ui/src/api/specialrebate/specialrebatemanagement.js
  3. 27
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobecheckedByUpdate.vue
  4. 27
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobecheckedByUpdate.vue

167
anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatemanagement.js

@ -1,84 +1,91 @@
import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(data) {
return request({
url: '/scm/v1/scmvehrebate/listPage',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 查询不分页
listAll: function(data) {
return request({
url: '/scm/v1/scmvehrebate/listAll',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 选择车辆信息--查询分页列表
pageList: function(data) {
return request({
url: '/base/v1/basevehicle/vehicleRebateList',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 删除
delete: function(params) {
return request({
url: '/scm/v1/scmvehrebate/delBySids',
method: 'DELETE',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 新增保存修改记录
save: function(data) {
return request({
url: '/scm/v1/scmvehrebate/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 编辑保存修改记录
update: function(data) {
return request({
url: '/scm/v1/scmvehrebate/update',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 通过sid查询一条记录
fetchBySid: function(data) {
return request({
url: '/scm/v1/scmvehrebate/fetchDetailsBySid/' + data,
method: 'get'
})
},
// 导出
exportExcel: function(data) {
return request({
url: '/scm/v1/scmvehrebate/excelList',
method: 'post',
data: data,
responseType: 'blob', // 表明返回服务器返回的数据类型
headers: { 'Content-Type': 'application/json' }
})
},
// 下载模板
downloadExcel: function() {
return request({
url: '/scm/v1/scmvehrebate/download',
method: 'post',
responseType: 'blob', // 表明返回服务器返回的数据类型
headers: { 'Content-Type': 'application/json' }
})
}
// 查询分页列表
listPage: function(data) {
return request({
url: '/scm/v1/scmvehrebate/listPage',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 查询不分页
listAll: function(data) {
return request({
url: '/scm/v1/scmvehrebate/listAll',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 选择车辆信息--查询分页列表
pageList: function(data) {
return request({
url: '/base/v1/basevehicle/vehicleRebateList',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 清空
clear: function(data) {
return request({
url: '/scm/v1/scmvehrebate/clear/' + data,
method: 'get'
})
},
// 删除
delete: function(params) {
return request({
url: '/scm/v1/scmvehrebate/delBySids',
method: 'DELETE',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 新增保存修改记录
save: function(data) {
return request({
url: '/scm/v1/scmvehrebate/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 编辑保存修改记录
update: function(data) {
return request({
url: '/scm/v1/scmvehrebate/update',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 通过sid查询一条记录
fetchBySid: function(data) {
return request({
url: '/scm/v1/scmvehrebate/fetchDetailsBySid/' + data,
method: 'get'
})
},
// 导出
exportExcel: function(data) {
return request({
url: '/scm/v1/scmvehrebate/excelList',
method: 'post',
data: data,
responseType: 'blob', // 表明返回服务器返回的数据类型
headers: { 'Content-Type': 'application/json' }
})
},
// 下载模板
downloadExcel: function() {
return request({
url: '/scm/v1/scmvehrebate/download',
method: 'post',
responseType: 'blob', // 表明返回服务器返回的数据类型
headers: { 'Content-Type': 'application/json' }
})
}
}

7
anrui-scm/anrui-scm-ui/src/api/specialrebate/specialrebatemanagement.js

@ -44,6 +44,13 @@ export default {
method: 'get'
})
},
// 清空
clear: function(data) {
return request({
url: '/scm/v1/scmspecialrebate/clear/' + data,
method: 'get'
})
},
// 导出
exportExcel: function(data) {
return request({

27
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobecheckedByUpdate.vue

@ -7,6 +7,7 @@
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleClear()">清空</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
@ -335,6 +336,32 @@ export default {
this.formobj.adjustmentRemarks = ''
}
},
handleClear() {
const tip = '请确认是否清空上传数据!'
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)'
})
this.submitdisabled = true
req.clear(this.formobj.sid).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
}
loading.close()
}).catch(e => {
this.submitdisabled = false
loading.close()
})
})
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {

27
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobecheckedByUpdate.vue

@ -7,6 +7,7 @@
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleClear()">清空</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
@ -323,6 +324,32 @@ export default {
this.formobj.adjustmentRemarks = ''
}
},
handleClear() {
const tip = '请确认是否清空上传数据!'
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)'
})
this.submitdisabled = true
req.clear(this.formobj.sid).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
}
loading.close()
}).catch(e => {
this.submitdisabled = false
loading.close()
})
})
},
handleSave() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {

Loading…
Cancel
Save