|
@@ -171,6 +171,7 @@
|
|
|
},
|
|
|
deleteRelease(item) {
|
|
|
if (item.type == "买粮") {
|
|
|
+ var that = this
|
|
|
uni.showModal({
|
|
|
// title: '登录提示',
|
|
|
content: '确定删除该信息?',
|
|
@@ -178,12 +179,12 @@
|
|
|
confirmText: '确定',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
- this.$api.doRequest('post', '/procurementPlanInfo/api/deleteProcurementPlan', {
|
|
|
+ that.$api.doRequest('post', '/procurementPlanInfo/api/deleteProcurementPlan', {
|
|
|
id: item.id
|
|
|
}).then(res => {
|
|
|
if (res.data.message == "Success") {
|
|
|
- this.$api.msg('删除成功!')
|
|
|
- this.getList()
|
|
|
+ that.$api.msg('删除成功!')
|
|
|
+ that.getList()
|
|
|
return
|
|
|
}
|
|
|
})
|
|
@@ -209,12 +210,12 @@
|
|
|
confirmText: '确定',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
- this.$api.doRequest('post', '/salePlanInfo/api/deleteSalePlanInfo', {
|
|
|
+ that.$api.doRequest('post', '/salePlanInfo/api/deleteSalePlanInfo', {
|
|
|
id: item.id
|
|
|
}).then(res => {
|
|
|
if (res.data.message == "Success") {
|
|
|
- this.$api.msg('删除成功!')
|
|
|
- this.getList()
|
|
|
+ that.$api.msg('删除成功!')
|
|
|
+ that.getList()
|
|
|
return
|
|
|
}
|
|
|
})
|