Commit c629ca53 by LJM

WMS二期--移动端【理货】

parent c0656a7c
......@@ -602,8 +602,27 @@
.item-tit {
font-size: 20rpx;
color: #292b33;
font-weight: bold;
margin-bottom: 18rpx;
transition: all 0.2s ease;
text:first-child {
margin-right: 32rpx;
}
.curr {
position: relative;
color: #1969f9;
font-weight: bold;
&::after {
content: '';
background-color: #1969f9;
width: 51%;
height: 2px;
position: absolute;
bottom: -10rpx;
left: 0;
right: 0;
margin: 0 auto;
}
}
}
.bor {
height: 1px;
......
......@@ -383,7 +383,7 @@
left: 0;
z-index: 999;
.btn1 {
width: 248rpx;
width: 30%;
height: 75rpx;
background: #ffffff;
.check-box-icon {
......@@ -404,8 +404,26 @@
color: #484b59;
}
}
.print-type-box {
width: 20%;
height: 75rpx;
background-color: #ffffff;
picker {
width: 100%;
height: 100%;
}
.uni-input {
font-size: 23rpx;
color: #484b59;
}
.iconfont {
margin-left: 17rpx;
font-size: 18rpx;
color: #919399;
}
}
.btn2 {
width: calc(100% - 248rpx);
width: 50%;
height: 75rpx;
background: #1969f9;
font-size: 23rpx;
......
......@@ -72,6 +72,7 @@
<text>货品信息</text>
</template>
</view>
<!-- 区分深圳自营和非深圳自营 -->
<template v-if="curr == 0">
<view class="field-item row">
<template v-if="detail.sku_id > 0">
......@@ -272,11 +273,29 @@
</template>
</view>
<view class="fix-btn row verCenter">
<view class="btn1 row rowCenter verCenter" @click="toggle(1)">
<text class="check-box-icon" :class="{ curr: print_flag }"></text>
<text class="text">打印入库标签</text>
</view>
<view class="btn2 row rowCenter verCenter" @click="createTallyReceive" :class="{ 'btn-disabled': !is_submit }">理 货</view>
<!--区分深圳自营和非深圳自营-->
<template v-if="warehouse_id == 9">
<view class="btn1 row rowCenter verCenter" @click="toggle(1)">
<text class="check-box-icon" :class="{ curr: print_flag }"></text>
<text class="text">打印入库标签</text>
</view>
<view class="print-type-box row rowCenter verCenter">
<picker @change="bindPickerChange($event, 2)" :value="print_style_index" :range="print_style" class="row rowCenter verCenter">
<view class="row rowCenter verCenter">
<view class="uni-input">{{ print_style[print_style_index] }}</view>
<view class="iconfont icon-sanjiaoxing"></view>
</view>
</picker>
</view>
<view class="btn2 row rowCenter verCenter" @click="createTallyReceive" :class="{ 'btn-disabled': !is_submit }">理 货</view>
</template>
<template v-else>
<view class="btn1 row rowCenter verCenter" @click="toggle(1)" style="width: 40%;">
<text class="check-box-icon" :class="{ curr: print_flag }"></text>
<text class="text">打印入库标签</text>
</view>
<view class="btn2 row rowCenter verCenter" @click="createTallyReceive" :class="{ 'btn-disabled': !is_submit }" style="width: 60%;">理 货</view>
</template>
</view>
</view>
</template>
......@@ -304,6 +323,8 @@ export default {
limit: 1,
index: 0,
curr: 0,
print_style: ['基本样式', '不带D/C'],
print_style_index: 0,
item: ['货品信息', '其他信息'],
indexContainer: -1,
array: ['物流单号', '入库单号', '入仓号'],
......@@ -313,6 +334,7 @@ export default {
maxNum: 10, //最大上传图片数量
useOptionIndex: -1,
useOption: [], //产地
warehouse_id: '', //区分仓库
searchParams: {
stock_in_sn: '', //入库单号
tracking_no: '', //物流单号
......@@ -360,11 +382,21 @@ export default {
tab(index) {
this.curr = index;
},
/**
* @param {Object} e
* @param {Object} type
*/
bindPickerChange: function(e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.useOptionIndex = e.detail.value;
this.formParams.coo = this.useOption[e.detail.value].coo_en;
} else if (type == 2) {
this.print_style_index = e.detail.value;
//区分深圳自营和非深圳自营
if (this.warehouse_id == 9) {
this.formParams.is_print = this.print_style_index == 1 ? 2 : 1;
}
} else {
this.index = e.detail.value;
}
......@@ -393,23 +425,18 @@ export default {
}
}, 500),
/**
* 是否打印
* @param {Object} type
* class切换
* 1 打印入库标签
* 2 整单照片
*/
toggle(type) {
if (type == 1) {
this.print_flag = !this.print_flag;
if (this.print_flag) {
this.formParams.is_print = 1;
} else {
this.formParams.is_print = 0;
}
} else {
this.formParams.is_print = this.print_flag ? 1 : 0;
} else if (type == 2) {
this.pic_flag = !this.pic_flag;
if (this.pic_flag) {
this.formParams.is_mobile_default_img = 1;
} else {
this.formParams.is_mobile_default_img = 0;
}
this.formParams.is_mobile_default_img = this.pic_flag ? 1 : 0;
}
},
/**
......@@ -531,6 +558,7 @@ export default {
this.request(API.waitTallyReceiveList, 'POST', { page: this.page, limit: this.limit, stock_in_item_id: this.stock_in_item_id, ...this.searchParams }, false).then(res => {
if (res.code === 0) {
if (res.data.list.length > 0) {
this.warehouse_id = res.data.list[0].warehouse_id;
this.detail = res.data.list[0];
this.formParams.tally_qty = res.data.list[0].wait_tally_qty;
this.formParams.date_code = res.data.list[0].expect_date_code;
......
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