| | |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | "versionName" : "20221011A", |
| | | "versionName" : "20221110A", |
| | | "versionCode" : 103, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | |
| | | "enablePullDownRefresh": false |
| | | |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/basics/pickOffLinesList", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText": "单据列表", |
| | | "enablePullDownRefresh": false |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | <template> |
| | | <view> |
| | | <scroll-view scroll-y class="scroll-Y"> |
| | | <view class="square-2"> |
| | | <!-- <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>拣货单条码</text></view> |
| | |
| | | <input readonly="value" v-model="doc_num" type="text" placeholder="扫码 / 输入" |
| | | :focus="barcodeFocus" @input="nextInput"> |
| | | <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="square-content"> |
| | | <view class="content-input-btn"> |
| | | <input v-model="doc_num" type="text" placeholder="扫码 / 输入" |
| | | :focus="barcodeFocus" @input="nextInput" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | <view class="content-btn"> |
| | | <button class="cu-btn bg-blue pda-btn" @click="selectPakin()">+提取</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | // 选择订单 |
| | | selectPakin() { |
| | | let that = this |
| | | uni.vibrateShort(); |
| | | uni.navigateTo({ |
| | | url: "pickOffLinesList", |
| | | events: { |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 另外一个页面传过来的 |
| | | acceptDataFromOpenedPage: function(data) { |
| | | that.doc_num = data.data |
| | | that.nextInput(that.doc_num) |
| | | }, |
| | | }, |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('commonUrl', {commonUrl:that.commonUrl }) |
| | | }, |
| | | |
| | | }); |
| | | }, |
| | | nextInput() { |
| | | let that = this |
| | | uni.request({ |
New file |
| | |
| | | <template> |
| | | <view> |
| | | <view class="list" v-for="(item,index) in matList" :key="index" @click="chose(item.orderNo)"> |
| | | <view class="item"> |
| | | <view class="title">单据类型:</view> |
| | | <view class="context">{{item.docType$}}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="title">单号:</view> |
| | | <view class="context">{{item.orderNo}}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="title">订单状态:</view> |
| | | <view class="context">{{item.settle$}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | commonUrl: null, |
| | | matList: [], |
| | | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | let that = this |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('commonUrl', function(data) { |
| | | that.commonUrl = data.commonUrl |
| | | that.getList() |
| | | }) |
| | | }, |
| | | methods: { |
| | | getList() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + '/manPakOut/notIssued', |
| | | header: {'token':uni.getStorageSync('token')}, |
| | | method: 'GET', |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | that.matList = res.data |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | chose(orderNo) { |
| | | this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: orderNo}); |
| | | uni.navigateBack({ |
| | | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .list { |
| | | width: 96%; |
| | | min-height: 100rpx; |
| | | background-color: #FFF; |
| | | margin: 15rpx 2% 0 2%; |
| | | border-radius: 15rpx; |
| | | } |
| | | .item { |
| | | display: flex; |
| | | flex-direction: row; |
| | | padding: 4rpx; |
| | | font-size: 16px; |
| | | } |
| | | </style> |