From 08569a8163b1c1e756c752466c38fa0ffcce0e5f Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp <m13724205240@163.com> Date: Fri, 19 May 2023 19:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/add_transaction.vue | 4 +++- pages/stock/record.vue | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/massif/add_transaction.vue b/pages/massif/add_transaction.vue index 216f0f5..3d255b1 100644 --- a/pages/massif/add_transaction.vue +++ b/pages/massif/add_transaction.vue @@ -71,6 +71,7 @@ <d-form style="width:max-content;margin-top:40rpx;" type="select" placeholder=" " @select="formData.packUnit=$event[0].value" :columns="[packWeightList]" :value="[formData.packUnit]"/> </view> <d-form label="交易数量" disabled type="digit" :suffix="formData.packUnit" :value="tradeNum"/> + <d-form label="交易日期" type="calendar" v-model="formData.tradeTime"/> <d-form label="买方名称" required field="buyerName" btnIcon="plant-sousuo" :btnFun="searchBuy" :value="formData.buyerName" @input="formData.buyerName=$event"/> <d-form label="买方类型" required field="buyerType" type="select" :columns="[buyerType.list]" :value="buyerType.value" @select="buyerType.value=$event.map(v=>v.value);formData.buyerType=buyerType.value[1]"/> <d-form label="收货地址" required field="buyerAddress" type="textarea" :value="formData.buyerAddress" @input="formData.buyerAddress=$event"/> @@ -95,6 +96,7 @@ export default { specification:"", packUnit:"", tradeNum:"", + tradeTime:"", buyerName:"", buyerType:"", buyerAddress:"", @@ -106,7 +108,7 @@ export default { else call() },trigger:["blur","change"]}, specification:{required:true,type:'number',message:"规格必填!",trigger:["blur","change"]}, - // tradeNum:{required:true,message:"交易数量必填!",type:"number"}, + tradeTime:{required:true,message:"请选择交易日期!",trigger:['blur','change']}, buyerName:{required:true,message:"买方名称必填!",trigger:["blur","change"]}, buyerType:{required:true,message:"交易类型必选!",trigger:["blur","change"]}, buyerAddress:{required:true,message:"收货地址必填!",trigger:["blur","change"]}, diff --git a/pages/stock/record.vue b/pages/stock/record.vue index 0832ab3..ff7f7f7 100644 --- a/pages/stock/record.vue +++ b/pages/stock/record.vue @@ -62,6 +62,7 @@ font-weight: bold; display:flex; align-items: center; + font-size:28rpx; &.nz{ &:after{ content:"("attr(data-unit)")";