Commit c3178223 by LJM

二期

parent 83f0a649
...@@ -156,8 +156,20 @@ ...@@ -156,8 +156,20 @@
margin-right: 32rpx; margin-right: 32rpx;
} }
.curr { .curr {
position: relative;
color: #1969f9; color: #1969f9;
font-weight: bold; font-weight: bold;
&::after {
content: '';
background-color: #1969f9;
width: 51%;
height: 2px;
position: absolute;
bottom: -10rpx;
left: 0;
right: 0;
margin: 0 auto;
}
} }
} }
.h2 { .h2 {
......
...@@ -233,8 +233,27 @@ ...@@ -233,8 +233,27 @@
.item-tit { .item-tit {
font-size: 20rpx; font-size: 20rpx;
color: #292b33; color: #292b33;
font-weight: bold;
margin-bottom: 18rpx; 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;
}
}
} }
.h2 { .h2 {
font-size: 17rpx; font-size: 17rpx;
......
...@@ -38,7 +38,12 @@ ...@@ -38,7 +38,12 @@
</view> </view>
<view class="bor"></view> <view class="bor"></view>
<view class="item-tit row verCenter"> <view class="item-tit row verCenter">
<template v-if="detail.sku_id > 0">
<text v-for="(v, index) in item" :key="index" :class="{ curr: curr == index }" @click="tab(index)">{{ v }}</text> <text v-for="(v, index) in item" :key="index" :class="{ curr: curr == index }" @click="tab(index)">{{ v }}</text>
</template>
<template v-else>
<text>货品信息</text>
</template>
</view> </view>
<template v-if="curr == 1"> <template v-if="curr == 1">
<view class="field-item row" style="margin-bottom: 40rpx;"> <view class="field-item row" style="margin-bottom: 40rpx;">
......
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
<text class="label">入仓号:</text> <text class="label">入仓号:</text>
<text class="tt">{{ item.inhouse }}</text> <text class="tt">{{ item.inhouse }}</text>
</view> </view>
<view class="text-item row verCenter" v-if="item.sku_id > 0">
<text class="label" style="width: 100rpx;">自营货品ID:</text>
<text class="tt">{{ item.sku_id }}</text>
</view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">货品名称:</text> <text class="label">货品名称:</text>
<text class="tt">{{ item.goods_name }}</text> <text class="tt">{{ item.goods_name }}</text>
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,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>
...@@ -65,12 +64,32 @@ ...@@ -65,12 +64,32 @@
</view> </view>
</view> </view>
<view class="bor"></view> <view class="bor"></view>
<view class="item-tit">货品详情</view> <view class="item-tit row verCenter">
<template v-if="detail.sku_id > 0">
<text v-for="(v, index) in item" :key="index" :class="{ curr: curr == index }" @click="tab(index)">{{ v }}</text>
</template>
<template v-else>
<text>货品信息</text>
</template>
</view>
<template v-if="curr == 0">
<view class="field-item row"> <view class="field-item row">
<template v-if="detail.sku_id > 0">
<view class="item row verCenter">
<text class="label">货品编码:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text>
</view>
<view class="item row verCenter">
<text class="label">自营货品ID:</text>
<text class="tt" style="max-width: 100%;">{{ detail.sku_id }}</text>
</view>
</template>
<template v-else>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">货品编码:</text> <text class="label">货品编码:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text> <text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text>
</view> </view>
</template>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">货品名称:</text> <text class="label">货品名称:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_name }}</text> <text class="tt" style="max-width: 100%;">{{ detail.goods_name }}</text>
...@@ -194,6 +213,63 @@ ...@@ -194,6 +213,63 @@
</view> </view>
<view class="h2">理货备注:</view> <view class="h2">理货备注:</view>
<view class="textarea-box"><textarea placeholder-style="color:#919399" placeholder="请输入理货备注" v-model="formParams.tally_remark" /></view> <view class="textarea-box"><textarea placeholder-style="color:#919399" placeholder="请输入理货备注" v-model="formParams.tally_remark" /></view>
</template>
<template v-else>
<view class="field-item row">
<view class="item row verCenter" style="flex: 0 0 100%;" v-if="detail.sku_id">
<text class="label">自营货品ID:</text>
<text class="text" style="max-width: 100%;">{{ detail.sku_id }}</text>
</view>
<view class="item row verCenter">
<text class="label">货品名称:</text>
<text class="tt">{{ detail.goods_name }}</text>
</view>
<view class="item row verCenter">
<text class="label">标准品牌:</text>
<text class="tt">{{ detail.brand_name }}</text>
</view>
<view class="item row verCenter">
<text class="label">包装方式:</text>
<text class="tt">{{ detail.packing_cn }}</text>
</view>
<view class="item row verCenter">
<text class="label">标准包装量:</text>
<text class="tt">{{ detail.mpq }}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label" style="width: 128rpx;">标准包装长宽高:</text>
<text class="tt" style="max-width: 100%;">{{ detail.standard_length }}&nbsp;*{{ detail.standard_width }}&nbsp;*{{ detail.standard_high }}</text>
</view>
<view class="item row verCenter">
<text class="label" style="width: 113rpx;">标准包装净重:</text>
<text class="tt">{{ detail.standard_net_weight }}</text>
</view>
<view class="item row verCenter">
<text class="label" style="width: 113rpx;">标准包装毛重:</text>
<text class="tt">{{ detail.standard_gross_weight }}</text>
</view>
<view class="item row verCenter">
<text class="label">其他属性:</text>
<text class="tt">{{ detail.picking_other_attr }}</text>
</view>
<view class="item row verCenter">
<text class="label">销售员:</text>
<text class="tt">{{ detail.sale_user }}</text>
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">客户:</text>
<text class="text" style="font-weight: bold;max-width: 491rpx;">{{ detail.customer_name }}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">供应商:</text>
<text class="tt" style="max-width: 491rpx;">{{ detail.supplier_name }}</text>
</view>
</view>
</template>
</view> </view>
<view class="fix-btn row verCenter"> <view class="fix-btn row verCenter">
<view class="btn1 row rowCenter verCenter" @click="toggle(1)"> <view class="btn1 row rowCenter verCenter" @click="toggle(1)">
...@@ -227,6 +303,8 @@ export default { ...@@ -227,6 +303,8 @@ export default {
page: 1, page: 1,
limit: 1, limit: 1,
index: 0, index: 0,
curr: 0,
item: ['货品信息', '其他信息'],
indexContainer: -1, indexContainer: -1,
array: ['物流单号', '入库单号', '入仓号'], array: ['物流单号', '入库单号', '入仓号'],
tallyContainer: [], //容器列表 tallyContainer: [], //容器列表
...@@ -275,6 +353,13 @@ export default { ...@@ -275,6 +353,13 @@ export default {
} }
}, },
methods: { methods: {
/**
* @param {Object} index
* tab切换
*/
tab(index) {
this.curr = index;
},
bindPickerChange: function(e, type) { bindPickerChange: function(e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) { if (type == 1) {
......
...@@ -74,6 +74,10 @@ ...@@ -74,6 +74,10 @@
<text class="label">入仓号:</text> <text class="label">入仓号:</text>
<text class="tt">{{ item.inhouse }}</text> <text class="tt">{{ item.inhouse }}</text>
</view> </view>
<view class="text-item row verCenter" v-if="item.sku_id > 0">
<text class="label" style="width: 100rpx;">自营货品ID:</text>
<text class="tt">{{ item.sku_id }}</text>
</view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">货品名称:</text> <text class="label">货品名称:</text>
<text class="tt">{{ item.goods_name }}</text> <text class="tt">{{ item.goods_name }}</text>
...@@ -109,7 +113,7 @@ ...@@ -109,7 +113,7 @@
<text class="iconfont icon-a-juxing21"></text> <text class="iconfont icon-a-juxing21"></text>
<text class="text">查不到当前数据</text> <text class="text">查不到当前数据</text>
</view> </view>
<view class="fix-btn row verCenter"> <view class="fix-btn row verCenter" v-if="list.length > 0">
<view class="btn1 row rowCenter verCenter" style="width: 127rpx;" @click="allChnage()"> <view class="btn1 row rowCenter verCenter" style="width: 127rpx;" @click="allChnage()">
<text class="check-box-icon" :class="{ curr: filter_list.length > 0 && filter_list.length == filter_id.length }"></text> <text class="check-box-icon" :class="{ curr: filter_list.length > 0 && filter_list.length == filter_id.length }"></text>
<text class="text">{{ filter_id.length == 0 ? '全选' : filter_id.length }}</text> <text class="text">{{ filter_id.length == 0 ? '全选' : filter_id.length }}</text>
...@@ -153,6 +157,10 @@ ...@@ -153,6 +157,10 @@
<text class="label">货品编码:</text> <text class="label">货品编码:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text> <text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;" v-if="detail.sku_id > 0">
<text class="label">自营货品ID:</text>
<text class="tt" style="max-width: 100%;">{{ detail.sku_id }}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">货品名称:</text> <text class="label">货品名称:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_name }}</text> <text class="tt" style="max-width: 100%;">{{ detail.goods_name }}</text>
......
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