uu
This commit is contained in:
parent
0ae5f3eff9
commit
3291c0d456
@ -85,13 +85,20 @@
|
||||
.w-full{
|
||||
width: 100%;
|
||||
}
|
||||
.text-singe-line {
|
||||
.text-singe-line, .text-1-line {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.text-2-line {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.label-text{
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
@ -12,11 +12,12 @@
|
||||
|
||||
<view class="dt-block" >
|
||||
<view class="dt-cont">
|
||||
<view v-if="showMode!=1" class="edm-input-item">
|
||||
<view v-if="showMode!=1" class="edm-input-item pos-rlt">
|
||||
<view class="mt-30 lbRequiredDot" style="position: absolute;"></view>
|
||||
<tpx-select v-model:value="checkedGoodId" v-model:resObject="goodsRes" :getListFun="getGoodsList" :transKeyVal="{valKey: 'goodsName',titleKey: 'goodsName'}"
|
||||
mode="drop" @onChange="handleChooseGood"
|
||||
>
|
||||
<tpx-input v-model:value="modelInfo.goodsName" placeholder="物品名称"></tpx-input>
|
||||
<tpx-textarea v-model:value="modelInfo.goodsName" placeholder="物品名称" :autoHeight="true" :height="40"></tpx-textarea>
|
||||
</tpx-select>
|
||||
</view>
|
||||
|
||||
@ -40,11 +41,15 @@
|
||||
</view>
|
||||
|
||||
<view class="edm-input-item">
|
||||
<tpx-select v-model:value="modelInfo.nationArea" v-model:resObject="countryRes" :getListFun="getCountryList" :transKeyVal="{valKey: 'name',titleKey: 'name'}"
|
||||
mode="drop"
|
||||
>
|
||||
<tpx-text-item label="原产地">
|
||||
<template v-slot:right>
|
||||
<tpx-input placeholder="请填写" v-model:value="modelInfo.nationArea" inputAlign="right"></tpx-input>
|
||||
</template>
|
||||
</tpx-text-item>
|
||||
</tpx-select>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -162,6 +167,7 @@
|
||||
data() {
|
||||
return {
|
||||
goodsRes: { list: [] },
|
||||
countryRes: { list: [] },
|
||||
checkedGoodId: '',
|
||||
hotGoods: [
|
||||
]
|
||||
@ -177,6 +183,7 @@
|
||||
|
||||
methods: {
|
||||
getGoodsList: apiService.getGoodsList,
|
||||
getCountryList: apiService.getEmisCountry,
|
||||
|
||||
async initData() {
|
||||
this.checkedGoodId = ''
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
<template>
|
||||
<view class="pb-20">
|
||||
<view>
|
||||
<text class="clr-sub pr-10">货物名称</text> {{modelInfo.goodsInfo}}
|
||||
<u-row>
|
||||
<view class="clr-sub pr-10">货物名称</view>
|
||||
<view class="text-1-line" style="flex: 1;">
|
||||
{{modelInfo.goodsInfo}}
|
||||
</view>
|
||||
</u-row>
|
||||
<!-- <view class="pt-10">
|
||||
<text class="clr-sub pr-10">货物大类</text> {{modelInfo.goodsType}}
|
||||
</view> -->
|
||||
@ -10,8 +13,8 @@
|
||||
</view>
|
||||
|
||||
<view v-for="(item) in modelInfo.cargoList" class="yditem">
|
||||
<view class="ydi-lab">
|
||||
<text class="font-weight">{{item.goodsName}}</text>
|
||||
<view class="font-weight text-1-line">
|
||||
{{item.goodsName}}
|
||||
</view>
|
||||
|
||||
<u-row justify="between" custom-style="flex-wrap: wrap;">
|
||||
@ -23,29 +26,55 @@
|
||||
{{item.height || '0'}}cm
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.nationArea" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">产地</text>{{item.nationArea}}
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col span="12">
|
||||
<u-row justify="between">
|
||||
|
||||
<u-col v-if="item.price" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">件数</text>{{item.cargoQty}}
|
||||
</view>
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">体积</text>
|
||||
{{item.volume || '0'}}m³
|
||||
</view>
|
||||
</u-row>
|
||||
</u-col>
|
||||
|
||||
<u-col v-if="item.price" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">体积</text>{{item.volume || '0'}}m³
|
||||
</view>
|
||||
</u-col>
|
||||
|
||||
<u-col v-if="item.price" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">单价</text>{{item.price}} CNY
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.nationArea" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">产地</text>{{item.nationArea}}
|
||||
</view>
|
||||
</u-col>
|
||||
|
||||
|
||||
<u-col v-if="item.brand" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">品牌</text>{{item.brand}}
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.material" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">材质</text>{{item.material}}
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.purpose" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">用途</text>{{item.purpose}}
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.ingredients" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">成分</text>{{item.ingredients}}
|
||||
</view>
|
||||
</u-col>
|
||||
<u-col v-if="item.supplier" span="6">
|
||||
<view class="pt-5">
|
||||
<text class="clr-sub pr-10">供应商</text>{{item.supplier}}
|
||||
</view>
|
||||
</u-col>
|
||||
</u-row>
|
||||
</view>
|
||||
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
<template>
|
||||
<u-textarea shape="circle" placeholder-style=""
|
||||
:modelValue="value" :clearable="true" :placeholder="placeholder"
|
||||
custom-style="border-radius: 10rpx;padding: 15rpx 20rpx;" height="160"
|
||||
custom-style="border-radius: 10rpx;padding: 15rpx 20rpx;"
|
||||
@change="handleChange"
|
||||
:height="height"
|
||||
:autoHeight="autoHeight"
|
||||
></u-textarea>
|
||||
</template>
|
||||
|
||||
@ -19,6 +21,16 @@
|
||||
return ''
|
||||
}
|
||||
},
|
||||
height:{
|
||||
default () {
|
||||
return 160
|
||||
}
|
||||
},
|
||||
autoHeight:{
|
||||
default () {
|
||||
return false
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user