Commit 94ca4213 by LJM

移动端-理货记录-支持更改容器

parent 6014f250
......@@ -11,6 +11,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-bianji:before {
content: "\e60e";
}
.icon-juxing4:before {
content: "\e79c";
}
......
......@@ -269,6 +269,9 @@
::v-deep .uni-drawer__content {
width: 85% !important;
}
::v-deep .uni-popup {
z-index: 99999999;
}
.uni-drawer-tally-receive {
width: 100%;
......@@ -555,6 +558,11 @@
overflow: hidden;
max-width: 176rpx;
}
.icon-bianji {
font-size: 24rpx;
color: #1969f9;
margin-left: 7rpx;
}
}
}
.pic-list {
......
......@@ -400,6 +400,8 @@ export default {
}
} else if (type == 2) {
//全量搜索
this.is_batch = false;
this.searchParams.search_keyword = val;
this.input_flag = true;
this.getData();
}
......
......@@ -143,6 +143,7 @@
<view class="item row verCenter">
<text class="label">容 器:</text>
<text class="tt">{{ detail.container_sn }}</text>
<text class="iconfont icon-bianji" @click="inputDialogToggle(detail)"></text>
</view>
</view>
<view class="bor"></view>
......@@ -245,6 +246,8 @@
<view class="btn row verCenter bothSide"><view class="btn1 row rowCenter verCenter" @click="cancelTallyReceive(2, detail.tally_id, detail.stock_in_item_id)">取消理货</view></view>
</view>
</uni-drawer>
<!-- 修改容器 -->
<uni-popup ref="inputDialog" type="dialog"><uni-popup-dialog before-close="true" ref="inputClose" mode="input" :title="'当前容器:' + detail.container_sn" placeholder="请输入目的容器" @close="closeChange" @confirm="dialogInputConfirm"></uni-popup-dialog></uni-popup>
</view>
</template>
......@@ -308,6 +311,38 @@ export default {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
inputDialogToggle(detail) {
this.$refs.inputDialog.open();
},
closeChange() {
this.$refs.inputDialog.close();
},
dialogInputConfirm(e) {
if (!e) {
uni.showToast({
title: '请输入目的容器',
icon: 'none'
});
return false;
}
this.request(API.changeTallyContainer, 'GET', { tally_id: this.detail.tally_id, container_sn: e }, true).then(res => {
if (res.code === 0) {
uni.showToast({
title: '修改成功',
icon: 'success'
});
setTimeout(() => {
this.detail.container_sn = e;
this.closeChange();
}, 2000);
} else {
uni.showToast({
title: res.msg,
icon: 'none'
});
}
});
},
/**
* 找出false对应的下标
* @param {Object} arr
......
No preview for this file type
......@@ -39,6 +39,10 @@ const API = {
* */
waitTallyReceiveList: API_BASE + '/api/stockIn/tallyReceive/waitTallyReceiveList',
/**
* 修改理货容器
* */
changeTallyContainer: API_BASE + '/api/stockIn/tallyReceive/changeTallyContainer',
/**
* 识别二维码的数量和型号
* */
identifyQrCodeNumAndSn: API_BASE + '/api/stockIn/identifyQrCodeNumAndSn',
......
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