Commit 43e048e3 by liangjianmin

js

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