Commit 6d3b5244 by LJM

预检单--支持移动端作业

parent d891fe63
...@@ -40,7 +40,17 @@ ...@@ -40,7 +40,17 @@
font-size: 24rpx; font-size: 24rpx;
color: #1969f9; color: #1969f9;
} }
.preCheck {
margin-top: 15rpx;
.t1 {
font-size: 18rpx;
color: #292b33;
}
.t2 {
font-size: 19rpx;
color: #1969f9;
}
}
.search-box { .search-box {
height: 60rpx; height: 60rpx;
.search-box-wrap { .search-box-wrap {
...@@ -248,7 +258,7 @@ ...@@ -248,7 +258,7 @@
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
sfont-size: 30rpx; font-size: 30rpx;
color: #292b33; color: #292b33;
} }
.text { .text {
......
...@@ -423,6 +423,11 @@ ...@@ -423,6 +423,11 @@
"style": { "style": {
"navigationBarTitleText": "分货" "navigationBarTitleText": "分货"
} }
}, {
"path": "pages/preCheck/list",
"style": {
"navigationBarTitleText": "预检单"
}
}], }],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
......
...@@ -70,6 +70,10 @@ ...@@ -70,6 +70,10 @@
</view> </view>
<view class="print-btn" @click="print()">打印入仓号</view> <view class="print-btn" @click="print()">打印入仓号</view>
</view> </view>
<view class="preCheck row verCenter" v-if="preCheckList.length > 0">
<text class="t1">该搜索内容有相似预检单任务,</text>
<navigator class="t2" :url="'/pages/preCheck/list?mobile_search='+searchParams.mobile_register_all_search">点击查看</navigator>
</view>
<!-- 列表数据 --> <!-- 列表数据 -->
<view class="list row bothSide" v-if="list.length > 0"> <view class="list row bothSide" v-if="list.length > 0">
<view class="box" v-for="(item, index) in list" :key="index" :class="{ curr: filter_list[index] }"> <view class="box" v-for="(item, index) in list" :key="index" :class="{ curr: filter_list[index] }">
...@@ -555,7 +559,8 @@ ...@@ -555,7 +559,8 @@
grossWeightSize: ['kg', 'g'], //毛重尺寸 1kg 2g grossWeightSize: ['kg', 'g'], //毛重尺寸 1kg 2g
grossWeightSizeIndex: 0, grossWeightSizeIndex: 0,
otherAttrList: [], //其他属性 otherAttrList: [], //其他属性
swiperCurr: 0 swiperCurr: 0,
preCheckList: [] //预检单列表
}; };
}, },
onReachBottom() { onReachBottom() {
...@@ -833,6 +838,25 @@ ...@@ -833,6 +838,25 @@
this.getData(); this.getData();
}, 500), }, 500),
/** /**
* 获取预检单列表
*/
getStockPreCheckList(mobile_search) {
this.request(API.getStockPreCheckList, 'GET', { page: 1, limit: 100, status: 1, mobile_search: mobile_search }, true).then(res => {
if (res.code === 0) {
if (res.data.list.length > 0) {
this.preCheckList = res.data.list;
} else {
this.hasMoreData = false;
}
} else {
uni.showToast({
title: res.msg,
icon: 'error'
});
}
});
},
/**
* 获取仓库 * 获取仓库
*/ */
getWareHouselist() { getWareHouselist() {
...@@ -901,6 +925,7 @@ ...@@ -901,6 +925,7 @@
getData() { getData() {
this.request(API.stockInMobileRegisterList, 'POST', { page: this.page, limit: this.limit, is_register: 0, ...this.searchParams }, true).then(res => { this.request(API.stockInMobileRegisterList, 'POST', { page: this.page, limit: this.limit, is_register: 0, ...this.searchParams }, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.getStockPreCheckList(this.searchParams.mobile_register_all_search); //查询预检单
if (res.data.list.length > 0) { if (res.data.list.length > 0) {
this.total = res.data.total; this.total = res.data.total;
this.hasMoreData = true; this.hasMoreData = true;
......
...@@ -92,6 +92,12 @@ ...@@ -92,6 +92,12 @@
</view> </view>
<text class="text">分货</text> <text class="text">分货</text>
</navigator> </navigator>
<navigator class="box-li column rowCenter verCenter" url="/pages/preCheck/list" hover-class="none">
<view class="box row rowCenter verCenter">
<image src="/static/home/@2x(5).png"></image>
</view>
<text class="text">预检单</text>
</navigator>
</view> </view>
</view> </view>
</template> </template>
......
// const API_BASE_USER = 'http://user.liexindev.net'; //用户系统 const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
// const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统 const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
// const API_BASE = 'http://wms.liexindev.net'; //WMS系统 const API_BASE = 'http://wms.liexindev.net'; //WMS系统
// const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统 const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统 // const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统 // const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
const API_BASE = 'https://wms.ichunt.net'; //WMS系统 // const API_BASE = 'https://wms.ichunt.net'; //WMS系统
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 // const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = { const API = {
...@@ -363,7 +363,23 @@ const API = { ...@@ -363,7 +363,23 @@ const API = {
/** /**
* 标签-入仓号 * 标签-入仓号
* */ * */
printInhouse: API_BASE + '/api/label/printInhouse' printInhouse: API_BASE + '/api/label/printInhouse',
/**
* 获取预检单列表
* */
getStockPreCheckList: API_BASE + '/api/stockIn/stockPreCheck/getStockPreCheckList',
/**
* 预检单-取消理货
* */
stockPreCheckCancelTally: API_BASE + '/api/stockIn/stockPreCheck/stockPreCheckCancelTally',
/**
* 预检单-预检发货
* */
stockPreCheckDeliver: API_BASE + '/api/stockIn/stockPreCheck/stockPreCheckDeliver',
/**
* 预检单-理货
* */
stockPreCheckTally: API_BASE + '/api/stockIn/stockPreCheck/stockPreCheckTally'
} }
......
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