This commit is contained in:
aihe 2024-08-02 17:41:30 +08:00
parent 3291c0d456
commit 95dd202078
3 changed files with 34 additions and 19 deletions

View File

@ -7,17 +7,19 @@
</tpx-select>
</view>
<view class="edm-input-item ">
<u-row align="top">
<u-row align="top" justify="between">
<text class="font-weight pr-30 lbRequiredDot">货物名称</text>
<view>
<u-textarea v-model="modelInfo.goodsInfo" border="surround" height="100" placeholder=""
count></u-textarea>
:customStyle="`${comInSty}`" count></u-textarea>
</view>
</u-row>
</view>
<view class="edm-input-item mb-10">
<u-row justify="between">
<text class="font-28 font-weight lbRequiredDot">总件数</text>
<view>
<tpx-input v-model:value="modelInfo.parcelQty" placeholder="" type="number" inputAlign="right"></tpx-input>
<tpx-input v-model:value="modelInfo.parcelQty" placeholder="" :customStyle="`${comInSty}`" type="number" inputAlign="right"></tpx-input>
</view>
</u-row>
</view>
@ -25,7 +27,7 @@
<view class="edm-input-item mt-20">
<tpx-text-item :required="true" label="包裹重量" >
<template #right>
<tpx-input v-model:value="modelInfo.billWeight" placeholder="" inputAlign="right" suffix="kg" _digit="5"></tpx-input>
<tpx-input v-model:value="modelInfo.billWeight" placeholder="" :customStyle="`${comInSty}`" inputAlign="right" suffix="kg" _digit="5"></tpx-input>
</template>
</tpx-text-item>
</view>
@ -34,7 +36,7 @@
<u-row justify="between" align="top">
<text class="font-28 pt-20 font-weight">总体积</text>
<view>
<tpx-input v-model:value="modelInfo.totalVolume" placeholder="" inputAlign="right" suffix="m³" _digit="5"></tpx-input>
<tpx-input v-model:value="modelInfo.totalVolume" placeholder="" :customStyle="`${comInSty}`" inputAlign="right" suffix="m³" _digit="5"></tpx-input>
</view>
</u-row>
</view>
@ -43,7 +45,7 @@
<u-row justify="between" align="top">
<text class="font-28 pt-20 font-weight">货值</text>
<view>
<tpx-input v-model:value="modelInfo.realValue" placeholder="" inputAlign="right" suffix="美元" _digit="5"></tpx-input>
<tpx-input v-model:value="modelInfo.realValue" placeholder="" :customStyle="`${comInSty}`" inputAlign="right" suffix="美元" _digit="5"></tpx-input>
</view>
</u-row>
</view>
@ -57,7 +59,7 @@
<u-icon @click="handleDelGood(index)" name="trash" size="32"></u-icon>
</view>
</view>
<bpe-gooditem-filed-edit-tmp :value="item" :showMode="showMode" :submitVal="modelInfo"></bpe-gooditem-filed-edit-tmp>
<bpe-gooditem-filed-edit-tmp :value="item" :showMode="showMode" :submitVal="modelInfo" :comInSty="comInSty"></bpe-gooditem-filed-edit-tmp>
</view>
<u-button @click="handleAddGood" custom-style="border-radius: 16rpx;height: 66rpx;" type="primary" plain="true">
@ -94,7 +96,10 @@
},
isCargoListOnchange() {
return this.modelInfo.cargoList
}
},
comInSty(){
return `;width: 450rpx;`
},
},
watch: {
'modelInfo.parcelQty': {

View File

@ -29,13 +29,13 @@
</tpx-text-item>
</view> -->
<bpe-gooditemsize-tmp v-model:value="modelInfo" :submitVal="submitVal"></bpe-gooditemsize-tmp>
<bpe-gooditemsize-tmp v-model:value="modelInfo" :submitVal="submitVal" :comInSty="comInSty"></bpe-gooditemsize-tmp>
<view v-if="showMode!=1">
<view class="edm-input-item">
<tpx-text-item label="物品单价">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.price" inputAlign="right" _digit="5" suffix="CNY"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.price" :customStyle="`${comInSty}`" inputAlign="right" _digit="5" suffix="CNY"></tpx-input>
</template>
</tpx-text-item>
</view>
@ -46,7 +46,7 @@
>
<tpx-text-item label="原产地">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.nationArea" inputAlign="right"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.nationArea" :customStyle="`${comInSty}`" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</tpx-select>
@ -64,35 +64,35 @@
<view class="edm-input-item">
<tpx-text-item label="品牌">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.brand" inputAlign="right"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.brand" :customStyle="`${comInSty}`" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
<view class="edm-input-item">
<tpx-text-item label="材质">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.material" inputAlign="right"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.material" :customStyle="`${comInSty}`" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
<view class="edm-input-item">
<tpx-text-item label="用途">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.purpose" inputAlign="right"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.purpose" :customStyle="`${comInSty}`" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
<view class="edm-input-item">
<tpx-text-item label="成分">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.ingredients" inputAlign="right"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.ingredients" :customStyle="`${comInSty}`" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
<view class="edm-input-item">
<tpx-text-item label="供应商">
<template v-slot:right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.supplier" inputAlign="right"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.supplier" :customStyle="`${comInSty}`" inputAlign="right"></tpx-input>
</template>
</tpx-text-item>
</view>
@ -162,8 +162,13 @@
default () {
return '1' // 1 只显示商品名称、体积; 2:显示全部商品信息
}
},
comInSty: {
default () {
return ''
}
},
},
data() {
return {
goodsRes: { list: [] },

View File

@ -22,7 +22,7 @@
<view class="jsfm-item">
<tpx-text-item :required="true" label="件数" >
<template #right>
<tpx-input placeholder="请填写" v-model:value="modelInfo.cargoQty" inputAlign="right" type="number" suffix="件" :_maxNum="cargoQtyMaxNum"></tpx-input>
<tpx-input placeholder="请填写" v-model:value="modelInfo.cargoQty" inputAlign="right" :customStyle="`${comInSty}`" type="number" suffix="件" :_maxNum="cargoQtyMaxNum"></tpx-input>
</template>
</tpx-text-item>
</view>
@ -78,6 +78,11 @@
return {}
}
},
comInSty: {
default () {
return ''
}
},
},
data() {
return {