Commit 5f1c61f5 by LJM

js

parent 99aefde9
Showing with 93 additions and 101 deletions
{
"name" : "wmsApp",
"appid" : "__UNI__655E80D",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"name": "wmsApp",
"appid": "__UNI__655E80D",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
/* 5+App特有相关 */
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"app-plus": {
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* 模块配置 */
"modules" : {
"Camera" : {},
"Barcode" : {},
"Bluetooth" : {}
"modules": {
"Camera": {},
"Barcode": {},
"Bluetooth": {}
},
/* 应用发布信息 */
"distribute" : {
"distribute": {
/* android打包配置 */
"android" : {
"permissions" : [
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
......@@ -45,79 +45,85 @@
]
},
/* ios打包配置 */
"ios" : {
"dSYMs" : false
"ios": {
"dSYMs": false
},
/* SDK配置 */
"sdkConfigs" : {
"ad" : {}
"sdkConfigs": {
"ad": {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
"ios": {
"appstore": "unpackage/res/icons/1024x1024.png",
"ipad": {
"app": "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
}
}
}
},
"nvueLaunchMode" : ""
"nvueLaunchMode": ""
},
/* 快应用特有相关 */
"quickapp" : {},
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx060bcd34e30d0db2",
"setting" : {
"urlCheck" : false,
"postcss" : true,
"es6" : false,
"minified" : true
"mp-weixin": {
"appid": "wx060bcd34e30d0db2",
"setting": {
"urlCheck": false,
"postcss": true,
"es6": false,
"minified": true
},
"usingComponents" : true
"usingComponents": true
},
"mp-alipay" : {
"usingComponents" : true
"mp-alipay": {
"usingComponents": true
},
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics" : {
"enable" : false
"uniStatistics": {
"enable": false
},
"vueVersion" : "2",
"quickapp-webview" : {
"icon" : "wms",
"package" : "com.liexin.wms",
"versionName" : "1.0",
"minPlatformVersion" : "1.0"
"vueVersion": "2",
"quickapp-webview": {
"icon": "wms",
"package": "com.liexin.wms",
"versionName": "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 @@
<view class="search-bar row bothSide verCenter">
<view class="row verCenter">
<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>
<text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_flag_num"></text>
</view>
......@@ -34,20 +34,6 @@
<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>
</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>
</view>
......@@ -98,9 +84,8 @@ export default {
formParams: {
sn: '',
origin_device_ip: '', //获取设备内网IP
target_device: '', //目标设备
target_printer: '', //模板打印机
print_num: '', //打印数量
tally_qty: '', //打印数量
type: 5 //库位 1;库区 2;区域 3; 容器 4;入库 5 默认5
}
};
......@@ -114,7 +99,7 @@ export default {
this.formParams.sn = '';
this.input_flag = false;
} else if (type == 2) {
this.formParams.print_num = '';
this.formParams.tally_qty = '';
this.input_flag_num = false;
}
},
......@@ -130,9 +115,9 @@ export default {
this.input_flag_num = true;
let num = Number(val);
if (num > 100) {
this.formParams.print_num = 100;
this.formParams.tally_qty = 100;
} else {
this.formParams.print_num = val;
this.formParams.tally_qty = val;
}
}
} else {
......@@ -159,7 +144,7 @@ export default {
return false;
}
if (this.formParams.type == 5) {
if (!this.formParams.print_num) {
if (!this.formParams.tally_qty) {
uni.showToast({
title: '请输入数量',
icon: 'error'
......@@ -167,7 +152,7 @@ export default {
return false;
}
} else {
this.formParams.print_num = 1;
this.formParams.tally_qty = 1;
}
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