| | |
| | | return new Promise((resolve, reject) => {
|
| | | const token = uni.getStorageSync('token');
|
| | | // const URL = 'http://47.76.147.249:8080/rsf-server/pda' + url;
|
| | | // const URL = 'http://192.168.4.24:8080/rsf-server/pda' + url;
|
| | | const URL = 'http://127.0.0.1:8080/rsf-server/pda' + url;
|
| | | const URL = 'http://test.zoneyung.net:8080/rsf-server/pda' + url;
|
| | | // const URL = 'http://127.0.0.1:8080/rsf-server/pda' + url;
|
| | | uni.request({
|
| | | url: URL,
|
| | | data: postData,
|
| | |
| | | //全局数据状态管理 vuex |
| | | import store from '@/store/index.js'; |
| | | Vue.prototype.$store = store; |
| | | //全局公用静态数据 |
| | | //全局公用静态数据f |
| | | import Mock from '@/common/mock/index.js'; |
| | | Vue.prototype.$Mock = Mock; |
| | | |
| | |
| | | <view class="content">
|
| | | <text class="text-black">库存单位: <text class="text-grey ">{{item.stockUnit}}</text></text>
|
| | | </view>
|
| | |
|
| | | <!-- <view class="content">
|
| | | <text class="text-black">计划收货数: <text class="text-grey ">{{item.anfme}}</text></text>
|
| | | </view> -->
|
| | | <view class="content">
|
| | | <text class="text-black">收货数量: <text class="text-grey ">{{item.anfme}}</text></text>
|
| | | </view> |
| | | <view class="content"> |
| | | <text class="text-black">已上架数量: <text class="text-grey ">{{item.workQty + item.qty}}</text></text> |
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="cu-item"> |
| | | <view class="content"> |
| | | <text class="text-black">可组盘数量: <text class="text-grey ">{{item.anfme - item.workQty}}</text></text> |
| | | </view>
|
| | | <view class="content">
|
| | | <view class="cu-form-group padding-lr-0">
|
| | | <view class="title text-blue"><text
|
| | | class="text-red text-xl vertical-middle">*</text>组盘数量:
|
| | | </view>
|
| | | <input type="number" placeholder="请输入组盘数量" v-model="item.anfme"></input>
|
| | | <input type="number" placeholder="请输入组盘数量" v-model="megreQty"></input>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | </view>
|
| | | </block>
|
| | |
|
| | | </view>
|
| | |
|
| | |
|
| | | <view class="cu-bar btn-group foot">
|
| | | <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
|
| | | <button class="cu-btn bg-blue shadow-blur" @click="confirm">组盘</button>
|
| | |
| | | data() {
|
| | | return {
|
| | | barcode: '',
|
| | | container: '',
|
| | | container: '', |
| | | megreQty: '',
|
| | | list: [],
|
| | | range: [],
|
| | | isconfirm: false
|
| | |
| | | const newArr = this.list.map(item => {
|
| | | return {
|
| | | ...item,
|
| | | anfme: item.anfme === null ? 0 : + item.anfme,
|
| | | receiptQty: item.anfme === null ? 0 : + item.anfme
|
| | | anfme: item.anfme === null ? 0 : +item.anfme,
|
| | | receiptQty: this.megreQty,
|
| | | };
|
| | | });
|
| | |
|
| | |
| | | <text class='cuIcon-search text-blue' @click="search"></text>
|
| | | </view>
|
| | | </form>
|
| | |
|
| | |
|
| | |
|
| | | <view class="cu-list det menu sm-border padding">
|
| | | <block v-for="(item, index) in list" :key="index">
|
| | | <view class="cu-bar bg-white solid-bottom margin-top-sm">
|
| | |
| | | <text class="text-grey ">{{item.barcode}}</text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">供应商批次:</text>
|
| | |
| | | <text class="text-grey ">{{item.splrBatch}}</text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">库存批次:</text>
|
| | |
| | | <text class="text-grey ">{{item.batch}}</text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">收货数量:</text>
|
| | |
| | |
|
| | | <view class="cu-form-group ">
|
| | | <view class="title">目标库区</view>
|
| | | <input placeholder="请扫描目标库区" v-model="areaName" disabled></input>
|
| | | <input placeholder="请扫描目标库区" v-model="areaName" ></input>
|
| | | </view>
|
| | |
|
| | | <view class="cu-form-group ">
|
| | |
| | | <text class="text-black">实时库存: <text class="text-grey ">{{item.stockQty}}</text></text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">平台行号: <text class="text-grey ">{{item.platformId}}</text></text>
|
| | |
| | | <text class="text-black">质检结果: <text class="text-grey ">{{item.inspect}}</text></text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">采购单位:<text class="text-grey ">{{item.purUnit}}</text></text>
|
| | |
| | | <text class="text-black">库存单位: <text class="text-grey ">{{item.stockUnit}}</text></text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-blue">计划收货数量:<text class="text-grey ">{{item.anfme}}</text></text>
|
| | | </view> |
| | | </view>
|
| | | <view class="content">
|
| | | <text class="text-black">已收数量:<text class="text-grey ">{{item.qty}}</text></text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="cu-item"> |
| | | <view class="cu-item">
|
| | | <view class="content" v-if="!isconfirm">
|
| | | <view class="cu-form-group padding-lr-0">
|
| | | <view class="title text-blue">收货数量:</view>
|
| | |
| | | data,
|
| | | msg
|
| | | } = await request('/orders/' + this.barcode, {}, "get")
|
| | | if (code === 200) { |
| | | if (Object.keys(data).length === 0){
|
| | | if (code === 200) {
|
| | | if (Object.keys(data).length === 0) {
|
| | | uni.showToast({
|
| | | title: "该标签未查询到数据",
|
| | | icon: "none",
|
| | |
| | | })
|
| | | }
|
| | | this.list.push(...data)
|
| | | |
| | | }else if(code == 401){
|
| | |
|
| | | } else if (code == 401) {
|
| | | setTimeout(() => {
|
| | | uni.removeStorageSync('token');
|
| | | uni.reLaunch({
|
| | | url: "/pages/login/login"
|
| | | });
|
| | | }, 1000);
|
| | | }else {
|
| | | } else {
|
| | | uni.showToast({
|
| | | title: msg,
|
| | | icon: "none",
|