Commit 6a71a8be by LJM

css

parent a341cf4f
...@@ -299,6 +299,7 @@ export default { ...@@ -299,6 +299,7 @@ export default {
* @param {Object} event * @param {Object} event
*/ */
handleInput: debounce(function(type, event) { handleInput: debounce(function(type, event) {
this.list = [];
var val = event.target.value; var val = event.target.value;
this.searchParams.tracking_no = ''; this.searchParams.tracking_no = '';
this.searchParams.stock_in_sn = ''; this.searchParams.stock_in_sn = '';
......
...@@ -360,6 +360,7 @@ export default { ...@@ -360,6 +360,7 @@ export default {
* @param {Object} event * @param {Object} event
*/ */
handleInput: debounce(function(event) { handleInput: debounce(function(event) {
this.list = [];
var val = event.target.value; var val = event.target.value;
if (val) { if (val) {
this.input_flag = true; this.input_flag = true;
......
...@@ -228,7 +228,9 @@ export default { ...@@ -228,7 +228,9 @@ export default {
if (res.data.stock_in_type != 2) { if (res.data.stock_in_type != 2) {
this.getWorkingRuleList(); this.getWorkingRuleList();
} else { } else {
this.getWhPositionList(1); if (res.data.quality == 1) {
this.getWhPositionList(1);
}
} }
} }
}); });
......
...@@ -309,6 +309,7 @@ export default { ...@@ -309,6 +309,7 @@ export default {
*/ */
handleInput: debounce(function(type, event) { handleInput: debounce(function(type, event) {
var val = event.target.value; var val = event.target.value;
this.list = [];
if (val) { if (val) {
if (type == 1) { if (type == 1) {
this.searchParams.tracking_no = ''; this.searchParams.tracking_no = '';
......
...@@ -336,6 +336,7 @@ export default { ...@@ -336,6 +336,7 @@ export default {
*/ */
handleInput: debounce(function(type, event) { handleInput: debounce(function(type, event) {
var val = event.target.value; var val = event.target.value;
this.list = [];
this.searchParams.tracking_no = ''; this.searchParams.tracking_no = '';
this.searchParams.stock_in_sn = ''; this.searchParams.stock_in_sn = '';
this.searchParams.stock_in_with_stock_in_items_inhouse = ''; this.searchParams.stock_in_with_stock_in_items_inhouse = '';
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<text class="arrow">*</text> <text class="arrow">*</text>
<text class="input-title-t1">目标库位:</text> <text class="input-title-t1">目标库位:</text>
</view> </view>
<view class="input-box-search row bothSide verCenter" :class="{ 'error-style': !is_submit }"> <view class="input-box-search row bothSide verCenter">
<view class="row verCenter"> <view class="row verCenter">
<text class="iconfont icon-juxing1"></text> <text class="iconfont icon-juxing1"></text>
<input class="uni-input" placeholder="请扫描或输入目标库位" placeholder-style="color:#919399" v-model="formParams.position_code" @input="handleInput(3, formParams.position_code)" /> <input class="uni-input" placeholder="请扫描或输入目标库位" placeholder-style="color:#919399" v-model="formParams.position_code" @input="handleInput(3, formParams.position_code)" />
...@@ -287,8 +287,6 @@ export default { ...@@ -287,8 +287,6 @@ export default {
getData() { getData() {
this.request(API.getTransferDetail, 'GET', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => { this.request(API.getTransferDetail, 'GET', { page: this.page, limit: this.limit, ...this.searchParams }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.warehouse_id = res.data.warehouse_id;
this.stock_in_type = res.data.stock_in_type;
this.list = res.data.trans_items; this.list = res.data.trans_items;
} else { } else {
uni.showToast({ uni.showToast({
...@@ -332,7 +330,6 @@ export default { ...@@ -332,7 +330,6 @@ export default {
this.getData(); this.getData();
} else if (type == 3) { } else if (type == 3) {
this.input_flag_position_code = true; this.input_flag_position_code = true;
this.getWhPositionList();
} else if (type == 4) { } else if (type == 4) {
this.input_flag_container_sn = true; this.input_flag_container_sn = true;
} }
......
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