|
@@ -18,8 +18,8 @@
|
|
|
<view v-if="info" class="pd-24">
|
|
<view v-if="info" class="pd-24">
|
|
|
<view class="f-s-32 c-#333 f-w-5 mb-20">查询结果:</view>
|
|
<view class="f-s-32 c-#333 f-w-5 mb-20">查询结果:</view>
|
|
|
<view class="bg-#fff b-radius">
|
|
<view class="bg-#fff b-radius">
|
|
|
- <view>
|
|
|
|
|
- <view></view>
|
|
|
|
|
|
|
+ <view class="d-flex">
|
|
|
|
|
+ <view class="li-left-tag" :class="{ [`bg-instore-${info?.productType}`]: true }">{{ selectDictLabel(pt_product_type, info?.productType) }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pd-24">
|
|
<view class="pd-24">
|
|
|
<view class="mb-10">
|
|
<view class="mb-10">
|
|
@@ -34,8 +34,8 @@
|
|
|
<span class="c-#666">包装批号:</span>
|
|
<span class="c-#666">包装批号:</span>
|
|
|
<span class="c-#333 f-w-5">{{ info?.packSn || '-' }}</span>
|
|
<span class="c-#333 f-w-5">{{ info?.packSn || '-' }}</span>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="d-flex flex-cln j-c a-c">
|
|
|
|
|
- <up-qrcode cid="ex4asdasdasdasewqeq" :size="uni.$u.getPx('200rpx')" :val="info?.packBatchUrl || ''" showLoading loadingText="loading..."></up-qrcode>
|
|
|
|
|
|
|
+ <view class="d-flex flex-cln j-c a-c pt-24" @click="$u.route({ url: '/tools/webview/index', params: { title: '溯源信息', url: info?.packBatchUrl } })">
|
|
|
|
|
+ <image class="w-140 h-140" src="https://yujin-szyy.oss-cn-chengdu.aliyuncs.com/szyy/images-plt/print-codes/code_logo_export.png" mode="widthFix" />
|
|
|
<view class="f-s-26 c-#333 pt-10">点击查看追溯详情</view>
|
|
<view class="f-s-26 c-#333 pt-10">点击查看追溯详情</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -48,7 +48,7 @@
|
|
|
import { useClientRequest } from '@/utils/request';
|
|
import { useClientRequest } from '@/utils/request';
|
|
|
import { getUrlParams, isUrl } from '@/utils/ruoyi';
|
|
import { getUrlParams, isUrl } from '@/utils/ruoyi';
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
-const { pt_code_downflag } = toRefs<any>(proxy?.useDict('pt_code_downflag'));
|
|
|
|
|
|
|
+const { pt_product_type } = toRefs<any>(proxy?.useDict('pt_product_type'));
|
|
|
const paging = ref();
|
|
const paging = ref();
|
|
|
const info = ref<any>(null);
|
|
const info = ref<any>(null);
|
|
|
// 获取追溯码信息
|
|
// 获取追溯码信息
|
|
@@ -86,9 +86,16 @@ const handleScan = () => {
|
|
|
// #endif
|
|
// #endif
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-onMounted(() => {
|
|
|
|
|
- getInfo('PCC1W12603180000065C4');
|
|
|
|
|
-});
|
|
|
|
|
|
|
+onMounted(() => {});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
-<style scoped lang="scss"></style>
|
|
|
|
|
|
|
+<style scoped lang="scss">
|
|
|
|
|
+.li-left-tag {
|
|
|
|
|
+ padding: 6rpx 16rpx;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ border-radius: 16rpx 0 16rpx 0;
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+</style>
|