emis-app/components/buns-goodinfo-sheet/buns-goodinfo-sheet.vue
2024-01-31 17:17:34 +08:00

228 lines
6.4 KiB
Vue

<template>
<tpx-dialog :show="show" title="编辑货物信息" @onClose="handleCloseModal()">
<view style="position: relative;height: calc(70vh);">
<tpx-layout>
<template v-slot:body>
<view class="dt-block">
<view class="dt-tle">
<view class="com-section">物品信息</view>
<view>
<u-button custom-style="font-size: 28rpx;height: 56rpx;border-radius: 16rpx;" plain="true" type="primary">选择历史</u-button>
</view>
</view>
<view class="dt-cont">
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">物品名称</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">物品单价</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
>
<template #suffix>
<text class="font-26 clr-sub pl-10">元</text>
</template>
</u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">物品数量</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
>
<template #suffix>
<text class="font-26 clr-sub pl-10">个</text>
</template>
</u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">原产地</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
</view>
</view>
<view class="dt-block" style="margin-top: 50rpx;">
<view class="dt-tle">
<view class="com-section grey">其他信息(按需填写)</view>
</view>
<view class="dt-cont">
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">品牌</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">材质</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">用途</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">成分</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
<view class="edm-input-item">
<u-row justify="between">
<text class="font-28 ">供应商</text>
<u-input placeholder="请填写" v-model="value1" inputAlign="right" font-size="26"
custom-style="border:0;border-radius: 10rpx;padding: 14rpx 20rpx;"
placeholder-style="color: #999; "
></u-input>
</u-row>
</view>
<view class="edm-input-item" style="padding-top: 24rpx;padding-bottom: 24rpx;">
<u-row justify="between">
<text class="font-28 ">保存物品信息</text>
<view>
<u-switch v-model="saveSwitch" active-color="#B12D29" size="34"></u-switch>
</view>
</u-row>
</view>
</view>
</view>
</template>
<template v-slot:footer>
<view class="blcok-white-noradius" style="margin-top: 0;margin-bottom: 0;">
<u-button @click="handleSubmitValue()" type="primary" size="large" shape="circle"
custom-style="height:80rpx;font-size: 30rpx;"
>确认</u-button>
</view>
</template>
</tpx-layout>
</view>
</tpx-dialog>
</template>
<script>
export default {
// computed: {
// filDataList() {
// return []
// },
// },
props: {
show: {
default () {
return false
}
},
value: {
default () {
return {}
}
}
},
data() {
return {
value1: '',
value2: '',
keyword: '',
saveSwitch: false
}
},
created() {
},
onHide() {
},
unmounted() {},
methods: {
handleCloseModal() {
this.$emit('update:show', false)
},
handleSubmitValue(val) {
this.$emit('onSure', {})
this.$emit('update:value', {})
this.handleCloseModal()
}
}
}
</script>
<style scoped lang="scss">
.shet-cont{
padding: 10rpx 0 30rpx 0;
}
.dt-block {
background-color: #FFF;
position: relative;
}
.dt-tle {
display: flex;
flex-direction: row;
justify-content: space-between;
.t1 {
font-size: 30rpx;
font-weight: 600;
}
.t2{
font-size: 30rpx;
}
}
.dt-cont{
}
.dt-item {
display: flex;
flex-direction: row;
margin-bottom: 20rpx;
justify-content: space-between;
}
.yditem{
padding: 20rpx 20rpx;
background-color: #F6F6F6;
border-radius: 10rpx;
margin-bottom: 20rpx;
}
.ydi-lab{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.edm-input-item{
padding: 8rpx 0;
border-bottom: 2rpx solid #F6F6F6;
}
</style>