|
@@ -23,19 +23,15 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="mb-10">
|
|
<view class="mb-10">
|
|
|
<span class="f-s-34 c-#333 f-w-500 mr-10">{{ form?.variety }}</span>
|
|
<span class="f-s-34 c-#333 f-w-500 mr-10">{{ form?.variety }}</span>
|
|
|
- <span class="f-s-24 c-#666">{{ selectDictLabel(pt_seed_type, form?.seedType) }}</span>
|
|
|
|
|
|
|
+ <span v-if="form?.partName" class="f-s-24 c-#666">{{ form?.partName }}</span>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pd2-4-0 f-s-28">
|
|
<view class="pd2-4-0 f-s-28">
|
|
|
<span class="c-#666">入库批号:</span>
|
|
<span class="c-#666">入库批号:</span>
|
|
|
<span class="c-#333 f-w-500">{{ form?.batchCode }}</span>
|
|
<span class="c-#333 f-w-500">{{ form?.batchCode }}</span>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="['A3', 'A4'].includes(form?.fungusCodeType)" class="pd2-4-0 f-s-28">
|
|
|
|
|
- <span class="c-#666">菌种/菌株编号:</span>
|
|
|
|
|
- <span class="c-#333 f-w-500">{{ selectDictLabel(pt_fungus_code_type, form?.fungusCodeType) }}/{{ form?.fungusCode }}</span>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="pd2-4-0 f-s-28">
|
|
|
|
|
|
|
+ <view v-if="form?.supplierId" class="pd2-4-0 f-s-28">
|
|
|
<span class="c-#666">供应商:</span>
|
|
<span class="c-#666">供应商:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ form?.supplier }}</span>
|
|
|
|
|
|
|
+ <span class="c-#333 f-w-500">{{ form?.supplierInfo?.cusName || '-' }}</span>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="form?.warehouses?.length" class="pd2-4-0 f-s-28">
|
|
<view v-if="form?.warehouses?.length" class="pd2-4-0 f-s-28">
|
|
|
<span class="c-#666">存放库房:</span>
|
|
<span class="c-#666">存放库房:</span>
|
|
@@ -46,7 +42,7 @@
|
|
|
<span class="c-#333 f-w-500">{{ form?.capacity }}{{ form?.unit }}</span>
|
|
<span class="c-#333 f-w-500">{{ form?.capacity }}{{ form?.unit }}</span>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="d-flex">
|
|
<view class="d-flex">
|
|
|
- <view v-if="form?.restAmount" class="pd2-4-0 f-s-28 flex1">
|
|
|
|
|
|
|
+ <view v-if="form?.inputAmount" class="pd2-4-0 f-s-28 flex1">
|
|
|
<span class="c-#666">出库量:</span>
|
|
<span class="c-#666">出库量:</span>
|
|
|
<span class="c-#333 f-w-500">{{ form?.inputAmount || '0' }}{{ form?.unit }}</span>
|
|
<span class="c-#333 f-w-500">{{ form?.inputAmount || '0' }}{{ form?.unit }}</span>
|
|
|
</view>
|
|
</view>
|
|
@@ -190,26 +186,7 @@ import { useClientRequest } from '@/utils/request';
|
|
|
import { selectDictListClass } from '@/utils/ruoyi';
|
|
import { selectDictListClass } from '@/utils/ruoyi';
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
|
|
|
-const { pt_seed_instore_type, pt_warehouse_type, pt_seed_type, pt_seed_source, pt_materail_unit, pt_mother_father_flag, pt_op_method, pt_seed_unit, pt_fungus_code_type, pt_breeding_materials, yes_no, pt_cus_type, pt_cpy_type, pt_gen_unit, pt_medicine_source, pt_medicine_unit } = toRefs<any>(
|
|
|
|
|
- proxy?.useDict(
|
|
|
|
|
- 'pt_seed_instore_type',
|
|
|
|
|
- 'pt_warehouse_type',
|
|
|
|
|
- 'pt_seed_type',
|
|
|
|
|
- 'pt_seed_source',
|
|
|
|
|
- 'pt_materail_unit',
|
|
|
|
|
- 'pt_mother_father_flag',
|
|
|
|
|
- 'pt_op_method',
|
|
|
|
|
- 'pt_seed_unit',
|
|
|
|
|
- 'pt_fungus_code_type',
|
|
|
|
|
- 'pt_breeding_materials',
|
|
|
|
|
- 'yes_no',
|
|
|
|
|
- 'pt_cus_type',
|
|
|
|
|
- 'pt_cpy_type',
|
|
|
|
|
- 'pt_gen_unit',
|
|
|
|
|
- 'pt_medicine_source',
|
|
|
|
|
- 'pt_medicine_unit',
|
|
|
|
|
- ),
|
|
|
|
|
-);
|
|
|
|
|
|
|
+const { pt_seed_instore_type, pt_warehouse_type, pt_seed_type, pt_seed_source, pt_materail_unit, pt_mother_father_flag, pt_op_method, pt_seed_unit, pt_fungus_code_type, pt_breeding_materials, yes_no, pt_cus_type, pt_cpy_type, pt_gen_unit, pt_medicine_source, pt_medicine_unit } = toRefs<any>(proxy?.useDict('pt_seed_instore_type', 'pt_warehouse_type', 'pt_seed_type', 'pt_seed_source', 'pt_materail_unit', 'pt_mother_father_flag', 'pt_op_method', 'pt_seed_unit', 'pt_fungus_code_type', 'pt_breeding_materials', 'yes_no', 'pt_cus_type', 'pt_cpy_type', 'pt_gen_unit', 'pt_medicine_source', 'pt_medicine_unit'));
|
|
|
const paging = ref<any>(null);
|
|
const paging = ref<any>(null);
|
|
|
const form = ref<any>({});
|
|
const form = ref<any>({});
|
|
|
const did = ref('');
|
|
const did = ref('');
|
|
@@ -223,7 +200,7 @@ const genCountMap = reactive({
|
|
|
// 获取详情(仓库信息)
|
|
// 获取详情(仓库信息)
|
|
|
const getDetailById = async (id: string) => {
|
|
const getDetailById = async (id: string) => {
|
|
|
if (!id) return;
|
|
if (!id) return;
|
|
|
- const res = await useClientRequest.get(`/plt-api/app/storageSeed/getById/${id}`);
|
|
|
|
|
|
|
+ const res = await useClientRequest.get(`/plt-api/app/storage/getInfo/${id}`);
|
|
|
if (res && res.code === 200) {
|
|
if (res && res.code === 200) {
|
|
|
form.value = res.data || {};
|
|
form.value = res.data || {};
|
|
|
}
|
|
}
|
|
@@ -234,7 +211,7 @@ const navigateToInOutRecords = () => {
|
|
|
url: '/plant/storage/stock-list/index',
|
|
url: '/plant/storage/stock-list/index',
|
|
|
params: {
|
|
params: {
|
|
|
id: did.value,
|
|
id: did.value,
|
|
|
- stockType: '2',
|
|
|
|
|
|
|
+ stockType: '4',
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
@@ -248,7 +225,7 @@ const navigateToInventoryLoss = () => {
|
|
|
url: '/plant/storage/loss-register/index',
|
|
url: '/plant/storage/loss-register/index',
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
res.eventChannel.emit('storage-data', {
|
|
res.eventChannel.emit('storage-data', {
|
|
|
- stockType: '2',
|
|
|
|
|
|
|
+ stockType: '4',
|
|
|
...form.value,
|
|
...form.value,
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|