|
|
@ -157,14 +157,14 @@ |
|
|
|
v-if="recoveryBatch.list.length>0" label="采收批次" field="inInventoryBatch" required type="select" :columns="recoveryBatch.list" custom |
|
|
|
:tip="recoveryBatch.surplus>0?`剩余:${recoveryBatch.surplus}kg`:''" |
|
|
|
:value="recoveryBatch.value" |
|
|
|
@select="recoveryBatch.value=[$event[0].value];formData.inOutBatchNo=$event[0].batchNo;recoveryBatch.number=$event[0].surplus;recoveryBatch.surplus=$event[0].surplus;formData.inInventoryBatch=recoveryBatch.value.at(-1)"> |
|
|
|
@select="recoveryBatch.value=[$event[0].value];formData.inOutBatchNo=$event[0].batchNo;recoveryBatch.number=$event[0].surplus;recoveryBatch.surplus=$event[0].surplus;formData.inInventoryBatch=recoveryBatch.value.slice(-1)[0]"> |
|
|
|
<view slot-scope="{row}" style="display:flex;"> |
|
|
|
<text style="margin-left:10rpx;font-weight:bold;">{{row.batchNo}}</text> |
|
|
|
<text style="font-size:24rpx;color:#999;margin-left:10rpx;">{{row.substanceName}}</text> |
|
|
|
<text style="margin-left:auto;color:#999;">剩余:{{row.surplus}}</text> |
|
|
|
</view> |
|
|
|
</d-form> |
|
|
|
<d-form :label="`${({in:'入',out:'出'})[mode]}库类型`" field="inOutType" required type="select" :columns="inOutType.list" :value="inOutType.value" @select="inOutType.value=$event.map(v=>v.value);formData.inOutType=inOutType.value.at(-1)"/> |
|
|
|
<d-form :label="`${({in:'入',out:'出'})[mode]}库类型`" field="inOutType" required type="select" :columns="inOutType.list" :value="inOutType.value" @select="inOutType.value=$event.map(v=>v.value);formData.inOutType=inOutType.value.slice(-1)[0]"/> |
|
|
|
<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"/> |
|
|
|
<d-form label="操作日期" field="operationTime" required type="calendar" v-model="formData.operateTime"/> |
|
|
|