|
|
@@ -207,27 +207,7 @@
|
|
|
<view class="h-1" id="capacitypppp"></view>
|
|
|
<view class="h-1" id="unitpppp"></view>
|
|
|
<up-form-item label="入库量" prop="capacity" required class="form-item-bottom-padding-0">
|
|
|
- <div class="flex1 d-flex">
|
|
|
- <div class="flex1 ov-hd">
|
|
|
- <up-form-item prop="capacity" border-bottom class="form-item-top-padding-0">
|
|
|
- <up-input v-model="form.capacity" placeholder="请输入入库量" border="none" clearable></up-input>
|
|
|
- </up-form-item>
|
|
|
- </div>
|
|
|
- <div class="pd-5"></div>
|
|
|
- <div class="min-w-200">
|
|
|
- <ut-action-sheet v-model="form.unit" :tabs="pt_seed_unit" mode="custom" title="选择单位">
|
|
|
- <up-form-item prop="unit" border-bottom class="form-item-top-padding-0">
|
|
|
- <view class="flex1" style="line-height: 24px">
|
|
|
- <view v-if="form.unit" class="f-s-30 c-333 f-w-5 text-center">{{ selectDictLabel(pt_seed_unit, form.unit) }}</view>
|
|
|
- <view v-else class="f-s-30 c-ccc f-w-4 text-center">单位</view>
|
|
|
- </view>
|
|
|
- <template #right>
|
|
|
- <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
- </template>
|
|
|
- </up-form-item>
|
|
|
- </ut-action-sheet>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <view class="f-s-30 c-333 f-w-5 flex1">{{ form?.capacity }}{{ form?.unit }}</view>
|
|
|
</up-form-item>
|
|
|
<!-- 检验报告与供应商信息 -->
|
|
|
<up-form-item borderBottom label="检验报告" prop="examinReport">
|
|
|
@@ -365,10 +345,7 @@
|
|
|
</ut-datetime-picker>
|
|
|
<!-- 入库批号 -->
|
|
|
<up-form-item borderBottom label="入库批号" required prop="batchCode">
|
|
|
- <up-input v-model="form.batchCode" placeholder="请输入入库批号" border="none" clearable></up-input>
|
|
|
- <template #right>
|
|
|
- <up-button @click="generateBatchCode" type="primary" :customStyle="formItemBtnStyle">随机生成</up-button>
|
|
|
- </template>
|
|
|
+ <view class="f-s-30 c-333 f-w-5 flex1">{{ form.batchCode }}</view>
|
|
|
</up-form-item>
|
|
|
<!-- 库房类型 -->
|
|
|
<up-form-item borderBottom label="库房类型" prop="storeType" required>
|
|
|
@@ -499,8 +476,8 @@ const submitForm = async () => {
|
|
|
try {
|
|
|
// 这里使用单条入库接口,后端若仍要求 batch,可根据需要包装成数组
|
|
|
const res = await useClientRequest.post('/plt-api/app/storageSeed/edit', form.value);
|
|
|
+ if (!res || res.code !== 200) return;
|
|
|
uni.hideLoading();
|
|
|
- if (!res || res !== 200) return;
|
|
|
uni.showToast({
|
|
|
title: '提交成功',
|
|
|
icon: 'success',
|