Compare commits
No commits in common. "1e5f4bae515f98562415fb477fc5fd66375933b0" and "b6dd431e18fe81b91caeef3f17b5b93d4c1739bb" have entirely different histories.
1e5f4bae51
...
b6dd431e18
@ -71,11 +71,3 @@ export const check_freebox = (data) => {
|
|||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//入库取消
|
|
||||||
export const cancel = (data) => {
|
|
||||||
return request({
|
|
||||||
url: "/containeradm/v1/box_rel_bucket/cancel_freebox",
|
|
||||||
method: "POST",
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
@ -28,8 +28,6 @@
|
|||||||
style="width: 336rpx; margin: auto; height: 80rpx"
|
style="width: 336rpx; margin: auto; height: 80rpx"
|
||||||
color="#BABABA"
|
color="#BABABA"
|
||||||
throttleTime="5"
|
throttleTime="5"
|
||||||
disabled="isButtonDisabled"
|
|
||||||
@click="closeFn"
|
|
||||||
>取消</up-button
|
>取消</up-button
|
||||||
>
|
>
|
||||||
<up-button
|
<up-button
|
||||||
@ -37,7 +35,7 @@
|
|||||||
color="#EFC54E"
|
color="#EFC54E"
|
||||||
throttleTime="5"
|
throttleTime="5"
|
||||||
@click="doneSet"
|
@click="doneSet"
|
||||||
disabled="closeButton"
|
:disabled="isButtonDisabled"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
>{{ buttonText }}</up-button
|
>{{ buttonText }}</up-button
|
||||||
>
|
>
|
||||||
@ -48,11 +46,10 @@
|
|||||||
import { ref, reactive, onBeforeMount } from "vue";
|
import { ref, reactive, onBeforeMount } from "vue";
|
||||||
import useToast from "@/hooks/toast/useToast.js";
|
import useToast from "@/hooks/toast/useToast.js";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import { freebox,bind,check_freebox,cancel} from "@/api/login.js";
|
import { freebox,bind,check_freebox} from "@/api/login.js";
|
||||||
const { showMessage } = useToast();
|
const { showMessage } = useToast();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const isButtonDisabled = ref(false);
|
const isButtonDisabled = ref(false);
|
||||||
const closeButton = ref(false);
|
|
||||||
const buttonText = ref("确认");
|
const buttonText = ref("确认");
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
id: "",
|
id: "",
|
||||||
@ -107,18 +104,6 @@ const doneSet = async () => {
|
|||||||
}
|
}
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
//入库取消
|
|
||||||
const closeFn = async () => {
|
|
||||||
const res = await cancel({
|
|
||||||
boxUid : state.boxUid
|
|
||||||
});
|
|
||||||
if(res.status === 0){
|
|
||||||
}else{
|
|
||||||
showMessage({ type: "error", message: res.msg });
|
|
||||||
isButtonDisabled.value = true;
|
|
||||||
closeButton.value = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//查孔洞是否能用
|
//查孔洞是否能用
|
||||||
const check = async () => {
|
const check = async () => {
|
||||||
const res = await check_freebox({
|
const res = await check_freebox({
|
||||||
|
Loading…
Reference in New Issue
Block a user