Commit 43e048e3 by liangjianmin

js

parent aa8933ef
......@@ -11,6 +11,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-juxing9:before {
content: "\e784";
}
.icon-juxing8:before {
content: "\e782";
}
......
.home-index {
padding-bottom: 158rpx;
.head {
padding-top: 12rpx;
height: 180rpx;
......@@ -29,8 +30,19 @@
}
}
.fast-entry {
position: relative;
background: #ffffff;
padding-top: 24rpx;
&::after {
position: absolute;
bottom: 0px;
left: 0;
right: 0;
width: 100%;
height: 1px;
background-color: #ffffff;
content: '';
}
.tit {
font-size: 24rpx;
color: #1e2021;
......
......@@ -2,8 +2,7 @@
"pages": [{
"path": "pages/home/index",
"style": {
"navigationBarTitleText": "供应链WMS系统",
"enablePullDownRefresh": true
"navigationBarTitleText": "供应链WMS系统"
}
}, {
"path": "pages/scan/index",
......
......@@ -22,13 +22,16 @@
<view class="fast-entry">
<view class="tit">快捷操作入口</view>
<view class="row bar">
<template v-if="is_login">
<zy-grid :grid-list="gridList" :show-tip="true" :col="3" @gridClickChange="gridClick"></zy-grid>
</template>
<template v-else>
<zy-grid :grid-list="gridList" :show-tip="true" :col="3" @gridClickChange="toUrl()"></zy-grid>
</template>
<scroll-view scroll-y="true" class="scroll-Y">
<template v-if="is_login">
<zy-grid :grid-list="gridList" :show-tip="true" :col="3" @gridClickChange="gridClick"></zy-grid>
</template>
<template v-else>
<zy-grid :grid-list="gridList" :show-tip="true" :col="3" @gridClickChange="toUrl()"></zy-grid>
</template>
</scroll-view>
</view>
<view class="borline"></view>
</view>
<template v-if="is_login">
<view class="scan row rowCenter verCenter" @click="scanChange()">
......@@ -98,7 +101,7 @@ export default {
},
{
name: '补打标签',
iconfont: 'icon-a-juxing4',
iconfont: 'icon-juxing9',
tips: ''
},
{
......
......@@ -23,6 +23,12 @@
</view>
</view>
<view class="box row verCenter">
<view class="label">打印类型</view>
<view class="tab row verCenter">
<view class="tab-pane row rowCenter verCenter" v-for="(item, index) in items_print_type" :key="index" :class="{ curr: index_print_type == index }" @click="change(index, 'print_type')">{{ item }}</view>
</view>
</view>
<view class="box row verCenter">
<view class="label">入仓号</view>
<input type="number" @input="onKeyInput" v-model="form.erp_order_sn_number" placeholder-style="font-size:24rpx;color:#404547;" class="uni-input" placeholder="请输入" />
</view>
......@@ -50,7 +56,9 @@ export default {
characteristics: '',
text: '标签数量',
index_erp_order_sn_pre: -1,
index_print_type: 0,
items_erp_order_sn_pre: ['A单号', 'B单号', 'D单号'],
items_print_type: ['卡板', '散箱'],
sendData64: '',
platform: 'android',
printLabelData: [],
......@@ -58,6 +66,8 @@ export default {
print_type: 1,
wstyptll_id: '',
form: {
is_add: 1,
print_type: 1,
erp_order_sn_pre: '',
erp_order_sn_number: '',
label_sort: ''
......@@ -106,31 +116,31 @@ export default {
this.text = '标签数量';
this.print_type = 2;
} else {
this.text = '子箱号';
this.text = '总箱数';
this.print_type = 1;
}
}
});
},
submit() {
if (!this.device_name) {
uni.showModal({
title: '提示',
content: '请连接蓝牙设备',
showCancel: false,
confirmText: '关闭',
success: function(res) {
if (res.confirm) {
uni.navigateTo({
url: '/pages/tag/deviceList'
});
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
return false;
}
// if (!this.device_name) {
// uni.showModal({
// title: '提示',
// content: '请连接蓝牙设备',
// showCancel: false,
// confirmText: '关闭',
// success: function(res) {
// if (res.confirm) {
// uni.navigateTo({
// url: '/pages/tag/deviceList'
// });
// } else if (res.cancel) {
// console.log('用户点击取消');
// }
// }
// });
// return false;
// }
if (!this.form.erp_order_sn_pre) {
uni.showToast({
icon: 'error',
......@@ -170,7 +180,7 @@ export default {
return false;
}
this.request(API.getPrintLabel, 'POST', { erp_order_sn: this.form.erp_order_sn_pre + this.form.erp_order_sn_number, label_sort: this.form.label_sort }, true).then(res => {
this.request(API.getPrintLabel, 'POST', { erp_order_sn: this.form.erp_order_sn_pre + this.form.erp_order_sn_number, label_sort: this.form.label_sort, is_add: 1, print_type: this.form.print_type }, true).then(res => {
if (res.err_code === 0) {
this.printLabelData = res.data;
this.wstyptll_id = res.data[0].wstyptll_id;
......@@ -334,6 +344,16 @@ export default {
} else if (index == 2) {
this.form.erp_order_sn_pre = 'D';
}
} else if (type == 'print_type') {
//打印类型
this.index_print_type = index;
if (index == 0) {
this.form.print_type = 1;
this.text = '总箱数';
} else if (index == 1) {
this.form.print_type = 2;
this.text = '标签数量';
}
}
}
}
......
No preview for this file type
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