|
|
|
@ -6,7 +6,8 @@
|
|
|
|
* date:2024年9月11日 19:24:50
|
|
|
|
* date:2024年9月11日 19:24:50
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
ref
|
|
|
|
ref,
|
|
|
|
|
|
|
|
nextTick
|
|
|
|
} from "vue";
|
|
|
|
} from "vue";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
$api,
|
|
|
|
$api,
|
|
|
|
@ -25,8 +26,12 @@
|
|
|
|
type: String,
|
|
|
|
type: String,
|
|
|
|
default: "0",
|
|
|
|
default: "0",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
test: {
|
|
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
|
|
default: "0",
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
let erweima_popup=ref(null)
|
|
|
|
let erweima_popup = ref(null)
|
|
|
|
const fenzhen_list = ref(false);
|
|
|
|
const fenzhen_list = ref(false);
|
|
|
|
const check_tip_show = ref(false);
|
|
|
|
const check_tip_show = ref(false);
|
|
|
|
const checkTipShow = (show) => {
|
|
|
|
const checkTipShow = (show) => {
|
|
|
|
@ -45,7 +50,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const getFenzhenList = async (loading = true) => {
|
|
|
|
const getFenzhenList = async (loading = true) => {
|
|
|
|
if (!!loading) {
|
|
|
|
if (!!loading) {
|
|
|
|
// uni.showLoading();
|
|
|
|
// uni.showLoading();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const response = await $api("FenzhenList", {
|
|
|
|
const response = await $api("FenzhenList", {
|
|
|
|
id: $props.id,
|
|
|
|
id: $props.id,
|
|
|
|
@ -57,16 +62,21 @@
|
|
|
|
checkTipShow(response.data.check_tip)
|
|
|
|
checkTipShow(response.data.check_tip)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (fenzhen_active.value !== -1) {
|
|
|
|
if (fenzhen_active.value !== -1) {
|
|
|
|
fenzhen_info.value = false
|
|
|
|
|
|
|
|
getFenzhenInfo(fenzhen_active.value)
|
|
|
|
getFenzhenInfo(fenzhen_active.value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
if (!!window.location.href.includes('/pages/user/fenzhen/fenzhen') &&
|
|
|
|
if (!!window.location.href.includes('/pages/user/fenzhen/fenzhen')) {
|
|
|
|
!window.location.href.includes('192.168.31.84:5173')) {
|
|
|
|
if (!window.location.href.includes('192.168.31.84:5173')) {
|
|
|
|
if(erweimaText.value==''){
|
|
|
|
if (erweimaText.value == '') {
|
|
|
|
getFenzhenList(false)
|
|
|
|
getFenzhenList(false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (Number($props.test) === 1) {
|
|
|
|
|
|
|
|
if (erweimaText.value == '') {
|
|
|
|
|
|
|
|
getFenzhenList(false)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 1000 * 10)
|
|
|
|
}, 1000 * 10)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -144,20 +154,23 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
uni.hideLoading();
|
|
|
|
uni.hideLoading();
|
|
|
|
$response(response, () => {
|
|
|
|
$response(response, () => {
|
|
|
|
fenzhen_info.value = response.data;
|
|
|
|
fenzhen_info.value = false
|
|
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
|
|
|
fenzhen_info.value = response.data;
|
|
|
|
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const useTimeShow = (time) => {
|
|
|
|
const useTimeShow = (time) => {
|
|
|
|
return Math.ceil(Number(time))
|
|
|
|
return Math.ceil(Number(time))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let erweimaText=ref('');
|
|
|
|
let erweimaText = ref('');
|
|
|
|
const erweima_click=(text)=>{
|
|
|
|
const erweima_click = (text) => {
|
|
|
|
erweimaText.value=text
|
|
|
|
erweimaText.value = text
|
|
|
|
erweima_popup.value.open()
|
|
|
|
erweima_popup.value.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const MaskClickFunc=()=>{
|
|
|
|
const MaskClickFunc = () => {
|
|
|
|
erweimaText.value=''
|
|
|
|
erweimaText.value = ''
|
|
|
|
console.log(erweimaText.value)
|
|
|
|
console.log(erweimaText.value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -193,8 +206,8 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view v-if="!!fenzhen_list">
|
|
|
|
<view v-if="!!fenzhen_list">
|
|
|
|
<view class="order_info_wrapper relative">
|
|
|
|
<view class="order_info_wrapper relative">
|
|
|
|
<w-qrcode v-if="fenzhen_list.info.kahao" @click="erweima_click(fenzhen_list.info.kahao)" class="absolute top-20rpx right-15rpx b-1 b-dashed b-#000 p-8rpx"
|
|
|
|
<w-qrcode v-if="fenzhen_list.info.kahao" @click="erweima_click(fenzhen_list.info.kahao)"
|
|
|
|
:options="{
|
|
|
|
class="absolute top-20rpx right-15rpx b-1 b-dashed b-#000 p-8rpx" :options="{
|
|
|
|
level: 4,
|
|
|
|
level: 4,
|
|
|
|
size: 130,
|
|
|
|
size: 130,
|
|
|
|
code: fenzhen_list.info.kahao,
|
|
|
|
code: fenzhen_list.info.kahao,
|
|
|
|
@ -316,11 +329,11 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="between h-90rpx b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 5">
|
|
|
|
<view class="between h-90rpx b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 5">
|
|
|
|
<view class="text-#000000 text-30rpx">{{ item.name }}</view>
|
|
|
|
<view class="text-#000000 text-30rpx">{{ item.name }}</view>
|
|
|
|
<view class="center">
|
|
|
|
<view class="center">
|
|
|
|
<text class="text-#141414 text-28rpx">{{ item.time }}</text>
|
|
|
|
<text class="text-#141414 text-28rpx">{{ item.time }}</text>
|
|
|
|
<text class="rounded-full text-28rpx center w-105rpx h-48rpx text-#6d89a3 bg-#E5F3F2">已弃检</text>
|
|
|
|
<text class="rounded-full text-28rpx center w-105rpx h-48rpx text-#6d89a3 bg-#E5F3F2">已弃检</text>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="item_desc_wrapper b-0 b-b-1 b-solid b-#EAEAEA pb-5rpx">{{ item.desc }}</view>
|
|
|
|
<view class="item_desc_wrapper b-0 b-b-1 b-solid b-#EAEAEA pb-5rpx">{{ item.desc }}</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|