add 辅材出库-取消确认备货按钮
This commit is contained in:
parent
b4373530d7
commit
286e40543a
@ -71,7 +71,7 @@ export function AuxiliaryReserve(ChangeParams: any) {
|
|||||||
|
|
||||||
export function AuxiliaryDessign(ChangeParams: any) {
|
export function AuxiliaryDessign(ChangeParams: any) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/Auxiliary/AuxiliaryDessign',
|
url: '/api/api/Auxiliary/auxiliaryDessign',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: ChangeParams,
|
data: ChangeParams,
|
||||||
});
|
});
|
||||||
|
@ -460,10 +460,6 @@ function confimStockUp () {
|
|||||||
}
|
}
|
||||||
state.loading = true
|
state.loading = true
|
||||||
state.button_state = true
|
state.button_state = true
|
||||||
/* state.ReserveParams.SITENAME = localStorage.getItem("siteName") == null ? "SDK" : localStorage.getItem("siteName");
|
|
||||||
state.ReserveParams.SHIPREQUESTNAME = state.queryParams.params.SHIPREQUESTNAME //单据
|
|
||||||
state.ReserveParams.user = localStorage.getItem('userId')
|
|
||||||
state.ReserveParams.boxList = state.ShipList*/
|
|
||||||
AuxiliaryReserve({
|
AuxiliaryReserve({
|
||||||
commitDate : state.commitDate,
|
commitDate : state.commitDate,
|
||||||
USER : localStorage.get("userId"),
|
USER : localStorage.get("userId"),
|
||||||
@ -472,23 +468,24 @@ function confimStockUp () {
|
|||||||
BOXLIST: state.ShipList
|
BOXLIST: state.ShipList
|
||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
if (res.success){
|
if (res.success){
|
||||||
state.button_state = false;
|
|
||||||
state.loading = false;
|
|
||||||
handleQuery();
|
handleQuery();
|
||||||
|
ElMessageBox.alert('备货完成', '提示框', {
|
||||||
|
confirmButtonText: 'OK',
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
state.button_state = false;
|
ElMessageBox.alert('备货失败,' + res.message, '', {
|
||||||
state.loading = false;
|
|
||||||
ElMessageBox.alert(res.message, '', {
|
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch((error: any) => {
|
}).catch((error: any) => {
|
||||||
ElMessageBox.alert(error, '提示框', {
|
ElMessageBox.alert('备货失败,' + error, '提示框', {
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
state.loading = false
|
state.button_state = false;
|
||||||
state.button_state = true
|
state.loading = false;
|
||||||
});
|
});
|
||||||
|
state.button_state = false;
|
||||||
|
state.loading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -502,29 +499,33 @@ function cancelHandleFn() {
|
|||||||
}
|
}
|
||||||
state.loading = true
|
state.loading = true
|
||||||
state.button_state = true
|
state.button_state = true
|
||||||
state.ReserveParams.SITENAME = localStorage.get("siteName") == null ? "SDK" : localStorage.get("siteName");
|
AuxiliaryDessign({
|
||||||
state.ReserveParams.SHIPREQUESTNAME = state.queryParams.params.SHIPREQUESTNAME //单据
|
commitDate : state.commitDate,
|
||||||
state.ReserveParams.user = localStorage.getItem('userId')
|
USER : localStorage.get("userId"),
|
||||||
state.ReserveParams.boxList = state.ShipList
|
SITENAME: localStorage.get('siteName') || 'SDK',
|
||||||
AuxiliaryDessign(state.ReserveParams).then((res: any) => {
|
SHIPREQUESTNAME: state.queryParams.params.SHIPREQUESTNAME,
|
||||||
|
BOXLIST: state.ShipList
|
||||||
|
|
||||||
|
}).then((res: any) => {
|
||||||
if (res.success){
|
if (res.success){
|
||||||
state.button_state = false;
|
|
||||||
state.loading = false;
|
|
||||||
handleQuery();
|
handleQuery();
|
||||||
|
ElMessageBox.alert('取消备货完成', '提示框', {
|
||||||
|
confirmButtonText: 'OK',
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
state.button_state = false;
|
ElMessageBox.alert('取消备货失败,' + res.message, '', {
|
||||||
state.loading = false;
|
|
||||||
ElMessageBox.alert(res.message, '', {
|
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch((error: any) => {
|
}).catch((error: any) => {
|
||||||
ElMessageBox.alert(error, '提示框', {
|
ElMessageBox.alert('取消备货失败,' + error, '提示框', {
|
||||||
confirmButtonText: 'OK',
|
confirmButtonText: 'OK',
|
||||||
})
|
})
|
||||||
state.loading = false
|
state.button_state = false;
|
||||||
state.button_state = true
|
state.loading = false;
|
||||||
});
|
});
|
||||||
|
state.button_state = false;
|
||||||
|
state.loading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetQuery() {
|
function resetQuery() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user