Commit a1833f02 by LJM

app

parent c07a19a2
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<view class="row verCenter"> <view class="row verCenter">
<view class="bar row verCenter" style="flex: 0 0 40%;"> <view class="bar row verCenter" style="flex: 0 0 40%;">
<text class="tt">标准品牌:</text> <text class="tt">标准品牌:</text>
<text class="yy">{{ item.brand_name }}</text> <text class="yy">{{ item.cccc }}</text>
</view> </view>
<view class="bar row verCenter" style="flex: 0 0 30%;"> <view class="bar row verCenter" style="flex: 0 0 30%;">
<text class="tt">数量:</text> <text class="tt">数量:</text>
......
...@@ -18,31 +18,31 @@ ...@@ -18,31 +18,31 @@
</view> </view>
</view> </view>
<view class="list row bothSide" v-if="list.length > 0"> <view class="list row bothSide" v-if="list.length > 0">
<navigator class="box" v-for="(item, index) in list" :key="index" url="/pages/picking/sort" hover-class="none"> <navigator class="box" v-for="(item, index) in list" :key="index" :url="'/pages/picking/sort?stock_out_id=' + item.stock_out_id" hover-class="none">
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">出库单号:</text> <text class="label">出库单号:</text>
<text class="t1"></text> <text class="t1">{{ item.stock_out_sn }}</text>
</view> </view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">状 态:</text> <text class="label">状 态:</text>
<text class="t1">全部锁库</text> <text class="t1">{{ item.stock_out_status_val }}</text>
</view> </view>
<view class="bor row"></view> <view class="bor row"></view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">任 务 数:</text> <text class="label">任 务 数:</text>
<text class="tt">8</text> <text class="tt">{{ item.items_num }}</text>
</view> </view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">总 数 量:</text> <text class="label">总 数 量:</text>
<text class="tt">5000</text> <text class="tt">{{ item.total_qty }}</text>
</view> </view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">上游备注:</text> <text class="label">上游备注:</text>
<text class="tt">我是一条备注我是一条备注我是一条备注我是一条备注</text> <text class="tt">{{ item.upstream_remark }}</text>
</view> </view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">销售员:</text> <text class="label">销售员:</text>
<text class="tt">朱国军</text> <text class="tt">{{ item.sale_name }}</text>
</view> </view>
<view class="btn-box row"><view class="btn row rowCenter verCenter">领取</view></view> <view class="btn-box row"><view class="btn row rowCenter verCenter">领取</view></view>
</navigator> </navigator>
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
<script> <script>
import { API } from '@/util/api.js'; import { API } from '@/util/api.js';
import { createArray } from '@/util/util.js';
import debounce from 'lodash/debounce'; import debounce from 'lodash/debounce';
export default { export default {
...@@ -69,15 +68,14 @@ export default { ...@@ -69,15 +68,14 @@ export default {
limit: 1000, limit: 1000,
array: ['出库单号'], array: ['出库单号'],
list: [], list: [],
filter_list: [], //筛选已选中的列表
filter_id: [], //过滤处理的id
searchParams: { searchParams: {
stock_out_sn: '', stock_out_sn: ''
stock_out_id: 4
} }
}; };
}, },
onLoad() {}, onShow() {
this.getData();
},
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index == 0) { if (e.index == 0) {
uni.navigateTo({ uni.navigateTo({
...@@ -94,10 +92,9 @@ export default { ...@@ -94,10 +92,9 @@ export default {
* 获取列表数据 * 获取列表数据
*/ */
getData() { getData() {
this.request(API.getPickedList, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => { this.request(API.getNoTakeList, 'POST', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.list = res.data.list; this.list = res.data.list;
this.filter_list = createArray(this.list.length, false);
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
......
...@@ -65,13 +65,15 @@ export default { ...@@ -65,13 +65,15 @@ export default {
index: 0, index: 0,
array: ['移位单号'], array: ['移位单号'],
list: [], list: [],
filter_list: [], //筛选已选中的列表
searchParams: { searchParams: {
transfer_sn: '' //移位单号 transfer_sn: '' //移位单号
} }
}; };
}, },
onLoad() {}, onLoad() {},
onShow() {
this.getData();
},
methods: { methods: {
bindPickerChange: function(e) { bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
...@@ -84,7 +86,6 @@ export default { ...@@ -84,7 +86,6 @@ export default {
this.request(API.getTransferList, 'GET', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => { this.request(API.getTransferList, 'GET', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.list = res.data.list; this.list = res.data.list;
this.filter_list = createArray(this.list.length, false);
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
......
...@@ -64,6 +64,14 @@ const API = { ...@@ -64,6 +64,14 @@ const API = {
* */ * */
confirmTransfer: API_BASE + '/api/transfer/confirmTransfer', confirmTransfer: API_BASE + '/api/transfer/confirmTransfer',
/** /**
* 拣货-未领取列表
* */
getNoTakeList: API_BASE + '/api/stockOut/getNoTakeList',
/**
* 拣货-锁库明细列表
* */
getLockedList: API_BASE + '/api/stockOut/getLockedList',
/**
* 上传文件 * 上传文件
* */ * */
upload: API_BASE_LIEXIN + '/oss/upload', upload: API_BASE_LIEXIN + '/oss/upload',
......
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