Browse Source

【nev-pc】成品发运申请-删除功能开发

ag_report_nev
安虹睿 9 months ago
parent
commit
f1cf1a1503
  1. 9
      fe/PC/src/api/wms-api.js
  2. 84
      fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue
  3. 1
      fe/PC/src/views/rawMaterialManage/purchaseOnShelves/PutawayNote.vue

9
fe/PC/src/api/wms-api.js

@ -800,6 +800,15 @@ export function postImportNoteBlob(data, url,isSpecial) {
}) })
} }
// 成品发运申请-删除
export function deliverRequestDelete(id) {
return request({
url: baseURL + 'wms/store/deliver-request/delete-by-id',
method: 'post',
params:{id:id}
})
}
// 客户退拆任务-完成 todo // 客户退拆任务-完成 todo
// export async function productionRecycleJobComplete(id) { // export async function productionRecycleJobComplete(id) {
// return request({ // return request({

84
fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue

@ -79,7 +79,8 @@ import {
processRequest, processRequest,
getDetailed, getDetailed,
getPageListWip, getPageListWip,
deliverRequestHandleList deliverRequestHandleList,
deliverRequestDelete
} from "@/api/wms-api"; } from "@/api/wms-api";
import { tableMixins } from "@/mixins/TableMixins" import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins" import { LoadingMixins } from "@/mixins/LoadingMixins"
@ -111,15 +112,9 @@ export default {
} }
}, },
// //
hideButton: function () { hideDelButton: function () {
return function (val) { return function () {
let data = true return this.propsData.deliverRequestType != 1
val.forEach(key => {
if (this.propsData.requestStatus == key) {
data = false
}
})
return data
} }
}, },
}, },
@ -170,6 +165,13 @@ export default {
this.defaultFilterBtn(),// this.defaultFilterBtn(),//
], ],
DrawerButtonData: [ DrawerButtonData: [
{
type: "danger",
label: "删除",
name: "delete",
size: "mini",
hide: () => { return this.hideDelButton() },
},
// ...requestData(this) // ...requestData(this)
], ],
showFilterSta_normal:false,// showFilterSta_normal:false,//
@ -284,28 +286,48 @@ export default {
}, },
drawerbuttonHandle(val){ drawerbuttonHandle(val){
// //
if (val == 'agreeRequest') { // if (val == 'agreeRequest') {
this.Loading.appMainLoading = true // this.Loading.appMainLoading = true
processRequest(this.propsData.id, this.URL + '/agree/').then(res => { // processRequest(this.propsData.id, this.URL + '/agree/').then(res => {
getDetailed(this.propsData.id, this.URL).then(res => { // getDetailed(this.propsData.id, this.URL).then(res => {
this.propsData = res // this.propsData = res
}) // })
this.paging() // this.paging()
this.$confirm('审批成功,是否需要打印发货单', '提示', { // this.$confirm('', '', {
confirmButtonText: '确定', // confirmButtonText: '',
cancelButtonText: '取消', // cancelButtonText: '',
type: 'warning' // type: 'warning'
}).then(() => { // }).then(() => {
// // //
this.printHandle() // this.printHandle()
}).catch(() => { // }).catch(() => {
}); // });
this.Loading.appMainLoading = false // this.Loading.appMainLoading = false
}).catch(err => { // }).catch(err => {
this.Loading.appMainLoading = false // this.Loading.appMainLoading = false
}) // })
}else{ // }
if(val == 'delete'){
this.$confirm('您确定删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true;
deliverRequestDelete(this.propsData.id)
.then(res=>{
this.$successMsg("删除成功!")
this.paging()
this.displayDialog.detailsDialog = false
}).catch(() => {
this.Loading.appMainLoading = true;
});
}).catch(() => {
});
}
else{
this.drawerbutton(val) this.drawerbutton(val)
} }
}, },

1
fe/PC/src/views/rawMaterialManage/purchaseOnShelves/PutawayNote.vue

@ -109,6 +109,7 @@ export default {
this.tableDataDetails.details.forEach(item => { this.tableDataDetails.details.forEach(item => {
_ids.push(item.handledPackingCode) _ids.push(item.handledPackingCode)
}); });
this.Loading.appMainLoading = true;
getInventoryLabelByCodes(_ids).then(async res => { getInventoryLabelByCodes(_ids).then(async res => {
let _printData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _printData = JSON.parse(JSON.stringify(this.tableDataDetails))
if(res && res.length > 0){ if(res && res.length > 0){

Loading…
Cancel
Save