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

View File

@ -29,13 +29,13 @@
</tpx-text-item> </tpx-text-item>
</view> --> </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 v-if="showMode!=1">
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="物品单价"> <tpx-text-item label="物品单价">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
@ -46,7 +46,7 @@
> >
<tpx-text-item label="原产地"> <tpx-text-item label="原产地">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</tpx-select> </tpx-select>
@ -64,35 +64,35 @@
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="品牌"> <tpx-text-item label="品牌">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="材质"> <tpx-text-item label="材质">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="用途"> <tpx-text-item label="用途">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="成分"> <tpx-text-item label="成分">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
<view class="edm-input-item"> <view class="edm-input-item">
<tpx-text-item label="供应商"> <tpx-text-item label="供应商">
<template v-slot:right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
@ -162,7 +162,12 @@
default () { default () {
return '1' // 1 只显示商品名称、体积; 2:显示全部商品信息 return '1' // 1 只显示商品名称、体积; 2:显示全部商品信息
} }
} },
comInSty: {
default () {
return ''
}
},
}, },
data() { data() {
return { return {

View File

@ -22,7 +22,7 @@
<view class="jsfm-item"> <view class="jsfm-item">
<tpx-text-item :required="true" label="件数" > <tpx-text-item :required="true" label="件数" >
<template #right> <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> </template>
</tpx-text-item> </tpx-text-item>
</view> </view>
@ -78,6 +78,11 @@
return {} return {}
} }
}, },
comInSty: {
default () {
return ''
}
},
}, },
data() { data() {
return { return {