| | |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | "versionName" : "20220821A", |
| | | "versionName" : "20221012A", |
| | | "versionCode" : 103, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | |
| | | "enablePullDownRefresh": false |
| | | |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/basics/startPakin", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText": "启动入库", |
| | | "enablePullDownRefresh": false |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>商品列表</text></view> |
| | | <view v-show="matList.length != 0" class="lable"> |
| | | <label class="label-btn" style="width: 170rpx;line-height: 95rpx;" > |
| | | <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox> |
| | | </label> |
| | | <label class="label-btn" > |
| | | <text @click="reChecked()">反选</text> |
| | | </label> |
| | | <label > |
| | | <uni-icons type="trash" size="25" color="#a5a5a5" @click="remove()"></uni-icons> |
| | | </label> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | }), |
| | | method: 'POST', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | uni.showLoading(); |
New file |
| | |
| | | <template> |
| | | <view> |
| | | <scroll-view scroll-y> |
| | | <!-- 托盘码窗口 --> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>托盘条码</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" |
| | | :focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <!-- 入库口窗口 --> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>入库口</text></view> |
| | | |
| | | </view> |
| | | <view class="content-combox"> |
| | | <uni-combox emptyTips="暂无数据" |
| | | :candidates="sites" v-model="siteId" @click="staNoSelect()" placeholder="请选择入库站点"> |
| | | </uni-combox> |
| | | </view> |
| | | </view> |
| | | <!-- 商品列表窗口 --> |
| | | <view class="square-1"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>商品列表</text></view> |
| | | </view> |
| | | </view> |
| | | <view class="square-none" v-show="matList.length === 0"> |
| | | <view class="v-show">暂无更多数据...</view> |
| | | </view> |
| | | <!-- 商品列表 --> |
| | | <checkbox-group @change="checkbox"> |
| | | <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" > |
| | | <view class="data-list-left"> |
| | | <!-- <view> |
| | | <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> |
| | | </view> --> |
| | | <view class="matnr"><text style="width: 400rpx;">编码:{{item.matnr}}</text></view> |
| | | <view><text style="width: 400rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 400rpx;">批号:{{item.batch}}</text></view> |
| | | <view> |
| | | <text style="width: 400rpx;">数量:{{item.anfme}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </checkbox-group> |
| | | </scroll-view> |
| | | <!-- 底部按钮 --> |
| | | <view class="footer flex justify-around"> |
| | | <label class="label-btn" style="width: 150rpx;"> |
| | | <button class="cu-btn" @click="resst()">重置</button> |
| | | </label> |
| | | <label class="label-btn"> |
| | | <button class="cu-btn bg-blue " @click="startPakin()">启动入库</button> |
| | | </label> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | barcode: null, |
| | | barcodeFocus: true, |
| | | matList:[], |
| | | sites: [1,3,5,7,9,11,13,15], |
| | | siteId: '', |
| | | } |
| | | }, |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | // barcode input 事件 |
| | | barcodeInput() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + "/waitPakin/list/auth", |
| | | header: {'token':uni.getStorageSync('token'), |
| | | 'appkey':'ea1f0459efc02a79f046f982767939ae'}, |
| | | method:'GET', |
| | | data: {zpallet:that.barcode}, |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code == 200) { |
| | | that.matList = res.data.records |
| | | } else if (res.code == 403) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 托盘码有误重置 |
| | | barcodeFocuss() { |
| | | let that = this; |
| | | that.barcodeFocus = false; |
| | | setTimeout(()=>{ |
| | | that.barcode = ''; |
| | | that.barcodeFocus = true; |
| | | }, 100); |
| | | }, |
| | | // 清空输入框 |
| | | removeBarcode() { |
| | | this.barcode = '' |
| | | }, |
| | | // 重置 |
| | | resst() { |
| | | this.barcodeFocuss() |
| | | this.matList = [] |
| | | this.siteId = '' |
| | | }, |
| | | // 启动入库 |
| | | startPakin() { |
| | | let that = this |
| | | if (that.barcode === '') { |
| | | uni.showToast({title: '请扫描托盘条码!', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | | if (that.siteId === '') { |
| | | uni.showToast({title: '请选择入库口!', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | | if (that.matList.length == 0 ) { |
| | | uni.showToast({title: '请确认入库商品!', icon: "none", position: 'top'}); |
| | | return; |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + "open/asrs/pakin/start/default/v1", |
| | | header: {'token':uni.getStorageSync('token'), |
| | | }, |
| | | method:'POST', |
| | | data: {startInItems:[{ |
| | | inSite: that.siteId, |
| | | barcode: that.barcode |
| | | }]}, |
| | | success(result) { |
| | | console.log(result); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .revise-box { |
| | | position: relative; |
| | | width: 500rpx; |
| | | height: 400rpx; |
| | | border-radius: 25px; |
| | | } |
| | | .revise-box-top { |
| | | width: 400rpx; |
| | | height: 120rpx; |
| | | border-radius: 25px; |
| | | } |
| | | .changeBox { |
| | | width: 400rpx; |
| | | height: 100rpx; |
| | | } |
| | | .num-box { |
| | | margin-left: 100rpx; |
| | | } |
| | | .revise-box-buttom{ |
| | | margin-left: 190rpx; |
| | | } |
| | | .pak-seach-box { |
| | | background-color: #FFFFFF; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |
| | | width: 96%; |
| | | height: 150rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | | .box-top{ |
| | | display: block; |
| | | height: 60rpx; |
| | | width: 720rpx; |
| | | } |
| | | .color-block-blue { |
| | | background-color: #1E9FFF; |
| | | display: inline-block; |
| | | float: left; |
| | | margin: 15rpx 15rpx 0 15rpx; |
| | | width: 12rpx; |
| | | height: 40rpx; |
| | | border: 5rpx solid #1E9FFF; |
| | | border-radius: 20rpx; |
| | | } |
| | | .title { |
| | | display: inline-block; |
| | | float: left; |
| | | font-size: 34rpx; |
| | | font-weight: 700; |
| | | height: 50rpx; |
| | | line-height: 50rpx; |
| | | margin-top: 10rpx; |
| | | } |
| | | .box-buttom { |
| | | display: inline-block; |
| | | background-color: #ededed; |
| | | width: 65%; |
| | | height: 60rpx; |
| | | border-radius: 20rpx; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |
| | | } |
| | | .box-buttom input { |
| | | width: 75%; |
| | | float: left; |
| | | margin: 8rpx 10rpx 0rpx 25rpx; |
| | | } |
| | | .box-buttom .search-icon{ |
| | | width: 60rpx; |
| | | height: 60rpx; |
| | | float: right; |
| | | margin-top: 5rpx; |
| | | margin-right: 10rpx; |
| | | } |
| | | /* .pak-seach-box input { |
| | | background-color: #ededed; |
| | | border: 1rpx solid #d8d8d8; |
| | | display: inline-block; |
| | | border-radius: 20rpx; |
| | | float: left; |
| | | width: 70%; |
| | | height: 60rpx; |
| | | line-height: 60rpx; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |
| | | padding-left: 20rpx; |
| | | } */ |
| | | .pak-seach-box button { |
| | | background-color: #1E9FFF; |
| | | color: #ffffff; |
| | | display: inline-block; |
| | | float: right; |
| | | width: 180rpx; |
| | | height: 60rpx; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |
| | | line-height: 60rpx; |
| | | } |
| | | .pakin-btn { |
| | | background-color: #1E9FFF; |
| | | } |
| | | .pak-data-box { |
| | | background-color: #F1F1F1; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |
| | | width: 96%; |
| | | height: 70rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | | .pak-data-box .box-top { |
| | | background-color: #FFFFFF; |
| | | height: 70rpx; |
| | | border-radius: 20rpx 20rpx 20rpx 20rpx; |
| | | } |
| | | .bg-false { |
| | | background-color: #FFFFFF; |
| | | } |
| | | .bg-true { |
| | | background-color: #ebebeb; |
| | | } |
| | | .data-list { |
| | | border-bottom: 1px solid #d8d8d8; |
| | | height: 180rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | | .data-list:first-child { |
| | | margin-top: 20rpx; |
| | | } |
| | | .data-list:last-child { |
| | | margin-bottom: 160rpx; |
| | | } |
| | | /* .data-list-left { |
| | | display: inline-block; |
| | | float: left; |
| | | text-align: center; |
| | | width: 100rpx; |
| | | height: 180rpx; |
| | | line-height: 180rpx; |
| | | } */ |
| | | .data-list-left { |
| | | display: inline-block; |
| | | float: left; |
| | | margin-left: 6%; |
| | | height: 180rpx; |
| | | color: #676767; |
| | | } |
| | | .matnr { |
| | | padding-top: 10rpx; |
| | | } |
| | | .data-list-right { |
| | | display: inline-block; |
| | | float: right; |
| | | height: 180rpx; |
| | | line-height: 180rpx; |
| | | } |
| | | /* display: inline-block; |
| | | float: right; |
| | | width: 200rpx; |
| | | height: 180rpx; |
| | | line-height: 180rpx; */ |
| | | .data-list-right label { |
| | | display: inline-block; |
| | | float: left; |
| | | width: 80rpx; |
| | | height: 180rpx; |
| | | } |
| | | </style> |
| | |
| | | data() { |
| | | return { |
| | | elements:[ |
| | | { |
| | | title: '上架管理', |
| | | name: 'putOnSale', |
| | | color: 'blue', |
| | | cuIcon: 'video' |
| | | }, |
| | | { |
| | | title: '下架管理', |
| | | name: 'offLines', |
| | | color: 'blue', |
| | | cuIcon: 'copy' |
| | | }, |
| | | // { |
| | | // title: '上架管理', |
| | | // name: 'putOnSale', |
| | | // color: 'blue', |
| | | // cuIcon: 'video' |
| | | // }, |
| | | // { |
| | | // title: '下架管理', |
| | | // name: 'offLines', |
| | | // color: 'blue', |
| | | // cuIcon: 'copy' |
| | | // }, |
| | | { |
| | | title: '组托入库', |
| | | name: 'pakin', |
| | | color: 'blue', |
| | | cuIcon: 'copy' |
| | | }, |
| | | // { |
| | | // title: '订单组托', |
| | | // name: 'order', |
| | | // color: 'blue', |
| | | // cuIcon: 'goods' |
| | | // }, |
| | | { |
| | | title: '库存查询', |
| | | name: 'stockQuery', |
| | | title: '订单组托', |
| | | name: 'order', |
| | | color: 'blue', |
| | | cuIcon: 'searchlist' |
| | | cuIcon: 'goods' |
| | | }, |
| | | { |
| | | title: '启动入库', |
| | | name: 'startPakin', |
| | | color: 'blue', |
| | | cuIcon: 'goods' |
| | | }, |
| | | // { |
| | | // title: '库存查询', |
| | | // name: 'stockQuery', |
| | | // color: 'blue', |
| | | // cuIcon: 'searchlist' |
| | | // }, |
| | | |
| | | // { |
| | | // title: '单据出库', |
| | |
| | | // color: 'blue', |
| | | // cuIcon: 'video' |
| | | // }, |
| | | { |
| | | title: '库存盘点', |
| | | name: 'stoCheck', |
| | | color: 'blue', |
| | | cuIcon: 'safe' |
| | | }, |
| | | { |
| | | title: '平仓库存盘点', |
| | | name: 'manStoCheck', |
| | | color: 'blue', |
| | | cuIcon: 'safe' |
| | | }, |
| | | // { |
| | | // title: '库存盘点', |
| | | // name: 'stoCheck', |
| | | // color: 'blue', |
| | | // cuIcon: 'safe' |
| | | // }, |
| | | // { |
| | | // title: '平仓库存盘点', |
| | | // name: 'manStoCheck', |
| | | // color: 'blue', |
| | | // cuIcon: 'safe' |
| | | // }, |
| | | // { |
| | | // title: '平仓库存盘点', |
| | | // name: 'manStoCheck', |
| | |
| | | } |
| | | uni.setStorageSync('token', res.data.token); |
| | | setTimeout(() => { |
| | | uni.navigateBack(); // 小程序用这个 把首页路由放第一个 |
| | | //uni.navigateBack(); // 小程序用这个 把首页路由放第一个 |
| | | uni.reLaunch({ |
| | | url: '../index/index' |
| | | }); |