Browse Source

新增pda上传合同, 修复部分bug

dev
qb 11 months ago
parent
commit
0a417abd76
  1. 26
      api/user.js
  2. 8
      config/host.js
  3. 424
      pages/index/index.vue
  4. 2
      pages/taskList/taskList.vue
  5. 2
      pagesHome/pages/CustomerSign/CustomerSign.vue
  6. 14
      pagesHome/pages/Retention/Retention.vue
  7. 10
      pagesHome/pages/StockUplistByZero/StockUplistByZero.vue
  8. 158
      pagesHome/pages/StowageList/StowageList.vue
  9. 3
      pagesHome/pages/StowageListDetails/StowageListDetails.vue
  10. 7
      pagesHome/pages/directGoMarket/directGoMarket.vue
  11. 11
      pagesHome/pages/loadingRetention/loadingRetention.vue
  12. 3752
      unpackage/dist/dev/app-plus/app-service.js
  13. 103
      unpackage/dist/dev/app-plus/pagesHome/pages/Retention/Retention.css
  14. 66
      unpackage/dist/dev/mp-weixin/api/user.js
  15. 1
      unpackage/dist/dev/mp-weixin/app.js
  16. 1
      unpackage/dist/dev/mp-weixin/app.json
  17. 26
      unpackage/dist/dev/mp-weixin/common/vendor.js
  18. 6
      unpackage/dist/dev/mp-weixin/compoment/cus-selects-fan/cus-selects-fan.wxss
  19. 12
      unpackage/dist/dev/mp-weixin/compoment/tiplist/tiplist.wxss
  20. 43
      unpackage/dist/dev/mp-weixin/pages/index/index.js
  21. 2
      unpackage/dist/dev/mp-weixin/pages/index/index.wxss
  22. 2
      unpackage/dist/dev/mp-weixin/pages/news/news.wxss
  23. 110
      unpackage/dist/dev/mp-weixin/pages/taskList/taskList.js
  24. 12
      unpackage/dist/dev/mp-weixin/pages/taskList/taskList.wxss
  25. 4
      unpackage/dist/dev/mp-weixin/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails.wxss
  26. 9
      unpackage/dist/dev/mp-weixin/pagesHome/pages/CustomerSign/CustomerSign.js
  27. 10
      unpackage/dist/dev/mp-weixin/pagesHome/pages/DownGoods/DownGoods.wxss
  28. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/DownGoodsType/DownGoodsType.wxss
  29. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/LoadingDetails/LoadingDetails.wxss
  30. 4
      unpackage/dist/dev/mp-weixin/pagesHome/pages/LoadingScan/LoadingScan.wxss
  31. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.wxml
  32. 60
      unpackage/dist/dev/mp-weixin/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.wxss
  33. 8
      unpackage/dist/dev/mp-weixin/pagesHome/pages/PeopleScanUp/PeopleScanUp.wxss
  34. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/PeopleScanUpType/PeopleScanUpType.wxss
  35. 6
      unpackage/dist/dev/mp-weixin/pagesHome/pages/PeopleSortingDetail/PeopleSortingDetail.wxss
  36. 87
      unpackage/dist/dev/mp-weixin/pagesHome/pages/PickingScanList/PickingScanList.js
  37. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/PickingScanList/PickingScanList.wxml
  38. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/PickingScanList/PickingScanList.wxss
  39. 18
      unpackage/dist/dev/mp-weixin/pagesHome/pages/Retention/Retention.js
  40. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/Retention/Retention.wxml
  41. 103
      unpackage/dist/dev/mp-weixin/pagesHome/pages/Retention/Retention.wxss
  42. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/ScanUp/ScanUp.wxss
  43. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/ScanUpType/ScanUpType.wxss
  44. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/SelfPickupDetails/SelfPickupDetails.wxss
  45. 4
      unpackage/dist/dev/mp-weixin/pagesHome/pages/SetPrice/SetPrice.wxss
  46. 4
      unpackage/dist/dev/mp-weixin/pagesHome/pages/SignDetailScan/SignDetailScan.wxss
  47. 18
      unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.js
  48. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.wxss
  49. 12
      unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplistScandetails/StockUplistScandetails.js
  50. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryDetail/inventoryDetail.wxss
  51. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryType/inventoryType.wxss
  52. 10
      unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryenter/inventoryenter.wxss
  53. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/lnventorysortinglist/lnventorysortinglist.wxss
  54. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/pickingScan/pickingScan.wxss
  55. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/scansorting/scansorting.wxss
  56. 8
      unpackage/dist/dev/mp-weixin/pagesHome/pages/setbarcode/setbarcode.js
  57. 2
      unpackage/dist/dev/mp-weixin/pagesHome/pages/signOrderScan/signOrderScan.wxss
  58. 4
      unpackage/dist/dev/mp-weixin/pagesHome/pages/signinScan/signinScan.wxss
  59. 5
      unpackage/dist/dev/mp-weixin/project.config.json
  60. 42
      unpackage/dist/dev/mp-weixin/utils/utils.js
  61. 1049
      utils/utils.js

26
api/user.js

@ -3000,4 +3000,30 @@ export function postUpShelfScanAllocation(data, loadingObj = {}) {
},
loadingObj
);
}
/**
* 上传运输合同
*/
export function postAddContractByLoadId(data, loadingObj = {}) {
return request({
url: `logpm-trunkline/carsLoad/addContractByLoadId`,
method: "post",
data
},
loadingObj
);
}
/**
* 查询运输合同
*/
export function postFindFinanceList(data, loadingObj = {}) {
return request({
url: `logpm-trunkline/carsLoad/findFinanceList`,
method: "post",
data
},
loadingObj
);
}

8
config/host.js

@ -4,7 +4,7 @@
* 测试域名
* */
//测试域名s
// const devhost = 'http://test.api.huo5you.com/'
const devhost = 'http://test.api.huo5you.com/'
// lmy
// const devhost = 'http://192.168.10.123:8889/'
// zhy
@ -19,14 +19,14 @@
// cg
// const devhost = 'http://192.168.3.2:13000/'
// 正式
const devhost = 'https://h5uapi.huitongys.com/'
// const devhost = 'https://h5uapi.huitongys.com/'
// cg
// const devhost = 'http://192.168.10.200:13000/'
/**
* 正式域名
* */
const prohost = 'http://h5uapi.huitongys.com/'
// const prohost = 'https://h5uapi.huitongys.com/' // 小程序
// const prohost = 'http://h5uapi.huitongys.com/'
const prohost = 'https://h5uapi.huitongys.com/' // 小程序
// const prohost = 'http://test.api.huo5you.com/'
/**
* 图片域名

424
pages/index/index.vue

@ -40,218 +40,218 @@
const { storageArr } = storeToRefs(storageStore)
const tip = ref(null)
let details = reactive<listtype>({ tablist: [] });
// let details = reactive<listtype>({
// tablist: [
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/orderInquiry/orderInquiry',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/waybillInquiry/waybillInquiry',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/storageInquiry/storageInquiry',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/trayInquiry/trayInquiry',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/inventoryInquiry/inventoryInquiry',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/MaterialMaintenance/MaterialMaintenance',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/StorageLocationList/StorageLocationList',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/CreateAbnormalWorkOrder/CreateAbnormalWorkOrder',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/codePlateBracket/codePlateBracket',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/TranNumber/TranNumber',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/ArrivalList/ArrivalList',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/scansorting/scansorting',
// },
// // {
// // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// // name: '',
// // router: '/pagesHome/pages/ordersorting/ordersorting',
// // },
// // {
// // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// // name: '',
// // router: '/pagesHome/pages/lnventorysorting/lnventorysorting',
// // },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/ScanUpType/ScanUpType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/PeopleScanUpType/PeopleScanUpType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/RelocationType/RelocationType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/Retention/Retention',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/MergeTray/MergeTray',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/DownGoodsType/DownGoodsType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/RemoveTray/RemoveTray',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/Check/Check',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/SearchTray/SearchTray',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/pickingScan/pickingScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/SelfPickupScan/SelfPickupScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/StowageList/StowageList',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/RelayScanList/RelayScanList',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/LoadingScan/LoadingScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/signinScan/signinScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/directGoMarket/directGoMarket',
// },
// ]
// },
// {
// type: 1,
// name: '线',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '线',
// router: '/pagesHome/pages/OfflineUpload/OfflineUpload',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/integral/integral',
// },
// {
// icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png',
// name: '',
// router: '/pagesHome/pages/integralMy/integralMy',
// },
// ]
// },
// ]
// })
// let details = reactive<listtype>({ tablist: [] });
let details = reactive<listtype>({
tablist: [
{
type: 1,
name: '工作台',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '订单查询',
router: '/pagesHome/pages/orderInquiry/orderInquiry',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '运单查询',
router: '/pagesHome/pages/waybillInquiry/waybillInquiry',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '库位查询',
router: '/pagesHome/pages/storageInquiry/storageInquiry',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '托盘查询',
router: '/pagesHome/pages/trayInquiry/trayInquiry',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '库存品查询',
router: '/pagesHome/pages/inventoryInquiry/inventoryInquiry',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '物料维护',
router: '/pagesHome/pages/MaterialMaintenance/MaterialMaintenance',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '库位列表',
router: '/pagesHome/pages/StorageLocationList/StorageLocationList',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '发起工单',
router: '/pagesHome/pages/CreateAbnormalWorkOrder/CreateAbnormalWorkOrder',
},
]
},
{
type: 1,
name: '入库',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '码板打托',
router: '/pagesHome/pages/codePlateBracket/codePlateBracket',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '入库扫描',
router: '/pagesHome/pages/TranNumber/TranNumber',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '到车入库',
router: '/pagesHome/pages/ArrivalList/ArrivalList',
},
]
},
{
type: 1,
name: '库内',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '分拣打托',
router: '/pagesHome/pages/scansorting/scansorting',
},
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/ordersorting/ordersorting',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/lnventorysorting/lnventorysorting',
// },
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '扫码上架',
router: '/pagesHome/pages/ScanUpType/ScanUpType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '手动上架',
router: '/pagesHome/pages/PeopleScanUpType/PeopleScanUpType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '移库',
router: '/pagesHome/pages/RelocationType/RelocationType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '滞留',
router: '/pagesHome/pages/Retention/Retention',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '合托',
router: '/pagesHome/pages/MergeTray/MergeTray',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '下架',
router: '/pagesHome/pages/DownGoodsType/DownGoodsType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '空置托盘',
router: '/pagesHome/pages/RemoveTray/RemoveTray',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '复核',
router: '/pagesHome/pages/Check/Check',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '托盘数据同步',
router: '/pagesHome/pages/SearchTray/SearchTray',
},
]
},
{
type: 1,
name: '出库',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '拣货扫描',
router: '/pagesHome/pages/pickingScan/pickingScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '自提扫描',
router: '/pagesHome/pages/SelfPickupScan/SelfPickupScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '配载装车',
router: '/pagesHome/pages/StowageList/StowageList',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '中转装车',
router: '/pagesHome/pages/RelayScanList/RelayScanList',
},
]
},
{
type: 1,
name: '配送',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '装车扫描',
router: '/pagesHome/pages/LoadingScan/LoadingScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '签收扫描',
router: '/pagesHome/pages/signinScan/signinScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '直发商家签收',
router: '/pagesHome/pages/directGoMarket/directGoMarket',
},
]
},
{
type: 1,
name: '离线上传',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '离线上传',
router: '/pagesHome/pages/OfflineUpload/OfflineUpload',
},
]
},
{
type: 1,
name: '考核',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '考核指标',
router: '/pagesHome/pages/integral/integral',
},
{
icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png',
name: '我的考核',
router: '/pagesHome/pages/integralMy/integralMy',
},
]
},
]
})
function gopathpage(path : string) {
uni.navigateTo({

2
pages/taskList/taskList.vue

@ -19,8 +19,6 @@
import {
onLoad,
onShow,
onHide,
onUnload,
onPullDownRefresh
} from '@dcloudio/uni-app'

2
pagesHome/pages/CustomerSign/CustomerSign.vue

@ -275,7 +275,7 @@
let imglis = [], rearks = ''
if (res.code == 200) {
// ,
if (Object.keys(res.data.deliverySignPictures).length !== 0 || res.data.driverRemarks) {
if (Object.keys(res.data.deliverySignPictures).length !== 0) {
//
details.isChange = true
imglis = res.data.deliverySignPictures

14
pagesHome/pages/Retention/Retention.vue

@ -4,7 +4,8 @@
<view class="topbox">
<view class="scanbox">
<image src="/pagesHome/static/miniqc.png"></image>
<input placeholder="扫描或输入包条码" />
<input class="flex1" v-model="details.scancode" placeholder="扫描或输入包条码" />
<view class="button" @click="scandata"> </view>
</view>
<!-- <view class="viewboxs">
<view>数量10</view>
@ -145,6 +146,9 @@
</script>
<style lang="scss">
@import url(@/utils/style/common.scss);
.butys {
display: flex;
align-items: center;
@ -317,4 +321,12 @@
}
}
}
.button {
// width: ;
padding: 20upx 40upx;
background: var(--subjectColor);
color: #fff;
border-radius: 10upx;
}
</style>

10
pagesHome/pages/StockUplistByZero/StockUplistByZero.vue

@ -419,7 +419,7 @@
StockUpZero.value.setDetails({
title: '零担备货',
showPopUp: true,
success() {
async success() {
const { scanNum, maxNum } = details.stockUpInfo as any
if (scanNum > maxNum) return utils.handleToast('不能大于已备数量')
@ -442,7 +442,13 @@
if (type === 1) submitData.allocationId = value.allocationid
else if (type === 2) submitData.trayId = value.trayId
postZeroStockUp(submitData)
const res = await postZeroStockUp(submitData)
const { code, data } = res
if (code !== 200) return
StockUpZero.value.details.showPopUp = false
basicContainer.value.startPullDownRefresh()
}
})
}

158
pagesHome/pages/StowageList/StowageList.vue

@ -73,10 +73,15 @@
</view>
</view>
<view class="bts" v-if="status!==2">
<view class="bts flex-c-sa" v-if="status!==2">
<view @click="handleShowImg(item)">
上传运输合同
</view>
<view @click="gostockuplistBytray(item)">
整托装车
</view>
<view @click="gostockuplist(item)">
按件装车
</view>
@ -86,6 +91,11 @@
</scroll-view>
</template>
</BasicContainer>
<PopUp ref="UploadImg">
<u-upload :fileList="details.imgFileList" @afterRead="handleUploadImg" @delete="deletePic" multiple></u-upload>
</PopUp>
<tips ref="tip"></tips>
<l-calendar v-model:value="show" :initStartDate='date[0]' :initEndDate='date[1]' @hide='showCalendar'
@change="onConfirm"></l-calendar>
@ -99,8 +109,9 @@
onUnload,
onPullDownRefresh
} from '@dcloudio/uni-app'
import { postCarsLoadPageList } from '@/api/user.js'
import { postCarsLoadPageList, postFindFinanceList, postAddContractByLoadId } from '@/api/user.js'
import { timeType } from '@/interfaces/pagesHome/allType'
import functions from '@/utils/functions.js';
import { inject, reactive, ref, toRefs, watchEffect } from "vue";
import utils from '@/utils/utils';
const option = {
@ -128,9 +139,14 @@
'1': '干线',
'2': '支线',
'3': '专车',
}
},
imgFileList: []
})
// --
const UploadImg = ref()
//
details.dataList = details.NoTrainData
@ -239,12 +255,110 @@
url: '/pagesHome/pages/StowageListDetails/StowageListDetails?id=' + item.id + '&type=' + 2
})
}
/** 显示运输合同 */
const handleShowImg = async (item) => {
console.log('item :>> ', item);
const res = await postFindFinanceList({ loadId: item.id })
const { code, data } = res
if (code !== 200) return
details.imgFileList = []
UploadImg.value.setDetails({
title: '上传图片',
showPopUp: true,
async success() {
if (details.imgFileList.length === 0) return uni.showToast({
icon: 'none',
title: '请上传图片再提交'
})
console.log('details.imgFileList :>> ', details.imgFileList);
const submitData = {
loadId: item.id,
url: details.imgFileList.map(val => val.url).join(','),
}
const res = await postAddContractByLoadId(submitData)
const { code, msg } = res
if (code !== 200) return
utils.handleToast(msg)
UploadImg.value.details.showPopUp = false
// basicContainer.value.startPullDownRefresh()
}
})
}
/** 上传图片 */
const handleUploadImg = async (event) => {
try {
uni.showLoading({
title: '上传中',
mask: true
})
const writeArr = ['jpg', 'jpeg', 'png']
const PromiseAll = []
for (let i = 0; i < event.file.length; i++) {
const item = event.file[i]
const type = item.name.split('.').slice(-1)[0]
if (writeArr.indexOf(type) === -1) continue
console.log('type :>> ', type);
PromiseAll.push(functions.upfile(item.url))
}
const res = await Promise.all(PromiseAll)
console.log('res :>> ', res);
for (let i = 0; i < res.length; i++) {
const response = res[i]
const { link } = response
if (!link) continue
details.imgFileList.push({ url: link })
}
} catch (err) {
console.log('err :>> ', err);
//TODO handle the exception
} finally {
uni.hideLoading()
}
console.log('event :>> ', event);
}
/** 删除图片 */
const deletePic = (event) => {
console.log('event :>> ', event);
details.imgFileList.splice(event.index, 1)
}
function cleartime() {
// console.log(1231211);
details.datatime = ''
date.value = []
basicContainer.value.startPullDownRefresh()
}
function setstate(state : number) {
details.status = state
details.dataList = state === 1 ? details.NoTrainData : details.HaveLeftnData
@ -262,6 +376,8 @@
</script>
<style lang="scss" scoped>
@import url("@/utils/style/common.scss");
.inputsr {
width: 400upx !important;
height: 64upx;
@ -399,7 +515,7 @@
>.bts {
display: flex;
align-items: center;
justify-content: center;
// justify-content: center;
margin: 20upx 0;
>view {
@ -419,7 +535,7 @@
>view:nth-of-type(2) {
border-color: var(--subjectColor);
color: var(--subjectColor);
margin-left: 100upx;
// margin-left: 100upx;
}
}
}
@ -495,4 +611,36 @@
// color: #90A0AF;
font-size: 28upx;
}
//
:deep(.u-upload__button) {
width: 4.5rem !important;
height: 4.5rem !important;
.u-icon__icon {
font-size: 1.5rem !important;
line-height: 1.5rem !important;
}
}
:deep(.u-upload__wrap__preview__image) {
width: 4.5rem !important;
height: 4.5rem !important;
}
:deep(.u-upload__deletable) {
width: 36upx;
height: 36upx;
.u-icon__icon {
font-size: 28upx !important;
line-height: 28upx !important;
}
}
:deep(.popUpMask) {
z-index: 99;
}
</style>

3
pagesHome/pages/StowageListDetails/StowageListDetails.vue

@ -356,10 +356,7 @@
await nextTick()
//
// const timer = setTimeout(() => {
basicContainer.value.startPullDownRefresh()
// clearTimeout(timer)
// }, 10)
})
function showsdqs() {

7
pagesHome/pages/directGoMarket/directGoMarket.vue

@ -91,7 +91,6 @@
</BasicContainer>
<PopUp ref="UploadImg">
<u-upload :fileList="details.imgFileList" @afterRead="handleUploadImg" @delete="deletePic" multiple></u-upload>
</PopUp>
@ -627,7 +626,7 @@
//
:deep(.u-upload__button) {
width: 4.5rem !important;
height: 4.5rem !important;
@ -655,7 +654,7 @@
}
}
:deep(uni-movable-view) {
z-index: 99999;
:deep(.popUpMask) {
z-index: 99;
}
</style>

11
pagesHome/pages/loadingRetention/loadingRetention.vue

@ -302,7 +302,7 @@
function init(val) {
show.value = true;//
$_initRetentionList({
deliveryId: val
deliveryId: val,
}).then(res => {
show.value = false;//
//
@ -399,11 +399,16 @@
show.value = true;//
console.log('执行了此函数');
if (OrType.value == 1 || OrType.value == 2) { // //
$_retentionScan({
const submitData = {
deliveryId: details.items.id,
barcode: val,
// retentionType: type,
retentionType: type,
}).then(res => {
}
console.log('submitData :>> ', submitData);
$_retentionScan(submitData).then(res => {
show.value = false;//
console.log(res, '添加获取的值============>');

3752
unpackage/dist/dev/app-plus/app-service.js vendored

File diff suppressed because it is too large Load Diff

103
unpackage/dist/dev/app-plus/pagesHome/pages/Retention/Retention.css vendored

@ -225,6 +225,103 @@ uni-view[data-v-f631659b], uni-scroll-view[data-v-f631659b], uni-swiper-item[dat
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.flex{
display: flex;
}
.flex-c-c{
display: flex;
align-items: center;
justify-content: center;
}
.flex-c-sb{
display: flex;
align-items: center;
justify-content: space-between;
}
.flex-c-sa{
display: flex;
align-items: center;
justify-content: space-around;
}
.align-center{
display: flex;
align-items: center;
}
.flex1{
flex: 1;
}
.flexnone{
flex: none;
}
.mt10{
margin-top: 0.3125rem;
}
.mt20{
margin-top: 0.625rem;
}
.ml10{
margin-left: 0.3125rem;
}
.ml20{
margin-left: 0.625rem;
}
.mb10{
margin-bottom: 0.3125rem;
}
.mb20{
margin-bottom: 0.625rem;
}
.mr10{
margin-right: 0.3125rem;
}
.mr20{
margin-right: 0.625rem;
}
.pd10{
padding: 0.3125rem;
}
.pd15{
padding: 0.46875rem;
}
.pd20{
padding: 0.625rem;
}
.w100{
width: 100%;
}
.h100{
height: 100%;
}
.text-center{
text-align: center;
}
.text-start{
text-align: start;
}
.text-end{
text-align: end;
}
.fwb{
font-weight: bold;
}
.rem-1{
font-size: 1rem;
}
.rem-0-8{
font-size: 0.8rem;
}
.rem-0-9{
font-size: 0.9rem;
}
.rem-1-5{
font-size: 1.5rem;
}
.primaryColor{
color: #172e60;
}
.primaryColorIm{
color: #172e60 !important;
}
.butys {
display: flex;
align-items: center;
@ -375,4 +472,10 @@ uni-view[data-v-f631659b], uni-scroll-view[data-v-f631659b], uni-swiper-item[dat
}
.topbox .viewboxs .siz {
font-size: 0.875rem;
}
.button {
padding: 0.625rem 1.25rem;
background: var(--subjectColor);
color: #fff;
border-radius: 0.3125rem;
}

66
unpackage/dist/dev/mp-weixin/api/user.js vendored

@ -30,26 +30,6 @@ function postFindAllAllocationId(loadingObj = {}) {
loadingObj
);
}
function distributionStockupupdateStockArea(data, loadingObj = {}) {
return utils_request.service(
{
url: `logpm-distribution/app/distributionStockup/updateStockArea`,
method: "put",
data
},
loadingObj
);
}
function distributionStockupgetStockupArea(data, loadingObj = {}) {
return utils_request.service(
{
url: `logpm-distribution/app/distributionStockup/getStockupArea`,
method: "post",
data
},
loadingObj
);
}
function distributionStockuppageList(data, loadingObj = {}) {
return utils_request.service(
{
@ -870,6 +850,16 @@ function warehouseRetentionretentionPackageList(data, loadingObj = {}) {
loadingObj
);
}
function warehouseRetentionretentionScanPackage(data, loadingObj = {}) {
return utils_request.service(
{
url: `logpm-warehouse/api/warehouseRetention/retentionScanPackage`,
method: "post",
data
},
loadingObj
);
}
function warehouseUpdownTypedownScanPackage(data, loadingObj = {}) {
return utils_request.service(
{
@ -1260,6 +1250,16 @@ function postZeroStockUpData(data, loadingObj = {}) {
loadingObj
);
}
function postZeroStockUp(data, loadingObj = {}) {
return utils_request.service(
{
url: `logpm-distribution/app/distributionStockup/zeroStockUp`,
method: "post",
data
},
loadingObj
);
}
function getWarehouseTask(data, loadingObj = {}) {
return utils_request.service(
{
@ -1940,6 +1940,26 @@ function postUploadSignPhoto(data, loadingObj = {}) {
loadingObj
);
}
function postAddContractByLoadId(data, loadingObj = {}) {
return utils_request.service(
{
url: `logpm-trunkline/carsLoad/addContractByLoadId`,
method: "post",
data
},
loadingObj
);
}
function postFindFinanceList(data, loadingObj = {}) {
return utils_request.service(
{
url: `logpm-trunkline/carsLoad/findFinanceList`,
method: "post",
data
},
loadingObj
);
}
exports.$_initRetentionList = $_initRetentionList;
exports.$_retentionScan = $_retentionScan;
exports.$_retentionTrayScan = $_retentionTrayScan;
@ -1984,14 +2004,12 @@ exports.deliverywrapIn = deliverywrapIn;
exports.deptTree = deptTree;
exports.dictbizdictionary = dictbizdictionary;
exports.distributionOrderInfoInQuery = distributionOrderInfoInQuery;
exports.distributionStockupgetStockupArea = distributionStockupgetStockupArea;
exports.distributionStockuporderInfo = distributionStockuporderInfo;
exports.distributionStockuporderList = distributionStockuporderList;
exports.distributionStockuppageList = distributionStockuppageList;
exports.distributionStockuppageListClient = distributionStockuppageListClient;
exports.distributionStockupstockupScan = distributionStockupstockupScan;
exports.distributionStockupstockupStockListPackageCode = distributionStockupstockupStockListPackageCode;
exports.distributionStockupupdateStockArea = distributionStockupupdateStockArea;
exports.distributionTrayDetail = distributionTrayDetail;
exports.editPassword = editPassword;
exports.getBillladingList = getBillladingList;
@ -2017,6 +2035,7 @@ exports.pcontractQuestDetailList = pcontractQuestDetailList;
exports.pgetContractList = pgetContractList;
exports.pgetgetMaterialName = pgetgetMaterialName;
exports.postAbnormalTruckLoading = postAbnormalTruckLoading;
exports.postAddContractByLoadId = postAddContractByLoadId;
exports.postArriveCarByLoadId = postArriveCarByLoadId;
exports.postArriveUnloadCarsDetail = postArriveUnloadCarsDetail;
exports.postArriveUnloadPageList = postArriveUnloadPageList;
@ -2031,6 +2050,7 @@ exports.postFindAllAllocationId = postFindAllAllocationId;
exports.postFindAllocationData = postFindAllocationData;
exports.postFindCarsLoadingDetail = postFindCarsLoadingDetail;
exports.postFindCarsLoadingOrderDetail = postFindCarsLoadingOrderDetail;
exports.postFindFinanceList = postFindFinanceList;
exports.postFindLoadZeroList = postFindLoadZeroList;
exports.postFindStockList = postFindStockList;
exports.postFindSyncOldTrayData = postFindSyncOldTrayData;
@ -2058,6 +2078,7 @@ exports.postUnloadTrayAllOne = postUnloadTrayAllOne;
exports.postUploadSignPhoto = postUploadSignPhoto;
exports.postWarehouseTaskAddDataInfo = postWarehouseTaskAddDataInfo;
exports.postWarehouseTaskSelectPackageInfo = postWarehouseTaskSelectPackageInfo;
exports.postZeroStockUp = postZeroStockUp;
exports.postZeroStockUpData = postZeroStockUpData;
exports.postorderUpshelfDetailByAllocationId = postorderUpshelfDetailByAllocationId;
exports.postqueryfindMaterialList = postqueryfindMaterialList;
@ -2084,6 +2105,7 @@ exports.signforwrapIn = signforwrapIn;
exports.stockConfigList = stockConfigList;
exports.updateApiIndicators = updateApiIndicators;
exports.warehouseRetentionretentionPackageList = warehouseRetentionretentionPackageList;
exports.warehouseRetentionretentionScanPackage = warehouseRetentionretentionScanPackage;
exports.warehouseTrayTypedeleteOrderCode = warehouseTrayTypedeleteOrderCode;
exports.warehouseTrayTypedeleteScanOrderPackageCode = warehouseTrayTypedeleteScanOrderPackageCode;
exports.warehouseTrayTypedeleteStockByTrayGoodsId = warehouseTrayTypedeleteStockByTrayGoodsId;

1
unpackage/dist/dev/mp-weixin/app.js vendored

@ -17,6 +17,7 @@ if (!Math) {
"./pages/reportForms/reportForms.js";
"./pagesHome/pages/pickingScan/pickingScan.js";
"./pagesHome/pages/StowageList/StowageList.js";
"./pagesHome/pages/CreateAbnormalWorkOrder/CreateAbnormalWorkOrder.js";
"./pagesHome/pages/StowageListDetails/StowageListDetails.js";
"./pagesHome/pages/RelayScanList/RelayScanList.js";
"./pagesHome/pages/codePlateBracket/codePlateBracket.js";

1
unpackage/dist/dev/mp-weixin/app.json vendored

@ -13,6 +13,7 @@
"pages": [
"pages/pickingScan/pickingScan",
"pages/StowageList/StowageList",
"pages/CreateAbnormalWorkOrder/CreateAbnormalWorkOrder",
"pages/StowageListDetails/StowageListDetails",
"pages/RelayScanList/RelayScanList",
"pages/codePlateBracket/codePlateBracket",

26
unpackage/dist/dev/mp-weixin/common/vendor.js vendored

@ -1286,8 +1286,8 @@ function populateParameters(fromRes, toRes) {
const parameters = {
appId: "__UNI__EB22F37",
appName: "货无忧",
appVersion: "1.1.27",
appVersionCode: 1127,
appVersion: "1.1.30",
appVersionCode: 1130,
appLanguage: getAppLanguage(hostLanguage),
uniCompileVersion: "4.08",
uniRuntimeVersion: "4.08",
@ -1430,8 +1430,8 @@ const getAppBaseInfo = {
hostTheme: theme,
appId: "__UNI__EB22F37",
appName: "货无忧",
appVersion: "1.1.27",
appVersionCode: 1127,
appVersion: "1.1.30",
appVersionCode: 1130,
appLanguage: getAppLanguage(hostLanguage)
}));
}
@ -11854,6 +11854,24 @@ const subPackages = [
}
}
},
{
path: "pages/CreateAbnormalWorkOrder/CreateAbnormalWorkOrder",
style: {
navigationBarTitleText: "配载装车",
enablePullDownRefresh: true,
onReachBottomDistance: 1,
navigationStyle: "custom",
"app-plus": {
animationDuration: 300,
animationType: "zoom-fade-out",
pullToRefresh: {
support: true,
color: "#d3832a",
style: "circle"
}
}
}
},
{
path: "pages/StowageListDetails/StowageListDetails",
style: {

6
unpackage/dist/dev/mp-weixin/compoment/cus-selects-fan/cus-selects-fan.wxss vendored

@ -10,7 +10,7 @@
background-color: #F5F5F6;
background-image: none;
border-radius: 10rpx;
border: 1rpx solid #EEEEEE;
border: 2rpx solid #EEEEEE;
color: #092C4D;
font-size: inherit;
display: flex;
@ -71,7 +71,7 @@
.select_wrap .select_input .icon_arrow .arrow-clear.data-v-7a3666ce {
width: 27rpx;
height: 27rpx;
border: 1rpx solid #c0c4cc;
border: 2rpx solid #c0c4cc;
color: #c0c4cc;
border-radius: 50%;
display: flex;
@ -93,7 +93,7 @@
position: absolute;
top: 40rpx;
left: 0;
border: 1rpx solid #e4e7ed;
border: 2rpx solid #e4e7ed;
border-radius: 4rpx;
background-color: #fff;
box-shadow: 0 2rpx 12rpx 0 rgba(0, 0, 0, 0.1);

12
unpackage/dist/dev/mp-weixin/compoment/tiplist/tiplist.wxss vendored

@ -96,7 +96,7 @@
padding: 10rpx;
margin-right: 10rpx;
box-sizing: border-box;
border: 1rpx solid #e6e6e6;
border: 2rpx solid #e6e6e6;
margin-bottom: 15rpx;
border-radius: 8rpx;
position: relative;
@ -138,7 +138,7 @@
.modtips .inputbx {
margin-top: 30rpx;
margin-bottom: 10rpx;
border: 1rpx solid #092C4D20;
border: 2rpx solid #092C4D20;
padding: 15rpx 30rpx;
padding-left: 20rpx;
display: flex;
@ -161,14 +161,14 @@
left: 50%;
transform: translateX(-50%);
background: #fff;
border: 1rpx solid #eee;
border: 2rpx solid #eee;
width: 100%;
overflow: hidden;
}
.modtips .inputbx .select_content view {
text-align: center;
padding: 20rpx 0;
border-bottom: 1rpx solid #000;
border-bottom: 2rpx solid #000;
}
.modtips .inputbx .select_content view:last-child {
border-bottom: 0;
@ -219,7 +219,7 @@
}
.inpNumList {
margin-bottom: 20rpx;
border-bottom: 1rpx solid #092C4D20;
border-bottom: 2rpx solid #092C4D20;
}
.inpNumList > view {
margin-bottom: 10rpx;
@ -236,6 +236,6 @@
margin-left: 10rpx;
flex: 1;
padding: 5rpx 10rpx;
border: 1rpx solid #afafaf;
border: 2rpx solid #afafaf;
border-radius: 10rpx;
}

43
unpackage/dist/dev/mp-weixin/pages/index/index.js vendored

@ -43,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
console.log(res, "-------------");
console.log("刷新后");
if (res.code == 200) {
getimgcache(res.data[0]);
getimgcache(res.data);
} else {
common_vendor.index.showToast({
title: res.msg,
@ -85,11 +85,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
common_vendor.index.setStorageSync("homerouter", details.tablist);
}
});
async function getimgcache(list) {
async function getimgcache(data) {
let maxarr = [];
if (!list)
if (!data[0])
return;
for (let item of list.children) {
for (let item of data[0].children) {
let arr = {
type: 1,
name: item.name,
@ -110,6 +110,41 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
maxarr.push(arr);
}
details.tablist = maxarr;
const _taskArr = [];
for (let item of data[1].children) {
let arr = {
type: 1,
name: item.name,
minilist: []
};
if (item.children) {
for (let ite of item.children) {
let result = null;
if (ite.source != null) {
result = await utils_cacheimg.getImageCache(ite.source);
}
let obj = {
icon: result,
name: ite.name,
router: ite.path
};
arr.minilist.push(obj);
}
} else {
let result = null;
if (item.source != null) {
result = await utils_cacheimg.getImageCache(item.source);
}
let obj = {
icon: result,
name: item.name,
router: item.path
};
arr.minilist.push(obj);
}
_taskArr.push(arr);
}
common_vendor.index.setStorageSync("taskMenu", _taskArr);
console.log(details.tablist);
}
const { tablist } = common_vendor.toRefs(details);

2
unpackage/dist/dev/mp-weixin/pages/index/index.wxss vendored

@ -39,7 +39,7 @@
font-size: 30rpx;
font-weight: 500;
margin-bottom: 10rpx;
border-bottom: 1rpx solid #EEEEEE;
border-bottom: 2rpx solid #EEEEEE;
padding: 20rpx;
color: #092C4D;
}

2
unpackage/dist/dev/mp-weixin/pages/news/news.wxss vendored

@ -47,7 +47,7 @@
.mabxose .inps {
width: 500rpx;
height: 60rpx;
border: 1rpx solid #cfcfcf;
border: 2rpx solid #cfcfcf;
display: flex;
align-items: center;
justify-content: flex-start;

110
unpackage/dist/dev/mp-weixin/pages/taskList/taskList.js vendored

@ -1,5 +1,15 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_cacheimg = require("../../utils/cacheimg.js");
const api_user = require("../../api/user.js");
require("../../utils/request.js");
require("../../store/index.js");
require("../../utils/utils.js");
require("../../utils/functions.js");
require("../../utils/IDCardVerification.js");
require("../../utils/base64.js");
require("../../config/host.js");
require("../../utils/md5.js");
if (!Array) {
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
const _component_tips = common_vendor.resolveComponent("tips");
@ -14,19 +24,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
setup(__props) {
const tip = common_vendor.ref(null);
let details = common_vendor.reactive({
tablist: [
{
type: 1,
name: "盘点任务",
minilist: [
{
icon: "http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png",
name: "盘点任务",
router: "/pagesTask/pages/dynamicCheck/dynamicCheck"
}
]
}
]
tablist: []
});
function gopathpage(path) {
common_vendor.index.navigateTo({
@ -36,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
common_vendor.onShow(() => {
});
common_vendor.onLoad(() => {
init();
});
common_vendor.onPullDownRefresh(() => {
const timer = setTimeout(() => {
@ -43,6 +42,91 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
clearTimeout(timer);
}, 500);
});
async function init() {
let tabber = common_vendor.index.getStorageSync("taskMenu");
console.log("tabber :>> ", tabber);
if (tabber) {
details.tablist = tabber;
return;
}
let res = await api_user.appMenuroutes({});
console.log(res, "-------------");
console.log("刷新后");
if (res.code == 200) {
getimgcache(res.data);
} else {
common_vendor.index.showToast({
title: res.msg,
icon: "none"
});
}
}
async function getimgcache(data) {
console.log("data :>> ", data);
let maxarr = [];
if (!data[0])
return;
for (let item of data[0].children) {
let arr = {
type: 1,
name: item.name,
minilist: []
};
for (let ite of item.children) {
let result = null;
if (ite.source != null) {
result = await utils_cacheimg.getImageCache(ite.source);
}
let obj = {
icon: result,
name: ite.name,
router: ite.path
};
arr.minilist.push(obj);
}
maxarr.push(arr);
}
common_vendor.index.setStorageSync("homerouter", maxarr);
const _taskArr = [];
for (let item of data[1].children) {
let arr = {
type: 1,
name: item.name,
minilist: []
};
if (item.children) {
for (let ite of item.children) {
console.log("getImageCache(ite.source) :>> ", utils_cacheimg.getImageCache(ite.source));
let result = null;
if (ite.source != null) {
result = await utils_cacheimg.getImageCache(ite.source);
}
let obj = {
icon: result,
name: ite.name,
router: ite.path
};
arr.minilist.push(obj);
}
} else {
console.log("getImageCache(item.source) :>> ", utils_cacheimg.getImageCache(item.source));
let result = null;
if (item.source != null) {
result = await utils_cacheimg.getImageCache(item.source);
}
let obj = {
icon: result,
name: item.name,
router: item.path
};
arr.minilist.push(obj);
}
_taskArr.push(arr);
}
common_vendor.index.setStorageSync("taskMenu", _taskArr);
details.tablist = _taskArr;
console.log(details.tablist);
}
const { tablist } = common_vendor.toRefs(details);
return (_ctx, _cache) => {
return {

12
unpackage/dist/dev/mp-weixin/pages/taskList/taskList.wxss vendored

@ -26,30 +26,28 @@
.mabox {
display: flex;
flex-direction: column;
padding: 20rpx 0;
box-sizing: border-box;
width: 686rpx;
margin: auto;
background-color: #ffffff;
margin-bottom: 20rpx;
margin-bottom: 10rpx;
margin-top: 10rpx;
border-radius: 10rpx;
box-shadow: 0rpx 2rpx 10rpx 0rpx #e2e2e380;
}
.mabox .boxtitl {
font-size: 34rpx;
font-size: 30rpx;
font-weight: 500;
margin-bottom: 10rpx;
border-bottom: 1rpx solid #EEEEEE;
padding: 0rpx 20rpx;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #EEEEEE;
padding: 20rpx;
color: #092C4D;
}
.mabox .minboxlist {
display: flex;
flex-wrap: wrap;
align-items: center;
padding-top: 10rpx;
padding: 10rpx 0;
}
.mabox .minboxlist > view {
width: 25%;

4
unpackage/dist/dev/mp-weixin/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails.wxss vendored

@ -237,7 +237,7 @@
left: -20rpx;
position: absolute;
padding: 10rpx;
border: 1rpx solid #f8544b;
border: 2rpx solid #f8544b;
border-radius: 50%;
}
.abnormalStyle.data-v-6197e305 {
@ -250,7 +250,7 @@
color: #f8544b;
padding: 10rpx;
border-radius: 50%;
border: 1rpx solid #f8544b;
border: 2rpx solid #f8544b;
opacity: 0.6;
}
.uni-table-scroll.data-v-6197e305 {

9
unpackage/dist/dev/mp-weixin/pagesHome/pages/CustomerSign/CustomerSign.js vendored

@ -56,6 +56,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
console.log("op.item :>> ", op.item);
details.items = JSON.parse(op.item);
details.id = JSON.parse(op.item).id;
if (Number(details.items.type) === 2)
details.ImagesRequiredFields.push(
{
key: "photo_1",
isShowTitle: false
}
);
});
common_vendor.onShow(() => {
console.log("onShow");
@ -145,7 +152,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
console.log("res>>>>>", res);
let imglis = [], rearks = "";
if (res.code == 200) {
if (Object.keys(res.data.deliverySignPictures).length !== 0 || res.data.driverRemarks) {
if (Object.keys(res.data.deliverySignPictures).length !== 0) {
details.isChange = true;
imglis = res.data.deliverySignPictures;
details.imgList.forEach((item2, index) => {

10
unpackage/dist/dev/mp-weixin/pagesHome/pages/DownGoods/DownGoods.wxss vendored

@ -38,7 +38,7 @@
}
.tanchuangbg .makinp {
width: 590rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
color: #020B18;
box-sizing: border-box;
margin-bottom: 10rpx;
@ -65,7 +65,7 @@
.tanchuangbg .inputbox .inputscan > input {
width: 440rpx;
height: 64rpx;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092C4D30;
border-radius: 8rpx;
box-sizing: border-box;
font-size: 28rpx;
@ -118,7 +118,7 @@
justify-content: space-between;
font-size: 28rpx;
color: #020B18;
border: 1rpx solid #D3832A;
border: 2rpx solid #D3832A;
padding: 10rpx 20rpx;
box-sizing: border-box;
border-radius: 20rpx;
@ -166,7 +166,7 @@
.tanchuangbg .inputbox .scvbw .scboxitem .items .rksu > view > input {
width: 200rpx;
padding: 0 15rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
}
.tanchuangbg .inputbox .btx {
display: flex;
@ -501,7 +501,7 @@
width: 100%;
bottom: 20rpx;
text-align: center;
border: 1rpx solid #D3832A;
border: 2rpx solid #D3832A;
color: #D3832A;
padding: 15rpx 0;
border-radius: 10rpx;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/DownGoodsType/DownGoodsType.wxss vendored

@ -62,7 +62,7 @@
align-items: center;
justify-content: center;
border-radius: 10rpx;
border: 1rpx solid #FA8C16;
border: 2rpx solid #FA8C16;
color: #FA8C16;
font-size: 28rpx;
margin-bottom: 50rpx;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/LoadingDetails/LoadingDetails.wxss vendored

@ -132,7 +132,7 @@
}
.tabmabx > view {
border-radius: 8rpx;
border: 1rpx solid #EEEEEE;
border: 2rpx solid #EEEEEE;
padding-bottom: -2rpx;
}
.headtop {

4
unpackage/dist/dev/mp-weixin/pagesHome/pages/LoadingScan/LoadingScan.wxss vendored

@ -42,10 +42,10 @@
align-items: center;
justify-content: center;
flex-direction: column;
border-bottom: 1rpx solid #EEEEEE;
border-bottom: 2rpx solid #EEEEEE;
}
.tabbmiax > view:nth-of-type(1) {
border-right: 1rpx solid #EEEEEE;
border-right: 2rpx solid #EEEEEE;
}
.tabbmiax > view > view:nth-of-type(1) {
font-size: 34rpx;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.wxml vendored

File diff suppressed because one or more lines are too long

60
unpackage/dist/dev/mp-weixin/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.wxss vendored

@ -26,7 +26,7 @@
.mabxtop {
position: relative;
width: 684rpx;
background: #FFFFFF;
background: #ffffff;
border-radius: 20rpx;
margin: auto;
margin-top: 20rpx;
@ -61,14 +61,14 @@
.mabxtop > view > view > view:nth-of-type(1) {
font-size: 32rpx;
font-weight: 400;
color: #020B18;
color: #020b18;
word-wrap: break-word;
word-break: break-all;
}
.mabxtop > view > view > view:nth-of-type(2) {
font-size: 28rpx;
font-weight: 400;
color: #90A0AF;
color: #90a0af;
}
.mabxtop .printBtn {
background: #d3832a;
@ -141,7 +141,7 @@
padding: 15rpx 20rpx;
box-sizing: border-box;
padding-top: 30rpx;
border-bottom: 4rpx solid #EEEEEE;
border-bottom: 4rpx solid #eeeeee;
}
.scvmabx .maxboxs > .items .tophd > image {
width: 48rpx;
@ -151,7 +151,7 @@
}
.scvmabx .maxboxs > .items .tophd > view {
font-size: 32rpx;
color: #020B18;
color: #020b18;
font-weight: 400;
word-wrap: break-word;
word-break: break-all;
@ -167,7 +167,7 @@
display: flex;
box-sizing: border-box;
padding: 15rpx 20rpx;
border-bottom: 4rpx solid #EEEEEE;
border-bottom: 4rpx solid #eeeeee;
}
.scvmabx .maxboxs > .items .tophd1 > view {
display: flex;
@ -190,10 +190,10 @@
color: #d3832a;
}
.scvmabx .maxboxs > .items .numbxvie .yish {
color: #1197EB;
color: #1197eb;
}
.scvmabx .maxboxs > .items .numbxvie .weish {
color: #020B18;
color: #020b18;
}
.scvmabx .maxboxs > .items .numbxvie > view {
display: flex;
@ -213,7 +213,7 @@
display: flex;
align-items: center;
justify-content: space-between;
background-color: #FFFFFF;
background-color: #ffffff;
padding: 20rpx 30rpx;
box-sizing: border-box;
position: relative;
@ -244,7 +244,7 @@
width: 100%;
font-size: 28rpx;
font-weight: 400;
color: #092C4D;
color: #092c4d;
margin-bottom: 20rpx;
}
.hedtopt .typto:nth-last-child(1) {
@ -350,13 +350,13 @@
}
.tanchuangbg .tanbx .titlran.data-v-ca2cce65 {
font-size: 32rpx;
color: #092C4D;
color: #092c4d;
margin-bottom: 40rpx;
}
.tanchuangbg .tanbx .textareabx.data-v-ca2cce65 {
width: 560rpx;
height: 240rpx;
background: #F5F5F6;
background: #f5f5f6;
border-radius: 8rpx;
padding: 20rpx 40rpx;
box-sizing: border-box;
@ -384,13 +384,13 @@
font-size: 32rpx;
}
.tanchuangbg .tanbx .btx > .cancel.data-v-ca2cce65 {
background-color: #F5F5F6;
color: #5A6875;
background-color: #f5f5f6;
color: #5a6875;
margin-right: 20rpx;
}
.tanchuangbg .tanbx .btx > .confirm.data-v-ca2cce65 {
background-color: #D3832A;
color: #FFFFFF;
background-color: #d3832a;
color: #ffffff;
}
.tanchuangbg .inputbox.data-v-ca2cce65 {
width: 670rpx;
@ -411,7 +411,7 @@
.tanchuangbg .inputbox .inputscan > input.data-v-ca2cce65 {
width: 440rpx;
height: 64rpx;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092c4d30;
border-radius: 8rpx;
box-sizing: border-box;
font-size: 28rpx;
@ -421,7 +421,7 @@
.tanchuangbg .inputbox .inputscan .scanbt.data-v-ca2cce65 {
width: 128rpx;
height: 64rpx;
background: #D3832A;
background: #d3832a;
border-radius: 8rpx;
opacity: 1;
display: flex;
@ -429,7 +429,7 @@
justify-content: center;
font-size: 30rpx;
font-weight: 400;
color: #FFFFFF;
color: #ffffff;
}
.tanchuangbg .inputbox .scvbw.data-v-ca2cce65 {
width: 100%;
@ -464,12 +464,12 @@
align-items: flex-start;
justify-content: space-between;
font-size: 28rpx;
color: #020B18;
border: 1rpx solid #D3832A;
color: #020b18;
border: 2rpx solid #d3832a;
padding: 10rpx 20rpx;
box-sizing: border-box;
border-radius: 20rpx;
color: #D3832A;
color: #d3832a;
}
.tanchuangbg .inputbox .scvbw .scboxitem .items > .lisbite > .itembox > view.data-v-ca2cce65 {
word-wrap: break-word;
@ -489,10 +489,10 @@
font-size: 28rpx;
}
.tanchuangbg .inputbox .scvbw .scboxitem .items > .type1s > view > view.data-v-ca2cce65:nth-of-type(1) {
color: #90A0AF;
color: #90a0af;
}
.tanchuangbg .inputbox .scvbw .scboxitem .items > .type1s > view > view.data-v-ca2cce65:nth-of-type(2) {
color: #092C4D;
color: #092c4d;
}
.tanchuangbg .inputbox .scvbw .scboxitem .items .rksu.data-v-ca2cce65 {
display: flex;
@ -507,12 +507,12 @@
font-size: 28rpx;
}
.tanchuangbg .inputbox .scvbw .scboxitem .items .rksu > view > view.data-v-ca2cce65:nth-of-type(1) {
color: #90A0AF;
color: #90a0af;
}
.tanchuangbg .inputbox .scvbw .scboxitem .items .rksu > view > input.data-v-ca2cce65 {
width: 200rpx;
padding: 0 15rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
}
.tanchuangbg .inputbox .btx.data-v-ca2cce65 {
display: flex;
@ -530,11 +530,11 @@
font-size: 28rpx;
}
.tanchuangbg .inputbox .btx > .cancel.data-v-ca2cce65 {
background-color: #F5F5F6;
color: #5A6875;
background-color: #f5f5f6;
color: #5a6875;
margin-right: 20rpx;
}
.tanchuangbg .inputbox .btx > .confirm.data-v-ca2cce65 {
background-color: #D3832A;
color: #FFFFFF;
background-color: #d3832a;
color: #ffffff;
}

8
unpackage/dist/dev/mp-weixin/pagesHome/pages/PeopleScanUp/PeopleScanUp.wxss vendored

@ -38,7 +38,7 @@
}
.tanchuangbg .makinp.data-v-7888e346 {
width: 590rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
color: #020B18;
box-sizing: border-box;
margin-bottom: 10rpx;
@ -65,7 +65,7 @@
.tanchuangbg .inputbox .inputscan > input.data-v-7888e346 {
width: 440rpx;
height: 64rpx;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092C4D30;
border-radius: 8rpx;
box-sizing: border-box;
font-size: 28rpx;
@ -116,7 +116,7 @@
justify-content: space-between;
font-size: 28rpx;
color: #020B18;
border: 1rpx solid #D3832A;
border: 2rpx solid #D3832A;
padding: 10rpx 20rpx;
box-sizing: border-box;
border-radius: 20rpx;
@ -169,7 +169,7 @@
.tanchuangbg .inputbox .scvbw .scboxitem .items .rksu > view > input.data-v-7888e346 {
width: 200rpx;
padding: 0 15rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
}
.tanchuangbg .inputbox .btx.data-v-7888e346 {
display: flex;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/PeopleScanUpType/PeopleScanUpType.wxss vendored

@ -59,7 +59,7 @@
align-items: center;
justify-content: center;
border-radius: 10rpx;
border: 1rpx solid #FA8C16;
border: 2rpx solid #FA8C16;
color: #FA8C16;
font-size: 28rpx;
margin-bottom: 50rpx;

6
unpackage/dist/dev/mp-weixin/pagesHome/pages/PeopleSortingDetail/PeopleSortingDetail.wxss vendored

@ -175,7 +175,7 @@
.tanchuangbg .inputbox .inputscan > input.data-v-e9f42dec {
width: 440rpx;
height: 64rpx;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092C4D30;
border-radius: 8rpx;
box-sizing: border-box;
font-size: 28rpx;
@ -229,7 +229,7 @@
justify-content: space-between;
font-size: 28rpx;
color: #020B18;
border: 1rpx solid #D3832A;
border: 2rpx solid #D3832A;
padding: 10rpx 20rpx;
box-sizing: border-box;
border-radius: 20rpx;
@ -276,7 +276,7 @@
.tanchuangbg .inputbox .scvbw .scboxitem .items .rksu > view > input.data-v-e9f42dec {
width: 200rpx;
padding: 0 15rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
}
.tanchuangbg .inputbox .btx.data-v-e9f42dec {
display: flex;

87
unpackage/dist/dev/mp-weixin/pagesHome/pages/PickingScanList/PickingScanList.js vendored

@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "PickingScanList",
setup(__props) {
common_vendor.storeToRefs(store_useSystemSettingsStore.useSystemSettingsStore());
const { userInfo } = common_vendor.storeToRefs(store_uaeUserStore.useUserStore());
common_vendor.storeToRefs(store_uaeUserStore.useUserStore());
const tiplists = common_vendor.ref(null);
const basicContainer = common_vendor.ref(null);
const option = {
@ -39,8 +39,16 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
authbuts: common_vendor.index.getStorageSync("authbuts"),
stockupArea: "",
/** 搜索框的值 */
searchValue: ""
searchValue: "",
/** 备货库位信息 */
stockUpStorageInfo: {
/** 备货库位ID */
stockupAllocationId: "",
/** 备货库位名称 */
stockupAllocationName: ""
}
});
const tip = common_vendor.ref(null);
common_vendor.onLoad((op) => {
details.id = op.id;
details.stockupArea = op.stockupArea;
@ -49,56 +57,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
await common_vendor.nextTick$1();
basicContainer.value.startPullDownRefresh();
});
async function showlist() {
let list = [];
const user = userInfo.value;
let data = {
userId: user.user_id
};
let res = await api_user.distributionStockupgetStockupArea(data);
console.log(res);
if (res.code == 200) {
res.data.map((item) => {
list.push(item.headline);
});
}
tiplists.value.setdetails({
title: "请选择备货区域",
isshow: true,
tipstate: 2,
list,
checklist: [],
inputtext: "",
confirmTxt: "确认选择",
isonecheck: true,
success: async (deta) => {
if (deta.checklist.length == 0) {
common_vendor.index.showToast({
title: "请选择备货区域",
icon: "none"
});
return;
}
let data2 = {
type: 2,
stockupId: details.id,
stockupAreaId: res.data[deta.checklist[0]].id,
stockupArea: res.data[deta.checklist[0]].headline
};
let response = await api_user.distributionStockupupdateStockArea(data2);
if (response.code == 200) {
basicContainer.value.startPullDownRefresh();
}
tiplists.value.setdetails({ isshow: false });
},
cancel: (details2) => {
tiplists.value.setdetails({ isshow: false });
},
close: (details2) => {
tiplists.value.setdetails({ isshow: false });
}
});
}
async function initpage() {
let data = {
stockupId: details.id
@ -117,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}
function goCustomerOrdersDetails(item) {
common_vendor.index.navigateTo({
url: "/pagesHome/pages/StockUplist/StockUplist?item=" + JSON.stringify(item) + "&id=" + item.reservationId + "&stockupId=" + details.id
url: "/pagesHome/pages/StockUplist/StockUplist?item=" + JSON.stringify(item) + "&id=" + item.reservationId + "&stockupId=" + details.id + "&stockupAllocationId=" + details.stockUpStorageInfo.stockupAllocationId + "&stockupAllocationName=" + details.stockUpStorageInfo.stockupAllocationName
});
}
const { items, datalist } = common_vendor.toRefs(details);
@ -126,14 +84,13 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(common_vendor.unref(items).stockupArea),
b: common_vendor.o(showlist),
c: common_vendor.t(common_vendor.unref(items).stockupCode),
d: common_vendor.t(common_vendor.unref(items).stockupStatusStr),
e: common_vendor.t(common_vendor.unref(items).typeServiceStr),
f: common_vendor.unref(datalist).length !== 0
a: common_vendor.t(common_vendor.unref(details).stockUpStorageInfo.stockupAllocationName),
b: common_vendor.t(common_vendor.unref(items).stockupCode),
c: common_vendor.t(common_vendor.unref(items).stockupStatusStr),
d: common_vendor.t(common_vendor.unref(items).typeServiceStr),
e: common_vendor.unref(datalist).length !== 0
}, common_vendor.unref(datalist).length !== 0 ? {
g: common_vendor.f(common_vendor.unref(datalist), (item, k0, i0) => {
f: common_vendor.f(common_vendor.unref(datalist), (item, k0, i0) => {
return {
a: common_vendor.t(item.customer),
b: common_vendor.t(item.stockStatusName),
@ -148,17 +105,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
};
})
} : {}, {
h: common_vendor.sr(basicContainer, "5628bd90-0", {
g: common_vendor.sr(basicContainer, "5628bd90-0", {
"k": "basicContainer"
}),
i: common_vendor.p({
h: common_vendor.p({
option,
leftClick: backPreviousPage
}),
j: common_vendor.sr(tiplists, "5628bd90-1", {
i: common_vendor.sr(tiplists, "5628bd90-1", {
"k": "tiplists"
}),
k: common_vendor.sr("tips", "5628bd90-2")
j: common_vendor.sr(tip, "5628bd90-2", {
"k": "tip"
})
});
};
}

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/PickingScanList/PickingScanList.wxml vendored

@ -1 +1 @@
<basic-container wx:if="{{i}}" class="r data-v-5628bd90" u-s="{{['head','body']}}" u-r="basicContainer" u-i="5628bd90-0" bind:__l="__l" u-p="{{i}}"><view class="hedtopt data-v-5628bd90" slot="head"><view class="typto data-v-5628bd90"><view class="data-v-5628bd90">备货区域:<text class="vibx data-v-5628bd90" bindtap="{{b}}">{{a}}</text></view></view><view class="typto data-v-5628bd90"><view class="data-v-5628bd90">备货编码:{{c}}</view></view><view class="typto data-v-5628bd90"><view class="data-v-5628bd90">备货状态:{{d}}</view><view class="data-v-5628bd90">备货类型:{{e}}</view></view></view><scroll-view class="scoolv data-v-5628bd90" scroll-y="true" slot="body"><view class="minbx data-v-5628bd90"><block wx:if="{{f}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="j" class="its data-v-5628bd90" bindtap="{{item.i}}"><view class="titl data-v-5628bd90"> 客户:{{item.a}}</view><view class="contsx data-v-5628bd90"><view class="content data-v-5628bd90"><view class="data-v-5628bd90"><text class="data-v-5628bd90" style="color:#90A0AF">备货是否完成:</text>{{item.b}}</view><view class="data-v-5628bd90"><text class="data-v-5628bd90" style="color:#90A0AF">备货类型:</text>{{item.c}}</view></view><view class="content mt10 data-v-5628bd90"><view class="data-v-5628bd90"><text class="data-v-5628bd90" style="color:#90A0AF">商场名称:</text>{{item.d}}</view></view><view class="total mt10 data-v-5628bd90"><view class="data-v-5628bd90"><view class="data-v-5628bd90">订单总数</view><view class="data-v-5628bd90">{{item.e}}</view></view><view class="data-v-5628bd90"><view class="data-v-5628bd90">库存品数量</view><view class="data-v-5628bd90">{{item.f}}</view></view><view class="data-v-5628bd90"><view class="data-v-5628bd90">计划件数</view><view class="data-v-5628bd90">{{item.g}}</view></view><view class="data-v-5628bd90"><view class="data-v-5628bd90">已备数量</view><view class="data-v-5628bd90">{{item.h}}</view></view></view></view></view></block></view></scroll-view></basic-container><tiplist class="r data-v-5628bd90" u-r="tiplists" u-i="5628bd90-1" bind:__l="__l"></tiplist><tips class="r data-v-5628bd90" u-r="tips" u-i="5628bd90-2" bind:__l="__l"></tips>
<basic-container wx:if="{{h}}" class="r data-v-5628bd90" u-s="{{['head','body']}}" u-r="basicContainer" u-i="5628bd90-0" bind:__l="__l" u-p="{{h}}"><view class="hedtopt data-v-5628bd90" slot="head"><view class="typto data-v-5628bd90"><view class="align-center data-v-5628bd90"><text class="data-v-5628bd90"> 备货区域: </text><text class="vibx data-v-5628bd90">{{a}}</text></view></view><view class="typto data-v-5628bd90"><view class="data-v-5628bd90">备货编码:{{b}}</view></view><view class="typto data-v-5628bd90"><view class="data-v-5628bd90">备货状态:{{c}}</view><view class="data-v-5628bd90">备货类型:{{d}}</view></view></view><scroll-view class="scoolv data-v-5628bd90" scroll-y="true" slot="body"><view class="minbx data-v-5628bd90"><block wx:if="{{e}}"><view wx:for="{{f}}" wx:for-item="item" wx:key="j" class="its data-v-5628bd90" bindtap="{{item.i}}"><view class="titl data-v-5628bd90"> 客户:{{item.a}}</view><view class="contsx data-v-5628bd90"><view class="content data-v-5628bd90"><view class="data-v-5628bd90"><text class="data-v-5628bd90" style="color:#90A0AF">备货是否完成:</text>{{item.b}}</view><view class="data-v-5628bd90"><text class="data-v-5628bd90" style="color:#90A0AF">备货类型:</text>{{item.c}}</view></view><view class="content mt10 data-v-5628bd90"><view class="data-v-5628bd90"><text class="data-v-5628bd90" style="color:#90A0AF">商场名称:</text>{{item.d}}</view></view><view class="total mt10 data-v-5628bd90"><view class="data-v-5628bd90"><view class="data-v-5628bd90">订单总数</view><view class="data-v-5628bd90">{{item.e}}</view></view><view class="data-v-5628bd90"><view class="data-v-5628bd90">库存品数量</view><view class="data-v-5628bd90">{{item.f}}</view></view><view class="data-v-5628bd90"><view class="data-v-5628bd90">计划件数</view><view class="data-v-5628bd90">{{item.g}}</view></view><view class="data-v-5628bd90"><view class="data-v-5628bd90">已备数量</view><view class="data-v-5628bd90">{{item.h}}</view></view></view></view></view></block></view></scroll-view></basic-container><tiplist class="r data-v-5628bd90" u-r="tiplists" u-i="5628bd90-1" bind:__l="__l"></tiplist><tips class="r data-v-5628bd90" u-r="tip" u-i="5628bd90-2" bind:__l="__l"></tips>

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/PickingScanList/PickingScanList.wxss vendored

@ -261,7 +261,7 @@
height: 60rpx;
padding: 10rpx;
box-sizing: border-box;
border: 1rpx solid #90A0AF;
border: 2rpx solid #90A0AF;
word-wrap: break-word;
word-break: break-all;
}

18
unpackage/dist/dev/mp-weixin/pagesHome/pages/Retention/Retention.js vendored

@ -54,6 +54,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
details.codelist = details.codelist.concat(res.data.records);
}
}
async function scandata() {
let data = {
orderPackageCode: details.scancode
};
let res = await api_user.warehouseRetentionretentionScanPackage(data);
if (res.code == 200) {
common_vendor.index.showToast({
title: "扫码成功",
icon: "none"
});
init();
}
}
const {
codelist
} = common_vendor.toRefs(details);
@ -68,7 +81,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
autoBack: true,
leftIconSize: "35"
}),
b: common_vendor.f(common_vendor.unref(codelist), (item, index, i0) => {
b: details.scancode,
c: common_vendor.o(($event) => details.scancode = $event.detail.value),
d: common_vendor.o(scandata),
e: common_vendor.f(common_vendor.unref(codelist), (item, index, i0) => {
return {
a: common_vendor.t(index + 1),
b: common_vendor.t(item.retentionCarNo),

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/Retention/Retention.wxml vendored

@ -1 +1 @@
<u-navbar wx:if="{{a}}" u-i="2a0d9e02-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="topbox"><view class="scanbox"><image src="/pagesHome/static/miniqc.png"></image><input placeholder="扫描或输入包条码"/></view></view><scroll-view class="scvm" scroll-y="true"><view wx:for="{{b}}" wx:for-item="item" class="itembox"><view class="topon1"><view>{{item.a}}</view><view></view></view><view class="topon2"><image src="/pagesHome/static/checi.png"></image><view>滞留车次:{{item.b}}</view></view><view class="topon2" catchtap="{{item.d}}"><image src="/pagesHome/static/checi.png"></image><view>订单号:{{item.c}}</view></view><view class="topon2"><image src="/pagesHome/static/checi.png"></image><view>包件码:{{item.e}}</view></view></view></scroll-view>
<u-navbar wx:if="{{a}}" u-i="2a0d9e02-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="topbox"><view class="scanbox"><image src="/pagesHome/static/miniqc.png"></image><input class="flex1" placeholder="扫描或输入包条码" value="{{b}}" bindinput="{{c}}"/><view class="button" bindtap="{{d}}">滞 留</view></view></view><scroll-view class="scvm" scroll-y="true"><view wx:for="{{e}}" wx:for-item="item" class="itembox"><view class="topon1"><view>{{item.a}}</view><view></view></view><view class="topon2"><image src="/pagesHome/static/checi.png"></image><view>滞留车次:{{item.b}}</view></view><view class="topon2" catchtap="{{item.d}}"><image src="/pagesHome/static/checi.png"></image><view>订单号:{{item.c}}</view></view><view class="topon2"><image src="/pagesHome/static/checi.png"></image><view>包件码:{{item.e}}</view></view></view></scroll-view>

103
unpackage/dist/dev/mp-weixin/pagesHome/pages/Retention/Retention.wxss vendored

@ -23,6 +23,103 @@
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.flex{
display: flex;
}
.flex-c-c{
display: flex;
align-items: center;
justify-content: center;
}
.flex-c-sb{
display: flex;
align-items: center;
justify-content: space-between;
}
.flex-c-sa{
display: flex;
align-items: center;
justify-content: space-around;
}
.align-center{
display: flex;
align-items: center;
}
.flex1{
flex: 1;
}
.flexnone{
flex: none;
}
.mt10{
margin-top: 10rpx;
}
.mt20{
margin-top: 20rpx;
}
.ml10{
margin-left: 10rpx;
}
.ml20{
margin-left: 20rpx;
}
.mb10{
margin-bottom: 10rpx;
}
.mb20{
margin-bottom: 20rpx;
}
.mr10{
margin-right: 10rpx;
}
.mr20{
margin-right: 20rpx;
}
.pd10{
padding: 10rpx;
}
.pd15{
padding: 15rpx;
}
.pd20{
padding: 20rpx;
}
.w100{
width: 100%;
}
.h100{
height: 100%;
}
.text-center{
text-align: center;
}
.text-start{
text-align: start;
}
.text-end{
text-align: end;
}
.fwb{
font-weight: bold;
}
.rem-1{
font-size: 1rem;
}
.rem-0-8{
font-size: 0.8rem;
}
.rem-0-9{
font-size: 0.9rem;
}
.rem-1-5{
font-size: 1.5rem;
}
.primaryColor{
color: #172e60;
}
.primaryColorIm{
color: #172e60 !important;
}
.butys {
display: flex;
align-items: center;
@ -173,4 +270,10 @@
}
.topbox .viewboxs .siz {
font-size: 28rpx;
}
.button {
padding: 20rpx 40rpx;
background: var(--subjectColor);
color: #fff;
border-radius: 10rpx;
}

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/ScanUp/ScanUp.wxss vendored

@ -288,7 +288,7 @@
width: 100%;
bottom: 20rpx;
text-align: center;
border: 1rpx solid #D3832A;
border: 2rpx solid #D3832A;
color: #D3832A;
padding: 15rpx 0;
border-radius: 10rpx;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/ScanUpType/ScanUpType.wxss vendored

@ -59,7 +59,7 @@
align-items: center;
justify-content: center;
border-radius: 10rpx;
border: 1rpx solid #FA8C16;
border: 2rpx solid #FA8C16;
color: #FA8C16;
font-size: 28rpx;
margin-bottom: 50rpx;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/SelfPickupDetails/SelfPickupDetails.wxss vendored

@ -131,7 +131,7 @@
}
.tabmabx > view {
border-radius: 8rpx;
border: 1rpx solid #EEEEEE;
border: 2rpx solid #EEEEEE;
padding-bottom: -2rpx;
}
.headtop {

4
unpackage/dist/dev/mp-weixin/pagesHome/pages/SetPrice/SetPrice.wxss vendored

@ -155,7 +155,7 @@
font-size: 28rpx;
font-weight: 400;
color: #8D97A3;
border-right: 1rpx solid #8D97A3;
border-right: 2rpx solid #8D97A3;
padding-right: 12rpx;
}
.scvs .maboxsw .itemboxs .topdivs > view > view:nth-of-type(3) {
@ -180,7 +180,7 @@
.scvs .maboxsw .itemboxs .orderlists > .minitem {
display: flex;
flex-direction: column;
border-bottom: 1rpx solid #EEEEEE;
border-bottom: 2rpx solid #EEEEEE;
padding-bottom: 30rpx;
padding-top: 20rpx;
}

4
unpackage/dist/dev/mp-weixin/pagesHome/pages/SignDetailScan/SignDetailScan.wxss vendored

@ -67,7 +67,7 @@
flex-direction: column;
align-items: center;
box-sizing: border-box;
border-bottom: 1rpx solid #ebebeb;
border-bottom: 2rpx solid #ebebeb;
margin-bottom: 20rpx;
padding-bottom: 10rpx;
}
@ -241,7 +241,7 @@
}
.tabmabx > view {
border-radius: 8rpx;
border: 1rpx solid #EEEEEE;
border: 2rpx solid #EEEEEE;
padding-bottom: -2rpx;
}
.headtop {

18
unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.js vendored

@ -63,12 +63,18 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
isChooseStorage: false,
/** 被选中的 */
chooseItem: {},
scrollHeight: ""
scrollHeight: "",
/** 备货库位ID */
stockupAllocationId: "",
/** 备货库位名称 */
stockupAllocationName: ""
});
common_vendor.onLoad((op) => {
console.log("op :>> ", op);
details.reservationId = op.id;
details.stockupId = op.stockupId;
details.stockupAllocationId = op.stockupAllocationId;
details.stockupAllocationName = op.stockupAllocationName;
details.items = JSON.parse(op.item);
const _tts = ["定制品拣货", "库存品拣货", "零担拣货"];
utils.ttsspke(_tts[details.orderStatus - 1]);
@ -123,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}
function godetails(item) {
common_vendor.index.navigateTo({
url: "/pagesHome/pages/StockUplistScandetails/StockUplistScandetails?stockArticleId=" + (item.stockArticleId || "") + "&orderStatus=" + details.orderStatus + "&reservationId=" + details.reservationId + "&allocation=" + item.allocation + "&pallet=" + item.pallet + "&orderCode=" + item.orderCode + "&stockupId=" + details.stockupId + "&allocationId=" + item.allocationId + "&typeService=" + details.items.typeService + "&status=" + (item.completeStact ? "1" : "0")
url: "/pagesHome/pages/StockUplistScandetails/StockUplistScandetails?stockArticleId=" + (item.stockArticleId || "") + "&orderStatus=" + details.orderStatus + "&reservationId=" + details.reservationId + "&allocation=" + item.allocation + "&pallet=" + item.pallet + "&orderCode=" + item.orderCode + "&stockupId=" + details.stockupId + "&allocationId=" + item.allocationId + "&typeService=" + details.items.typeService + "&status=" + (item.completeStact ? "1" : "0") + "&stockupAllocationId=" + details.stockupAllocationId + "&stockupAllocationName=" + details.stockupAllocationName
});
}
async function ckscanningCode(item) {
@ -157,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
console.log("_allocationList :>> ", _allocationList);
if (_allocationList.length === 1) {
return common_vendor.index.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&typeService=" + details.items.typeService + "&allocationId=" + item.allocationList[0].id + "&positionCode=" + item.allocationList[0].name + "&mallName=" + details.items.mallName
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&typeService=" + details.items.typeService + "&allocationId=" + item.allocationList[0].id + "&positionCode=" + item.allocationList[0].name + "&mallName=" + details.items.mallName + "&stockupAllocationId=" + details.stockupAllocationId + "&stockupAllocationName=" + details.stockupAllocationName
});
}
details.isChooseStorage = true;
@ -182,7 +188,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
console.log("deta :>> ", deta);
const _index = deta.checklist[0];
common_vendor.index.navigateTo({
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&typeService=" + details.items.typeService + "&allocationId=" + item.allocationList[_index].id + "&positionCode=" + item.allocationList[_index].name + "&mallName=" + details.items.mallName
url: "/pagesHome/pages/setbarcode/setbarcode?item=" + JSON.stringify(item) + "&reservationId=" + details.reservationId + "&goodsAreaName=" + details.user.goodsAreaName + "&stockupId=" + details.stockupId + "&typeService=" + details.items.typeService + "&allocationId=" + item.allocationList[_index].id + "&positionCode=" + item.allocationList[_index].name + "&mallName=" + details.items.mallName + "&stockupAllocationId=" + details.stockupAllocationId + "&stockupAllocationName=" + details.stockupAllocationName
});
details.isChooseStorage = false;
tiplists.value.setdetails({ isshow: false });
@ -205,7 +211,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
stockupId: details.stockupId,
orderCode: item.orderCode,
stockArticleId: item.stockArticleId,
reservationId: details.reservationId
reservationId: details.reservationId,
stockupAllocationId: details.stockupAllocationId,
stockupAllocationName: details.stockupAllocationName
})
});
};

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplist/StockUplist.wxss vendored

@ -68,7 +68,7 @@
flex-direction: column;
align-items: center;
box-sizing: border-box;
border-bottom: 1rpx solid #ebebeb;
border-bottom: 2rpx solid #ebebeb;
margin-bottom: 20rpx;
}
.scvew .mabx > .item .toptitl.data-v-64d8d9ce {

12
unpackage/dist/dev/mp-weixin/pagesHome/pages/StockUplistScandetails/StockUplistScandetails.js vendored

@ -59,7 +59,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
isscan: false,
allocationId: "",
status: "",
typeService: ""
typeService: "",
/** 备货库位ID */
stockupAllocationId: "",
/** 备货库位名称 */
stockupAllocationName: ""
});
const tiplists = common_vendor.ref(null);
common_vendor.onLoad((op) => {
@ -73,6 +77,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
details.pallet = op.pallet;
details.orderCode = op.orderCode;
details.typeService = op.typeService;
details.stockupAllocationId = op.stockupAllocationId;
details.stockupAllocationName = op.stockupAllocationName;
});
common_vendor.onShow(() => {
const timer = setTimeout(() => {
@ -152,7 +158,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
reservationId: details.reservationId,
allocationId: details.allocationId,
stockupId: details.stockupId,
typeService: details.typeService
typeService: details.typeService,
stockupAllocationId: details.stockupAllocationId,
stockupAllocationName: details.stockupAllocationName
};
let res = await api_user.distributionStockupstockupScan(data);
console.log(res);

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryDetail/inventoryDetail.wxss vendored

@ -170,7 +170,7 @@
}
.headtop > view:nth-of-type(1) {
width: 540rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
padding: 10rpx 20rpx;
box-sizing: border-box;
}

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryType/inventoryType.wxss vendored

@ -59,7 +59,7 @@
align-items: center;
justify-content: center;
border-radius: 10rpx;
border: 1rpx solid #FA8C16;
border: 2rpx solid #FA8C16;
color: #FA8C16;
font-size: 28rpx;
margin-bottom: 50rpx;

10
unpackage/dist/dev/mp-weixin/pagesHome/pages/inventoryenter/inventoryenter.wxss vendored

@ -26,7 +26,7 @@
.borinut {
padding: 2rpx 10rpx;
padding-left: 1rpx;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092C4D30;
}
.headtop {
width: 684rpx;
@ -331,7 +331,7 @@
display: flex;
flex-direction: column;
align-items: flex-end;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092C4D30;
margin-top: 30rpx;
font-size: 28rpx;
color: #092C4D;
@ -383,7 +383,7 @@
.tanchuangbg .inputbox .inputscan > input {
width: 440rpx;
height: 64rpx;
border: 1rpx solid #092C4D30;
border: 2rpx solid #092C4D30;
border-radius: 8rpx;
box-sizing: border-box;
font-size: 28rpx;
@ -438,7 +438,7 @@
justify-content: space-between;
font-size: 28rpx;
color: #020B18;
border: 1rpx solid #D3832A;
border: 2rpx solid #D3832A;
padding: 10rpx 20rpx;
box-sizing: border-box;
border-radius: 20rpx;
@ -495,7 +495,7 @@
width: 200rpx;
padding: 0 15rpx;
font-size: 28rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
}
.tanchuangbg .inputbox .btx {
display: flex;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/lnventorysortinglist/lnventorysortinglist.wxss vendored

@ -82,7 +82,7 @@
}
.headtop > view:nth-of-type(1) {
width: 540rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
padding: 10rpx 20rpx;
box-sizing: border-box;
}

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/pickingScan/pickingScan.wxss vendored

@ -67,7 +67,7 @@
display: flex;
flex-direction: column;
box-sizing: border-box;
border-bottom: 1rpx solid #ebebeb;
border-bottom: 2rpx solid #ebebeb;
padding-bottom: 30rpx;
background-color: #ffffff;
margin-bottom: 20rpx;

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/scansorting/scansorting.wxss vendored

@ -83,7 +83,7 @@
}
.headtop > view:nth-of-type(1) {
width: 540rpx;
border: 1rpx solid #00000020;
border: 2rpx solid #00000020;
padding: 10rpx 20rpx;
box-sizing: border-box;
}

8
unpackage/dist/dev/mp-weixin/pagesHome/pages/setbarcode/setbarcode.js vendored

@ -48,7 +48,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
realityNum: 0,
mallName: "",
/** 是否为扫描后进行刷新 */
isscan: true
isscan: true,
/** 备货库位ID */
stockupAllocationId: "",
/** 备货库位名称 */
stockupAllocationName: ""
});
const tips = common_vendor.ref(null);
const basicContainer = common_vendor.ref(null);
@ -71,6 +75,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
details.positionCode = op.positionCode;
details.typeService = op.typeService;
details.mallName = op.mallName;
details.stockupAllocationId = op.stockupAllocationId;
details.stockupAllocationName = op.stockupAllocationName;
if (op.completeStact == "true") {
details.completeStact = true;
}

2
unpackage/dist/dev/mp-weixin/pagesHome/pages/signOrderScan/signOrderScan.wxss vendored

@ -44,7 +44,7 @@
display: flex;
align-items: flex-start;
justify-content: space-between;
border-top: 1rpx solid #00000010;
border-top: 2rpx solid #00000010;
padding: 20rpx 0;
box-sizing: border-box;
font-size: 28rpx;

4
unpackage/dist/dev/mp-weixin/pagesHome/pages/signinScan/signinScan.wxss vendored

@ -42,10 +42,10 @@
align-items: center;
justify-content: center;
flex-direction: column;
border-bottom: 1rpx solid #EEEEEE;
border-bottom: 2rpx solid #EEEEEE;
}
.tabbmiax > view:nth-of-type(1) {
border-right: 1rpx solid #EEEEEE;
border-right: 2rpx solid #EEEEEE;
}
.tabbmiax > view > view:nth-of-type(1) {
font-size: 34rpx;

5
unpackage/dist/dev/mp-weixin/project.config.json vendored

@ -13,12 +13,13 @@
"bigPackageSizeSupport": true,
"ignoreDevUnusedFiles": false,
"lazyCodeLoading": "requiredComponents",
"enhance": true,
"packNpmRelationList": [],
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enhance": true
}
},
"compileType": "miniprogram",
"libVersion": "3.1.2",

42
unpackage/dist/dev/mp-weixin/utils/utils.js vendored

@ -102,6 +102,48 @@ const utils = {
/** 是否为数字 */
isNumber(content) {
return !isNaN(parseFloat(content)) && isFinite(content);
},
/** 获取类型 */
getObjType(obj) {
var toString = Object.prototype.toString;
var map = {
"[object Boolean]": "boolean",
"[object Number]": "number",
"[object String]": "string",
"[object Function]": "function",
"[object Array]": "array",
"[object Date]": "date",
"[object RegExp]": "regExp",
"[object Undefined]": "undefined",
"[object Null]": "null",
"[object Object]": "object"
};
if (obj instanceof Element) {
return "element";
}
return map[toString.call(obj)];
},
/** 深拷贝 */
deepClone(data) {
var type = this.getObjType(data);
var obj;
if (type === "array") {
obj = [];
} else if (type === "object") {
obj = {};
} else {
return data;
}
if (type === "array") {
for (var i = 0, len = data.length; i < len; i++) {
obj.push(this.deepClone(data[i]));
}
} else if (type === "object") {
for (var key in data) {
obj[key] = this.deepClone(data[key]);
}
}
return obj;
}
};
exports.utils = utils;

1049
utils/utils.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save