Commit 55fb5475 by LJM

查询相似三方送检任务数

parent 2fdbb64d
......@@ -74,6 +74,10 @@
<text class="t1">该搜索内容有相似预检单任务,</text>
<navigator class="t2" :url="'/pages/preCheck/list?mobile_search='+searchParams.mobile_register_all_search">点击查看</navigator>
</view>
<view class="preCheck row verCenter" v-if="isHasShippingCodeInspectionOrder">
<text class="t1">该搜索内容有相似三方送检单任务,</text>
<navigator class="t2" :url="'/pages/preCheck/thirdPartyInspectionStatus?batch_search_value='+searchParams.mobile_register_all_search">点击查看</navigator>
</view>
<!-- 列表数据 -->
<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] }">
......@@ -580,7 +584,8 @@
grossWeightSizeIndex: 0,
otherAttrList: [], //其他属性
swiperCurr: 0,
preCheckList: [] //预检单列表
preCheckList: [], //预检单列表
isHasShippingCodeInspectionOrder: false
};
},
onReachBottom() {
......@@ -877,6 +882,24 @@
});
},
/**
* 查询相似三方送检任务数
*/
getisHasShippingCodeInspectionOrder(back_shipment_number) {
this.request(API.isHasShippingCodeInspectionOrder, 'GET', { back_shipment_number: back_shipment_number }, true).then(res => {
if (res.code === 0) {
var count = res.data.count || 0;
if (count > 0) {
this.isHasShippingCodeInspectionOrder = true;
}
} else {
uni.showToast({
title: res.msg,
icon: 'error'
});
}
});
},
/**
* 获取仓库
*/
getWareHouselist() {
......@@ -945,10 +968,11 @@
getData() {
this.request(API.stockInMobileRegisterList, 'POST', { page: this.page, limit: this.limit, is_register: 0, ...this.searchParams }, true).then(res => {
if (res.code === 0) {
//全量搜索的时候发查询预检单
//全量搜索的时候发查询预检单
if (this.index == 0) {
if (this.searchParams.mobile_register_all_search) {
this.getStockPreCheckList(this.searchParams.mobile_register_all_search);
this.getisHasShippingCodeInspectionOrder(this.searchParams.mobile_register_all_search);
} else {
this.preCheckList = [];
}
......
......@@ -246,7 +246,7 @@
this.getData();
},
onLoad(options) {
this.searchParams.batch_search_value = options.batch_search_value;
},
onShow() {
if (this.noexebshowFalg) {
......
......@@ -418,7 +418,11 @@ const API = {
/**
* 删除和新增签约图片
* */
signUserPic: API_BASE + '/api/stockout/signUserPic'
signUserPic: API_BASE + '/api/stockout/signUserPic',
/**
* 查询相似三方送检任务数
* */
isHasShippingCodeInspectionOrder: API_BASE + '/api/inspectionOrder/isHasShippingCodeInspectionOrder'
}
......
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