diff --git a/api/user.js b/api/user.js index 2382c07..14d282a 100644 --- a/api/user.js +++ b/api/user.js @@ -127,6 +127,23 @@ export function distributionStockuppageList(data, loadingObj = {}, canCancel = f canCancel ); } + +/** + * 新 -- 备货信息列表 + * @param {Object} data + */ +export function newDistributionStockuppageList(data, loadingObj = {}, canCancel = false) { + + return request({ + url: `logpm-distribution/app/distributionStockup/newPageList`, + method: "post", + data + }, + loadingObj, + canCancel + ); +} + /** * 客户信息列表 * @param {Object} data @@ -142,6 +159,23 @@ export function distributionStockuppageListClient(data, loadingObj = {}, canCanc canCancel ); } + +/** + * 新 -- 客户信息列表 + * @param {Object} data + */ +export function distributionStockupNewClientDetail(data, loadingObj = {}, canCancel = true) { + + return request({ + url: `logpm-distribution/app/distributionStockup//newClientDetail`, + method: "post", + data + }, + loadingObj, + canCancel + ); +} + /** * 备货客户列表 * @param {Object} data @@ -157,6 +191,23 @@ export function distributionStockuporderList(data, loadingObj = {}, canCancel = canCancel ); } + +/** + * 新 -- 备货客户列表 + * @param {Object} data + */ +export function distributionStockupNewOrderList(data, loadingObj = {}, canCancel = true) { + + return request({ + url: `logpm-distribution/app/distributionStockup/newOrderList`, + method: "post", + data + }, + loadingObj, + canCancel + ); +} + /** * 备货客户订单明细 * @param {Object} data @@ -172,6 +223,24 @@ export function distributionStockuporderInfo(data, loadingObj = {}, canCancel = canCancel ); } + + +/** + * 新 -- 备货客户订单明细 + * @param {Object} data + */ +export function distributionStockupPackageDetail(data, loadingObj = {}, canCancel = true) { + + return request({ + url: `logpm-distribution/app/distributionStockup/packageDetail`, + method: "post", + data + }, + loadingObj, + canCancel + ); +} + /** * 备货扫码 * @param {Object} data @@ -355,6 +424,19 @@ export function distributionStockupstockupStockListPackageCode(data, loadingObj canCancel ); } + +/** 新 -- 库存品备货生成包条 */ +export function postInventoryPackageConfig(data = {}, loadingObj = {}, canCancel = false) { + return request({ + url: `logpm-distribution/app/distributionStockup/inventoryPackageConfig`, + method: "post", + data + }, + loadingObj, + canCancel + ); +} + /** * 装车扫描 * @param {Object} data @@ -3861,7 +3943,7 @@ export function getOrderPackageDetail(orderPackageCode, loadingObj = {}, canCanc ); } -/** 根据包条码查询包条详情 */ +/** 上传配载图片 -- 装车前 */ export function postUploadLoadingPhoto(data, loadingObj = {}, canCancel = false) { return request({ url: `logpm-trunkline/carsLoad/uploadLoadingPhoto`, @@ -3873,6 +3955,35 @@ export function postUploadLoadingPhoto(data, loadingObj = {}, canCancel = false) ); } +/** + * 编辑配载图片 -- 发车前 + */ +export const postUploadStartPhoto = (data, loadingObj = {}, canCancel = false) => { + return request({ + url: '/api/logpm-trunkline/carsLoad/uploadStartPhoto', + method: 'post', + data, + }, + loadingObj, + canCancel + ); +}; + +/** + * 编辑配载图片 -- 卸车前 + */ +export const postUploadUnloadPhoto = (data, loadingObj = {}, canCancel = false) => { + return request({ + url: '/api/logpm-trunkline/carsLoad/uploadUnloadPhoto', + method: 'post', + data, + }, + loadingObj, + canCancel + ); +}; + + /** 获取订单详情 */ export function postDeliveryOrderCodeWarehouseDetail(data, loadingObj = {}, canCancel = false) { @@ -3923,4 +4034,28 @@ export function getBasicNoticeList(data, loadingObj = {}, canCancel = false) { loadingObj, canCancel ); +} + +/** 生成新托盘码 */ +export function postCreateTray(data = {}, loadingObj = {}, canCancel = false) { + return request({ + url: `logpm-warehouse/api/warehouseTrayType/createTray`, + method: "post", + data + }, + loadingObj, + canCancel + ); +} + +/** 查看通讯录 */ +export function getContactsList(data = {}, loadingObj = {}, canCancel = false) { + return request({ + url: `blade-system/contacts/list`, + method: "get", + data + }, + loadingObj, + canCancel + ); } \ No newline at end of file diff --git a/compoment/MyInput/MyInput.vue b/compoment/MyInput/MyInput.vue index 2027d6a..40aae0d 100644 --- a/compoment/MyInput/MyInput.vue +++ b/compoment/MyInput/MyInput.vue @@ -209,8 +209,8 @@ console.log('err :>> ', err); //TODO handle the exception } finally { - instance.proxy.$forceUpdate(); - console.log('instance :>> ', instance); + // instance.proxy.$forceUpdate(); + // console.log('instance :>> ', instance); } diff --git a/config/host.js b/config/host.js index eace179..4bc8819 100644 --- a/config/host.js +++ b/config/host.js @@ -11,15 +11,16 @@ // const devhost = 'http://192.168.3.12:13000/' // xiaohei // const devhost = 'http://192.168.3.65:13000/' +// const devhost = 'http://192.168.5.6:13000/' // tjj -// const devhost = 'http://192.168.3.14:13000/' +const devhost = 'http://192.168.3.14:13000/' // cyz -// const devhost = 'http://192.168.6.169:9777/' +// const devhost = 'http://192.168.6.169:9777/' // const devhost = 'http://192.168.6.141:8777/' // lg // const devhost = 'http://192.168.3.16:13000/' // cg -const devhost = 'http://192.168.3.73:13000/' +// const devhost = 'http://192.168.3.73:13000/' // 正式 // const devhost = 'https://api.huo5u.com/' // cg @@ -29,8 +30,8 @@ const devhost = 'http://192.168.3.73:13000/' /** * 正式域名 * */ -// const prohost = 'https://api.huo5u.com/' -const prohost = 'http://test.api.huo5u.com/' +const prohost = 'https://api.huo5u.com/' +// const prohost = 'http://test.api.huo5u.com/' /** * 图片域名 * */ diff --git a/manifest.json b/manifest.json index 018c38d..ff975cc 100644 --- a/manifest.json +++ b/manifest.json @@ -1,187 +1,189 @@ { - "name" : "货无忧测试版", - "appid" : "__UNI__EB22F37", - "description" : "", - "versionName" : "1.2.22", - "versionCode" : 1222, - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - // "custom":false, - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : { - "Bluetooth" : {}, - "Barcode" : {}, - "Camera" : {}, - "Geolocation" : {} - }, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios" : { - "dSYMs" : false, - "idfa" : false - }, - /* SDK配置 */ - "sdkConfigs" : { - "geolocation" : { - "amap" : { - "__platform__" : [ "android" ], - "appkey_ios" : "f5577fdddf4f68f92bbde932e9e35bd6", - "appkey_android" : "f5577fdddf4f68f92bbde932e9e35bd6" - } - }, - "ad" : {} - }, - "splashscreen" : { - "androidStyle" : "common", - "useOriginalMsgbox" : false, - "iosStyle" : "common" - }, - "icons" : { - "android" : { - "hdpi" : "unpackage/res/icons/72x72.png", - "xhdpi" : "unpackage/res/icons/96x96.png", - "xxhdpi" : "unpackage/res/icons/144x144.png", - "xxxhdpi" : "unpackage/res/icons/192x192.png" - }, - "ios" : { - "appstore" : "unpackage/res/icons/1024x1024.png", - "ipad" : { - "app" : "unpackage/res/icons/76x76.png", - "app@2x" : "unpackage/res/icons/152x152.png", - "notification" : "unpackage/res/icons/20x20.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "proapp@2x" : "unpackage/res/icons/167x167.png", - "settings" : "unpackage/res/icons/29x29.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "spotlight" : "unpackage/res/icons/40x40.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png" - }, - "iphone" : { - "app@2x" : "unpackage/res/icons/120x120.png", - "app@3x" : "unpackage/res/icons/180x180.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "notification@3x" : "unpackage/res/icons/60x60.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "settings@3x" : "unpackage/res/icons/87x87.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png", - "spotlight@3x" : "unpackage/res/icons/120x120.png" - } - } - } - }, - "nativePlugins" : { - "MT-TTS" : { - "__plugin_info__" : { - "name" : "MT-TTS语音合成", - "description" : "安卓tts语音合成", - "platforms" : "Android", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", - "parameters" : {} - } - }, - "Sunmi-Print-Inner" : { - "__plugin_info__" : { - "name" : "Sunmi-Print-Inner", - "description" : "商米打印服务uniapp插件", - "platforms" : "Android", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", - "parameters" : {} - } - }, - "LcPrinter" : { - "__plugin_info__" : { - "name" : "LcPrinter", - "description" : "打印插件", - "platforms" : "Android", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", - "parameters" : {} - } - } - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wxedb0d10ea46a0113", - "setting" : { - "urlCheck" : false, - "es6" : true, - "ignoreDevUnusedFiles" : false, - "lazyCodeLoading" : "requiredComponents", - "minified" : true - }, - "usingComponents" : true, - "permission" : { - "scope.userFuzzyLocation" : { - "desc" : "你的位置信息将用于小程序位置接口的效果展示" - }, - "scope.userLocation" : { - "desc" : "你的位置信息将用于小程序位置接口的效果展示" - } - }, - "requiredPrivateInfos" : [ "getLocation" ] - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3" + "name": "货无忧", + "appid": "__UNI__EB22F37", + "description": "", + "versionName": "1.2.23", + "versionCode": 1223, + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + // "custom":false, + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": { + "Bluetooth": {}, + "Barcode": {}, + "Camera": {}, + "Geolocation": {} + }, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios": { + "dSYMs": false, + "idfa": false + }, + /* SDK配置 */ + "sdkConfigs": { + "geolocation": { + "amap": { + "__platform__": ["android"], + "appkey_ios": "f5577fdddf4f68f92bbde932e9e35bd6", + "appkey_android": "f5577fdddf4f68f92bbde932e9e35bd6" + } + }, + "ad": {} + }, + "splashscreen": { + "androidStyle": "common", + "useOriginalMsgbox": false, + "iosStyle": "common" + }, + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" + }, + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" + }, + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" + } + } + } + }, + "nativePlugins": { + "MT-TTS": { + "__plugin_info__": { + "name": "MT-TTS语音合成", + "description": "安卓tts语音合成", + "platforms": "Android", + "url": "", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": false, + "bought": -1, + "pid": "", + "parameters": {} + } + }, + "Sunmi-Print-Inner": { + "__plugin_info__": { + "name": "Sunmi-Print-Inner", + "description": "商米打印服务uniapp插件", + "platforms": "Android", + "url": "", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": false, + "bought": -1, + "pid": "", + "parameters": {} + } + }, + "LcPrinter": { + "__plugin_info__": { + "name": "LcPrinter", + "description": "打印插件", + "platforms": "Android", + "url": "", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": false, + "bought": -1, + "pid": "", + "parameters": {} + } + } + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "wxedb0d10ea46a0113", + "setting": { + "urlCheck": false, + "es6": true, + "ignoreDevUnusedFiles": false, + "lazyCodeLoading": "requiredComponents", + "minified": true + }, + "usingComponents": true, + "permission": { + "scope.userFuzzyLocation": { + "desc": "你的位置信息将用于小程序位置接口的效果展示" + }, + "scope.userLocation": { + "desc": "你的位置信息将用于小程序位置接口的效果展示" + } + }, + "requiredPrivateInfos": ["getLocation"] + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3" } // "custom":false, -/* 模块配置 */ - +/* 模块配置 */ \ No newline at end of file diff --git a/pages.json b/pages.json index 99af7c2..3304164 100644 --- a/pages.json +++ b/pages.json @@ -854,6 +854,14 @@ "onReachBottomDistance": 1, "navigationStyle": "custom" } + }, + { + "path": "pages/AddressBook/AddressBook", + "style": { + "navigationBarTitleText": "通讯录", + "onReachBottomDistance": 1, + "navigationStyle": "custom" + } } ] }, diff --git a/pages/index/index.vue b/pages/index/index.vue index ea24b0b..b57831b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -280,7 +280,7 @@ router: '/pagesHome/pages/integral/integral', }, { - icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png', + icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', name: '我的考核', router: '/pagesHome/pages/integralMy/integralMy', }, diff --git a/pages/news/news.vue b/pages/news/news.vue index c777072..c1d87f3 100644 --- a/pages/news/news.vue +++ b/pages/news/news.vue @@ -29,7 +29,7 @@ - {{item.type}} + {{item.categoryName}} @@ -45,9 +45,10 @@ {{item.title}} - - + + + @@ -106,6 +107,13 @@ const initPage = async () => { const res = await getBasicNoticeList({}) + + const { + code, + data + } = res + if (code !== 200) return + details.data = data } initPage() diff --git a/pages/user/user.vue b/pages/user/user.vue index fba27e3..e209125 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -162,6 +162,9 @@ } function checkitem(item) { if (item.type == 1) { + uni.navigateTo({ + url: '/pagesUser/pages/AddressBook/AddressBook' + }) } // 系统设置 else if (item.type == 3) { diff --git a/pagesHome/pages/ArrivalList/ArrivalList.vue b/pagesHome/pages/ArrivalList/ArrivalList.vue index fc25e46..3089897 100644 --- a/pagesHome/pages/ArrivalList/ArrivalList.vue +++ b/pagesHome/pages/ArrivalList/ArrivalList.vue @@ -97,21 +97,19 @@ - - - 按件入库 - + + 按件入库 + - - 整托入库 - + + 整托入库 + - - 卸分一体 - + + 卸分一体 - + + + + + 卸车前图片 @@ -144,6 +155,29 @@ + + + + + + + + {{item.title}} + + + + 最少{{item.min}}张 + + + + + + + + + + @@ -153,7 +187,10 @@ import { postArriveUnloadPageList, warehouseTrayTypeorderScanTrayCode, - postArriveCarByLoadId + postArriveCarByLoadId, + postUploadLoadingPhoto, + postUploadStartPhoto, + postUploadUnloadPhoto } from '@/api/user.js' import { onLoad, @@ -162,6 +199,7 @@ } from '@dcloudio/uni-app' import { computed, nextTick, reactive, ref, toRefs, watchEffect } from "vue"; import utils from '@/utils/utils.js' + import functions from '@/utils/functions.js'; import useSystemSettingsStore from '@/store/useSystemSettingsStore'; import { storeToRefs } from 'pinia'; const { scanState } = storeToRefs(useSystemSettingsStore()) @@ -212,6 +250,7 @@ // 组件实例 const basicContainer = ref() + const LoadUploadImg = ref() // 添加防抖函数 let antiShake : any = null @@ -275,7 +314,105 @@ /** 扫描的码值 */ scancode: '', scrollheight: '80vh', - notRefresh: false + notRefresh: false, + /** 装车上传前配置 */ + LoadUploadImgOption: [ + { + title: '车厢卫生', + type: '10', + position: '2', + min: 1, + imgArr: [] + } + ], + /** 发车前上传前配置 */ + StartUploadImgOption: [ + { + title: '盖雨棚前 - 左', + type: '20', + position: '3', + min: 1, + imgArr: [], + }, + { + title: '盖雨棚前 - 右', + type: '20', + position: '4', + min: 1, + imgArr: [], + }, + { + title: '盖雨棚前 - 后', + type: '20', + position: '2', + min: 1, + imgArr: [], + }, + { + title: '盖雨棚后 - 左', + type: '21', + position: '3', + min: 1, + imgArr: [], + }, + { + title: '盖雨棚后 - 右', + type: '21', + position: '4', + min: 1, + imgArr: [], + }, + { + title: '盖雨棚后 - 后', + type: '21', + position: '2', + min: 1, + imgArr: [], + }, + + ], + /** 卸车前图片 */ + beforeUnloadImgArr: [ + { + title: '卸车前车辆照片 - 左', + type: '20', + position: '3', + imgArr: [], + }, + { + title: '卸车前车辆照片 - 右', + type: '20', + position: '4', + imgArr: [], + }, + { + title: '卸车前车辆照片 - 后', + type: '20', + position: '2', + imgArr: [], + }, + { + title: '防护措施 - 左', + type: '21', + position: '3', + imgArr: [], + }, + { + title: '防护措施 - 右', + type: '21', + position: '4', + imgArr: [], + }, + { + title: '防护措施 - 后', + type: '21', + position: '2', + imgArr: [], + }, + ], + imgOption: [], + /** 已上传的图片 */ + oldImgArr: [] }) const carStateDictionaries = reactive([ @@ -515,6 +652,198 @@ }) } + const handleInitImg = (data, imgArr, cloneList) => { + if (utils.getObjType(data) !== 'array') return + if (utils.getObjType(imgArr) !== 'array') return + if (utils.getObjType(cloneList) !== 'array') return + + console.log('imgArr :>> ', imgArr); + console.log('cloneList :>> ', cloneList); + + for (let i = 0; i < data.length; i++) { + const value = data[i] + + for (let i = 0; i < imgArr.length; i++) { + const item = imgArr[i] + + if (item.type + ' - ' + item.position !== value.type + ' - ' + item.position) continue + item.imgArr.push({ url: value.url }) + cloneList.push({ url: value.url }) + break + } + } + } + + /** 显示装车前上传图片 */ + const handleShowLoadImg = (item, type) => { + const _oldImgArr = [] + let title = '' + + const { carsLoadLinePhotoEntities } = item + switch (type) { + case 'beforeLoad': + details.imgOption = utils.deepClone(details.LoadUploadImgOption) + title = '装车前照片' + break; + + case 'beforeStart': + details.imgOption = utils.deepClone(details.StartUploadImgOption) + title = '发车前照片' + break; + + case 'beforeUnload': + details.imgOption = utils.deepClone(details.beforeUnloadImgArr) + title = '卸车前照片' + break + + default: + break; + } + handleInitImg(carsLoadLinePhotoEntities, details.imgOption, _oldImgArr) + + LoadUploadImg.value.setDetails({ + title, + showPopUp: true, + async success() { + const submitData = { + loadId: item.id, + addUrlList: [], + removeUrlList: [] + } + + + for (let i = 0; i < details.imgOption.length; i++) { + const value = details.imgOption[i] + console.log('value :>> ', value); + + if (value.imgArr.length < value.min) return utils.handleToast(`${value.title}最少上传${value.min}张`) + for (let i = 0; i < value.imgArr.length; i++) { + const item = value.imgArr[i] + + let isContinue = false + + for (let i = 0; i < _oldImgArr.length; i++) { + const _val = _oldImgArr[i] + + if (_val.url !== item.url) continue + isContinue = true + _oldImgArr.splice(i, 1) + break + } + + if (isContinue) continue + submitData.addUrlList.push({ + type: value.type, + position: value.position, + url: item.url + }) + } + } + + for (let i = 0; i < _oldImgArr.length; i++) { + const value = _oldImgArr[i] + + submitData.removeUrlList.push(value.id) + } + + + + let res : any = {} + + switch (type) { + case 'beforeLoad': + res = await postUploadLoadingPhoto(submitData) + break; + + case 'beforeStart': + res = await postUploadStartPhoto(submitData) + break; + + case 'beforeUnload': + res = await postUploadStartPhoto(submitData) + break; + + default: + break; + + } + + const { code, msg } = res + + if (code !== 200) return + + utils.handleToast(msg) + + LoadUploadImg.value.details.showPopUp = false + + basicContainer.value.startPullDownRefresh() + } + }) + + } + + /** 上传图片 */ + const handleUploadImg = async (event, imgArr) => { + 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] + console.log('item :>> ', item); + // const type = item.name.split('.').slice(-1)[0] + + let type = '' + + item.url && (type = item.url.split('.').slice(-1)[0]) + item.name && (type = item.name.split('.').slice(-1)[0]) + + + if (writeArr.indexOf(type) === -1) continue + + console.log('type :>> ', type); + + PromiseAll.push(functions.upfile(item.url, false)) + } + + + 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 + + imgArr.push({ url: link }) + } + } catch (err) { + console.log('err :>> ', err); + //TODO handle the exception + } finally { + uni.hideLoading() + } + + console.log('event :>> ', event); + + } + + /** 删除图片 */ + const deletePic = (event, imgArr) => { + console.log('event :>> ', event); + + imgArr.splice(event.index, 1) + } + + const { show, datatime, @@ -524,8 +853,6 @@ \ No newline at end of file diff --git a/pagesHome/pages/PeopleScanUp/PeopleScanUp.vue b/pagesHome/pages/PeopleScanUp/PeopleScanUp.vue index 51e4ffb..1ab34cd 100644 --- a/pagesHome/pages/PeopleScanUp/PeopleScanUp.vue +++ b/pagesHome/pages/PeopleScanUp/PeopleScanUp.vue @@ -7,6 +7,14 @@ 请直接扫描库位码 + + @@ -672,7 +680,9 @@ // }) } }) - details.uplistarr = fn2(details.uplistarr, 'materialCode,incomingBatch') + details.uplistarr = fn2(details.uplistarr, ['1', '2'].includes(details.upshelfScanType + '') ? 'orderCode' : 'materialCode,incomingBatch') + + console.log('details.uplistarr :>> ', details.uplistarr); details.showstate = 0 details.codelist = [] details.waybillCode = '' @@ -859,6 +869,8 @@ let result = []; tempArr.map((item) => { + item.goodsType = fnname === 'orderCode' ? 2 : 3 + if (result.length == 0) { item.enterNum = Number(item.enterNum) result.push(item) diff --git a/pagesHome/pages/PickingScanList/PickingScanList.vue b/pagesHome/pages/PickingScanList/PickingScanList.vue index c1b569d..2a992c6 100644 --- a/pagesHome/pages/PickingScanList/PickingScanList.vue +++ b/pagesHome/pages/PickingScanList/PickingScanList.vue @@ -2,25 +2,12 @@ @@ -31,40 +18,32 @@