story#6932,年月传值和界面显示区分

This commit is contained in:
2025-07-30 16:04:14 +08:00
parent 55044c55d5
commit bed585ffdc

View File

@ -36,9 +36,10 @@
@focus="showDatetime = true"
class="radioWrap"
readonly
:value="form.scrapTime?.substring(0,10)"
v-model="scrapTimeFormatShow"
input-align="right"
> </van-field>
>
</van-field>
</div>
</template>
<template v-else>
@ -77,7 +78,7 @@
@focus="showDatetime = true"
class="radioWrap"
readonly
:value="form.tradeTime?.substring(0,10)"
v-model="tradeTimeFormatShow"
input-align="right"
> </van-field>
</div>
@ -261,6 +262,12 @@ export default {
},
},
computed: {
tradeTimeFormatShow(){
return this.form.tradeTime ? this.form.tradeTime?.substring(0,10) : '';
},
scrapTimeFormatShow(){
return this.form.scrapTime ? this.form.scrapTime?.substring(0,10) : '';
},
validationRules() {
return [
{required:true, value: this.form.salesChannel, name: '售出渠道不能为空' },