| | |
| | | "style": { |
| | | "navigationBarTitleText": "退出登录" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/pakin/sourceMenu", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "来源地", |
| | | "enablePullDownRefresh" : false |
| | | } |
| | | } |
| | | ], |
| | | "globalStyle": { |
| | |
| | | name: 'GoodsUp', |
| | | color: 'cyan', |
| | | cuIcon: 'pullup', |
| | | url: '/pakin/goodsUp2' |
| | | url: '/pakin/sourceMenu' |
| | | }, |
| | | { |
| | | title: '平库下架', |
| | |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="code" :focus="barcodeFocus" @input="findCode()"> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">来源地:</view> |
| | | <uni-combox :candidates="orderNoList" placeholder="请选择来源地" v-model="origin"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">货主:</view> |
| | | <uni-combox :candidates="ownerList" placeholder="请选择货主" v-model="owner"></uni-combox> |
| | | </view> |
| | |
| | | <view class="code-decs">库位码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="locNo" > |
| | | </view> |
| | | <view class="item"> |
| | | <!-- <view class="item"> |
| | | <view class="code-decs">物料码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | | <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> |
| | | <uni-icons type="right" color="#c1c1c1"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="item-right"> --> |
| | | <!-- <button></button> --> |
| | | <!-- <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> --> |
| | | <!-- <uni-icons type="right" color="#c1c1c1"></uni-icons> --> |
| | | <!-- </view> |
| | | </view> --> |
| | | </view> |
| | | <view class="mat-list-title"> |
| | | 商品列表 |
| | |
| | | baseUrl: '', |
| | | token: '', |
| | | barcode: '', |
| | | dataList: [], |
| | | dataList: [{}], |
| | | count: 0, |
| | | rowNum: '', |
| | | matnr: '', |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | // 没啥用了 |
| | | let that = this |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | // console.log(data.item); |
| | | that.origin = data.item |
| | | }) |
| | | }, |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | |
| | | .code { |
| | | width: 100%; |
| | | position: fixed; |
| | | min-height: 400rpx; |
| | | min-height: 300rpx; |
| | | background-color: #FFF; |
| | | z-index: 10; |
| | | } |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | position: fixed; |
| | | margin-top: 400rpx; |
| | | margin-top: 300rpx; |
| | | z-index: 9; |
| | | /* border-top: 1px solid #DCDFE6; */ |
| | | text-align: center; |
| | |
| | | } |
| | | |
| | | .list:first-child { |
| | | margin-top: 500rpx; |
| | | margin-top: 440rpx; |
| | | } |
| | | |
| | | .list:last-child { |
New file |
| | |
| | | <template> |
| | | <view> |
| | | <view class="card" v-for="item in menuList" @click="chose(item)"> |
| | | {{item}} |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | baseUrl: '', |
| | | token: '', |
| | | menuList: [] |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getOrderNoList() |
| | | }, |
| | | methods: { |
| | | getOrderNoList() { |
| | | let that = this |
| | | uni.request({ |
| | | url: this.baseUrl + '/originRule/list/all', |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | that.menuList = res.data |
| | | } |
| | | }) |
| | | }, |
| | | chose(item) { |
| | | let that = this |
| | | uni.navigateTo({ |
| | | url: "./goodsUp2", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('item', { |
| | | item: item |
| | | }) |
| | | }, |
| | | events: { |
| | | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 另外一个页面传过来的 |
| | | acceptDataFromOpenedPage: function(data) { |
| | | // that.matnr = data.data |
| | | that.input(that.matnr) |
| | | }, |
| | | }, |
| | | |
| | | |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .card { |
| | | margin: 20rpx; |
| | | padding: 30rpx; |
| | | background-color: #157ec1; |
| | | border-radius: 20rpx; |
| | | color: #FFF; |
| | | } |
| | | </style> |