已修改10个文件
已重命名12个文件
已添加1个文件
| | |
| | | <template> |
| | | <view> |
| | | <view class="content"> |
| | | <!-- <text>æ«æç»æï¼{{ scanResult }}</text> --> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | var main, receiver, filter; |
| | | var action, extraKey; |
| | | var _codeQueryTag = false; |
| | | export default { |
| | | data() { |
| | | return { |
| | | scanCode: '' |
| | | } |
| | | }, |
| | | created: function(option) { |
| | | uni.getSystemInfo({ |
| | | success: (res) => { |
| | | var brand = res.brand.toUpperCase(); |
| | | var model = res.model.toUpperCase(); |
| | | if (brand.indexOf("ZEBRA")!=-1 && model.indexOf("TC2")!=-1) { |
| | | action = "com.zebra.scan"; |
| | | extraKey = "com.motorolasolutions.emdk.datawedge.data_string"; |
| | | } else if (brand.indexOf("SEUIC")!=-1||brand.indexOf("AUTOID")!=-1) { |
| | | action = "com.android.server.scannerservice.broadcast"; |
| | | extraKey = "scannerdata"; |
| | | }else{ |
| | | return; |
| | | } |
| | | console.log(action); |
| | | console.log(extraKey); |
| | | this.initScan() |
| | | this.startScan(); |
| | | var main, receiver, filter; |
| | | var action, extraKey; |
| | | var _codeQueryTag = false; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | scanCode: '', |
| | | scanResult: '' |
| | | } |
| | | }, |
| | | created() { |
| | | uni.getSystemInfo({ |
| | | success: (res) => { |
| | | var brand = res.brand.toUpperCase(); |
| | | var model = res.model.toUpperCase(); |
| | | |
| | | console.log('设å¤åç:', brand); |
| | | console.log('设å¤åå·:', model); |
| | | |
| | | // Zebra设å¤é
ç½® |
| | | if (brand.indexOf("ZEBRA") != -1 && model.indexOf("TC2") != -1) { |
| | | action = "com.zebra.scan"; |
| | | extraKey = "com.motorolasolutions.emdk.datawedge.data_string"; |
| | | } |
| | | }) |
| | | // AUTOID9N设å¤é
ç½® |
| | | else if (brand.indexOf("SEUIC") != -1 || brand.indexOf("AUTOID") != -1) { |
| | | // AUTOID9Nä¸ç¨é
ç½® |
| | | if (model.indexOf("AUTOID9N") != -1) { |
| | | action = "com.android.server.scannerservice.broadcast"; |
| | | extraKey = "scannerdata"; // æ "BARCODE_STRING"ï¼æ ¹æ®å®é
æ
åµè°æ´ |
| | | } |
| | | // å
¶ä»SEUICè®¾å¤ |
| | | else { |
| | | action = "com.android.server.scannerservice.broadcast"; |
| | | extraKey = "scannerdata"; |
| | | } |
| | | } |
| | | else { |
| | | console.log('æªç¥è®¾å¤åçï¼æ æ³åå§åæ«ç '); |
| | | return; |
| | | } |
| | | |
| | | console.log('æ«ç 广æé
ç½®:', { action, extraKey }); |
| | | this.initScan(); |
| | | this.startScan(); |
| | | }, |
| | | fail: (err) => { |
| | | console.error('è·åç³»ç»ä¿¡æ¯å¤±è´¥:', err); |
| | | } |
| | | }); |
| | | }, |
| | | onLoad() { |
| | | // çå¬å
¨å±æ«ç äºä»¶ |
| | | uni.$on('scan', (event) => { |
| | | this.scanResult = event.code; |
| | | console.log('æ«ç ç»æ:', this.scanResult); |
| | | }); |
| | | }, |
| | | onUnload() { |
| | | this.stopScan(); |
| | | uni.$off('scan'); // ç§»é¤äºä»¶çå¬ |
| | | }, |
| | | methods: { |
| | | initScan() { |
| | | console.log('åå§åæ«ç æ¥æ¶å¨'); |
| | | |
| | | |
| | | }, |
| | | onHide: function() { |
| | | this.stopScan(); |
| | | }, |
| | | destroyed: function() { |
| | | this.stopScan(); |
| | | }, |
| | | methods: { |
| | | initScan() { |
| | | console.log('initScan'); |
| | | let _this = this; |
| | | main = plus.android.runtimeMainActivity(); //è·åactivity |
| | | try { |
| | | main = plus.android.runtimeMainActivity(); // è·åactivity |
| | | var IntentFilter = plus.android.importClass('android.content.IntentFilter'); |
| | | filter = new IntentFilter(); |
| | | //ä¸é¢çaddActionå
æ¹ä¸ºèªå·±ç广æå¨ä½ |
| | | filter.addAction(action); |
| | | |
| | | console.log('注å广æè¿æ»¤å¨:', action); |
| | | |
| | | receiver = plus.android.implements('io.dcloud.feature.internal.reflect.BroadcastReceiver', { |
| | | onReceive: function(context, intent) { |
| | | console.log('onReceive'); |
| | | plus.android.importClass(intent); |
| | | //ä¸é¢çgetStringExtraå
æ¹ä¸ºèªå·±çå¹¿ææ ç¾--æè¯¯ |
| | | let code = intent.getStringExtra(extraKey); |
| | | _this.queryCode(code); |
| | | } |
| | | onReceive: function (context, intent) { |
| | | console.log('æ¥æ¶å°æ«ç 广æ'); |
| | | |
| | | try { |
| | | plus.android.importClass(intent); |
| | | let code = intent.getStringExtra(extraKey); |
| | | |
| | | if (code) { |
| | | console.log('æ«ç å
容:', code); |
| | | this.queryCode(code); |
| | | } else { |
| | | console.warn('æ«ç å
容为空ï¼å¯è½ExtraKey䏿£ç¡®:', extraKey); |
| | | |
| | | // å°è¯å¤éExtraKey |
| | | const altExtraKey = extraKey === "BARCODE_STRING" ? "scannerdata" : "BARCODE_STRING"; |
| | | code = intent.getStringExtra(altExtraKey); |
| | | |
| | | if (code) { |
| | | console.log('使ç¨å¤éExtraKeyè·åå°å
容:', altExtraKey); |
| | | this.queryCode(code); |
| | | } |
| | | } |
| | | } catch (e) { |
| | | console.error('å¤çæ«ç å¹¿ææ¶åºé:', e); |
| | | } |
| | | }.bind(this) // ç¡®ä¿thisæåç»ä»¶å®ä¾ |
| | | }); |
| | | }, |
| | | startScan() { |
| | | console.log('startScan'); |
| | | main.registerReceiver(receiver, filter); |
| | | }, |
| | | stopScan() { |
| | | console.log('stopScan'); |
| | | main.unregisterReceiver(receiver); |
| | | }, |
| | | queryCode: function(code) { |
| | | console.log('queryCode'); |
| | | if (_codeQueryTag) return false; |
| | | _codeQueryTag = true; |
| | | setTimeout(function() { |
| | | _codeQueryTag = false; |
| | | }, 150); |
| | | var id = code |
| | | uni.$emit('scan', { |
| | | code: id |
| | | }) |
| | | |
| | | console.log('æ«ç æ¥æ¶å¨åå§åæå'); |
| | | } catch (e) { |
| | | console.error('åå§åæ«ç æ¥æ¶å¨å¤±è´¥:', e); |
| | | } |
| | | }, |
| | | startScan() { |
| | | console.log('å¼å§ç嬿«ç 广æ'); |
| | | |
| | | try { |
| | | if (main && receiver && filter) { |
| | | main.registerReceiver(receiver, filter); |
| | | console.log('å¹¿ææ¥æ¶å¨å·²æ³¨å'); |
| | | } else { |
| | | console.error('æ æ³æ³¨åå¹¿ææ¥æ¶å¨: ç»ä»¶æªåå§å'); |
| | | } |
| | | } catch (e) { |
| | | console.error('注åå¹¿ææ¥æ¶å¨å¤±è´¥:', e); |
| | | } |
| | | }, |
| | | stopScan() { |
| | | console.log('忢ç嬿«ç 广æ'); |
| | | |
| | | try { |
| | | if (main && receiver) { |
| | | main.unregisterReceiver(receiver); |
| | | console.log('å¹¿ææ¥æ¶å¨å·²æ³¨é'); |
| | | } |
| | | } catch (e) { |
| | | console.error('注éå¹¿ææ¥æ¶å¨å¤±è´¥:', e); |
| | | } |
| | | }, |
| | | queryCode(code) { |
| | | console.log('å¤çæ«ç ç»æ:', code); |
| | | |
| | | if (_codeQueryTag) { |
| | | console.log('忽ç¥é夿«ç '); |
| | | return false; |
| | | } |
| | | |
| | | _codeQueryTag = true; |
| | | |
| | | // 鲿å¤ç |
| | | setTimeout(() => { |
| | | _codeQueryTag = false; |
| | | }, 150); |
| | | |
| | | // 触åå
¨å±äºä»¶ |
| | | uni.$emit('scan', { code }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | | <style></style> |
| | |
| | | { |
| | | "name" : "æ±ä¸åéMES", |
| | | "appid" : "__UNI__2E031D3", |
| | | "description" : "pigcloud", |
| | | "versionName" : "4.0.2", |
| | | "versionCode" : 2, |
| | | "transformPx" : false, |
| | | "app-plus" : { |
| | | "compilerVersion" : 3, |
| | | "optimization" : { |
| | | "subPackages" : true |
| | | "name": "æ±ä¸åéMES", |
| | | "appid": "__UNI__2E031D3", |
| | | "description": "pigcloud", |
| | | "versionName": "4.0.2", |
| | | "versionCode": 2, |
| | | "transformPx": false, |
| | | "app-plus": { |
| | | "compilerVersion": 3, |
| | | "optimization": { |
| | | "subPackages": true |
| | | }, |
| | | "safearea": { |
| | | "bottom": { |
| | | "offset": "none" |
| | | } |
| | | }, |
| | | "splashscreen": { |
| | | "alwaysShowBeforeRender": true, |
| | | "waiting": true, |
| | | "autoclose": true, |
| | | "delay": 0 |
| | | }, |
| | | "compatible": { |
| | | "ignoreVersion": true |
| | | }, |
| | | "usingComponents": true, |
| | | "nvueCompiler": "uni-app", |
| | | "modules": { |
| | | "Bluetooth": {} |
| | | }, |
| | | "distribute": { |
| | | "android": { |
| | | "permissions": [ |
| | | "<uses-feature android:name=\"android.hardware.camera\"/>", |
| | | "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CAMERA\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
| | | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", |
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_CONNECT\"/> ", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_SCAN\"/>", |
| | | "<uses-permission android:name=\"android.permission.RECEIVE_SMS\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>" |
| | | ], |
| | | "abiFilters": ["armeabi-v7a", "arm64-v8a"] |
| | | }, |
| | | "ios": { |
| | | "dSYMs": false |
| | | }, |
| | | "sdkConfigs": { |
| | | "ad": {}, |
| | | "oauth": {} |
| | | }, |
| | | "icons": { |
| | | "android": { |
| | | "hdpi": "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png", |
| | | "xhdpi": "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png", |
| | | "xxhdpi": "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png", |
| | | "xxxhdpi": "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png" |
| | | }, |
| | | "safearea" : { |
| | | "bottom" : { |
| | | "offset" : "none" |
| | | } |
| | | }, |
| | | "splashscreen" : { |
| | | "alwaysShowBeforeRender" : true, |
| | | "waiting" : true, |
| | | "autoclose" : true, |
| | | "delay" : 0 |
| | | }, |
| | | "compatible" : { |
| | | "ignoreVersion" : true |
| | | }, |
| | | "usingComponents" : true, |
| | | "nvueCompiler" : "uni-app", |
| | | "modules" : { |
| | | "Bluetooth" : {} |
| | | }, |
| | | "distribute" : { |
| | | "android" : { |
| | | "permissions" : [ |
| | | "<uses-feature android:name=\"android.hardware.camera\"/>", |
| | | "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CAMERA\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
| | | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", |
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_CONNECT\"/> ", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_SCAN\"/>" |
| | | ], |
| | | "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ] |
| | | }, |
| | | "ios" : { |
| | | "dSYMs" : false |
| | | }, |
| | | "sdkConfigs" : { |
| | | "ad" : {}, |
| | | "oauth" : {} |
| | | }, |
| | | "icons" : { |
| | | "android" : { |
| | | "hdpi" : "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png", |
| | | "xhdpi" : "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png", |
| | | "xxhdpi" : "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png", |
| | | "xxxhdpi" : "C:/Users/MLL/Desktop/03ae6e42ca681ffd98737b6a20f94d0.png" |
| | | }, |
| | | "ios" : { |
| | | "appstore" : "", |
| | | "ipad" : { |
| | | "app" : "", |
| | | "app@2x" : "", |
| | | "notification" : "", |
| | | "notification@2x" : "", |
| | | "proapp@2x" : "", |
| | | "settings" : "", |
| | | "settings@2x" : "", |
| | | "spotlight" : "", |
| | | "spotlight@2x" : "" |
| | | }, |
| | | "iphone" : { |
| | | "app@2x" : "", |
| | | "app@3x" : "", |
| | | "notification@2x" : "", |
| | | "notification@3x" : "", |
| | | "settings@2x" : "", |
| | | "settings@3x" : "", |
| | | "spotlight@2x" : "", |
| | | "spotlight@3x" : "" |
| | | } |
| | | } |
| | | }, |
| | | "splashscreen" : { |
| | | "androidStyle" : "common" |
| | | } |
| | | }, |
| | | "nativePlugins" : { |
| | | "JCSDK-JCApiModule" : { |
| | | "__plugin_info__" : { |
| | | "name" : "ç²¾è£æå°æºæ¥å
¥æä»¶", |
| | | "description" : "ç²¾è£ç³»åæå°æºæå°æä»¶", |
| | | "platforms" : "Android,iOS", |
| | | "url" : "https://ext.dcloud.net.cn/plugin?id=10011", |
| | | "android_package_name" : "uni.UNI2E031D3", |
| | | "ios_bundle_id" : "", |
| | | "isCloud" : true, |
| | | "bought" : 1, |
| | | "pid" : "10011", |
| | | "parameters" : {} |
| | | } |
| | | } |
| | | "ios": { |
| | | "appstore": "", |
| | | "ipad": { |
| | | "app": "", |
| | | "app@2x": "", |
| | | "notification": "", |
| | | "notification@2x": "", |
| | | "proapp@2x": "", |
| | | "settings": "", |
| | | "settings@2x": "", |
| | | "spotlight": "", |
| | | "spotlight@2x": "" |
| | | }, |
| | | "iphone": { |
| | | "app@2x": "", |
| | | "app@3x": "", |
| | | "notification@2x": "", |
| | | "notification@3x": "", |
| | | "settings@2x": "", |
| | | "settings@3x": "", |
| | | "spotlight@2x": "", |
| | | "spotlight@3x": "" |
| | | } |
| | | } |
| | | }, |
| | | "splashscreen": { |
| | | "androidStyle": "common" |
| | | } |
| | | }, |
| | | "quickapp" : {}, |
| | | "mp-weixin" : { |
| | | "appid" : "wxf3e5cc7116d23b18", |
| | | "setting" : { |
| | | "urlCheck" : false, |
| | | "es6" : false, |
| | | "minified" : true, |
| | | "postcss" : true |
| | | "nativePlugins": { |
| | | "JCSDK-JCApiModule": { |
| | | "__plugin_info__": { |
| | | "name": "ç²¾è£æå°æºæ¥å
¥æä»¶", |
| | | "description": "ç²¾è£ç³»åæå°æºæå°æä»¶", |
| | | "platforms": "Android,iOS", |
| | | "url": "https://ext.dcloud.net.cn/plugin?id=10011", |
| | | "android_package_name": "uni.UNI2E031D3", |
| | | "ios_bundle_id": "", |
| | | "isCloud": true, |
| | | "bought": 1, |
| | | "pid": "10011", |
| | | "parameters": {} |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "quickapp": {}, |
| | | "mp-weixin": { |
| | | "appid": "wxf3e5cc7116d23b18", |
| | | "setting": { |
| | | "urlCheck": false, |
| | | "es6": false, |
| | | "minified": true, |
| | | "postcss": true |
| | | }, |
| | | "optimization": { |
| | | "subPackages": true |
| | | }, |
| | | "usingComponents": true |
| | | }, |
| | | "mp-alipay": { |
| | | "usingComponents": true, |
| | | "component2": true |
| | | }, |
| | | "mp-qq": { |
| | | "optimization": { |
| | | "subPackages": true |
| | | }, |
| | | "appid": "" |
| | | }, |
| | | "mp-baidu": { |
| | | "usingComponents": true, |
| | | "appid": "" |
| | | }, |
| | | "mp-toutiao": { |
| | | "usingComponents": true, |
| | | "appid": "" |
| | | }, |
| | | "h5": { |
| | | "template": "h5.html", |
| | | "router": { |
| | | "mode": "hash", |
| | | "base": "./" |
| | | }, |
| | | "optimization": { |
| | | "treeShaking": { |
| | | "enable": false |
| | | } |
| | | }, |
| | | "devServer": { |
| | | "port": 8080, //æµè§å¨è¿è¡ç«¯å£ |
| | | "disableHostCheck": true, |
| | | "proxy": { |
| | | "/auth": { |
| | | "target": "http://192.168.32.65:9999", |
| | | "changeOrigin": true, |
| | | "secure": false |
| | | }, |
| | | "optimization" : { |
| | | "subPackages" : true |
| | | "/mes": { |
| | | "target": "http://192.168.32.65:9999", |
| | | "changeOrigin": true, |
| | | "secure": false |
| | | }, |
| | | "usingComponents" : true |
| | | "/admin": { |
| | | "target": "http://192.168.32.65:9999", |
| | | "changeOrigin": true, |
| | | "secure": false |
| | | } |
| | | } |
| | | }, |
| | | "mp-alipay" : { |
| | | "usingComponents" : true, |
| | | "component2" : true |
| | | }, |
| | | "mp-qq" : { |
| | | "optimization" : { |
| | | "subPackages" : true |
| | | }, |
| | | "appid" : "" |
| | | }, |
| | | "mp-baidu" : { |
| | | "usingComponents" : true, |
| | | "appid" : "" |
| | | }, |
| | | "mp-toutiao" : { |
| | | "usingComponents" : true, |
| | | "appid" : "" |
| | | }, |
| | | "h5" : { |
| | | "template" : "h5.html", |
| | | "router" : { |
| | | "mode" : "hash", |
| | | "base" : "./" |
| | | }, |
| | | "optimization" : { |
| | | "treeShaking" : { |
| | | "enable" : false |
| | | } |
| | | }, |
| | | "devServer" : { |
| | | "port" : 8080, //æµè§å¨è¿è¡ç«¯å£ |
| | | "disableHostCheck" : true, |
| | | "proxy" : { |
| | | "/auth" : { |
| | | "target" : "http://192.168.32.65:9999", |
| | | "changeOrigin" : true, |
| | | "secure" : false |
| | | }, |
| | | "/mes" : { |
| | | "target" : "http://192.168.32.65:9999", |
| | | "changeOrigin" : true, |
| | | "secure" : false |
| | | }, |
| | | "/admin" : { |
| | | "target" : "http://192.168.32.65:9999", |
| | | "changeOrigin" : true, |
| | | "secure" : false |
| | | } |
| | | } |
| | | }, |
| | | "title" : "Asun-Mes", |
| | | "domain" : "/app" |
| | | }, |
| | | "locale" : "zh-Hans", |
| | | "fallbackLocale" : "zh-Hans" |
| | | "title": "Asun-Mes", |
| | | "domain": "/app" |
| | | }, |
| | | "locale": "zh-Hans", |
| | | "fallbackLocale": "zh-Hans" |
| | | } |
| | |
| | | "navigationBarBackgroundColor": "#0052d9" |
| | | } |
| | | }, |
| | | // çç¹æ¥åå· |
| | | { |
| | | "path": "pages/wareHouse/inventory/orderList", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "navigationBarTextStyle": "white", |
| | | "navigationBarBackgroundColor": "#3281FF" |
| | | } |
| | | }, |
| | | // æ¥æ¥ç¸å
³ |
| | | { |
| | | "path": "pages/daily/common/work-order-list", |
| | |
| | | <template> |
| | | <!-- åæ¶æ¥å·¥ --> |
| | | <view class="page"> |
| | | <u-form :model="form" ref="uForm" :label-width="280" :rules="rules" :error-type="['toast']"> |
| | | <u-form-item label="订åå·" :border-bottom="false" prop="value3"> |
| | | <u-input v-model="form.value3" type="select" placeholder="ç¹å»éæ©" @click="openList" /> |
| | | </u-form-item> |
| | | <u-form-item label="åæ¶æ¥å·¥è®°å½ï¼" :border-bottom="false" prop="value12"></u-form-item> |
| | | </u-form> |
| | | </view> |
| | | <!-- åæ¶æ¥å·¥ --> |
| | | <view class="page"> |
| | | <u-form :model="form" ref="uForm" :label-width="280" :rules="rules" :error-type="['toast']"> |
| | | <u-form-item label="订åå·" :border-bottom="false" prop="value3"> |
| | | <u-input v-model="form.value3" type="select" placeholder="ç¹å»éæ©" @click="openList" /> |
| | | </u-form-item> |
| | | <u-form-item label="åæ¶æ¥å·¥è®°å½ï¼" :border-bottom="false" prop="value12"></u-form-item> |
| | | </u-form> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: { |
| | | value3: '' |
| | | }, |
| | | rules: {} |
| | | }; |
| | | }, |
| | | methods: { |
| | | openList() { |
| | | uni.navigateTo({ |
| | | url: '/pages/product/report/orderList' |
| | | }) |
| | | }, |
| | | setNo(val) { |
| | | this.form.value3 = val |
| | | } |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: { |
| | | value3: '' |
| | | }, |
| | | rules: {} |
| | | }; |
| | | }, |
| | | methods: { |
| | | openList() { |
| | | uni.navigateTo({ |
| | | url: '/pages/product/report/orderList' |
| | | }) |
| | | }, |
| | | setNo(val) { |
| | | this.form.value3 = val |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | box-sizing: border-box; |
| | | padding: 30rpx; |
| | | } |
| | | .page { |
| | | box-sizing: border-box; |
| | | padding: 30rpx; |
| | | } |
| | | |
| | | ::v-deep .u-input__input { |
| | | text-align: right !important; |
| | | } |
| | | ::v-deep .u-input__input { |
| | | text-align: right !important; |
| | | } |
| | | |
| | | .u-form-item { |
| | | padding: 0; |
| | | } |
| | | .u-form-item { |
| | | padding: 0; |
| | | } |
| | | </style> |
| | |
| | | <u-search v-model="keywords" placeholder="请è¾å
¥åºä½åç§°" @clear="search" @custom="search" @search="search"> |
| | | </u-search> |
| | | </view> |
| | | <scroll-view class="scroll-list" scroll-y="true" > |
| | | <scroll-view class="scroll-list" scroll-y="true"> |
| | | <u-cell-group class="list" :border="false"> |
| | | <view v-if="locationList==0" class="nodata"> |
| | | <view v-if="locationList == 0" class="nodata"> |
| | | <view>æªæ¥å°æ°æ®</view> |
| | | </view> |
| | | <view v-else class="content" v-for="(item, index) in locationList" :key="item.locNo" :index="index" |
| | |
| | | åºä½ç±»å: |
| | | </view> |
| | | <view class="_content"> |
| | | {{ getLocTypeName(item.locType)}} |
| | | {{ getLocTypeName(item.locType) }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | åºä½ç¶æ: |
| | | </view> |
| | | <view class="_content"> |
| | | {{getLocStatus(item.locStatus)}} |
| | | <view class="_content"> |
| | | {{ getLocStatus(item.locStatus) }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import scan from "@/components/scan/scan.vue"; |
| | | export default { |
| | | components: { |
| | | scan |
| | | import scan from "@/components/scan/scan.vue"; |
| | | export default { |
| | | components: { |
| | | scan |
| | | }, |
| | | data() { |
| | | return { |
| | | originList: [], |
| | | locationList: [], |
| | | keywords: "", |
| | | dictType: "warehouse_type", |
| | | listLocType: [] |
| | | }; |
| | | }, |
| | | onLoad(params) { |
| | | |
| | | //è·åæ° åºä½ç¶æ |
| | | this.$u.api.dictData({ |
| | | dictType: this.dictType |
| | | }).then(res => { |
| | | this.listLocType = res.data; |
| | | |
| | | }); |
| | | |
| | | if (params && params.workstationNo !== "undefined") { |
| | | this.loadList(params.workstationNo); |
| | | } |
| | | |
| | | }, |
| | | onShow() { |
| | | let that = this |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function (data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('æ«ç ç»æï¼', data.code); |
| | | that.search(data.code); |
| | | }) |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | uni.scanCode({ |
| | | success: res => { |
| | | try { |
| | | const result = JSON.parse(res.result) |
| | | |
| | | } catch (e) { } |
| | | } |
| | | }); |
| | | }, |
| | | methods: { |
| | | getLocTypeName(locType) { |
| | | let reDate = "" |
| | | let that = this |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ |
| | | let list = that.listLocType.filter(item => item.value == locType) |
| | | if (list.length > 0) { |
| | | reDate = list[0].label |
| | | } |
| | | return reDate |
| | | }, |
| | | data() { |
| | | return { |
| | | originList: [], |
| | | locationList: [], |
| | | keywords: "", |
| | | dictType: "warehouse_type", |
| | | listLocType: [] |
| | | }; |
| | | }, |
| | | onLoad(params) { |
| | | |
| | | //è·åæ° åºä½ç¶æ |
| | | this.$u.api.dictData({ |
| | | dictType: this.dictType |
| | | }).then(res => { |
| | | this.listLocType = res.data; |
| | | |
| | | }); |
| | | |
| | | if (params && params.workstationNo !== "undefined") { |
| | | this.loadList(params.workstationNo); |
| | | getLocStatus(locStatus) { |
| | | let reDate = "" |
| | | switch (locStatus) { |
| | | case 1: |
| | | reDate = "使ç¨"; |
| | | break; |
| | | case 0: |
| | | reDate = "åç¨"; |
| | | break; |
| | | } |
| | | |
| | | return reDate; |
| | | }, |
| | | onShow() { |
| | | selectLocation(location) { |
| | | this.refreshLastPage(location) |
| | | }, |
| | | //å·æ°ä¸ä¸ä¸ªé¡µé¢ |
| | | refreshLastPage(location) { |
| | | // åç¥ A.vue æ´æ°æ°æ® |
| | | // è·å页颿 |
| | | let pages = getCurrentPages() |
| | | |
| | | let that = this |
| | | // è·åä¸ä¸é¡µæ |
| | | let prevPage = pages[pages.length - 2] |
| | | |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function(data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('æ«ç ç»æï¼', data.code); |
| | | that.search(data.code); |
| | | // 触åä¸ä¸é¡µ upData 彿°(å¹¶æºå¸¦åæ°) |
| | | prevPage.$vm.setLocation(location) |
| | | |
| | | // è¿åä¸ä¸é¡µ |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | uni.scanCode({ |
| | | success: res => { |
| | | try { |
| | | const result = JSON.parse(res.result) |
| | | |
| | | } catch (e) {} |
| | | } |
| | | search(value) { |
| | | let that = this |
| | | if (value) { |
| | | that.locationList = that.originList.filter(item => item.locName.includes(value)) |
| | | } else { |
| | | that.locationList = that.originList |
| | | } |
| | | }, |
| | | loadList(workstationNo) { |
| | | let params = { |
| | | workstationNo: workstationNo |
| | | } |
| | | //æ ¹æ®å·¥ä½ç«ç¼å·è·åè¿è¡ä¸çå·¥å&&对åºççº¿è¾¹ä» |
| | | this.$u.api.pigxFeed.getBasicInfoForPdaFeedByWorkstationNo(params).then(res => { |
| | | this.originList = res.data.locationList |
| | | this.locationList = this.originList |
| | | }); |
| | | }, |
| | | methods: { |
| | | getLocTypeName(locType) { |
| | | let reDate = "" |
| | | let that = this |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ |
| | | let list = that.listLocType.filter(item => item.value == locType) |
| | | if (list.length > 0) { |
| | | reDate = list[0].label |
| | | } |
| | | return reDate |
| | | }, |
| | | getLocStatus(locStatus) { |
| | | let reDate = "" |
| | | switch (locStatus) { |
| | | case 1: |
| | | reDate = "使ç¨"; |
| | | break; |
| | | case 0: |
| | | reDate = "åç¨"; |
| | | break; |
| | | } |
| | | |
| | | return reDate; |
| | | }, |
| | | selectLocation(location) { |
| | | this.refreshLastPage(location) |
| | | }, |
| | | //å·æ°ä¸ä¸ä¸ªé¡µé¢ |
| | | refreshLastPage(location) { |
| | | // åç¥ A.vue æ´æ°æ°æ® |
| | | // è·å页颿 |
| | | let pages = getCurrentPages() |
| | | |
| | | // è·åä¸ä¸é¡µæ |
| | | let prevPage = pages[pages.length - 2] |
| | | |
| | | // 触åä¸ä¸é¡µ upData 彿°(å¹¶æºå¸¦åæ°) |
| | | prevPage.$vm.setLocation(location) |
| | | |
| | | // è¿åä¸ä¸é¡µ |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | }, |
| | | search(value) { |
| | | let that = this |
| | | if (value) { |
| | | that.locationList = that.originList.filter(item => item.locName.includes(value)) |
| | | } else { |
| | | that.locationList = that.originList |
| | | } |
| | | }, |
| | | loadList(workstationNo) { |
| | | let params = { |
| | | workstationNo: workstationNo |
| | | } |
| | | //æ ¹æ®å·¥ä½ç«ç¼å·è·åè¿è¡ä¸çå·¥å&&对åºççº¿è¾¹ä» |
| | | this.$u.api.pigxFeed.getBasicInfoForPdaFeedByWorkstationNo(params).then(res => { |
| | | this.originList = res.data.locationList |
| | | this.locationList = this.originList |
| | | }); |
| | | }, |
| | | } |
| | | }; |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | .list .content { |
| | | font-size: 12px; |
| | | background-color: #efefef; |
| | | box-sizing: border-box; |
| | | border-radius: 14rpx; |
| | | margin: 8px; |
| | | padding: 5px 10px; |
| | | box-shadow: none; |
| | | } |
| | | .list .content { |
| | | font-size: 12px; |
| | | background-color: #efefef; |
| | | box-sizing: border-box; |
| | | border-radius: 14rpx; |
| | | margin: 8px; |
| | | padding: 5px 10px; |
| | | box-shadow: none; |
| | | } |
| | | |
| | | .row-list { |
| | | display: flex; |
| | | flex-direction: row; |
| | | } |
| | | .row-list { |
| | | display: flex; |
| | | flex-direction: row; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | flex: 0.8; |
| | | color: #909399; |
| | | } |
| | | .row-list ._label { |
| | | flex: 0.8; |
| | | color: #909399; |
| | | } |
| | | |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | text-align: right; |
| | | } |
| | | |
| | | .nodata{width: 20%;margin: auto;} |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | text-align: right; |
| | | } |
| | | |
| | | .nodata { |
| | | width: 20%; |
| | | margin: auto; |
| | | } |
| | | </style> |
| | |
| | | </u-field> |
| | | </modalBg> |
| | | <saveForm ref="saveForm" /> |
| | | <scan></scan> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import modalBg from '@/components/modal/modal-bg.vue' |
| | | import saveForm from './components/saveForm.vue' |
| | | import scan from "@/components/scan/scan.vue"; |
| | | export default { |
| | | components: { modalBg, saveForm }, |
| | | components: { modalBg, saveForm, scan }, |
| | | data() { |
| | | return { |
| | | checkboxList: [ |
| | |
| | | onReady() { |
| | | this.$refs.uForm.setRules(this.rules); |
| | | }, |
| | | onShow() { |
| | | let that = this |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function (data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('页颿«ç ç»æï¼', data.code); |
| | | if (data.code) { |
| | | let codeInfo = JSON.parse(data.code) |
| | | if (codeInfo.WorkNo) { |
| | | // æ«ææ¥å·¥åäºç»´ç |
| | | that.saveForm(codeInfo); |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // å¤éå¤ç |
| | | changeCheckbox(val) { |
| | |
| | | url: '/pages/product/report/orderList' |
| | | }) |
| | | }, |
| | | // å订åå· |
| | | setNo(val) { |
| | | this.form.value3 = val |
| | | }, |
| | | // åæ¾æ«ç çä¿¡æ¯-æ¥å·¥å |
| | | saveForm(val) { |
| | | let { WorkNo, ProcessName, ORDER_NO } = val |
| | | this.form.value1 = WorkNo |
| | | this.form.value2 = ProcessName |
| | | this.form.value3 = ORDER_NO |
| | | } |
| | | } |
| | | } |
| | |
| | | <u-grid :border="false"> |
| | | <u-grid-item v-for="(baseListItem, baseListIndex) in item.list" :key="baseListIndex" |
| | | @click="navTo(baseListItem.url)"> |
| | | <img :src="require(`@/static/custom/home/${baseListItem.icon}.png`)" alt=""> |
| | | <view class="img" :style="`background: url(../../../static/custom/home/${baseListItem.icon}.png) no-repeat;`"> |
| | | </view> |
| | | <text class="grid-text">{{ baseListItem.name }}</text> |
| | | </u-grid-item> |
| | | </u-grid> |
| | |
| | | { |
| | | name: 'æ¥å·¥', |
| | | url: '/pages/product/report/index', |
| | | icon: 'æ¥å·¥' |
| | | icon: 'one' |
| | | }, |
| | | { |
| | | name: 'åæ¶æ¥å·¥', |
| | | url: '/pages/product/cancelReport/index', |
| | | icon: 'åæ¶æ¥å·¥' |
| | | icon: 'two' |
| | | }, |
| | | { |
| | | name: 'æ¥æ¶ï¼éæï¼', |
| | | url: '/', |
| | | icon: 'æ¥æ¶ï¼éæï¼' |
| | | icon: 'three' |
| | | }, |
| | | { |
| | | name: '车é´è®¢åä¸å', |
| | | url: '/', |
| | | icon: '车é´è®¢åä¸å' |
| | | icon: 'four' |
| | | }, |
| | | { |
| | | name: '车é´åæ¶ä¸å', |
| | | url: '/', |
| | | icon: '车é´åæ¶ä¸å' |
| | | icon: 'five' |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | { |
| | | name: 'ç§»åº', |
| | | url: '/pages/wareHouse/moveWareHouse/index', |
| | | icon: 'ç§»åº' |
| | | icon: 'six' |
| | | }, |
| | | { |
| | | name: 'çç¹æ¥åçç¹', |
| | | url: '/pages/wareHouse/inventory/index', |
| | | icon: 'çç¹æ¥åçç¹' |
| | | icon: 'seven' |
| | | }, |
| | | { |
| | | name: 'æ ¸ç£
å½å
¥', |
| | | url: '/pages/wareHouse/packing/registration', |
| | | icon: 'æ ¸ç£
å½å
¥' |
| | | icon: 'eight' |
| | | }, |
| | | { |
| | | name: 'åºåä»¶çç¹', |
| | | url: '/pages/wareHouse/inventory/index', |
| | | icon: 'åºåä»¶çç¹' |
| | | icon: 'nine' |
| | | }, |
| | | { |
| | | name: '导ä½å¤è´§çç¹', |
| | | url: '/pages/wareHouse/inventory/index', |
| | | icon: '导ä½å¤è´§çç¹' |
| | | icon: 'ten' |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | { |
| | | name: '颿', |
| | | url: '/pages/wareHouse/moveWareHouse/index', |
| | | icon: '颿' |
| | | icon: 'eleven' |
| | | }, |
| | | { |
| | | name: '忶颿', |
| | | url: '/pages/wareHouse/inventory/index', |
| | | icon: '忶颿' |
| | | icon: 'twelve' |
| | | }, |
| | | ] |
| | | } |
| | |
| | | </script> |
| | | <style lang="scss"> |
| | | .wrap { |
| | | height: calc(100vh - 200rpx); |
| | | height: 100%; |
| | | background: linear-gradient(to bottom, #e5f0ff, #f6f9ff); |
| | | overflow-y: auto; |
| | | } |
| | |
| | | .u-grid-item { |
| | | background: transparent !important; |
| | | } |
| | | |
| | | .img { |
| | | width: 96rpx; |
| | | height: 96rpx; |
| | | background-size: contain !important; |
| | | background-position: center !important; |
| | | } |
| | | </style> |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .my { |
| | | height: calc(100vh - 100rpx); |
| | | height: 100%; |
| | | background: linear-gradient(to bottom, #E5F0FF, #F6F9FF); |
| | | |
| | | .my-head { |
| | |
| | | <template> |
| | | <view class="page"> |
| | | <view class="inventory-list-bg"/> |
| | | <u-navbar title="çç¹å表" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" back-icon-color="#000"/> |
| | | <view class="inventory-list-search"> |
| | | <u-search v-model="query.inyNo" shape="square" bg-color="rgba(250,252,255,0.36)" :show-action="false" placeholder="çç¹ç¼å·" @clear="search" @custom="search" @search="search"> |
| | | </u-search> |
| | | </view> |
| | | <view class="wrap"> |
| | | <scroll-view class="inventory-list-scroll-list" scroll-y="true" @scrolltolower="loadMore"> |
| | | <u-cell-group class="inventory-list-scroll-list-group" :border="false"> |
| | | <view class="content" v-for="(item, index) in list" :key="index" :index="index" |
| | | @click="goDetail(item)"> |
| | | <view class="content-header"> |
| | | <view class="content-header-left"> |
| | | <view class="content-header-icon"></view> |
| | | <view class="content-header-title">çç¹ç¼å·ï¼{{ item.inyNo }}</view> |
| | | </view> |
| | | <view class="content-header-right"> |
| | | {{item.inyStatus=='finished'?'已宿':'è稿'}} |
| | | </view> |
| | | </view> |
| | | <view class="content-body"> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-1"> |
| | | </view> |
| | | <view class="_label-name">çç¹æè¿°ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.inyDesc||'æ ' }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-2"> |
| | | </view> |
| | | <view class="_label-name">å 建 人ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.createUser }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-3"> |
| | | </view> |
| | | <view class="_label-name">å建æ¶é´ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.createTime }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-bg" /> |
| | | <u-navbar title="çç¹æ¥åçç¹" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" |
| | | back-icon-color="#000" /> |
| | | <view class="packing-registration-param"> |
| | | <view class="packing-registration-param-view"> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">çç¹æ¥åå·</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two" |
| | | @click="seachPersonnelNo()">{{registerInfo.value1=='' ? "ç¹å»éæ©":registerInfo.value1}}</text> |
| | | <u-icon name="arrow-right" color="#687792" size="28" @click="seachPersonnelNo()" |
| | | v-show="registerInfo.value1 ==''"></u-icon> |
| | | </view> |
| | | </view> |
| | | </u-cell-group> |
| | | <view class="loadmore" @click="loadMore"> |
| | | <u-loadmore :status="loadStatus"></u-loadmore> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">ä»åº</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{registerInfo.value2}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">é¶ä»¶å·</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <view class="item-one item-two" @click="openPN()"> |
| | | <text>{{registerInfo.value6=='' ? "ç¹å»è¾å
¥":registerInfo.value6}}</text> |
| | | </view> |
| | | <u-icon name="arrow-right" color="#687792" size="28" v-show="registerInfo.value6==''"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">æ¹æ¬¡å·</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right" @click="openBatch()"> |
| | | <text class="item-one item-two">{{registerInfo.value3=='' ? "ç¹å»è¾å
¥":registerInfo.value3}}</text> |
| | | <u-icon name="arrow-right" color="#687792" size="28" v-show="registerInfo.value3==''"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">åºä½å·</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right" @click="openLocation()"> |
| | | <view class="item-one item-two"> |
| | | <text>{{registerInfo.value4 == '' ? "ç¹å»è¾å
¥":registerInfo.value4}}</text> |
| | | </view> |
| | | <u-icon name="arrow-right" color="#687792" size="28" v-show="registerInfo.value4==''"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">çç¹æ°é</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right" @click="openPhysicalInventory()"> |
| | | <view class="item-one item-two"> |
| | | <text>{{registerInfo.value5 == '' ? "ç¹å»è¾å
¥":registerInfo.value5}}</text> |
| | | </view> |
| | | <u-icon name="arrow-right" color="#687792" size="28" v-show="registerInfo.value4==''"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">çç¹è®°å½ï¼</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | <view class="wrap"> |
| | | <scroll-view class="packing-registration-scroll-list" scroll-y="true"> |
| | | <u-cell-group class="packing-registration-scroll-list-group" :border="false"> |
| | | <!-- <div class="tip" style="text-align: center;" v-if="hasScanSnList.length==0">-请æ«ç -</div> --> |
| | | <view class="content" v-for="(item, index) in hasScanSnList" :key="index" :index="index"> |
| | | <view class="content-header"> |
| | | <view class="content-header-title">{{ index+1 }}</view> |
| | | </view> |
| | | <view class="content-body"> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-name">é¶ä»¶å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-name">æ¹æ¬¡å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value1 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-name">åºä½å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-name">çç¹æ°éï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value1 }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </u-cell-group> |
| | | </scroll-view> |
| | | <view class="registration-form-footer"> |
| | | <u-button class="btn" type="primary" @click="goSubmit">æäº¤</u-button> |
| | | </view> |
| | | <scan></scan> |
| | | <!-- é¶ä»¶å· --> |
| | | <modalBg ref="openPN" :confirm="confirmPN"> |
| | | <u-field v-model="registerInfo.value6" label="é¶ä»¶å·ï¼" placeholder="请è¾å
¥" :border-bottom="false"> |
| | | </u-field> |
| | | </modalBg> |
| | | <!-- æ¹æ¬¡å· --> |
| | | <modalBg ref="openBatch" :confirm="confirmBatch"> |
| | | <u-field v-model="registerInfo.value3" label="æ¹æ¬¡å·ï¼" placeholder="请è¾å
¥" :border-bottom="false"> |
| | | </u-field> |
| | | </modalBg> |
| | | <!-- åºä½å· --> |
| | | <modalBg ref="openLocation" :confirm="confirmLocation"> |
| | | <u-field v-model="registerInfo.value4" label="åºä½å·ï¼" placeholder="请è¾å
¥" :border-bottom="false"> |
| | | </u-field> |
| | | </modalBg> |
| | | <!-- çç¹æ°é --> |
| | | <modalBg ref="openPhysicalInventory" :confirm="confirmPhysicalInventory"> |
| | | <u-field v-model="registerInfo.value5" label="çç¹æ°éï¼" label-width="140" placeholder="请è¾å
¥" |
| | | :border-bottom="false"> |
| | | </u-field> |
| | | </modalBg> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import content_bg from '@/static/custom/inventory/locNoBg.png' |
| | | import modalBg from '@/components/modal/modal-bg.vue' |
| | | import scan from "@/components/scan/scan.vue"; |
| | | import content_bg from '@/static/custom/packing/backBg.png' |
| | | export default { |
| | | components: { |
| | | scan, |
| | | modalBg |
| | | }, |
| | | data() { |
| | | return { |
| | | background:{ |
| | | background: { |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: 'fixed', |
| | | backgroundSize: '100% auto', |
| | | backgroundRepeat: 'no-repeat', |
| | | }, |
| | | keywords: '', |
| | | query: { |
| | | current: 1, |
| | | size: 20, |
| | | criteria:JSON.stringify({ |
| | | orderBy:{ |
| | | column:'createTime', |
| | | direction:'desc' |
| | | } |
| | | }) |
| | | labelStyle: { |
| | | fontSize: '32rpx', |
| | | whiteSpace: 'nowrap' |
| | | }, |
| | | list: [], |
| | | count: 0, |
| | | loadStatus: 'loading' |
| | | registerInfo: { |
| | | value1: '', |
| | | value2: '', |
| | | value3: '', |
| | | value4: '', |
| | | value5: '', |
| | | value6: '' |
| | | }, |
| | | hasScanSnList: [ |
| | | { |
| | | value0: '11111111111111111111111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3:'111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3:'111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3:'111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3:'111', |
| | | }, |
| | | ], |
| | | delContent: null, |
| | | staffList: [], |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | this.loadList(); |
| | | }, |
| | | onLoad(option) {}, |
| | | onShow() { |
| | | |
| | | let that = this |
| | | |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function(data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('æ«ç ç»æï¼', data.code); |
| | | that.scanHandle(data.code) |
| | | that.$forceUpdate(); |
| | | |
| | | }) |
| | | }, |
| | | filters: { |
| | | inyStatus(val) { |
| | | let inyStatus = { |
| | | finished: '已宿', |
| | | draft: 'è稿', |
| | | } |
| | | return inyStatus[val] |
| | | } |
| | | onNavigationBarButtonTap() { |
| | | this.goScan() |
| | | }, |
| | | onReady() {}, |
| | | methods: { |
| | | loadMore() { |
| | | if(this.loadStatus == "nomore"){ |
| | | return |
| | | } |
| | | this.loadStatus = "loading"; |
| | | setTimeout(() => { |
| | | this.query.current += 1; |
| | | this.loadList(); |
| | | }, 100); |
| | | //é¶ä»¶å· |
| | | openPN() { |
| | | this.$refs.openPN.open(); |
| | | }, |
| | | loadList() { |
| | | this.$u.api.inventory.getMain(this.query).then(res => { |
| | | this.list = this.list.concat(res.data.records); |
| | | //this.total = res.data.total; |
| | | this.query.current = res.data.current; |
| | | this.query.size = res.data.size; |
| | | this.loadStatus = "loadmore"; |
| | | if (!res.data.records || res.data.records.length < this.query.size) { |
| | | this.loadStatus = "nomore"; |
| | | // å¼¹æ¡ä¿å |
| | | confirmPN() { |
| | | console.log('ä¿å', this.registerInfo.value6); |
| | | // è¯·æ±æ¥å£ï¼æ ¹æ®å·¥åå·æ¥è¯¢å
¶ä»ä¿¡æ¯å¹¶èµå¼ |
| | | }, |
| | | //æ¹æ¬¡å· |
| | | openBatch() { |
| | | this.$refs.openBatch.open(); |
| | | }, |
| | | // å¼¹æ¡ä¿å |
| | | confirmBatch() { |
| | | console.log('ä¿å', this.registerInfo.value3); |
| | | // è¯·æ±æ¥å£ï¼æ ¹æ®å·¥åå·æ¥è¯¢å
¶ä»ä¿¡æ¯å¹¶èµå¼ |
| | | }, |
| | | //åºä½å· |
| | | openLocation() { |
| | | this.$refs.openLocation.open(); |
| | | }, |
| | | // å¼¹æ¡ä¿å |
| | | confirmLocation() { |
| | | console.log('ä¿å', this.registerInfo.value4); |
| | | // è¯·æ±æ¥å£ï¼æ ¹æ®å·¥åå·æ¥è¯¢å
¶ä»ä¿¡æ¯å¹¶èµå¼ |
| | | }, |
| | | //çç¹æ°é |
| | | openPhysicalInventory() { |
| | | this.$refs.openPhysicalInventory.open(); |
| | | }, |
| | | // å¼¹æ¡ä¿å |
| | | confirmPhysicalInventory() { |
| | | console.log('ä¿å', this.registerInfo.value5); |
| | | // è¯·æ±æ¥å£ï¼æ ¹æ®å·¥åå·æ¥è¯¢å
¶ä»ä¿¡æ¯å¹¶èµå¼ |
| | | }, |
| | | |
| | | setNo(val) { |
| | | console.log('11111', val) |
| | | this.registerInfo.value1 = val.value1 |
| | | this.registerInfo.value2 = val.value2 |
| | | |
| | | }, |
| | | //çç¹æ¥åå· |
| | | seachPersonnelNo() { |
| | | console.log('11111') |
| | | uni.navigateTo({ |
| | | url: '/pages/wareHouse/inventory/orderList' |
| | | }) |
| | | }, |
| | | goScan() { |
| | | uni.scanCode({ |
| | | scanType: ['qrCode'], |
| | | success: res => { |
| | | try { |
| | | console.log('æ«ç ç»æï¼', res); |
| | | this.scanHandle(res.result) |
| | | } catch (e) {} |
| | | } |
| | | }); |
| | | }, |
| | | search(value) { |
| | | this.list = []; |
| | | this.query.current = 1; |
| | | this.loadList(); |
| | | }, |
| | | goDetail(item) { |
| | | if(item.inyStatus === 'finished'){ |
| | | uni.showToast({ |
| | | title: "çç¹å·²å®æã", |
| | | icon: "none" |
| | | }); |
| | | return |
| | | scanHandle(scanresult) { |
| | | scanresult = scanresult.replace(/[\r\n]/g, "") |
| | | if (scanresult.indexOf('{') > -1) { |
| | | //äºç»´ç |
| | | const result = JSON.parse(scanresult) |
| | | //å¢å SNæ ¡éª |
| | | if (result.sn_no && result.sn_no != null && result.sn_no != '') { |
| | | if (this.hasScanSnList.length > 0) { |
| | | let hasScanSnIndex = this.hasScanSnList.indexOf(result.sn_no) |
| | | if (hasScanSnIndex < 0) { |
| | | this.hasScanSnList.push(result.sn_no) |
| | | } else { |
| | | this.$u.toast('请å¿é夿«æ') |
| | | } |
| | | } else { |
| | | this.hasScanSnList.push(result.sn_no) |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | //å¢å SNæ ¡éª |
| | | if (this.hasScanSnList.length > 0) { |
| | | let hasScanSnIndex = this.hasScanSnList.indexOf(scanresult) |
| | | if (hasScanSnIndex < 0) { |
| | | this.hasScanSnList.push(scanresult) |
| | | } else { |
| | | this.$u.toast('请å¿é夿«æ') |
| | | } |
| | | } else { |
| | | this.hasScanSnList.push(scanresult) |
| | | } |
| | | } |
| | | uni.navigateTo({ |
| | | url: `/pages/wareHouse/inventory/detail?id=${item.id}&no=${item.inyNo}` |
| | | }) |
| | | } |
| | | }, |
| | | goSubmit() { |
| | | // if (this.registerInfo.shiftId == null || this.registerInfo.shiftId == '') { |
| | | // this.$u.toast('è¯·éæ©çæ¬¡') |
| | | // return |
| | | // } |
| | | // if (this.registerInfo.value3 == null || this.registerInfo.value3 == '') { |
| | | // this.$u.toast('è¯·éæ©æ¥æ') |
| | | // return |
| | | // } |
| | | // if (this.registerInfo.locNo == null || this.registerInfo.locNo == '') { |
| | | // this.$u.toast('è¯·éæ©å
è£
åºä½') |
| | | // return |
| | | // } |
| | | // if (this.hasScanSnList.length == 0) { |
| | | // this.$u.toast('æ å¾
æäº¤çSNå·æç»') |
| | | // return |
| | | // } |
| | | // let registrList = [] |
| | | // this.staffList = [] |
| | | // this.staffNameList.forEach((item) => { |
| | | // this.staffList.push({ |
| | | // staffId: item.id |
| | | // }) |
| | | // }) |
| | | // this.hasScanSnList.forEach((item) => { |
| | | // registrList.push({ |
| | | // shiftId: this.registerInfo.shiftId, |
| | | // value3: this.registerInfo.value3, |
| | | // locNo: this.registerInfo.locNo, |
| | | // partBatchNo: item, |
| | | // staffList: this.staffList |
| | | // }) |
| | | // }) |
| | | // this.$u.api.pigxPacking.addPackageRegister(registrList).then(res => { |
| | | // let resData = res.data |
| | | // this.hasScanSnList = [] |
| | | // this.$u.toast('æäº¤æå') |
| | | // }).catch((e) => { |
| | | // }) |
| | | |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .inventory-list-bg{ |
| | | <style lang="scss" scoped> |
| | | .packing-registration-bg { |
| | | background-color: #F6F9FF; |
| | | background-image: url('~@/static/custom/inventory/locNoBg.png'); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | background-image: url('~@/static/custom/packing/backBg.png'); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .inventory-list-search{ |
| | | padding: 40rpx 30rpx 20rpx 30rpx; |
| | | } |
| | | .wrap .inventory-list-scroll-list{ |
| | | height:calc(100vh - var(--window-top) - var(--window-bottom) - 242rpx); |
| | | width:100%; |
| | | } |
| | | .inventory-list-scroll-list-group{ |
| | | ::v-deep .u-cell-item-box { |
| | | background-color:rgba(250,252,255,0.36) !important; |
| | | padding:0rpx 30rpx ; |
| | | } |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #FFFFFF; |
| | | box-sizing: border-box; |
| | | |
| | | .packing-registration-param { |
| | | padding: 40rpx 30rpx 10rpx 30rpx; |
| | | |
| | | .packing-registration-param-title { |
| | | display: flex; |
| | | flex-direction: row; |
| | | align-items: center; |
| | | margin-bottom: 30rpx; |
| | | |
| | | .title-label { |
| | | margin-left: 14rpx; |
| | | font-size: 34rpx; |
| | | font-weight: bold; |
| | | color: #283E65; |
| | | } |
| | | } |
| | | |
| | | .packing-registration-param-view { |
| | | height: 615rpx; |
| | | background-color: #fff; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | height: 298rpx; |
| | | padding: 10rpx 20rpx; |
| | | box-shadow: none; |
| | | .content-header{ |
| | | padding: 0rpx 23rpx; |
| | | margin-bottom: 30rpx; |
| | | |
| | | .packing-registration-param-item { |
| | | height: 90rpx; |
| | | border: 1px solid #ADC8E4; |
| | | line-height: 90rpx; |
| | | display: flex; |
| | | align-items:center; |
| | | justify-content: space-between; |
| | | .content-header-left{ |
| | | display: flex; |
| | | align-items:center; |
| | | .content-header-icon{ |
| | | background-image: url('~@/static/custom/inventory/icon_5.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:28rpx; |
| | | width:28rpx; |
| | | } |
| | | .content-header-title{ |
| | | margin-left: 11rpx; |
| | | font-size: 28rpx; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | border: none; |
| | | |
| | | .packing-registration-param-item-left { |
| | | .item-one { |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | } |
| | | } |
| | | .content-header-right{ |
| | | text-align: right; |
| | | font-weight: bold; |
| | | color: #FB5B25; |
| | | |
| | | .packing-registration-param-item-right { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .item-one { |
| | | font-size: 30rpx; |
| | | color: #333333; |
| | | margin-right: 6rpx; |
| | | } |
| | | |
| | | .item-two { |
| | | font-size: 30rpx; |
| | | color: #A6B4CC; |
| | | margin-right: 6rpx; |
| | | } |
| | | |
| | | .item-three { |
| | | font-size: 30rpx; |
| | | color: #214DED; |
| | | margin-right: 6rpx; |
| | | } |
| | | } |
| | | } |
| | | .content-body{ |
| | | height:184rpx; |
| | | background: #F5F9FF; |
| | | border-radius: 10rpx; |
| | | padding: 0rpx 23rpx; |
| | | .row-list { |
| | | height: 60rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | } |
| | | .row-list ._label { |
| | | display: flex; |
| | | flex: 0.6; |
| | | color: #909399; |
| | | align-items: center; |
| | | ._label-icon-1{ |
| | | background-image: url('~@/static/custom/inventory/label-icon-1.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:26rpx; |
| | | width:26rpx; |
| | | } |
| | | ._label-icon-2{ |
| | | background-image: url('~@/static/custom/inventory/icon3.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:26rpx; |
| | | width:26rpx; |
| | | } |
| | | ._label-icon-3{ |
| | | background-image: url('~@/static/custom/inventory/icon4.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height:26rpx; |
| | | width:26rpx; |
| | | } |
| | | ._label-name{ |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #909399; |
| | | |
| | | } |
| | | } |
| | | |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | color: #666666; |
| | | font-size: 24rpx; |
| | | } |
| | | .row-list .s1 { |
| | | color:#D35651; |
| | | } |
| | | |
| | | .param-extra { |
| | | border-bottom: 1px solid #EDEDED; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | |
| | | .wrap .packing-registration-scroll-list { |
| | | height: calc(100vh - var(--window-top) - var(--window-bottom) - 930rpx); |
| | | width: 100%; |
| | | } |
| | | |
| | | .packing-registration-scroll-list-group { |
| | | ::v-deep .u-cell-item-box { |
| | | background-color: rgba(250, 252, 255, 0.36) !important; |
| | | padding: 0rpx 30rpx; |
| | | } |
| | | |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #ffffff; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | padding: 20rpx 8rpx; |
| | | box-shadow: none; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header { |
| | | width: 40rpx; |
| | | height: 90rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header-icon { |
| | | background-image: url("~@/static/custom/moveWareHouse/header_icon.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | |
| | | .content-header-title { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #626369; |
| | | } |
| | | } |
| | | |
| | | .content-body { |
| | | flex: 1; |
| | | background-color: #ffffff; |
| | | border-radius: 10rpx; |
| | | padding: 0rpx 23rpx; |
| | | |
| | | .row-list { |
| | | height: 60rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | display: flex; |
| | | flex: 0.8; |
| | | color: #909399; |
| | | align-items: center; |
| | | |
| | | ._label-name { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #666666; |
| | | } |
| | | } |
| | | |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .row-list .s1 { |
| | | color: #d35651; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .registration-form-footer { |
| | | display: flex; |
| | | margin-top: 10rpx; |
| | | margin-bottom: 10rpx; |
| | | margin-left: 20rpx; |
| | | margin-right: 20rpx; |
| | | padding-bottom: 14rpx; |
| | | |
| | | .btn { |
| | | flex: 1; |
| | | margin: 10rpx; |
| | | background: #214DED; |
| | | box-shadow: 0rpx 6rpx 8rpx 0rpx rgba(4, 49, 212, 0.3); |
| | | font-weight: bold; |
| | | color: #FEFEFE; |
| | | font-family: PingFang SC; |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page"> |
| | | <view class="finishProductIn-locno-bg" /> |
| | | <u-navbar |
| | | title="çç¹æ¥åå·" |
| | | :background="background" |
| | | :border-bottom="false" |
| | | :title-bold="true" |
| | | title-color="#000" |
| | | back-icon-color="#000" |
| | | /> |
| | | <view class="finishProductIn-locno-search"> |
| | | <u-search |
| | | v-model="keywords" |
| | | shape="square" |
| | | bg-color="rgba(250,252,255,0.36)" |
| | | :show-action="false" |
| | | placeholder="请è¾å
¥çç¹æ¥åå·" |
| | | @clear="search" |
| | | @custom="search" |
| | | @search="search" |
| | | > |
| | | </u-search> |
| | | </view> |
| | | <view class="wrap"> |
| | | <scroll-view |
| | | class="finishProductIn-locno-scroll-list" |
| | | scroll-y="true" |
| | | @scrolltolower="loadMore" |
| | | > |
| | | <u-cell-group |
| | | class="finishProductIn-locno-scroll-list-group" |
| | | :border="false" |
| | | > |
| | | <view |
| | | class="content" |
| | | v-for="(item, index) in list" |
| | | :key="item.locNo" |
| | | :index="index" |
| | | @click="selectNo(item.index)" |
| | | > |
| | | <view class="content-header"> |
| | | <view class="content-header-title">{{ item.index }}</view> |
| | | </view> |
| | | <view class="content-body"> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-1"> </view> |
| | | <view class="_label-name">çç¹æ¥åå·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-icon-2"> </view> |
| | | <view class="_label-name">ä»åºï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value1 }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </u-cell-group> |
| | | <view class="loadmore" @click="loadMore"> |
| | | <u-loadmore :status="loadStatus"></u-loadmore> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import content_bg from "@/static/custom/finishProductIn/locNoBg.png"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | background: { |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: "fixed", |
| | | backgroundSize: "100% auto", |
| | | backgroundRepeat: "no-repeat", |
| | | }, |
| | | keywords: "", |
| | | alllist: [], |
| | | originList: [], |
| | | query: { |
| | | current: 1, |
| | | size: 10, |
| | | }, |
| | | list: [ |
| | | { |
| | | index: 1, |
| | | value0: "123456789", |
| | | value1: "123456789", |
| | | }, |
| | | ], |
| | | count: 0, |
| | | loadStatus: "loading", |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | this.$u.api.finishProductIn.fetchList().then((res) => { |
| | | this.alllist = res.data; |
| | | this.originList = res.data; |
| | | this.loadList(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | loadMore() { |
| | | if (this.loadStatus == "nomore" || this.loadStatus == "loading") { |
| | | return; |
| | | } |
| | | this.loadStatus = "loading"; |
| | | setTimeout(() => { |
| | | this.query.current += 1; |
| | | this.loadList(); |
| | | }, 100); |
| | | }, |
| | | loadList() { |
| | | const data = this.originList.slice( |
| | | (this.query.current - 1) * this.query.size, |
| | | this.query.current * this.query.size |
| | | ); |
| | | this.list = this.list.concat(data); |
| | | this.loadStatus = "loadmore"; |
| | | if (!data || data.length < this.query.size) { |
| | | this.loadStatus = "nomore"; |
| | | } |
| | | }, |
| | | search(value) { |
| | | this.list = []; |
| | | this.query.current = 1; |
| | | if (value) { |
| | | this.originList = this.alllist.filter((item) => |
| | | item.locNo.includes(value) |
| | | ); |
| | | } else { |
| | | this.originList = this.alllist; |
| | | } |
| | | this.loadList(); |
| | | }, |
| | | selectNo(no) { |
| | | this.refreshLastPage(no); |
| | | }, |
| | | |
| | | //å·æ°ä¸ä¸ä¸ªé¡µé¢ |
| | | refreshLastPage(no) { |
| | | // åç¥ A.vue æ´æ°æ°æ® |
| | | // è·å页颿 |
| | | let pages = getCurrentPages(); |
| | | |
| | | // è·åä¸ä¸é¡µæ |
| | | let prevPage = pages[pages.length - 2]; |
| | | |
| | | // 触åä¸ä¸é¡µ upData 彿°(å¹¶æºå¸¦åæ°) |
| | | prevPage.$vm.setNo({ |
| | | value1: 1896, |
| | | value2: "éæ", |
| | | }); |
| | | |
| | | // è¿åä¸ä¸é¡µ |
| | | uni.navigateBack({ |
| | | delta: 1, |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | .finishProductIn-locno-bg { |
| | | background-color: #f6f9ff; |
| | | background-image: url("~@/static/custom/finishProductIn/locNoBg.png"); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .finishProductIn-locno-search { |
| | | padding: 40rpx 30rpx 20rpx 30rpx; |
| | | } |
| | | |
| | | .wrap .finishProductIn-locno-scroll-list { |
| | | height: calc(100vh - var(--window-top) - var(--window-bottom) - 242rpx); |
| | | width: 100%; |
| | | } |
| | | |
| | | .finishProductIn-locno-scroll-list-group { |
| | | ::v-deep .u-cell-item-box { |
| | | background-color: rgba(250, 252, 255, 0.36) !important; |
| | | padding: 0rpx 30rpx; |
| | | } |
| | | |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #ffffff; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | padding: 20rpx 8rpx; |
| | | box-shadow: none; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header { |
| | | width: 40rpx; |
| | | height: 90rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header-icon { |
| | | background-image: url("~@/static/custom/moveWareHouse/header_icon.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | |
| | | .content-header-title { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #3d52f5; |
| | | } |
| | | } |
| | | |
| | | .content-body { |
| | | flex: 1; |
| | | background: #f5f9ff; |
| | | border-radius: 10rpx; |
| | | padding: 0rpx 23rpx; |
| | | |
| | | .row-list { |
| | | height: 60rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | display: flex; |
| | | flex: 0.8; |
| | | color: #909399; |
| | | align-items: center; |
| | | |
| | | ._label-icon-1 { |
| | | background-image: url("~@/static/custom/moveWareHouse/label-icon-1.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ._label-icon-2 { |
| | | background-image: url("~@/static/custom/moveWareHouse/label-icon-2.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ._label-icon-3 { |
| | | background-image: url("~@/static/custom/moveWareHouse/label-icon-3.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | } |
| | | |
| | | ._label-name { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #666666; |
| | | } |
| | | } |
| | | |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .row-list .s1 { |
| | | color: #d35651; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <view class="movewarehouse-index-bg" /> |
| | | <u-navbar title="ç§»åº" :background="background" :border-bottom="false" :title-bold="true" title-color="#000" |
| | | back-icon-color="#000" /> |
| | | <view class="movewarehouse-index-search"> |
| | | <!--<u-search v-model="keywords" shape="square" bg-color="rgba(250,252,255,0.36)" :show-action="false" placeholder="请è¾å
¥åºä½å·" @clear="search" @custom="search" @search="search"> |
| | | </u-search>--> |
| | | <view class="movewarehouse-index-search-view"> |
| | | <view class="movewarehouse-index-search-view-item"> |
| | | <text class="item-one">è³åºä½å·</text> |
| | | <text class="item-one-content">{{ tolocationNo }}</text> |
| | | <view class="packing-registration-param"> |
| | | <view class="packing-registration-param-view"> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">åºä½</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{registerInfo.storageLocation}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="movewarehouse-index-search-view-item" @click="seachLocationNo()"> |
| | | <text class="item-two">è¯·éæ©</text> |
| | | <u-icon name="arrow-right" color="#2979ff" size="28"></u-icon> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">{{`ç§»åºè®°å½(${registerInfo.num}æ¡)ï¼`}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="wrap"> |
| | | <scroll-view class="movewarehouse-index-scroll-list" scroll-y="true"> |
| | | <u-cell-group class="movewarehouse-index-scroll-list-group" :border="false"> |
| | | <view class="content" v-for="(item, index) in list" :key="item.id" :index="index"> |
| | | <scroll-view class="packing-registration-scroll-list" scroll-y="true"> |
| | | <u-cell-group class="packing-registration-scroll-list-group" :border="false"> |
| | | <!-- <div class="tip" style="text-align: center;" v-if="hasScanSnList.length==0">-请æ«ç -</div> --> |
| | | <view class="content" v-for="(item, index) in hasScanSnList" :key="index" :index="index"> |
| | | <view class="content-header"> |
| | | <view class="header-item"> |
| | | <view class="content-header-icon-one"></view> |
| | | <view class="content-header-title">{{ item.partNo }}</view> |
| | | </view> |
| | | <view class="header-item"> |
| | | <view class="content-header-icon-two"></view> |
| | | <view class="content-header-title">{{ item.partBatchNo }}</view> |
| | | </view> |
| | | <view class="header-item-toolbar" @click="deleteHandle(item)"> |
| | | <view class="header-item-toolbar-del-icon"> |
| | | |
| | | </view> |
| | | <view class="header-item-toolbar-del-text"> |
| | | å é¤ |
| | | </view> |
| | | </view> |
| | | <view class="content-header-title">{{ index+1 }}</view> |
| | | </view> |
| | | <!--<view class="row-img" @click="deleteHandle(item)"> |
| | | <u-image width="18px" height="18px" src="@/static/custom/delete.png"></u-image> |
| | | </view>--> |
| | | <view class="content-body"> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | é¶ä»¶åç§°ï¼ |
| | | <view class="_label-name">é¶ä»¶å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.partName }} |
| | | {{ item.value0 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | ä»åºä½å·ï¼ |
| | | <view class="_label-name">æ¹æ¬¡å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.locationNo }} |
| | | {{ item.value1 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | <view class="_label-name">åºä½å·ï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.value0 }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | è³åºä½å·ï¼ |
| | | <view class="_label-name">çç¹æ°éï¼</view> |
| | | </view> |
| | | <view class="_content"> |
| | | {{ item.arriveLocationNo }} |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | å¯ç¨åºåï¼ |
| | | </view> |
| | | <view class="_content"> |
| | | <text class="_content-text">{{ item.availableStockQuantity }}</text> |
| | | ({{ item.unit }}) |
| | | </view> |
| | | </view> |
| | | <view class="row-list"> |
| | | <view class="_label"> |
| | | ç§»åºåºåï¼ |
| | | </view> |
| | | <view class="_content _input"> |
| | | <u-input placeholder="请è¾å
¥ç§»åºæ°é" v-model="item.moveQty" type="digit"></u-input> |
| | | <view class="edit_icon"></view> |
| | | {{ item.value1 }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </u-cell-group> |
| | | </scroll-view> |
| | | <scan></scan> |
| | | <view class="new-form-footer" v-if="list.length > 0"> |
| | | <u-button class="btn" type="primary" @click="submit">æäº¤</u-button> |
| | | </view> |
| | | </view> |
| | | <u-modal v-model="showModal" title="" :show-cancel-button="true" :show-confirm-button="true" @confirm="confirm" |
| | | @cancel="cancel"> |
| | | <view class="popup-content"> |
| | | <view class="packing-registration-param"> |
| | | <view class="packing-registration-param-view"> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">æ¹å·</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">é¶ä»¶æè¿°</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">WDR</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">ç°ææ°é</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | | <view class="packing-registration-param-item-left"> |
| | | <text class="item-one">å½ååºä½</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ 111 }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </u-modal> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import scan from "@/components/scan/scan.vue"; |
| | | import content_bg from '@/static/custom/moveWareHouse/locNoBg.png' |
| | | export default { |
| | | components: { |
| | | scan |
| | | }, |
| | | data() { |
| | | return { |
| | | background: { |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: 'fixed', |
| | | backgroundSize: '100% auto', |
| | | backgroundRepeat: 'no-repeat', |
| | | import scan from "@/components/scan/scan.vue"; |
| | | import content_bg from "@/static/custom/moveWareHouse/locNoBg.png"; |
| | | export default { |
| | | components: { |
| | | scan, |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | background: { |
| | | backgroundImage: `url(${content_bg})`, |
| | | backgroundAttachment: "fixed", |
| | | backgroundSize: "100% auto", |
| | | backgroundRepeat: "no-repeat", |
| | | }, |
| | | registerInfo: { |
| | | storageLocation: "LG001", |
| | | num: 0, |
| | | }, |
| | | showModal: true, // æ§å¶å¼¹çªæ¾ç¤ºéèçåé |
| | | hasScanSnList: [ |
| | | { |
| | | value0: '11111111111111111111111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3: '111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3: '111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3: '111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3: '111', |
| | | }, |
| | | { |
| | | value0: '111', |
| | | value1: '111', |
| | | value2: '111', |
| | | value3: '111', |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | onLoad() {}, |
| | | onShow() { |
| | | let that = this; |
| | | |
| | | uni.$off("scan"); // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on("scan", function(data) { |
| | | console.log("onscan"); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log("æ«ç ç»æï¼", data.code); |
| | | }); |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | uni.scanCode({ |
| | | success: (res) => { |
| | | try { |
| | | const result = JSON.parse(res.result); |
| | | } catch (e) {} |
| | | }, |
| | | }); |
| | | }, |
| | | methods: { |
| | | confirm() { |
| | | // å¤ç确认é»è¾ |
| | | this.show = false; |
| | | }, |
| | | list: [], |
| | | tolocationNo: "", |
| | | keywords: '' |
| | | }; |
| | | }, |
| | | onLoad() { |
| | | // this.loadList("221206000739N"); |
| | | // let data = '{"part_no":"88.118.1/A0047954","lot_batch_no":"221112000082N","qty_arrived":0.5,"wdr":"221112000082N"}' |
| | | // let data = '221206000739N' |
| | | // let sn = '' |
| | | // if (data.indexOf('{') >= 0) { |
| | | // //大æ ç¾äºä½ç |
| | | // sn = JSON.parse(data).lot_batch_no |
| | | // } else { |
| | | // //å°æ ç¾æ¡ç |
| | | // sn = data |
| | | // } |
| | | // console.log(sn); |
| | | }, |
| | | onShow() { |
| | | |
| | | let that = this |
| | | |
| | | uni.$off('scan') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scan', function (data) { |
| | | console.log('onscan'); |
| | | //æ«ç æååçåè°ï¼ä½ å¯ä»¥åèªå·±çé»è¾ä»£ç å¨è¿é |
| | | console.log('æ«ç ç»æï¼', data.code); |
| | | |
| | | if (data.code != "" && (that.tolocationNo == "")) { |
| | | uni.showToast({ |
| | | title: 'è¯·éæ©è³åºä½å·', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | let sn = '' |
| | | if (data.code.indexOf('{') >= 0) { |
| | | //大æ ç¾äºä½ç |
| | | let snNoIndex = data.code.indexOf('sn_no') |
| | | if (snNoIndex > -1) { |
| | | sn = JSON.parse(data.code).sn_no |
| | | } else { |
| | | sn = JSON.parse(data.code).lot_batch_no |
| | | } |
| | | } else { |
| | | //å°æ ç¾æ¡ç |
| | | sn = data.code |
| | | } |
| | | |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ SN æ¯å¦å·²ç»åå¨ |
| | | let initList = that.list.filter(item => item |
| | | .partBatchNo == sn) |
| | | if (initList.length > 0) { |
| | | uni.showToast({ |
| | | title: "SN:" + sn + ",å·²åå¨,è¯·éæ©å¦ä¸ä¸ªSNå·", |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | that.loadList(sn); |
| | | }) |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | uni.scanCode({ |
| | | success: res => { |
| | | try { |
| | | const result = JSON.parse(res.result) |
| | | |
| | | } catch (e) { } |
| | | } |
| | | }); |
| | | }, |
| | | methods: { |
| | | //è³åºä½ |
| | | seachLocationNo() { |
| | | uni.navigateTo({ |
| | | url: '/pages/wareHouse/moveWareHouse/locNoList' |
| | | }) |
| | | cancel() { |
| | | this.show = false; // å
³éå¼¹çª |
| | | }, |
| | | }, |
| | | loadList(sanCode) { |
| | | uni.showLoading({ |
| | | mask: true, |
| | | title: "å è½½ä¸", |
| | | }); |
| | | let that = this |
| | | |
| | | if (sanCode != "") { |
| | | let data = { |
| | | sn: sanCode |
| | | } |
| | | |
| | | //夿æ°ç»ä¸æ¯å¦åå¨ è³åºä½å· SN |
| | | let initList = that.list.filter(item => item.arriveLocationNo == that.tolocationNo).filter(item => item |
| | | .partBatchNo == sanCode) |
| | | if (initList.length > 0) { |
| | | uni.showToast({ |
| | | title: "åºä½å·:" + that.tolocationNo + ",SN:" + sanCode + ",å·²ç»æ«è¿ç ", |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | // æ¥è¯¢ç§»åºä¿¡æ¯ |
| | | that.$u.api.pigxWareHouse.list(data).then(res => { |
| | | let reList = [] |
| | | reList = res.data |
| | | |
| | | if (reList.length == 0) { |
| | | uni.showToast({ |
| | | title: "åºä½å·:" + that.tolocationNo + ",SN:" + sanCode + ",æªæ«å°ç§»åºä¿¡æ¯", |
| | | icon: "none" |
| | | }); |
| | | } else { |
| | | for (let i = 0; i < reList.length; i++) { |
| | | if (reList[i].locationNo !== that.tolocationNo) { |
| | | let item = { |
| | | id: reList[i].id, |
| | | partNo: reList[i].partNo, |
| | | partName: reList[i].partName, |
| | | partBatchNo: reList[i].partBatchNo, |
| | | ifsBatchNo: reList[i].ifsBatchNo, |
| | | unit: reList[i].unit, |
| | | locationNo: reList[i].locationNo, |
| | | availableStockQuantity: reList[i].availableStockQuantity, |
| | | arriveLocationNo: that.tolocationNo, |
| | | moveQty: 0 |
| | | } |
| | | that.list.push(item) |
| | | } |
| | | } |
| | | } |
| | | |
| | | uni.hideLoading(); |
| | | }) |
| | | } |
| | | }, |
| | | //è³åºä½å·è®¾ç½® |
| | | setNo(no) { |
| | | this.tolocationNo = no |
| | | }, |
| | | deleteHandle(obj) { |
| | | let that = this |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æ¤æä½å°å é¤è¯¥ç§»åºä¿¡æ¯, æ¯å¦ç»§ç»?', |
| | | success: function (res) { |
| | | if (res.confirm) { |
| | | that.list.map((item, index) => { |
| | | if (obj.id == item.id) { |
| | | that.list.splice(index, 1) |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | submit() { |
| | | let that = this |
| | | |
| | | that.list.map((item) => { |
| | | |
| | | |
| | | if (item.moveQty <= 0) { |
| | | uni.showToast({ |
| | | title: 'è¯·ç§»åºæ°éå¿
须大äº0', |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | |
| | | if (item.moveQty > item.availableStockQuantity) { |
| | | uni.showToast({ |
| | | title: 'ç§»åºæ°éä¸è½å¤§äºå¯ç¨åºåæ°é', |
| | | icon: "none" |
| | | }); |
| | | return |
| | | } |
| | | }); |
| | | |
| | | |
| | | let subList = [] |
| | | that.list.map((item) => { |
| | | |
| | | let sub = { |
| | | stockId: item.id, |
| | | arriveLocationNo: item.arriveLocationNo, |
| | | moveQty: item.moveQty |
| | | } |
| | | |
| | | subList.push(sub) |
| | | |
| | | }); |
| | | |
| | | that.$u.api.pigxWareHouse.addList(subList).then(res => { |
| | | |
| | | if (res.code == 0) { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æäº¤æå', |
| | | showCancel: false, |
| | | success: function () { |
| | | that.list = [] |
| | | that.tolocationNo = "" |
| | | } |
| | | }) |
| | | } else { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æäº¤å¤±è´¥', |
| | | showCancel: false, |
| | | success: function () { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | |
| | | |
| | | }, |
| | | } |
| | | }; |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .movewarehouse-index-bg { |
| | | background-color: #F6F9FF; |
| | | background-image: url('~@/static/custom/moveWareHouse/locNoBg.png'); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .movewarehouse-index-search { |
| | | padding: 40rpx 30rpx 20rpx 30rpx; |
| | | } |
| | | |
| | | .movewarehouse-index-search-view { |
| | | height: 66rpx; |
| | | border: 1px solid #ADC8E4; |
| | | border-radius: 8rpx; |
| | | background: rgba(250, 252, 255, 0.36); |
| | | line-height: 66rpx; |
| | | padding-left: 33rpx; |
| | | padding-right: 10rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .movewarehouse-index-search-view-item { |
| | | .item-one { |
| | | font-size: 30rpx; |
| | | color: #283E65; |
| | | } |
| | | |
| | | .item-one-content { |
| | | margin-left: 10rpx; |
| | | color: #909399; |
| | | font-size: 26rpx; |
| | | } |
| | | |
| | | .item-two { |
| | | font-size: 30rpx; |
| | | color: #A6B4CC; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .wrap .movewarehouse-index-scroll-list { |
| | | height: calc(100vh - var(--window-top) - var(--window-bottom) - 378rpx); |
| | | width: 100%; |
| | | } |
| | | |
| | | .movewarehouse-index-scroll-list-group { |
| | | ::v-deep .u-cell-item-box { |
| | | background-color: rgba(250, 252, 255, 0.36) !important; |
| | | padding: 0rpx 30rpx; |
| | | .person-btn-view { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-top: 300rpx; |
| | | } |
| | | |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #FFFFFF; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | height: 432rpx; |
| | | padding: 10rpx 20rpx; |
| | | box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(127, 127, 127, 0.1) !important; |
| | | position: relative; |
| | | .popup-content { |
| | | width: 600rpx; |
| | | height: 500rpx; |
| | | background-color: #fff; |
| | | border-radius: 8px; |
| | | z-index: 10; |
| | | /* ç¡®ä¿å
容å¨èçä¹ä¸ */ |
| | | } |
| | | |
| | | .content-header { |
| | | .header-item { |
| | | height: 50rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | .movewarehouse-index-bg { |
| | | background-color: #f6f9ff; |
| | | background-image: url("~@/static/custom/moveWareHouse/locNoBg.png"); |
| | | // background: linear-gradient(180deg,rgba(206,227,254,1),rgba(206,227,254,1) 20%,rgba(206,227,254,0.5) 40%,rgba(206,227,254,0.25) 60%,rgba(206,227,254,0.08) 80%,rgba(206,227,254,0)); |
| | | padding: 0 20rpx; |
| | | background-attachment: fixed; |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | position: fixed; |
| | | top: 0; |
| | | bottom: 0; |
| | | width: 100%; |
| | | z-index: -1; |
| | | } |
| | | |
| | | .content-header-icon-one { |
| | | background-image: url('~@/static/custom/moveWareHouse/label-icon-1.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | .packing-registration-param { |
| | | padding: 40rpx 30rpx 10rpx 30rpx; |
| | | |
| | | .content-header-icon-two { |
| | | background-image: url('~@/static/custom/moveWareHouse/header_icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | .packing-registration-param-title { |
| | | display: flex; |
| | | flex-direction: row; |
| | | align-items: center; |
| | | margin-bottom: 30rpx; |
| | | |
| | | .content-header-title { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #333333; |
| | | } |
| | | } |
| | | |
| | | .header-item-toolbar { |
| | | position: absolute; |
| | | background-image: url('~@/static/custom/moveWareHouse/del-icon.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 60rpx; |
| | | width: 140rpx; |
| | | right: 0; |
| | | top: 0; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | padding-top: 10rpx; |
| | | padding-right: 18rpx; |
| | | |
| | | .header-item-toolbar-del-icon { |
| | | background-image: url('~@/static/custom/moveWareHouse/icon_dele.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 25rpx; |
| | | width: 22rpx; |
| | | margin-top: 5rpx; |
| | | } |
| | | |
| | | .header-item-toolbar-del-text { |
| | | margin-left: 7rpx; |
| | | height: 23rpx; |
| | | font-size: 24rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | .title-label { |
| | | margin-left: 14rpx; |
| | | font-size: 34rpx; |
| | | font-weight: bold; |
| | | color: #283e65; |
| | | } |
| | | } |
| | | |
| | | .content-body { |
| | | height: 300rpx; |
| | | background: #F5F9FF; |
| | | .packing-registration-param-view { |
| | | height: 177rpx; |
| | | background-color: #fff; |
| | | border-radius: 10rpx; |
| | | padding: 25rpx 23rpx; |
| | | padding: 0rpx 23rpx; |
| | | margin-bottom: 30rpx; |
| | | |
| | | .row-list { |
| | | height: 50rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | display: flex; |
| | | color: #666666; |
| | | font-size: 26rpx; |
| | | align-items: center; |
| | | width: 170rpx; |
| | | } |
| | | |
| | | .row-list ._content { |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | |
| | | ._content-text { |
| | | color: #214ded; |
| | | } |
| | | } |
| | | |
| | | .row-list ._input { |
| | | .packing-registration-param-item { |
| | | height: 90rpx; |
| | | border: 1px solid #adc8e4; |
| | | line-height: 90rpx; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | border-bottom: 1px solid #4FA0FF; |
| | | height: 56rpx; |
| | | border: none; |
| | | |
| | | .edit_icon { |
| | | background-image: url('~@/static/custom/finishProductIn/icon_edit.png'); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 26rpx; |
| | | width: 26rpx; |
| | | .packing-registration-param-item-left { |
| | | .item-one { |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .uni-input-input { |
| | | color: #D35651; |
| | | .packing-registration-param-item-right { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .item-one { |
| | | font-size: 30rpx; |
| | | color: #333333; |
| | | margin-right: 6rpx; |
| | | } |
| | | |
| | | .item-two { |
| | | font-size: 30rpx; |
| | | color: #a6b4cc; |
| | | margin-right: 6rpx; |
| | | } |
| | | |
| | | .item-three { |
| | | font-size: 30rpx; |
| | | color: #214ded; |
| | | margin-right: 6rpx; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .param-extra { |
| | | border-bottom: 1px solid #ededed; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .new-form-footer { |
| | | display: flex; |
| | | margin-top: 10rpx; |
| | | margin-bottom: 10rpx; |
| | | margin-left: 20rpx; |
| | | margin-right: 20rpx; |
| | | padding-bottom: 14rpx; |
| | | |
| | | .btn { |
| | | flex: 1; |
| | | margin: 10rpx; |
| | | background: #214DED; |
| | | box-shadow: 0rpx 6rpx 8rpx 0rpx rgba(4, 49, 212, 0.3); |
| | | font-weight: bold; |
| | | color: #FEFEFE; |
| | | font-family: PingFang SC; |
| | | .wrap .packing-registration-scroll-list { |
| | | height: calc(100vh - var(--window-top) - var(--window-bottom) - 360rpx); |
| | | width: 100%; |
| | | } |
| | | } |
| | | </style> |
| | | |
| | | .packing-registration-scroll-list-group { |
| | | ::v-deep .u-cell-item-box { |
| | | background-color: rgba(250, 252, 255, 0.36) !important; |
| | | padding: 0rpx 30rpx; |
| | | } |
| | | |
| | | .content { |
| | | font-size: 12px; |
| | | background-color: #ffffff; |
| | | box-sizing: border-box; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 0rpx 16rpx; |
| | | padding: 20rpx 8rpx; |
| | | box-shadow: none; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header { |
| | | width: 40rpx; |
| | | height: 90rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .content-header-icon { |
| | | background-image: url("~@/static/custom/moveWareHouse/header_icon.png"); |
| | | background-size: 100% auto; |
| | | background-repeat: no-repeat; |
| | | height: 28rpx; |
| | | width: 28rpx; |
| | | } |
| | | |
| | | .content-header-title { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: bold; |
| | | color: #626369; |
| | | } |
| | | } |
| | | |
| | | .content-body { |
| | | flex: 1; |
| | | background-color: #ffffff; |
| | | border-radius: 10rpx; |
| | | padding: 0rpx 23rpx; |
| | | |
| | | .row-list { |
| | | height: 60rpx; |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 0px; |
| | | align-items: center; |
| | | } |
| | | |
| | | .row-list ._label { |
| | | display: flex; |
| | | flex: 0.8; |
| | | color: #909399; |
| | | align-items: center; |
| | | |
| | | ._label-name { |
| | | margin-left: 11rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #666666; |
| | | } |
| | | } |
| | | |
| | | .row-list ._content { |
| | | flex: 1.5; |
| | | text-align: right; |
| | | color: #909399; |
| | | font-size: 24rpx; |
| | | } |
| | | |
| | | .row-list .s1 { |
| | | color: #d35651; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |