Commit 44fe4d81 by liangjianmin

筛选出标记为商检的条目或海关编码为854232开头的条目

parent 88a62495
Showing with 4 additions and 9 deletions
......@@ -268,15 +268,10 @@
this.disabled = false;
this.isInspOrg = Boolean(res.data.isInspOrg); //是否商检
// 如果主单是商检,那么默认明细里的所有都要商检
if (this.isInspOrg) {
this.list = res.data.entrys;
} else {
// 如果主单不是商检,则只筛选出标记为商检的条目或海关编码为854232开头的条目
this.list = res.data.entrys.filter(function(entry) {
return entry.isEntryInspOrg === true || (entry.goodsNo && entry.goodsNo.toString().startsWith('854232'));
});
}
//筛选出标记为商检的条目或海关编码为854232开头的条目
this.list = res.data.entrys.filter(function(entry) {
return entry.isEntryInspOrg === true || (entry.goodsNo && entry.goodsNo.toString().startsWith('854232'));
});
this.goods_check_pic_list_id = this.list.map(function(entry) {
return entry.ptEntryID;
......
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