update: 增加首页菜单
|  | @ -12,13 +12,6 @@ | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "pages": [ |   "pages": [ | ||||||
|     { |  | ||||||
|       "path": "pages/index/index", |  | ||||||
|       "style": { |  | ||||||
|         "navigationStyle": "custom", // 控制头部是否显示 |  | ||||||
|         "navigationBarTitleText": "工作台" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     // { |     // { | ||||||
|     //   "path": "pages/index/index", |     //   "path": "pages/index/index", | ||||||
|     //   "style": { |     //   "style": { | ||||||
|  | @ -26,6 +19,12 @@ | ||||||
|     //     "navigationBarTitleText": "工作台" |     //     "navigationBarTitleText": "工作台" | ||||||
|     //   } |     //   } | ||||||
|     // }, |     // }, | ||||||
|  |     { | ||||||
|  |       "path": "pages/login/index", | ||||||
|  |       "style": { | ||||||
|  |         "navigationBarTitleText": "登陆" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|       "path": "pages/index/shipmentSettlement", |       "path": "pages/index/shipmentSettlement", | ||||||
|       "style": { |       "style": { | ||||||
|  | @ -38,12 +37,6 @@ | ||||||
|         "navigationBarTitleText": "待结算" |         "navigationBarTitleText": "待结算" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     { |  | ||||||
|       "path": "pages/login/index", |  | ||||||
|       "style": { |  | ||||||
|         "navigationBarTitleText": "登陆" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|       "path": "pages/login/forgetPwd", |       "path": "pages/login/forgetPwd", | ||||||
|       "style": { |       "style": { | ||||||
|  | @ -90,6 +83,18 @@ | ||||||
|         } |         } | ||||||
|       ] |       ] | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |       "root": "pagesHome", | ||||||
|  |       "pages": [ | ||||||
|  |         { | ||||||
|  |           "path": "index", | ||||||
|  |           "style": { | ||||||
|  |             "navigationStyle": "custom", // 控制头部是否显示 | ||||||
|  |             "navigationBarTitleText": "工作台" | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       ] | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|       "root": "pagesReceive", |       "root": "pagesReceive", | ||||||
|       "pages": [ |       "pages": [ | ||||||
|  |  | ||||||
|  | @ -157,7 +157,7 @@ const submit = () => { | ||||||
|         if (res.code === 200) { |         if (res.code === 200) { | ||||||
|           store.setProfile(res.data); |           store.setProfile(res.data); | ||||||
|           uni.navigateTo({ |           uni.navigateTo({ | ||||||
|             url: "/pages/index/index", // 要跳转到的页面路径 |             url: "/pagesHome/index", // 要跳转到的页面路径 | ||||||
|           }); |           }); | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|  | @ -18,7 +18,7 @@ | ||||||
|           <view class="supplier"> 上海奉贤两网融合(大磅) </view> |           <view class="supplier"> 上海奉贤两网融合(大磅) </view> | ||||||
|         </view> |         </view> | ||||||
|         <view> |         <view> | ||||||
|           <text class="btn" @click="handleScenePhoto">现场照片</text> |           <text class="btn" @click="handleScenePhoto(1)">现场照片</text> | ||||||
|         </view> |         </view> | ||||||
|       </view> |       </view> | ||||||
| 
 | 
 | ||||||
|  | @ -103,9 +103,9 @@ const gridList1 = reactive([ | ||||||
|     isCustomStyle: true |     isCustomStyle: true | ||||||
|   }, |   }, | ||||||
| ]); | ]); | ||||||
| const handleScenePhoto = () => { | const handleScenePhoto = (imagesId: number) => { | ||||||
|   uni.navigateTo({ |   uni.navigateTo({ | ||||||
|     url: "/pagesScenePhoto/index", // 要跳转到的页面路径 |     url: "/pagesScenePhoto/index?orderType=1&id=" + imagesId, // 要跳转到的页面路径 | ||||||
|   }); |   }); | ||||||
| }; | }; | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | @ -20,26 +20,26 @@ | ||||||
| 
 | 
 | ||||||
|     <view class="time">2024-01-01</view> |     <view class="time">2024-01-01</view> | ||||||
| 
 | 
 | ||||||
|     <view class="box" v-for="item in 10" :key="item"> |     <view class="box" v-for="(item, index) in pageList.list" :key="index"> | ||||||
|       <view class="base"> |       <view class="base"> | ||||||
|         <view> |         <view> | ||||||
|           <view class="no"> 收货单号:SHD20230901132333 </view> |           <view class="no"> 收货单号:{{ item.receiptNumber }} </view> | ||||||
|           <view class="supplier"> 上海奉贤两网融合(大磅) </view> |           <view class="supplier"> {{ item.deviceName || '-' }} </view> | ||||||
|         </view> |         </view> | ||||||
|         <view> |         <view> | ||||||
|           <text class="btn" @click="handleScenePhoto">现场照片</text> |           <text class="btn" @click="handleScenePhoto((item as any).id)">现场照片</text> | ||||||
|         </view> |         </view> | ||||||
|       </view> |       </view> | ||||||
| 
 |        | ||||||
|       <view class="name">吴小勇 <text>未审核</text></view> |       <view class="name">{{ item.userName }} <text>{{ getScaleStatus((item as any).scaleStatus) }}</text></view> | ||||||
|       <view class="type">轻二</view> |       <view class="type">{{ item.productName }}</view> | ||||||
|       <view class="flex-box"> |       <view class="flex-box"> | ||||||
|         <text>定价人:谭兵</text> |         <text>定价人:{{ item.userName }}</text> | ||||||
|         <text>创建时间:2023-09-01 13:23:33</text> |         <text>创建时间:{{ item.createTime }}</text> | ||||||
|       </view> |       </view> | ||||||
| 
 | 
 | ||||||
|       <view class="more"> |       <view class="more"> | ||||||
|         <view v-for="(item, index) in gridList1" :key="index" :style="item.isCustomStyle ? 'font-size: 22rpx;color:#999' : ''"> |         <view v-for="(item, index) in gridList1" :key="index" :style="item.isCustomStyle ? 'font-size: 24rpx;color:#999' : ''"> | ||||||
|           <text v-if="item.name">{{ item.name }}:</text |           <text v-if="item.name">{{ item.name }}:</text | ||||||
|           ><text |           ><text | ||||||
|             >{{ item.isBefore ? item.unit : "" }} |             >{{ item.isBefore ? item.unit : "" }} | ||||||
|  | @ -52,6 +52,9 @@ | ||||||
|   </view> |   </view> | ||||||
| </template> | </template> | ||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
|  | import { ReceiveApi } from '@/services'; | ||||||
|  | import { ScaleStatus } from '@/utils/enum'; | ||||||
|  | 
 | ||||||
| const keyword = ref(""); | const keyword = ref(""); | ||||||
| const gridList1 = reactive([ | const gridList1 = reactive([ | ||||||
|   { |   { | ||||||
|  | @ -112,11 +115,46 @@ const gridList1 = reactive([ | ||||||
|     isCustomStyle: true |     isCustomStyle: true | ||||||
|   }, |   }, | ||||||
| ]); | ]); | ||||||
| const handleScenePhoto = () => { | const handleScenePhoto = (id: string) => { | ||||||
|   uni.navigateTo({ |   uni.navigateTo({ | ||||||
|     url: "/pagesScenePhoto/index", // 要跳转到的页面路径 |     url: "/pagesScenePhoto/index?orderType=1&id=" + id, // 要跳转到的页面路径 | ||||||
|   }); |   }); | ||||||
| }; | }; | ||||||
|  | const getScaleStatus = (type: number) => { | ||||||
|  |   if (type === ScaleStatus.ToBePriced) { | ||||||
|  |     return '待定价' | ||||||
|  |   } else if (type === ScaleStatus.ToBeTare) { | ||||||
|  |     return '待过毛重' | ||||||
|  |   } else if (type === ScaleStatus.ToBeReview) { | ||||||
|  |     return '待审核' | ||||||
|  |   } else if (type === ScaleStatus.ToBePay) { | ||||||
|  |     return '待支付' | ||||||
|  |   } else if (type === ScaleStatus.Paid) { | ||||||
|  |     return '已支付' | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | interface PageResult<T> { | ||||||
|  |   total: number; | ||||||
|  |   list: T[]; | ||||||
|  |   pageNum: number; | ||||||
|  |   pageSize: number; | ||||||
|  | } | ||||||
|  | const pageList: PageResult<Order> = reactive({ | ||||||
|  |   total: 0, | ||||||
|  |   list: [], | ||||||
|  |   pageNum: 1, | ||||||
|  |   pageSize: 10, | ||||||
|  | }); | ||||||
|  | const getOrderList = () => { | ||||||
|  |   ReceiveApi.getOrderPage({ pageNumber: 1, pageSize: 10 }).then((res) => { | ||||||
|  |     if (res.code === 200) { | ||||||
|  |       (pageList as any).list = res.data.list; | ||||||
|  |     } | ||||||
|  |   }); | ||||||
|  | }; | ||||||
|  | onMounted(() => { | ||||||
|  |   getOrderList(); | ||||||
|  | }); | ||||||
| </script> | </script> | ||||||
| <style lang="scss" scoped> | <style lang="scss" scoped> | ||||||
| .c-card { | .c-card { | ||||||
|  | @ -130,7 +168,7 @@ const handleScenePhoto = () => { | ||||||
|       border-radius: 24rpx; |       border-radius: 24rpx; | ||||||
|       border: 1px solid #00dcee; |       border: 1px solid #00dcee; | ||||||
|       font-weight: 500; |       font-weight: 500; | ||||||
|       font-size: 24rpx; |       font-size: 26rpx; | ||||||
|       color: #ffffff; |       color: #ffffff; | ||||||
|       margin-left: 50rpx; |       margin-left: 50rpx; | ||||||
|       padding: 6rpx 30rpx; |       padding: 6rpx 30rpx; | ||||||
|  | @ -143,7 +181,7 @@ const handleScenePhoto = () => { | ||||||
|     align-items: center; |     align-items: center; | ||||||
|     justify-content: space-between; |     justify-content: space-between; | ||||||
|     font-weight: 400; |     font-weight: 400; | ||||||
|     font-size: 27rpx; |     font-size: 26rpx; | ||||||
|     color: #000000; |     color: #000000; | ||||||
|     > view { |     > view { | ||||||
|       display: inline-block; |       display: inline-block; | ||||||
|  | @ -154,13 +192,13 @@ const handleScenePhoto = () => { | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|     .btn { |     .btn { | ||||||
|       font-size: 27rpx; |       font-size: 26rpx; | ||||||
|       color: #00dcee; |       color: #00dcee; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   .time { |   .time { | ||||||
|     font-weight: 400; |     font-weight: 400; | ||||||
|     font-size: 22rpx; |     font-size: 26rpx; | ||||||
|     color: #000000; |     color: #000000; | ||||||
|     margin: 30rpx 0rpx; |     margin: 30rpx 0rpx; | ||||||
|   } |   } | ||||||
|  | @ -178,12 +216,12 @@ const handleScenePhoto = () => { | ||||||
|       justify-content: space-between; |       justify-content: space-between; | ||||||
|       .no { |       .no { | ||||||
|         font-weight: 400; |         font-weight: 400; | ||||||
|         font-size: 21rpx; |         font-size: 26rpx; | ||||||
|         color: #000000; |         color: #000000; | ||||||
|       } |       } | ||||||
|       .supplier { |       .supplier { | ||||||
|         font-weight: 400; |         font-weight: 400; | ||||||
|         font-size: 24rpx; |         font-size: 26rpx; | ||||||
|         color: #000000; |         color: #000000; | ||||||
|       } |       } | ||||||
|       .btn { |       .btn { | ||||||
|  | @ -198,23 +236,25 @@ const handleScenePhoto = () => { | ||||||
|     } |     } | ||||||
|     .name { |     .name { | ||||||
|       font-weight: 400; |       font-weight: 400; | ||||||
|       font-size: 27rpx; |       font-size: 26rpx; | ||||||
|       color: #000000; |       color: #000000; | ||||||
|       margin: 15rpx 0rpx; |       margin: 15rpx 0rpx; | ||||||
|       text { |       text { | ||||||
|         background-color: #ffaf75; |         background-color: #ffaf75; | ||||||
|         font-weight: 500; |         font-weight: 500; | ||||||
|         font-size: 16rpx; |         font-size: 24rpx; | ||||||
|         color: #ffffff; |         color: #ffffff; | ||||||
|         padding: 5rpx 20rpx; |         padding: 5rpx 20rpx; | ||||||
|         margin-left: 20rpx; |         margin-left: 20rpx; | ||||||
|  |         border-radius: 10rpx; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|     .type { |     .type { | ||||||
|       font-weight: 400; |       font-weight: 400; | ||||||
|       font-size: 27rpx; |       font-size: 26rpx; | ||||||
|       color: #ec0f3e; |       color: #ec0f3e; | ||||||
|       margin-bottom: 20rpx; |       margin-bottom: 20rpx; | ||||||
|  |       font-weight: bold; | ||||||
|     } |     } | ||||||
|     .flex-box { |     .flex-box { | ||||||
|       display: flex; |       display: flex; | ||||||
|  | @ -232,7 +272,7 @@ const handleScenePhoto = () => { | ||||||
|     grid-template-columns: repeat(2, 1fr); |     grid-template-columns: repeat(2, 1fr); | ||||||
|     flex: 1; |     flex: 1; | ||||||
|     font-weight: 400; |     font-weight: 400; | ||||||
|     font-size: 24rpx; |     font-size: 26rpx; | ||||||
|     color: #000000; |     color: #000000; | ||||||
|     padding: 25rpx 0rpx 0rpx 0rpx; |     padding: 25rpx 0rpx 0rpx 0rpx; | ||||||
|     > view { |     > view { | ||||||
|  |  | ||||||
|  | @ -91,7 +91,13 @@ | ||||||
|   </view> |   </view> | ||||||
| </template> | </template> | ||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
| import { DeviceApi, PictureApi, ProfileApi, ReceiveApi, ReceiveProductApi } from "@/services"; | import { | ||||||
|  |   DeviceApi, | ||||||
|  |   PictureApi, | ||||||
|  |   ProfileApi, | ||||||
|  |   ReceiveApi, | ||||||
|  |   ReceiveProductApi, | ||||||
|  | } from "@/services"; | ||||||
| import { formatDate } from "@/utils"; | import { formatDate } from "@/utils"; | ||||||
| import { DeviceType, ImagesType, OrderType } from "@/utils/enum"; | import { DeviceType, ImagesType, OrderType } from "@/utils/enum"; | ||||||
| import _ from "underscore"; | import _ from "underscore"; | ||||||
|  | @ -153,7 +159,7 @@ const formAttrList = reactive<any>([ | ||||||
|     name: "站点磅秤", |     name: "站点磅秤", | ||||||
|     key: "deviceName", |     key: "deviceName", | ||||||
|     type: "select", |     type: "select", | ||||||
|     childKey: 'device', |     childKey: "device", | ||||||
|     required: true, |     required: true, | ||||||
|     unit: "", |     unit: "", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|  | @ -165,7 +171,7 @@ const formAttrList = reactive<any>([ | ||||||
|     name: "供应商", |     name: "供应商", | ||||||
|     key: "userName", |     key: "userName", | ||||||
|     type: "select", |     type: "select", | ||||||
|     childKey: 'user', |     childKey: "user", | ||||||
|     required: true, |     required: true, | ||||||
|     unit: "", |     unit: "", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|  | @ -183,7 +189,7 @@ const formAttrList = reactive<any>([ | ||||||
|     name: "收货产品", |     name: "收货产品", | ||||||
|     key: "productName", |     key: "productName", | ||||||
|     type: "select", |     type: "select", | ||||||
|     childKey: 'product', |     childKey: "product", | ||||||
|     required: true, |     required: true, | ||||||
|     unit: "", |     unit: "", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|  | @ -278,7 +284,7 @@ const handleUpload = () => { | ||||||
| const handleSelect = (key: string, v: any) => { | const handleSelect = (key: string, v: any) => { | ||||||
|   contrlModalParams[key].isShow = false; |   contrlModalParams[key].isShow = false; | ||||||
|   if (key === "user") { |   if (key === "user") { | ||||||
|     debugger |     debugger; | ||||||
|     model1.order.userName = v.name; |     model1.order.userName = v.name; | ||||||
|     model1.order.userId = v.id; |     model1.order.userId = v.id; | ||||||
|   } else if (key === "product") { |   } else if (key === "product") { | ||||||
|  | @ -293,7 +299,7 @@ const handleSelect = (key: string, v: any) => { | ||||||
| ProfileApi.getUserList({ userType: 2 }).then((res) => { | ProfileApi.getUserList({ userType: 2 }).then((res) => { | ||||||
|   if (res.code === 200) { |   if (res.code === 200) { | ||||||
|     contrlModalParams.user.list = res.data; |     contrlModalParams.user.list = res.data; | ||||||
|     console.log(contrlModalParams.user.list) |     console.log(contrlModalParams.user.list); | ||||||
|   } |   } | ||||||
| }); | }); | ||||||
| // 产品信息 | // 产品信息 | ||||||
|  | @ -308,7 +314,7 @@ ReceiveProductApi.getAllReProducts().then((res) => { | ||||||
|   } |   } | ||||||
| }); | }); | ||||||
| // 设备信息 | // 设备信息 | ||||||
| DeviceApi.getDeviceList({deviceType: DeviceType.Weighbridge}).then(res => { | DeviceApi.getDeviceList({ deviceType: DeviceType.Weighbridge }).then((res) => { | ||||||
|   if (res.code === 200) { |   if (res.code === 200) { | ||||||
|     contrlModalParams.device.list = _.map( |     contrlModalParams.device.list = _.map( | ||||||
|       res.data as any, |       res.data as any, | ||||||
|  | @ -317,22 +323,23 @@ DeviceApi.getDeviceList({deviceType: DeviceType.Weighbridge}).then(res => { | ||||||
|       } |       } | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
| }) | }); | ||||||
| 
 | const upload = () => { | ||||||
|  |   Promise.all(handleUpload()).then((res) => { | ||||||
|  |     // 上传多个资源 | ||||||
|  |     if (res.length > 0) { | ||||||
|  |       PictureApi.addListAnnex({ annexPos: res }).then((res1) => { | ||||||
|  |         if (res1.code === 200) { | ||||||
|  |           uni.showToast({ | ||||||
|  |             title: "图片资源上传成功", | ||||||
|  |             icon: "success", | ||||||
|  |           }); | ||||||
|  |         } | ||||||
|  |       }); | ||||||
|  |     } | ||||||
|  |   }); | ||||||
|  | }; | ||||||
| const save = () => { | const save = () => { | ||||||
|   // Promise.all(handleUpload()).then((res) => { |  | ||||||
|   //   // 上传多个资源 |  | ||||||
|   //   if (res.length > 0) { |  | ||||||
|   //     PictureApi.addListAnnex({ annexPos: res }).then((res1) => { |  | ||||||
|   //       if (res1.code === 200) { |  | ||||||
|   //         uni.showToast({ |  | ||||||
|   //           title: "图片资源上传成功", |  | ||||||
|   //           icon: "success", |  | ||||||
|   //         }); |  | ||||||
|   //       } |  | ||||||
|   //     }); |  | ||||||
|   //   } |  | ||||||
|   // }); |  | ||||||
|   if (model1.order.buttonType === 0) { |   if (model1.order.buttonType === 0) { | ||||||
|     model1.order.buckleMiscellaneous = model1.order.subtractNum; |     model1.order.buckleMiscellaneous = model1.order.subtractNum; | ||||||
|   } else if (model1.order.buttonType === 1) { |   } else if (model1.order.buttonType === 1) { | ||||||
|  | @ -340,10 +347,11 @@ const save = () => { | ||||||
|   } |   } | ||||||
|   ReceiveApi.addOrderIn(model1.order).then((res) => { |   ReceiveApi.addOrderIn(model1.order).then((res) => { | ||||||
|     if (res.code === 200) { |     if (res.code === 200) { | ||||||
|       model1.order.id = (res.data as any).id |       model1.order.id = res.data; | ||||||
|       // uni.navigateTo({ |       upload(); | ||||||
|       //   url: "/pages/index/index", // 要跳转到的页面路径 |       uni.navigateTo({ | ||||||
|       // }); |         url: "/pages/index/index", // 要跳转到的页面路径 | ||||||
|  |       }); | ||||||
|     } |     } | ||||||
|   }); |   }); | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -91,7 +91,15 @@ | ||||||
|   </view> |   </view> | ||||||
| </template> | </template> | ||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
| import { DeviceApi, GoodsApi, PictureApi, ProfileApi, ReceiveApi, ReceiveProductApi, ShipmentApi } from "@/services"; | import { | ||||||
|  |   DeviceApi, | ||||||
|  |   GoodsApi, | ||||||
|  |   PictureApi, | ||||||
|  |   ProfileApi, | ||||||
|  |   ReceiveApi, | ||||||
|  |   ReceiveProductApi, | ||||||
|  |   ShipmentApi, | ||||||
|  | } from "@/services"; | ||||||
| import { formatDate } from "@/utils"; | import { formatDate } from "@/utils"; | ||||||
| import { DeviceType, ImagesType, OrderType } from "@/utils/enum"; | import { DeviceType, ImagesType, OrderType } from "@/utils/enum"; | ||||||
| import _ from "underscore"; | import _ from "underscore"; | ||||||
|  | @ -153,7 +161,7 @@ const formAttrList = reactive<any>([ | ||||||
|     name: "过磅设备", |     name: "过磅设备", | ||||||
|     key: "deviceName", |     key: "deviceName", | ||||||
|     type: "select", |     type: "select", | ||||||
|     childKey: 'device', |     childKey: "device", | ||||||
|     required: true, |     required: true, | ||||||
|     unit: "", |     unit: "", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|  | @ -165,7 +173,7 @@ const formAttrList = reactive<any>([ | ||||||
|     name: "客户", |     name: "客户", | ||||||
|     key: "userName", |     key: "userName", | ||||||
|     type: "select", |     type: "select", | ||||||
|     childKey: 'user', |     childKey: "user", | ||||||
|     required: true, |     required: true, | ||||||
|     unit: "", |     unit: "", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|  | @ -177,7 +185,7 @@ const formAttrList = reactive<any>([ | ||||||
|     name: "出货产品", |     name: "出货产品", | ||||||
|     key: "productName", |     key: "productName", | ||||||
|     type: "select", |     type: "select", | ||||||
|     childKey: 'product', |     childKey: "product", | ||||||
|     required: true, |     required: true, | ||||||
|     unit: "", |     unit: "", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|  | @ -297,7 +305,7 @@ const handleUpload = () => { | ||||||
| const handleSelect = (key: string, v: any) => { | const handleSelect = (key: string, v: any) => { | ||||||
|   contrlModalParams[key].isShow = false; |   contrlModalParams[key].isShow = false; | ||||||
|   if (key === "user") { |   if (key === "user") { | ||||||
|     debugger |     debugger; | ||||||
|     model1.order.userName = v.name; |     model1.order.userName = v.name; | ||||||
|     model1.order.userId = v.id; |     model1.order.userId = v.id; | ||||||
|   } else if (key === "product") { |   } else if (key === "product") { | ||||||
|  | @ -312,7 +320,7 @@ const handleSelect = (key: string, v: any) => { | ||||||
| ProfileApi.getUserList({ userType: 3 }).then((res) => { | ProfileApi.getUserList({ userType: 3 }).then((res) => { | ||||||
|   if (res.code === 200) { |   if (res.code === 200) { | ||||||
|     contrlModalParams.user.list = res.data; |     contrlModalParams.user.list = res.data; | ||||||
|     console.log(contrlModalParams.user.list) |     console.log(contrlModalParams.user.list); | ||||||
|   } |   } | ||||||
| }); | }); | ||||||
| // 产品信息 | // 产品信息 | ||||||
|  | @ -327,7 +335,7 @@ GoodsApi.getShipmentProductList().then((res) => { | ||||||
|   } |   } | ||||||
| }); | }); | ||||||
| // 设备信息 | // 设备信息 | ||||||
| DeviceApi.getDeviceList({deviceType: DeviceType.Weighbridge}).then(res => { | DeviceApi.getDeviceList({ deviceType: DeviceType.Weighbridge }).then((res) => { | ||||||
|   if (res.code === 200) { |   if (res.code === 200) { | ||||||
|     contrlModalParams.device.list = _.map( |     contrlModalParams.device.list = _.map( | ||||||
|       res.data as any, |       res.data as any, | ||||||
|  | @ -336,22 +344,23 @@ DeviceApi.getDeviceList({deviceType: DeviceType.Weighbridge}).then(res => { | ||||||
|       } |       } | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
| }) | }); | ||||||
| 
 | const upload = () => { | ||||||
|  |   Promise.all(handleUpload()).then((res) => { | ||||||
|  |     // 上传多个资源 | ||||||
|  |     if (res.length > 0) { | ||||||
|  |       PictureApi.addListAnnex({ annexPos: res }).then((res1) => { | ||||||
|  |         if (res1.code === 200) { | ||||||
|  |           uni.showToast({ | ||||||
|  |             title: "图片资源上传成功", | ||||||
|  |             icon: "success", | ||||||
|  |           }); | ||||||
|  |         } | ||||||
|  |       }); | ||||||
|  |     } | ||||||
|  |   }); | ||||||
|  | }; | ||||||
| const save = () => { | const save = () => { | ||||||
|   // Promise.all(handleUpload()).then((res) => { |  | ||||||
|   //   // 上传多个资源 |  | ||||||
|   //   if (res.length > 0) { |  | ||||||
|   //     PictureApi.addListAnnex({ annexPos: res }).then((res1) => { |  | ||||||
|   //       if (res1.code === 200) { |  | ||||||
|   //         uni.showToast({ |  | ||||||
|   //           title: "图片资源上传成功", |  | ||||||
|   //           icon: "success", |  | ||||||
|   //         }); |  | ||||||
|   //       } |  | ||||||
|   //     }); |  | ||||||
|   //   } |  | ||||||
|   // }); |  | ||||||
|   if (model1.order.buttonType === 0) { |   if (model1.order.buttonType === 0) { | ||||||
|     model1.order.buckleMiscellaneous = model1.order.subtractNum; |     model1.order.buckleMiscellaneous = model1.order.subtractNum; | ||||||
|   } else if (model1.order.buttonType === 1) { |   } else if (model1.order.buttonType === 1) { | ||||||
|  | @ -359,7 +368,8 @@ const save = () => { | ||||||
|   } |   } | ||||||
|   ShipmentApi.addOrderOut(model1.order).then((res) => { |   ShipmentApi.addOrderOut(model1.order).then((res) => { | ||||||
|     if (res.code === 200) { |     if (res.code === 200) { | ||||||
|       model1.order.id = (res.data as any).id |       model1.order.id = res.data; | ||||||
|  |       upload(); | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|         url: "/pages/index/index", // 要跳转到的页面路径 |         url: "/pages/index/index", // 要跳转到的页面路径 | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|  | @ -90,9 +90,9 @@ | ||||||
|         <u-grid :border="false" col="4"> |         <u-grid :border="false" col="4"> | ||||||
|           <u-grid-item v-for="(item, listIndex) in appList" :key="listIndex" @click="item.fn"> |           <u-grid-item v-for="(item, listIndex) in appList" :key="listIndex" @click="item.fn"> | ||||||
|             <up-image |             <up-image | ||||||
|               :src="`/static/img/${item.icon}`" |               :src="`/pagesHome/static/${item.icon}`" | ||||||
|               width="40rpx" |               width="60rpx" | ||||||
|               height="40rpx" |               height="60rpx" | ||||||
|             ></up-image> |             ></up-image> | ||||||
|             <text class="grid-text">{{ item.title }}</text> |             <text class="grid-text">{{ item.title }}</text> | ||||||
|           </u-grid-item> |           </u-grid-item> | ||||||
|  | @ -285,7 +285,7 @@ const shipmentList = reactive([ | ||||||
| 
 | 
 | ||||||
| const appList = reactive([ | const appList = reactive([ | ||||||
|   { |   { | ||||||
|     icon: "app1.png", |     icon: "01.png", | ||||||
|     title: "收货补单", |     title: "收货补单", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -294,7 +294,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app2.png", |     icon: "02.png", | ||||||
|     title: "出货补单", |     title: "出货补单", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -303,7 +303,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app4.png", |     icon: "03.png", | ||||||
|     title: "收货明细", |     title: "收货明细", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -312,7 +312,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app3.png", |     icon: "04.png", | ||||||
|     title: "出货明细", |     title: "出货明细", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -321,7 +321,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app5.png", |     icon: "05.png", | ||||||
|     title: "收货作废", |     title: "收货作废", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -330,7 +330,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app6.png", |     icon: "06.png", | ||||||
|     title: "出货作废", |     title: "出货作废", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -339,7 +339,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app7.png", |     icon: "07.png", | ||||||
|     title: "供应商管理", |     title: "供应商管理", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -348,7 +348,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app8.png", |     icon: "08.png", | ||||||
|     title: "客户管理", |     title: "客户管理", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       uni.navigateTo({ |       uni.navigateTo({ | ||||||
|  | @ -357,7 +357,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app1.png", |     icon: "09.png", | ||||||
|     title: "收货产品", |     title: "收货产品", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -366,7 +366,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app2.png", |     icon: "10.png", | ||||||
|     title: "收货分类", |     title: "收货分类", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -375,7 +375,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app4.png", |     icon: "11.png", | ||||||
|     title: "出货产品", |     title: "出货产品", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -384,7 +384,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app3.png", |     icon: "12.png", | ||||||
|     title: "支付明细", |     title: "支付明细", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -393,7 +393,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app5.png", |     icon: "13.png", | ||||||
|     title: "收入明细", |     title: "收入明细", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -402,7 +402,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app6.png", |     icon: "14.png", | ||||||
|     title: "人员管理", |     title: "人员管理", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -411,7 +411,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app7.png", |     icon: "15.png", | ||||||
|     title: "权限管理", |     title: "权限管理", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
|  | @ -420,7 +420,7 @@ const appList = reactive([ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     icon: "app8.png", |     icon: "16.png", | ||||||
|     title: "库存卡管理", |     title: "库存卡管理", | ||||||
|     fn: () => { |     fn: () => { | ||||||
|       // uni.navigateTo({ |       // uni.navigateTo({ | ||||||
| After Width: | Height: | Size: 4.4 KiB | 
| After Width: | Height: | Size: 4.2 KiB | 
| After Width: | Height: | Size: 4.3 KiB | 
| After Width: | Height: | Size: 4.7 KiB | 
| After Width: | Height: | Size: 6.0 KiB | 
| After Width: | Height: | Size: 5.7 KiB | 
| After Width: | Height: | Size: 6.5 KiB | 
| After Width: | Height: | Size: 6.8 KiB | 
| After Width: | Height: | Size: 6.2 KiB | 
| After Width: | Height: | Size: 5.1 KiB | 
| After Width: | Height: | Size: 6.5 KiB | 
| After Width: | Height: | Size: 4.8 KiB | 
| After Width: | Height: | Size: 6.1 KiB | 
| After Width: | Height: | Size: 4.8 KiB | 
| After Width: | Height: | Size: 4.4 KiB | 
| After Width: | Height: | Size: 3.3 KiB | 
|  | @ -409,7 +409,7 @@ const save = () => { | ||||||
|   box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); |   box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); | ||||||
|   border-radius: 13rpx 13rpx 0rpx 0rpx; |   border-radius: 13rpx 13rpx 0rpx 0rpx; | ||||||
|   padding: 25rpx 50rpx; |   padding: 25rpx 50rpx; | ||||||
|   position: sticky; |   position: fixed; | ||||||
|   bottom: 0rpx; |   bottom: 0rpx; | ||||||
|   z-index: 999; |   z-index: 999; | ||||||
|   ::v-deep button { |   ::v-deep button { | ||||||
|  |  | ||||||
|  | @ -265,7 +265,7 @@ onLoad((option) => { | ||||||
|   box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); |   box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12); | ||||||
|   border-radius: 13rpx 13rpx 0rpx 0rpx; |   border-radius: 13rpx 13rpx 0rpx 0rpx; | ||||||
|   padding: 25rpx 50rpx; |   padding: 25rpx 50rpx; | ||||||
|   position: absolute; |   position: fixed; | ||||||
|   bottom: 0rpx; |   bottom: 0rpx; | ||||||
|   width: calc(100vw - 100rpx); |   width: calc(100vw - 100rpx); | ||||||
|   ::v-deep button { |   ::v-deep button { | ||||||
|  |  | ||||||
| Before Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 3.1 KiB | 
| Before Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 3.5 KiB | 
| Before Width: | Height: | Size: 4.4 KiB | 
| Before Width: | Height: | Size: 3.8 KiB | 
| Before Width: | Height: | Size: 5.6 KiB | 
| Before Width: | Height: | Size: 6.1 KiB | 
|  | @ -33,7 +33,7 @@ export enum ScaleStatus { | ||||||
|   ToBePriced = 0, |   ToBePriced = 0, | ||||||
|   ToBeTare = 1, |   ToBeTare = 1, | ||||||
|   ToBeReview = 2, |   ToBeReview = 2, | ||||||
|   ToBePay = 2, |   ToBePay = 3, | ||||||
|   Paid = 4, |   Paid = 4, | ||||||
|   ToBeShipment = 0, |   ToBeShipment = 0, | ||||||
|   ToBeGrossWeight = 1, |   ToBeGrossWeight = 1, | ||||||
|  |  | ||||||
 admin
						admin