|
|
@@ -132,7 +132,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="pd3-20-40-0">
|
|
|
- <up-button type="primary" :customStyle="{ background: '#ebf6ee', borderColor: '#3FAD5B' }" style="color: #3fad5b">去库房查看详细信息{{ '>' }}</up-button>
|
|
|
+ <up-button @click="gotostorage" type="primary" :customStyle="{ background: '#ebf6ee', borderColor: '#3FAD5B' }" style="color: #3fad5b">去库房查看详细信息{{ '>' }}</up-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -157,6 +157,7 @@ const storageInfo = ref<any>({
|
|
|
unit: '',
|
|
|
usedQuantity: '',
|
|
|
remainingQuantity: '',
|
|
|
+ id: '',
|
|
|
});
|
|
|
|
|
|
const landIdsTitle = ref('地块');
|
|
|
@@ -239,7 +240,25 @@ const goStorageDetail = () => {
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+const gotostorage = () => {
|
|
|
+ if (form.value.outputType == '1') {
|
|
|
+ uni.$u.route({
|
|
|
+ type: 'navigateTo',
|
|
|
+ url: '/plant/storage/seed-source/detail/index',
|
|
|
+ params: {
|
|
|
+ id: storageInfo.value.id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else if (form.value.outputType == '2') {
|
|
|
+ uni.$u.route({
|
|
|
+ type: 'navigateTo',
|
|
|
+ url: '/plant/storage/fresh-goods/detail/index',
|
|
|
+ params: {
|
|
|
+ id: storageInfo.value.id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
+};
|
|
|
onLoad((options: any) => {
|
|
|
recordId.value = options?.id || '';
|
|
|
if (recordId.value) {
|