|
@@ -1,32 +1,26 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <z-paging ref="paging" v-model="list" paging-class="paging-btm-shadow" bgColor="#f7f7f7" safe-area-inset-bottom
|
|
|
|
|
- @query="query">
|
|
|
|
|
|
|
+ <z-paging ref="paging" v-model="list" paging-class="paging-btm-shadow" bgColor="#f7f7f7" safe-area-inset-bottom @query="query">
|
|
|
<template #top>
|
|
<template #top>
|
|
|
<ut-navbar leftText="请选择任务所使用的种子信息" :fixed="false"></ut-navbar>
|
|
<ut-navbar leftText="请选择任务所使用的种子信息" :fixed="false"></ut-navbar>
|
|
|
</template>
|
|
</template>
|
|
|
<view class="d-flex a-c pd-24 pb-0 bg-#f7f7f7">
|
|
<view class="d-flex a-c pd-24 pb-0 bg-#f7f7f7">
|
|
|
<view class="min-w-170 flex1">
|
|
<view class="min-w-170 flex1">
|
|
|
- <ut-action-sheet v-model="form.instoreType"
|
|
|
|
|
- :tabs="[{ label: '全部', value: '' }, ...pt_fresh_instore_type]" @change="changeSeach" title="选择原料类型">
|
|
|
|
|
|
|
+ <ut-action-sheet v-model="form.instoreType" :tabs="[{ label: '全部', value: '' }, ...pt_fresh_instore_type]" @change="changeSeach" title="选择原料类型">
|
|
|
<view class="d-flex search-select-item a-c">
|
|
<view class="d-flex search-select-item a-c">
|
|
|
- <view class="flex1 ov-hd f-s-28 c-333 text-center f-w-5 w-s-no">{{
|
|
|
|
|
- selectDictLabel(pt_fresh_instore_type, form.instoreType) || '全部' }}</view>
|
|
|
|
|
|
|
+ <view class="flex1 ov-hd f-s-28 c-333 text-center f-w-5 w-s-no">{{ selectDictLabel(pt_fresh_instore_type, form.instoreType) || '全部' }}</view>
|
|
|
<up-icon size="24rpx" color="#333" name="arrow-down-fill" class="mr-5"></up-icon>
|
|
<up-icon size="24rpx" color="#333" name="arrow-down-fill" class="mr-5"></up-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</ut-action-sheet>
|
|
</ut-action-sheet>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="h-86 pl-20 w-100%">
|
|
<view class="h-86 pl-20 w-100%">
|
|
|
- <ut-search ref="searchRef" v-model="form.keyword" @search="changeSeach" @change="changeSeach" margin="0"
|
|
|
|
|
- :border="false" placeholder="搜批次号、品种名、基地名" bgColor="#fff" height="86rpx"
|
|
|
|
|
- borderRadius="10rpx"></ut-search>
|
|
|
|
|
|
|
+ <ut-search ref="searchRef" v-model="form.keyword" @search="changeSeach" @change="changeSeach" margin="0" :border="false" placeholder="搜批次号、品种名、基地名" bgColor="#fff" height="86rpx" borderRadius="10rpx"></ut-search>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<template v-for="(item, index) in list" :key="index">
|
|
<template v-for="(item, index) in list" :key="index">
|
|
|
<info-card :item="item" :selected="selectedItems?.id === item.id" @click="toggleSelection(item)" />
|
|
<info-card :item="item" :selected="selectedItems?.id === item.id" @click="toggleSelection(item)" />
|
|
|
</template>
|
|
</template>
|
|
|
<template #bottom>
|
|
<template #bottom>
|
|
|
- <view v-if="selectedItems" class="bg-#EBF6EE c-primary f-s-24 pd-10 pl-24"> 已选择种源:{{ selectedItems.variety
|
|
|
|
|
- }} </view>
|
|
|
|
|
|
|
+ <view v-if="selectedItems" class="bg-#EBF6EE c-primary f-s-24 pd-10 pl-24"> 已选择种源:{{ selectedItems.variety }} </view>
|
|
|
<view class="pd-20 d-flex">
|
|
<view class="pd-20 d-flex">
|
|
|
<up-button type="primary" @click="open">确认选择</up-button>
|
|
<up-button type="primary" @click="open">确认选择</up-button>
|
|
|
</view>
|
|
</view>
|
|
@@ -36,18 +30,16 @@
|
|
|
<view>
|
|
<view>
|
|
|
<view class="d-flex a-c pd-24">
|
|
<view class="d-flex a-c pd-24">
|
|
|
<view class="f-s-34 f-w-5 c-#333">关联种源信息</view>
|
|
<view class="f-s-34 f-w-5 c-#333">关联种源信息</view>
|
|
|
- <view class="bg-#37A954 radius-10 pd4-10-20-10-20 d-flex a-c" style="width: max-content">
|
|
|
|
|
|
|
+ <!-- <view class="bg-#37A954 radius-10 pd4-10-20-10-20 d-flex a-c" style="width: max-content">
|
|
|
<up-icon name="plus" color="#fff" size="24rpx"></up-icon>
|
|
<up-icon name="plus" color="#fff" size="24rpx"></up-icon>
|
|
|
- <view class="c-#fff f-s-22">添加种源关联信息</view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="c-#fff f-s-22" @click="close">添加种源关联信息</view>
|
|
|
|
|
+ </view> -->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pd-24">
|
|
<view class="pd-24">
|
|
|
- <up-form class="p-rtv" labelPosition="top" :model="formDate" :rules="rules" labelWidth="auto"
|
|
|
|
|
- ref="upFormRef">
|
|
|
|
|
|
|
+ <up-form class="p-rtv" labelPosition="top" :model="formDate" :rules="rules" labelWidth="auto" ref="upFormRef">
|
|
|
<up-form-item :borderBottom="false" prop="inputs" id="inputspppp">
|
|
<up-form-item :borderBottom="false" prop="inputs" id="inputspppp">
|
|
|
<view class="d-flex flex-cln" style="width: 100%">
|
|
<view class="d-flex flex-cln" style="width: 100%">
|
|
|
- <souceinfo v-if="selectedItems" :data="selectedItems" :index="0"
|
|
|
|
|
- v-model:inputs="formDate.inputs[0]" @close="handleSourceClose" />
|
|
|
|
|
|
|
+ <souceinfo v-if="selectedItems" :data="selectedItems" :index="0" v-model:inputs="formDate.inputs[0]" @close="handleSourceClose" />
|
|
|
</view>
|
|
</view>
|
|
|
</up-form-item>
|
|
</up-form-item>
|
|
|
</up-form>
|
|
</up-form>
|
|
@@ -78,7 +70,7 @@ const form = ref({
|
|
|
part: '',
|
|
part: '',
|
|
|
notIncludePart: '',
|
|
notIncludePart: '',
|
|
|
varietyId: '',
|
|
varietyId: '',
|
|
|
- medicineCode: ''
|
|
|
|
|
|
|
+ medicineCode: '',
|
|
|
});
|
|
});
|
|
|
//表单
|
|
//表单
|
|
|
const formDate = ref({
|
|
const formDate = ref({
|