huangxw 1 päivä sitten
vanhempi
säilyke
c7010d3706

+ 16 - 9
src/plant/code/code-query/index.vue

@@ -18,8 +18,8 @@
         <view v-if="info" class="pd-24">
             <view class="f-s-32 c-#333 f-w-5 mb-20">查询结果:</view>
             <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 class="pd-24">
                     <view class="mb-10">
@@ -34,8 +34,8 @@
                         <span class="c-#666">包装批号:</span>
                         <span class="c-#333 f-w-5">{{ info?.packSn || '-' }}</span>
                     </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>
                 </view>
@@ -48,7 +48,7 @@
 import { useClientRequest } from '@/utils/request';
 import { getUrlParams, isUrl } from '@/utils/ruoyi';
 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 info = ref<any>(null);
 // 获取追溯码信息
@@ -86,9 +86,16 @@ const handleScan = () => {
     // #endif
 };
 
-onMounted(() => {
-    getInfo('PCC1W12603180000065C4');
-});
+onMounted(() => {});
 </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>

+ 5 - 7
src/plant/storage/finished-product/list/index.vue

@@ -23,11 +23,9 @@
             <view></view>
         </view>
         <view class="pd-24 bg-#f7f7f7">
-            <up-swipe-action>
-                <up-swipe-action-item v-for="(item, index) in list" :key="index" :name="item?.id" :options="optionsActionTemp" @click="clickTempSwipe($event, item)" class="mb-20 b-radius">
-                    <product-item :item="item" jump-url="/plant/storage/finished-product/detail/index" />
-                </up-swipe-action-item>
-            </up-swipe-action>
+            <view v-for="(item, index) in list" :key="index" class="mb-20 b-radius bg-#fff">
+                <product-item :item="item" jump-url="/plant/storage/finished-product/detail/index" />
+            </view>
         </view>
         <template #empty>
             <view class="d-flex flex-cln a-c" style="margin-top: -200rpx">
@@ -35,7 +33,7 @@
             </view>
         </template>
         <template #bottom>
-            <fresh-goods-bottom></fresh-goods-bottom>
+            <finished-product-bottom></finished-product-bottom>
         </template>
     </z-paging>
 </template>
@@ -43,7 +41,7 @@
 import { useClientRequest } from '@/utils/request';
 import { selectDictListClass } from '@/utils/ruoyi';
 import { getStorageRoomNames } from '@/utils/common';
-import FreshGoodsBottom from './model/fresh-goods-bottom.vue';
+import FinishedProductBottom from './model/finished-product-bottom.vue';
 import ProductItem from '@/plant/models/warehouseCard/product-item.vue';
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { pt_product_type } = toRefs<any>(proxy?.useDict('pt_product_type'));

+ 3 - 3
src/plant/storage/finished-product/list/model/fresh-goods-bottom.vue → src/plant/storage/finished-product/list/model/finished-product-bottom.vue

@@ -20,7 +20,7 @@
                 </view>
                 <view class="d-flex flex-cln a-c pt-24">
                     <view>
-                        <image class="w-68 h-68" src="https://yujin-szyy.oss-cn-chengdu.aliyuncs.com/szyy/images-plt/plant/storage/xzsyrk_icon_sd.png" mode="widthFix" />
+                        <image class="w-68 h-68" src="https://yujin-szyy.oss-cn-chengdu.aliyuncs.com/szyy/images-plt/plant/storage/xsdjjlqd.png" mode="widthFix" />
                     </view>
                     <view class="f-s-28 c-#333">销售记录清单</view>
                     <view class="f-s-22 c-#999">销售登记的记录都在这里</view>
@@ -29,10 +29,10 @@
                     class="flex1 d-flex flex-cln a-c pt-160 pr-30"
                     @click="
                         clickBtnBall();
-                        $u.route({ url: '/plant/storage/fresh-goods/add/index' });
+                        $u.route({ url: '/plant/storage/finished-product/add/index' });
                     ">
                     <view>
-                        <image class="w-68 h-68" src="https://yujin-szyy.oss-cn-chengdu.aliyuncs.com/szyy/images-plt/plant/storage/xzfsyrk_icon_sd.png" mode="widthFix" />
+                        <image class="w-68 h-68" src="https://yujin-szyy.oss-cn-chengdu.aliyuncs.com/szyy/images-plt/plant/storage/xsdj_addbz.png" mode="widthFix" />
                     </view>
                     <view class="f-s-28 c-#333">销售登记</view>
                     <view class="f-s-22 c-#999">按订单包装或按数量登记都可</view>