|
|
@ -171,14 +171,14 @@ |
|
|
|
</block> |
|
|
|
<!-- 农资出库、出库类型为损坏出库 --> |
|
|
|
<block v-if="formData.substanceType==1&&formData.inOutType=='out02'"> |
|
|
|
<d-form label="采购单价" type='digit' v-model="formData.price" required field="price"/> |
|
|
|
<!-- <d-form label="采购单价" type='digit' v-model="formData.price" required field="price"/> --> |
|
|
|
<d-form label="处理方式" type="select" :columns="[processMode]" :value="[formData.processMode]" @select="formData.processMode=$event[0].value" required field="processMode"/> |
|
|
|
</block> |
|
|
|
<!-- 农产品出库、 出库类型为损坏出库--> |
|
|
|
<block v-else-if="formData.substanceType==2&&formData.inOutType=='out03'"> |
|
|
|
<d-form label="损坏原因" type="select" :columns="[damageReason]" :value="formData.damageReason" @select="formData.damageReason=$event[0].value" required field="damageReason"/> |
|
|
|
<d-form label="折价率" type="digit" v-model="formData.rateDiscount" required field="rateDiscount"/> |
|
|
|
<d-form label="金额" type="digit" v-model="formData.amount" required field="amount"/> |
|
|
|
<d-form label="折价率(%)" type="digit" v-model="formData.rateDiscount" required field="rateDiscount"/> |
|
|
|
<d-form label="金额(元)" type="digit" v-model="formData.amount" required field="amount"/> |
|
|
|
</block> |
|
|
|
<d-form :label="`${({in:'入',out:'出'})[mode]}库批次号`" field="inOutBatchNo" required :disabled="formData.substanceType==2" :value="formData.inOutBatchNo" @input="formData.inOutBatchNo=$event" :btnText="formData.substanceType==1?'生成':''" :btnFun="()=>this.formData.inOutBatchNo=`${({in:'RK',out:'CK'})[this.mode]}${new Date().format('yyyyMMdd')}${new Date().getTime()}`"/> |
|
|
|
<d-form :label="({1:`${({in:'入',out:'出'})[mode]}库数量`,2:'重量'})[formData.substanceType]" field="number" required :suffix="number.suffix" :value="formData.number" @input="formData.number=$event" type="digit"/> |
|
|
|