huangxw před 2 týdny
rodič
revize
601b15ce18

+ 3 - 1
src/components/ut-suspension/ut-suspension.vue

@@ -14,7 +14,9 @@
                 height: height,
             }"
             @click="handleClick">
-            <slot />
+            <slot>
+                <image src="https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images-plt/common/btn_add_logo.png" mode="widthFix" class="w-120 h-120"></image>
+            </slot>
         </movable-view>
     </movable-area>
 </template>

+ 5 - 42
src/plant/packaging/list/index.vue

@@ -1,7 +1,7 @@
 <template>
     <z-paging ref="paging" v-model="list" bgColor="#f7f7f7" @query="query">
         <template #top>
-            <ut-navbar title="药材库" :fixed="false" :breadcrumb="false"></ut-navbar>
+            <ut-navbar title="包装赋码任务" :fixed="false" :breadcrumb="false"></ut-navbar>
         </template>
 
         <view class="pd3-24-24-0">
@@ -24,46 +24,7 @@
             <up-swipe-action>
                 <up-swipe-action-item v-for="(item, index) in list" :key="index" :name="item?.id" :options="optionsActionTemp" @click="clickTempSwipe" class="mb-20 b-radius">
                     <view class="b-radius bg-#fff pd-20 p-rtv" @click.stop="$u.route({ url: '/plant/storage/fresh-goods/detail/index', params: { id: item.id } })">
-                        <view class="d-flex j-sb a-c li-item-head mb-16">
-                            <view class="li-left-tag" :class="{ [`bg-instore-${item?.instoreBizInfo?.processType}`]: true }">{{ item?.seedLevel || '' }}{{ selectDictLabel(st_medicine_process_type, item?.instoreBizInfo?.processType) }}</view>
-                            <view class="f-s-22 c-#666">{{ item?.instoreBizInfo?.instoreDate }}</view>
-                        </view>
-                        <view class="d-flex flex1 mb-10">
-                            <view class="flex1">
-                                <span class="f-s-34 c-#333 f-w-500 mr-10">{{ item?.variety }}</span>
-                                <span v-if="item?.partName" class="f-s-24 c-#666">{{ item?.partName }}</span>
-                            </view>
-                            <view>
-                                <view v-if="item?.examinReport?.length" class="tag-span c-primary bg-#EBF6EE">已检验</view>
-                                <view v-else class="tag-span c-danger bg-#F9ECEA">未检验</view>
-                            </view>
-                        </view>
-                        <view class="pd2-4-0 f-s-28">
-                            <span class="c-#666">生产批号:</span>
-                            <span class="c-#333 f-w-500">{{ item?.batchCode || '-' }}</span>
-                        </view>
-                        <view class="pd2-4-0 f-s-28">
-                            <span class="c-#666">执行标准:</span>
-                            <span class="c-#333 f-w-500">{{ item?.supplierInfo?.cusName || '-' }}</span>
-                        </view>
-                        <view class="pd2-4-0 f-s-28">
-                            <span class="c-#666">加工工艺:</span>
-                            <span class="c-#333 f-w-500">{{ item?.supplierInfo?.cusName || '-' }}</span>
-                        </view>
-                        <view class="pd2-4-0 f-s-28">
-                            <span class="c-#666">入库量:</span>
-                            <span class="c-#333 f-w-500">{{ item?.capacity }}{{ item?.unit }}</span>
-                        </view>
-                        <view class="d-flex">
-                            <view v-if="item?.inputAmount" class="pd2-4-0 f-s-28 flex1">
-                                <span class="c-#666">出库量:</span>
-                                <span class="c-#333 f-w-500">{{ item?.inputAmount || '0' }}{{ item?.unit }}</span>
-                            </view>
-                            <view v-if="item?.restAmount" class="pd2-4-0 f-s-28 flex1">
-                                <span class="c-danger">剩余量:</span>
-                                <span class="c-danger f-w-500">{{ item?.restAmount || '0' }}{{ item?.unit }}</span>
-                            </view>
-                        </view>
+                       
                     </view>
                 </up-swipe-action-item>
             </up-swipe-action>
@@ -71,10 +32,11 @@
 
         <template #empty>
             <view class="d-flex flex-cln a-c" style="margin-top: -200rpx">
-                <ut-empty class="mg-at" color="#ccc" size="28rpx">暂无鲜货信息,点击下方+号新增吧</ut-empty>
+                <ut-empty class="mg-at" color="#ccc" size="28rpx">暂无包装赋码任务,点击下方+号新增吧</ut-empty>
             </view>
         </template>
     </z-paging>
+    <ut-suspension @click="showAddDialog = true"></ut-suspension>
 </template>
 <script setup lang="ts">
 import { useClientRequest } from '@/utils/request';
@@ -86,6 +48,7 @@ const { st_medicine_process_type } = toRefs<any>(proxy?.useDict('st_medicine_pro
 const list = ref<any[]>();
 const form = ref({ keyword: '', restFlag: '1', processType: '', storageType: '5' });
 const paging = ref();
+const showAddDialog = ref(false);
 const tabs = ref([
     { label: '有库存', value: '1' },
     { label: '无库存', value: '0' },

+ 1 - 1
src/plant/storage/medicine/list/index.vue

@@ -77,7 +77,7 @@
 
         <template #empty>
             <view class="d-flex flex-cln a-c" style="margin-top: -200rpx">
-                <ut-empty class="mg-at" color="#ccc" size="28rpx">暂无鲜货信息,点击下方+号新增吧</ut-empty>
+                <ut-empty class="mg-at" color="#ccc" size="28rpx">暂无药材信息</ut-empty>
             </view>
         </template>
     </z-paging>