Commit 836a004d by LJM

bug

parent b949ae81
......@@ -500,7 +500,7 @@
font-weight: bold;
}
.uni-input-show {
font-size: 20rpx;
font-size: 16rpx;
color: #292b33;
font-weight: bold;
}
......@@ -515,14 +515,14 @@
.box-row {
margin-bottom: 10rpx;
text {
color: #484b59;
font-size: 22rpx;
color: #5f5f5f;
font-size: 16rpx;
}
.text {
flex: 0 0 20%;
text {
color: #484b59;
font-size: 22rpx;
font-size: 16rpx;
}
}
}
......
......@@ -256,7 +256,7 @@ export default {
return {
input_flag: false,
page: 1,
limit: 30,
limit: 50,
index: 0,
array: ['入库单号', '入库批次号', '销售员', '入仓号', '理货容器'],
list: [],
......@@ -495,12 +495,12 @@ export default {
}, 2000);
} else if (res.code == 2) {
uni.showModal({
title: '提示',
content: res.msg,
showCancel: false,
success: data => {
if (data.confirm) {
this.request(API.submitOnShelf, 'POST', { stock_shelf_ids: stock_shelf_ids, is_support_part_shelf: 1 }, true).then(res => {
if (res.code === 0) {
this.request(API.submitOnShelf, 'POST', { stock_shelf_ids: stock_shelf_ids, is_support_part_shelf: 1 }, true).then(json => {
if (json.code === 0) {
uni.showToast({
title: '提交成功',
icon: 'success'
......@@ -516,7 +516,7 @@ export default {
} else {
uni.showModal({
title: '提示',
content: res.msg,
content: json.msg,
showCancel: false
});
}
......
......@@ -45,7 +45,7 @@
<text class="label">上游备注:</text>
<text class="tt">{{ item.upstream_remark }}</text>
</view>
<view class="btn-box row"><navigator :url="'/pages/stockRecheck/sort?stock_out_id=' + item.stock_out_id" class="btn1 row rowCenter verCenter" hover-class="none">选择</navigator></view>
<view class="btn-box row"><navigator :url="'/pages/stockRecheck/sort?stock_out_id=' + item.stock_out_id + '&stock_out_sn=' + item.stock_out_sn" class="btn1 row rowCenter verCenter" hover-class="none">选择</navigator></view>
</view>
</view>
<!-- 无数据展示 -->
......
......@@ -418,35 +418,11 @@
</view>
</view>
<view class="row avarage verCenter box-row">
<template v-if="company_id == 1">
<text style="flex: 0 0 20%;">长cm</text>
<text style="flex: 0 0 20%;">宽cm</text>
<text style="flex: 0 0 20%;">高cm</text>
<text style="flex: 0 0 20%;">净重kg</text>
<text style="flex: 0 0 20%;">毛量kg</text>
</template>
<template v-else>
<view class="text">
<text style="color:red">*</text>
<text>长cm</text>
</view>
<view class="text">
<text style="color:red">*</text>
<text>宽cm</text>
</view>
<view class="text">
<text style="color:red">*</text>
<text>高cm</text>
</view>
<view class="text">
<text style="color:red">*</text>
<text>净重kg</text>
</view>
<view class="text">
<text style="color:red">*</text>
<text>毛量kg</text>
</view>
</template>
</view>
<view class="row avarage verCenter">
<input type="text" placeholder="长cm" placeholder-style="color:#919399" class="uni-input" v-model="packList[i].length" />
......@@ -513,17 +489,16 @@ export default {
onNavigationBarButtonTap(e) {
if (e.index == 0) {
uni.navigateTo({
url: '/pages/stockRecheck/record'
url: '/pages/stockRecheck/record?stock_out_sn=' + this.stock_out_sn
});
}
},
onLoad(options) {
this.searchParams.stock_out_id = options.stock_out_id || '';
this.stock_out_sn = options.stock_out_sn || '';
},
onShow() {
this.getData();
this.getPackList();
this.getBoxConfigList();
},
methods: {
bindPickerBoxChange: function(e, index) {
......@@ -764,63 +739,6 @@ export default {
var parmas = {
pack_list: JSON.stringify(this.packList)
};
if (this.company_id == 2) {
var hasEmptyWidth = this.packList.some(function(item) {
return item.width === '';
});
var hasEmptyLength = this.packList.some(function(item) {
return item.length === '';
});
var hasEmptyHight = this.packList.some(function(item) {
return item.hight === '';
});
var hasEmptynetWeight = this.packList.some(function(item) {
return item.net_weight === '';
});
var hasEmptygrossWeight = this.packList.some(function(item) {
return item.gross_weight === '';
});
if (hasEmptyLength) {
uni.showModal({
itle: '提示',
content: '请输入宽',
showCancel: false
});
return false;
}
if (hasEmptyWidth) {
uni.showModal({
itle: '提示',
content: '请输入长',
showCancel: false
});
return false;
}
if (hasEmptyHight) {
uni.showModal({
itle: '提示',
content: '请输入高',
showCancel: false
});
return false;
}
if (hasEmptynetWeight) {
uni.showModal({
itle: '提示',
content: '请输入净重',
showCancel: false
});
return false;
}
if (hasEmptygrossWeight) {
uni.showModal({
itle: '提示',
content: '请输入毛重',
showCancel: false
});
return false;
}
}
this.request(API.updatePackInfo, 'POST', parmas, true).then(res => {
if (res.code === 0) {
uni.showToast({
......@@ -844,6 +762,9 @@ export default {
* 展示箱信息
*/
showBox() {
this.getPackList(); //获取箱信息
this.getBoxConfigList(); //获取箱配置
this.index = -1;
this.$refs.showBoxInfo.open();
},
closeBox() {
......
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