Commit 5f1c61f5 by LJM

js

parent 99aefde9
Showing with 93 additions and 101 deletions
{ {
"name" : "wmsApp", "name": "wmsApp",
"appid" : "__UNI__655E80D", "appid": "__UNI__655E80D",
"description" : "", "description": "",
"versionName" : "1.0.0", "versionName": "1.0.0",
"versionCode" : "100", "versionCode": "100",
"transformPx" : false, "transformPx": false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus": {
"usingComponents" : true, "usingComponents": true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler": "uni-app",
"compilerVersion" : 3, "compilerVersion": 3,
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules" : { "modules": {
"Camera" : {}, "Camera": {},
"Barcode" : {}, "Barcode": {},
"Bluetooth" : {} "Bluetooth": {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute": {
/* android打包配置 */ /* android打包配置 */
"android" : { "android": {
"permissions" : [ "permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
...@@ -45,79 +45,85 @@ ...@@ -45,79 +45,85 @@
] ]
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios": {
"dSYMs" : false "dSYMs": false
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs": {
"ad" : {} "ad": {}
}, },
"icons" : { "icons": {
"android" : { "android": {
"hdpi" : "unpackage/res/icons/72x72.png", "hdpi": "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png", "xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png", "xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png" "xxxhdpi": "unpackage/res/icons/192x192.png"
}, },
"ios" : { "ios": {
"appstore" : "unpackage/res/icons/1024x1024.png", "appstore": "unpackage/res/icons/1024x1024.png",
"ipad" : { "ipad": {
"app" : "unpackage/res/icons/76x76.png", "app": "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png", "app@2x": "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png", "notification": "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png", "proapp@2x": "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png", "settings": "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings@2x": "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png", "spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png" "spotlight@2x": "unpackage/res/icons/80x80.png"
}, },
"iphone" : { "iphone": {
"app@2x" : "unpackage/res/icons/120x120.png", "app@2x": "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png", "app@3x": "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png", "notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png", "settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png", "spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png" "spotlight@3x": "unpackage/res/icons/120x120.png"
} }
} }
} }
}, },
"nvueLaunchMode" : "" "nvueLaunchMode": ""
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp" : {}, "quickapp": {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin": {
"appid" : "wx060bcd34e30d0db2", "appid": "wx060bcd34e30d0db2",
"setting" : { "setting": {
"urlCheck" : false, "urlCheck": false,
"postcss" : true, "postcss": true,
"es6" : false, "es6": false,
"minified" : true "minified": true
}, },
"usingComponents" : true "usingComponents": true
}, },
"mp-alipay" : { "mp-alipay": {
"usingComponents" : true "usingComponents": true
}, },
"mp-baidu" : { "mp-baidu": {
"usingComponents" : true "usingComponents": true
}, },
"mp-toutiao" : { "mp-toutiao": {
"usingComponents" : true "usingComponents": true
}, },
"uniStatistics" : { "uniStatistics": {
"enable" : false "enable": false
}, },
"vueVersion" : "2", "vueVersion": "2",
"quickapp-webview" : { "quickapp-webview": {
"icon" : "wms", "icon": "wms",
"package" : "com.liexin.wms", "package": "com.liexin.wms",
"versionName" : "1.0", "versionName": "1.0",
"minPlatformVersion" : "1.0" "minPlatformVersion": "1.0"
}, },
"fallbackLocale" : "zh-Hans" "fallbackLocale": "zh-Hans",
} "softinput": { //可选,JSON对象,软键盘相关配置
"navBar": "auto", //可选,字符串类型,iOS平台软键盘上导航条的显示模式,可取值auto、none
"auxiliary": true, //可选,Boolean类型,是否开启辅助输入功能
"mode": "adjustPan", //可选,字符串类型,弹出系统软键盘模式,可取值adjustResize、adjustPan,
"windowSoftInputMode": "adjustResize"
}
}
\ No newline at end of file
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<view class="search-bar row bothSide verCenter"> <view class="search-bar row bothSide verCenter">
<view class="row verCenter"> <view class="row verCenter">
<text class="iconfont icon-juxing1"></text> <text class="iconfont icon-juxing1"></text>
<input class="uni-input" type="number" v-model="formParams.print_num" placeholder="请输入数量" placeholder-style="color:#919399" @input="handleInput(2, formParams.print_num)" /> <input class="uni-input" type="number" v-model="formParams.tally_qty" placeholder="请输入数量" placeholder-style="color:#919399" @input="handleInput(2, formParams.tally_qty)" />
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_flag_num"></text> <text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_flag_num"></text>
</view> </view>
...@@ -34,20 +34,6 @@ ...@@ -34,20 +34,6 @@
<view class="search-box row bothSide verCenter" style="margin-bottom: 22rpx;"> <view class="search-box row bothSide verCenter" style="margin-bottom: 22rpx;">
<view class="sn row rowCenter verCenter"> <view class="sn row rowCenter verCenter">
<view> <view>
<view class="row verCenter"><view class="uni-input">目标设备</view></view>
</view>
</view>
<view class="search-bar row bothSide verCenter">
<view class="row verCenter">
<text class="iconfont icon-juxing1"></text>
<input class="uni-input" type="text" v-model="formParams.target_device" placeholder="请输入目标设备" placeholder-style="color:#919399" />
</view>
<text class="iconfont icon-a-juxing11" v-if="false"></text>
</view>
</view>
<view class="search-box row bothSide verCenter" style="margin-bottom: 22rpx;">
<view class="sn row rowCenter verCenter">
<view>
<view class="row verCenter"><view class="uni-input">目标打印机</view></view> <view class="row verCenter"><view class="uni-input">目标打印机</view></view>
</view> </view>
</view> </view>
...@@ -98,9 +84,8 @@ export default { ...@@ -98,9 +84,8 @@ export default {
formParams: { formParams: {
sn: '', sn: '',
origin_device_ip: '', //获取设备内网IP origin_device_ip: '', //获取设备内网IP
target_device: '', //目标设备
target_printer: '', //模板打印机 target_printer: '', //模板打印机
print_num: '', //打印数量 tally_qty: '', //打印数量
type: 5 //库位 1;库区 2;区域 3; 容器 4;入库 5 默认5 type: 5 //库位 1;库区 2;区域 3; 容器 4;入库 5 默认5
} }
}; };
...@@ -114,7 +99,7 @@ export default { ...@@ -114,7 +99,7 @@ export default {
this.formParams.sn = ''; this.formParams.sn = '';
this.input_flag = false; this.input_flag = false;
} else if (type == 2) { } else if (type == 2) {
this.formParams.print_num = ''; this.formParams.tally_qty = '';
this.input_flag_num = false; this.input_flag_num = false;
} }
}, },
...@@ -130,9 +115,9 @@ export default { ...@@ -130,9 +115,9 @@ export default {
this.input_flag_num = true; this.input_flag_num = true;
let num = Number(val); let num = Number(val);
if (num > 100) { if (num > 100) {
this.formParams.print_num = 100; this.formParams.tally_qty = 100;
} else { } else {
this.formParams.print_num = val; this.formParams.tally_qty = val;
} }
} }
} else { } else {
...@@ -159,7 +144,7 @@ export default { ...@@ -159,7 +144,7 @@ export default {
return false; return false;
} }
if (this.formParams.type == 5) { if (this.formParams.type == 5) {
if (!this.formParams.print_num) { if (!this.formParams.tally_qty) {
uni.showToast({ uni.showToast({
title: '请输入数量', title: '请输入数量',
icon: 'error' icon: 'error'
...@@ -167,7 +152,7 @@ export default { ...@@ -167,7 +152,7 @@ export default {
return false; return false;
} }
} else { } else {
this.formParams.print_num = 1; this.formParams.tally_qty = 1;
} }
this.request(API.latePrint, 'POST', this.formParams, true).then(res => { this.request(API.latePrint, 'POST', this.formParams, true).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment