From 978bc7b920e74ef1ea2cf20f8a762ea81546492e Mon Sep 17 00:00:00 2001 From: cc_zbp <487602586@qq.com> Date: Mon, 29 May 2023 10:22:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/store.js | 16 + config/app.js | 4 +- manifest.json | 356 +++++++++++------------ pages/admin/stockOut/index.vue | 9 +- pages/goods_details/index.vue | 12 +- pages/index/index.vue | 13 +- pages/nongKe/gather/select_warehouse.vue | 30 +- pages/plant_release/index.vue | 230 +++++++-------- pages/supply_chains/supply_chains.vue | 10 +- 9 files changed, 350 insertions(+), 330 deletions(-) diff --git a/api/store.js b/api/store.js index f85383e..7126853 100644 --- a/api/store.js +++ b/api/store.js @@ -1,4 +1,20 @@ import request from "@/utils/request.js"; + +/** + * 扫码查询商品 + * + */ +export function microSeachBarCode(data) { + return request.get('micro/seach_bar_code', data); +} +/** + * 获取收款二维码 + * @returns {*} + */ +export function createtApi(data) { + return request.post('v2/micropay/create', data); +} + /** * 添加扫码商品 * @returns {*} diff --git a/config/app.js b/config/app.js index f541cb0..afcf411 100644 --- a/config/app.js +++ b/config/app.js @@ -9,8 +9,8 @@ let httpApiThree // 网络接口修改此字符 小程序域名要求https // let httpApi = 'http://192.168.31.110:8324' // 测试 if (process.env.NODE_ENV === "development") { - // httpApi = "https://crmeb-test.shop.lihaink.cn" - httpApi = "http://192.168.0.109:8325" + httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = "http://192.168.0.109:8325" // #ifdef MP-WEIXIN httpApiTwo = "http://cms.com" httpApiThree = 'http://ceshi-oa.lihaink.cn' diff --git a/manifest.json b/manifest.json index 0c46657..d162001 100644 --- a/manifest.json +++ b/manifest.json @@ -1,187 +1,187 @@ { - "name" : "CRMEB", - "appid" : "__UNI__3A527D1", - "description" : "", - "versionName" : "1.0.4", - "versionCode" : 127, - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "titleNView" : true, - "usingComponents" : true, - "nvueCompiler" : "uni-app", - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 + "name": "CRMEB", + "appid": "__UNI__3A527D1", + "description": "", + "versionName": "1.0.4", + "versionCode": 127, + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + "titleNView": true, + "usingComponents": true, + "nvueCompiler": "uni-app", + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": { + "VideoPlayer": {}, + "iBeacon": {}, + "Geolocation": {}, + "Barcode": {}, + "Camera": {} + }, + "safearea": { + "bottom": { + "offset": "none" + } + }, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"], + "permissionExternalStorage": { + "request": "none", + "prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" }, - /* 模块配置 */ - "modules" : { - "VideoPlayer" : {}, - "iBeacon" : {}, - "Geolocation" : {}, - "Barcode" : {}, - "Camera" : {} - }, - "safearea" : { - "bottom" : { - "offset" : "none" - } - }, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], - "permissionExternalStorage" : { - "request" : "none", - "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" - }, - "permissionPhoneState" : { - "request" : "none" //拨打电话权限关闭 - } - }, - /* ios打包配置 */ - "ios" : { - "privacyDescription" : { - "NSPhotoLibraryUsageDescription" : "上传用户头像保存分享海报", - "NSPhotoLibraryAddUsageDescription" : "上传用户头像保存分享海报", - "NSCameraUsageDescription" : "上传用户头像保存分享海报", - "NSLocationWhenInUseUsageDescription" : "根据客户地理位置推荐最近门店", - "NSLocationAlwaysUsageDescription" : "根据客户地理位置推荐最近门店" - }, - "idfa" : false, - "dSYMs" : false - }, - /* SDK配置 */ - "sdkConfigs" : { - "maps" : { - "amap" : { - "appkey_ios" : "", - "appkey_android" : "" - } - }, - "payment" : { - "alipay" : { - "__platform__" : [ "ios", "android" ] - } - }, - "share" : { - "weixin" : { - "appid" : "", - "UniversalLinks" : "https://mer.crmeb.net/" - } - }, - "geolocation" : { - "system" : { - "__platform__" : [ "ios", "android" ] - } - }, - "push" : {}, - "oauth" : { - "apple" : {} - }, - "ad" : {} - }, - "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" - } - } - }, - "splashscreen" : { - "useOriginalMsgbox" : true - } + "permissionPhoneState": { + "request": "none" //拨打电话权限关闭 } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wx6e14cb98394e36bc", - "setting" : { - "urlCheck" : false, - "minified" : true, - "postcss" : true, - "es6" : true + }, + /* ios打包配置 */ + "ios": { + "privacyDescription": { + "NSPhotoLibraryUsageDescription": "上传用户头像保存分享海报", + "NSPhotoLibraryAddUsageDescription": "上传用户头像保存分享海报", + "NSCameraUsageDescription": "上传用户头像保存分享海报", + "NSLocationWhenInUseUsageDescription": "根据客户地理位置推荐最近门店", + "NSLocationAlwaysUsageDescription": "根据客户地理位置推荐最近门店" }, - "permission" : { - "scope.userLocation" : { - "desc" : "获取您的位置" - } + "idfa": false, + "dSYMs": false + }, + /* SDK配置 */ + "sdkConfigs": { + "maps": { + "amap": { + "appkey_ios": "", + "appkey_android": "" + } }, - "requiredPrivateInfos" : [ "getLocation", "chooseAddress" ], - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "h5" : { - "devServer" : { - "https" : false + "payment": { + "alipay": { + "__platform__": ["ios", "android"] + } }, - "router" : { - "mode" : "history", - "base" : "" + "share": { + "weixin": { + "appid": "", + "UniversalLinks": "https://mer.crmeb.net/" + } }, - "domain" : "", - "sdkConfigs" : { - "maps" : { - "qqmap" : { - "key" : "SMJBZ-WCHK4-ZPZUA-DSIXI-XDDVQ-XWFX7" - } - } + "geolocation": { + "system": { + "__platform__": ["ios", "android"] + } }, - "title" : "加载中...", - "template" : "template.h5.html" + "push": {}, + "oauth": { + "apple": {} + }, + "ad": {} + }, + "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" + } + } + }, + "splashscreen": { + "useOriginalMsgbox": true + } } -} + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "wxfb4695444ab8d0d0", + "setting": { + "urlCheck": false, + "minified": true, + "postcss": true, + "es6": true + }, + "permission": { + "scope.userLocation": { + "desc": "获取您的位置" + } + }, + "requiredPrivateInfos": ["getLocation", "chooseAddress"], + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "h5": { + "devServer": { + "https": false + }, + "router": { + "mode": "history", + "base": "" + }, + "domain": "", + "sdkConfigs": { + "maps": { + "qqmap": { + "key": "SMJBZ-WCHK4-ZPZUA-DSIXI-XDDVQ-XWFX7" + } + } + }, + "title": "加载中...", + "template": "template.h5.html" + } +} \ No newline at end of file diff --git a/pages/admin/stockOut/index.vue b/pages/admin/stockOut/index.vue index 8c4a8ef..d897ec1 100644 --- a/pages/admin/stockOut/index.vue +++ b/pages/admin/stockOut/index.vue @@ -328,7 +328,7 @@ }, async addCartGoods(code) { try { - const res = await addCartApi({ bar_code: code }) + const res = await addCartApi({ bar_code: code, product_type: 98 }) this.getCartList(); this.getCartNum(); Toast('添加成功') @@ -336,6 +336,8 @@ Toast(e) } }, + + /* 生成二维码 */ pay() { let selectValue = [] this.cartList.valid.forEach(el => { @@ -345,12 +347,11 @@ } }) }) - const data = { - cart_id: selectValue - } + const data = { cart_id: selectValue } this.popUpShow = true createtApi(data).then(res => { if (res.status === 200) { + console.log("res", res.data); this.payCodeUrl = res.data.config; this.$refs.qrcode._makeCode() } diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index 7bddb5a..2ea1be5 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -1,14 +1,12 @@