Browse Source

【nev-pc】线边仓储位调拨确认和客户储位调拨确认:添加取消功能

ag_report_nev
安虹睿 11 months ago
parent
commit
e23b513c6b
  1. 41
      fe/PC/src/views/inventoryManage/customerStorageAllocation/customerStorageAllocationConfirm.vue
  2. 41
      fe/PC/src/views/inventoryManage/lineSideWarehouseAllocation/lineSideWarehouseAllocationConfirm.vue

41
fe/PC/src/views/inventoryManage/customerStorageAllocation/customerStorageAllocationConfirm.vue

@ -44,7 +44,7 @@
</div>
</template>
<script>
import { getPageListWip, confirm, getDetailed } from "@/api/wms-api"
import { getPageListWip, confirm, getDetailed,postCancel } from "@/api/wms-api"
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
@ -93,6 +93,14 @@ export default {
hide: () => { return this.hideButton([false]) },
size: 'mini'
},
{
type: 'danger',
icon: 'el-icon-circle-close',
label: '取消',
name: "cancel",
hide: () => { return this.hideButton([false]) },
size: 'mini'
},
// {
// type: 'danger',
// icon: 'el-icon-delete-solid',
@ -111,6 +119,11 @@ export default {
//
drawerbutton (val) {
if (val == 'handle') {
this.$confirm('您确定要确认吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true
let data = {
id: this.propsData.id
@ -126,6 +139,32 @@ export default {
console.log(err)
this.Loading.appMainLoading = false
})
}).catch(() => {
});
}
else if(val == 'cancel'){
this.$confirm('您确定要取消吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true
let data = {
id: this.propsData.id
}
postCancel(this.propsData.id, this.URL).then(res => {
this.$successMsg('已取消')
this.displayDialog.detailsDialog = false
this.paging()
this.Loading.appMainLoading = false
}).catch(err => {
console.log(err)
this.Loading.appMainLoading = false
})
}).catch(() => {
});
}
// else if(val == 'invalid'){
// let data = {

41
fe/PC/src/views/inventoryManage/lineSideWarehouseAllocation/lineSideWarehouseAllocationConfirm.vue

@ -44,7 +44,7 @@
</div>
</template>
<script>
import { getPageListWip, confirm, getDetailed } from "@/api/wms-api"
import { getPageListWip, confirm, getDetailed,postCancel } from "@/api/wms-api"
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
@ -93,6 +93,14 @@ export default {
hide: () => { return this.hideButton([false]) },
size: 'mini'
},
{
type: 'danger',
icon: 'el-icon-circle-close',
label: '取消',
name: "cancel",
hide: () => { return this.hideButton([false]) },
size: 'mini'
},
// {
// type: 'danger',
// icon: 'el-icon-delete-solid',
@ -111,6 +119,11 @@ export default {
//
drawerbutton (val) {
if (val == 'handle') {
this.$confirm('您确定要确认吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true
let data = {
id: this.propsData.id
@ -126,6 +139,32 @@ export default {
console.log(err)
this.Loading.appMainLoading = false
})
}).catch(() => {
});
}
else if(val == 'cancel'){
this.$confirm('您确定要取消吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true
let data = {
id: this.propsData.id
}
postCancel(this.propsData.id, this.URL).then(res => {
this.$successMsg('已取消')
this.displayDialog.detailsDialog = false
this.paging()
this.Loading.appMainLoading = false
}).catch(err => {
console.log(err)
this.Loading.appMainLoading = false
})
}).catch(() => {
});
}
// else if(val == 'invalid'){
// let data = {

Loading…
Cancel
Save