Commit 8d53b745 by LJM

移动端APP--入库理货--增加页面:理货记录

parent 70d34472
Showing with 47 additions and 37 deletions
......@@ -34,7 +34,7 @@
<view class="search-bar row bothSide verCenter">
<view class="row verCenter" style="width: 100%;">
<text class="iconfont icon-juxing11"></text>
<input class="uni-input" placeholder="输入型号或入仓号或箱号查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.all_search" @input="handleInput" style="width: 100%;" />
<input class="uni-input" placeholder="输入型号或入仓号或箱号查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.keyword" @input="handleInput" style="width: 100%;" />
</view>
<text class="iconfont icon-a-juxing111" @click="clearInput()" v-if="input_flag"></text>
</view>
......@@ -43,65 +43,71 @@
<!-- 列表区 -->
<view class="list" v-if="list.length > 0">
<view class="box row" v-for="(item, index) in list" :key="index">
<view class="status-box row">
<template v-if="item.box_type == 0">
<view class="staus_type_val row rowCenter verCenter">{{item.box_type_cn}}</view>
</template>
<template v-else>
<view class="staus_type_val row rowCenter verCenter" style="border: 1px solid red;color: red;">{{item.box_type_cn}}</view>
</template>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="tt" style="color: #000;font-weight: bold;">{{ item.box_sn }}</text>
<text class="text" v-if="item.sub_box_qty > 1">({{ item.sub_box_qty }})</text>
<text class="tt" style="margin-left: 50px;width: 100rpx;">{{item.tally_status_cn}}</text>
<view class="input-box row verCenter bothSide" style="flex: 0 0 100%;">
<view>
<text class="tt" style="color: #000;font-weight: bold;">{{ item.erp_order_sn }}</text>
</view>
<view class="row verCenter">
<text class="text">{{ item.box_sn }}</text>
<text class="text" style="margin-left: 20px">{{ item.tally_status_val }}</text>
</view>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">物料名称:</text>
<text class="text">二极管</text>
<view class="input-box row verCenter bothSide" style="flex: 0 0 100%;">
<view>
<text class="label">物料名称:</text>
<text class="text">{{item.goods_title}}</text>
</view>
<view>
<text class="text">{{item.sync_status_val}}</text>
</view>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">型号:</text>
<text class="text">XSADAS5DA5SD</text>
<view class="input-box row verCenter bothSide" style="flex: 0 0 100%;">
<view>
<text class="label">型号:</text>
<text class="text">{{item.goods_type}}</text>
</view>
<view>
<view v-if="item.is_goods_check" class="staus_type_val row rowCenter verCenter" style="border: 1px solid red;color: red;padding: 10rpx;border-radius: 50%;">商检</view>
</view>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">品牌:</text>
<text class="text">NEXPERIA</text>
<text class="text">{{item.brand}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">订单备注:</text>
<text class="text">你好吗你好吗马号码</text>
<text class="text">{{item.order_remark}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">入库数量:</text>
<text class="text">400</text>
<text class="text">{{item.tally_num}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">原产地:</text>
<text class="text">美国</text>
<text class="text">{{item.origin}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">净重:</text>
<text class="text">2kg</text>
<text class="text">{{item.net_weight}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">理货备注:</text>
<text class="text">你好吗你好吗</text>
<text class="text">{{item.remark}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">理货人:</text>
<text class="text">张三</text>
<text class="text">{{item.tally_user_name}}</text>
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">理货时间:</text>
<text class="text">2024-01-01  12:00:00</text>
<text class="text">{{item.tally_time}}</text>
</view>
<view class="input-box row" style="flex: 0 0 100%;">
<text class="label">理货照片:</text>
<view class="pick_img_list row">
<template v-if="item.precheck_images">
<view class="img_list" v-for="(v, i) in item.precheck_images.split(',')" :key="i">
<image :src="v" mode="aspectFill" @click="previewChange(item.precheck_images.split(','),i)"></image>
<template v-if="item.goods_check_pic">
<view class="img_list" v-for="(v, i) in item.goods_check_pic.split(',')" :key="i">
<image :src="v" mode="aspectFill" @click="previewChange(item.goods_check_pic.split(','),i)"></image>
</view>
</template>
</view>
......@@ -138,7 +144,7 @@
searchParams: {
create_time_begin: '', //起始日期
create_time_end: '', //结束日期
all_search: ''
keyword: ''
}
};
},
......@@ -177,7 +183,7 @@
this.getData();
},
getData() {
this.request(API.getTallyData, 'GET', { page: this.page, limit: this.limit, ...this.searchParams }, true).then(res => {
this.request(API.getTallyRecordList, 'GET', { page: this.page, limit: this.limit, ...this.searchParams }, true).then(res => {
if (res.err_code === 0) {
this.total = res.data.total;
if (res.data.data.length > 0) {
......@@ -272,14 +278,14 @@
handleInput: debounce(function(event) {
this.resetChange();
var val = event.target.value;
this.searchParams.all_search = '';
this.searchParams.keyword = '';
if (val) {
this.searchParams.all_search = val;
this.searchParams.keyword = val;
this.input_flag = true;
this.getData();
} else {
this.input_flag = false;
}
this.getData();
}, 500),
/**
* 清空数据
......@@ -296,7 +302,7 @@
this.searchParams.create_time_end = '';
this.getData();
} else {
this.searchParams.all_search = '';
this.searchParams.keyword = '';
this.input_flag = false;
this.clearInputAndFocus();
this.getData();
......
......@@ -345,7 +345,11 @@ const API = {
/**
* 更新统计打印标签次数
*/
updateTagPrintTimes: API_BASE + '/supplywechatwms/updateTagPrintTimes'
updateTagPrintTimes: API_BASE + '/supplywechatwms/updateTagPrintTimes',
/**
* 理货记录
*/
getTallyRecordList: API_BASE + '/supplywechatwms/getTallyRecordList'
}
......
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