Commit c765edfd by LJM

移动端一键理货容器为空异常

parent e1972a83
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
array: ['出库单号'], array: ['出库单号'],
list: [], list: [],
page: 1, page: 1,
limit: 20, limit: 100,
hasMoreData: true, //是否分页加载 hasMoreData: true, //是否分页加载
searchParams: { searchParams: {
stock_out_sn: '' //出库单号 stock_out_sn: '' //出库单号
......
...@@ -47,9 +47,6 @@ ...@@ -47,9 +47,6 @@
</view> </view>
<view> <view>
<text class="iconfont icon-juxing3" @click="createTallyContainer()"></text> <text class="iconfont icon-juxing3" @click="createTallyContainer()"></text>
<!--
<text class="iconfont icon-zimu-M" @click="createTallyContainer(1)"></text>
-->
<text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_contaion"></text> <text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_contaion"></text>
</view> </view>
</view> </view>
...@@ -119,7 +116,9 @@ ...@@ -119,7 +116,9 @@
<text class="label">待理货数量:</text> <text class="label">待理货数量:</text>
<text class="ttt">{{ item.wait_tally_qty }}</text> <text class="ttt">{{ item.wait_tally_qty }}</text>
</view> </view>
<navigator class="btn-box row" :url="'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id + '&stock_in_id=' + item.stock_in_id + '&container_id=' + searchParams.container_id + '&container_name=' + searchParams.container_name" hover-class="none"><view class="btn row rowCenter verCenter">理货</view></navigator> <navigator class="btn-box row" :url="'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id + '&stock_in_id=' + item.stock_in_id + '&container_id=' + searchParams.container_id + '&container_name=' + searchParams.container_name" hover-class="none">
<view class="btn row rowCenter verCenter">理货</view>
</navigator>
</view> </view>
</view> </view>
<view class="no-date column rowCenter verCenter" v-else> <view class="no-date column rowCenter verCenter" v-else>
...@@ -194,11 +193,11 @@ ...@@ -194,11 +193,11 @@
</template> </template>
<script> <script>
import { API } from '@/util/api.js'; import { API } from '@/util/api.js';
import { createArray } from '@/util/util.js'; import { createArray } from '@/util/util.js';
import debounce from 'lodash/debounce'; import debounce from 'lodash/debounce';
export default { export default {
data() { data() {
return { return {
timer: null, // 用于存储计时器 timer: null, // 用于存储计时器
...@@ -429,6 +428,7 @@ export default { ...@@ -429,6 +428,7 @@ export default {
this.input_flag = true; this.input_flag = true;
this.getData(); this.getData();
} else if (type == 3) { } else if (type == 3) {
//一键理货的容器监听
this.searchParams.container_name = val; this.searchParams.container_name = val;
this.input_contaion = true; this.input_contaion = true;
this.getTallyContainer(); this.getTallyContainer();
...@@ -439,6 +439,9 @@ export default { ...@@ -439,6 +439,9 @@ export default {
this.input_flag = false; this.input_flag = false;
this.getData(); this.getData();
} else if (type == 3) { } else if (type == 3) {
//容器为空的时候清除值
this.formParams.container_id = '';
this.searchParams.container_id = '';
this.input_contaion = false; this.input_contaion = false;
} }
} }
...@@ -781,9 +784,9 @@ export default { ...@@ -781,9 +784,9 @@ export default {
this.page = 1; this.page = 1;
} }
} }
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import '@/assets/css/tallyReceive/index.scss'; @import '@/assets/css/tallyReceive/index.scss';
</style> </style>
\ No newline at end of file
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