This commit is contained in:
jyx 2024-12-04 16:22:29 +08:00
parent f242d6f7c0
commit e07f0c4d35
2 changed files with 5 additions and 3 deletions

View File

@ -154,7 +154,7 @@ const paintingDetail = async () => {
if (res.status === 0) {
state.boxRelBucketStatus = res.data.boxRelBucketStatus;
state.drawUid = res.data.drawUid;
console.log("drawUid", state.drawUid);
console.log("drawUid", res.data);
if (res.data.pbStatus == 1) {
uni.redirectTo({
url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid ,

View File

@ -16,6 +16,7 @@ const state = reactive({
id: "",
pid: "",
code: "",
drawUid:""
});
const { showMessage } = useToast();
const loading = ref(false);
@ -53,7 +54,8 @@ const paintingDetail = async () => {
});
if (res.status === 0) {
state.boxRelBucketStatus = res.data.boxRelBucketStatus;
console.log("boxRelBucketStatus", state.boxRelBucketStatus);
state.drawUid = res.data.drawUid;
console.log("drawUid", res.data);
if (res.data.pbStatus == 1) {
uni.redirectTo({
url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid,
@ -71,7 +73,7 @@ const paintingDetail = async () => {
res.data.locateAddress == "公司内"
) {
uni.redirectTo({
url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid,
url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid + "&drawUid=" + state.drawUid,
success: () => {
loading.value = false;
},