辅材出库
This commit is contained in:
parent
5827be1c27
commit
d8d1b001a4
@ -71,8 +71,8 @@
|
||||
<div class="page-table-operate">
|
||||
<div class="page-table-title"></div>
|
||||
<div>
|
||||
<el-button type="primary" :disabled="state.button_state" @click="cancelHandleFn">取消备货</el-button>
|
||||
<el-button type="primary" :disabled="state.button_state" @click="confimStockUp">确认备货</el-button>
|
||||
<el-button type="primary" :disabled="state.button_stateFn" @click="cancelHandleFn" v-loading.fullscreen.lock="state.button_stateFn">取消备货</el-button>
|
||||
<el-button type="primary" :disabled="state.button_stateUp" @click="confimStockUp" v-loading.fullscreen.lock="state.button_stateUp">确认备货</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vue-element-page-table">
|
||||
@ -144,6 +144,8 @@ const state: any = reactive({
|
||||
LShipType: '',
|
||||
button_state: false,
|
||||
button_state2: false,
|
||||
button_stateFn: false,
|
||||
button_stateUp: false,
|
||||
STOCKSELECT: [],
|
||||
AleardyBooking: false,
|
||||
IFCompleteStockUp: false,//用于判断是否完成备货
|
||||
@ -463,8 +465,7 @@ function confimStockUp () {
|
||||
ElMessageBox.alert('没有单据明细,请确认')
|
||||
return
|
||||
}
|
||||
state.loading = true
|
||||
state.button_state = true
|
||||
state.button_stateUp = true
|
||||
AuxiliaryReserve({
|
||||
commitDate : state.commitDate,
|
||||
USER : localStorage.get("userId"),
|
||||
@ -482,15 +483,13 @@ function confimStockUp () {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
}
|
||||
state.button_stateUp = false
|
||||
}).catch((error: any) => {
|
||||
ElMessageBox.alert('备货失败,' + error, '提示框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
state.button_state = false;
|
||||
state.loading = false;
|
||||
state.button_stateUp = false;
|
||||
});
|
||||
state.button_state = false;
|
||||
state.loading = false;
|
||||
}
|
||||
|
||||
|
||||
@ -502,8 +501,7 @@ function cancelHandleFn() {
|
||||
ElMessageBox.alert('没有单据明细,请确认')
|
||||
return
|
||||
}
|
||||
state.loading = true
|
||||
state.button_state = true
|
||||
state.button_stateFn = true
|
||||
AuxiliaryDessign({
|
||||
commitDate : state.commitDate,
|
||||
USER : localStorage.get("userId"),
|
||||
@ -522,15 +520,13 @@ function cancelHandleFn() {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
}
|
||||
state.button_stateFn = false
|
||||
}).catch((error: any) => {
|
||||
ElMessageBox.alert('取消备货失败,' + error, '提示框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
state.button_state = false;
|
||||
state.loading = false;
|
||||
state.button_stateFn = false;
|
||||
});
|
||||
state.button_state = false;
|
||||
state.loading = false;
|
||||
}
|
||||
|
||||
function resetQuery() {
|
||||
@ -601,7 +597,6 @@ function confimStockOut() {
|
||||
ElMessageBox.alert('辅材出库失败,没有出库明细,请确认')
|
||||
return
|
||||
}
|
||||
state.loading = true
|
||||
state.button_state = true
|
||||
/*
|
||||
state.ReserveParams.SITENAME = localStorage.getItem("siteName") == null ? "SDK" : localStorage.getItem("siteName");
|
||||
@ -631,13 +626,11 @@ function confimStockOut() {
|
||||
})
|
||||
}
|
||||
state.button_state = false;
|
||||
state.loading = false;
|
||||
}).catch((error: any) => {
|
||||
ElMessageBox.alert('辅材出库失败,' + error, '提示框', {
|
||||
confirmButtonText: 'OK',
|
||||
})
|
||||
state.button_state = false;
|
||||
state.loading = false;
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user