-
+
{{ item.title }}
@@ -27,8 +99,9 @@
- 延长仓储
- 保鲜储存
+ 高品质
+ 杀菌灭毒
+ 绿色
@@ -39,9 +112,9 @@
报价
- ¥{{ item.price }}/间/月
+ ¥{{ item.price }}/kg
-
+
联系卖家
@@ -54,7 +127,7 @@
-
+
@@ -69,6 +142,9 @@ import Common from './components/common.vue';
const route = useRoute();
const router = useRouter();
+const tab1 = reactive(['叶菜类', '豆菜类', '根茎类', '茄果菜类', '食用菌类', '其他类蔬菜']);
+const tab2 = reactive(['甘蔗', '热带水果', '其他类水果']);
+const tab3 = reactive(['水产', '其他类']);
const state = reactive({
menus: warehouseLogisticsRoutes[0].children,
query: {
@@ -76,78 +152,226 @@ const state = reactive({
},
data: [
{
- imageUrl: '/storage1.jpg',
- title: '果蔬保鲜仓储',
- description: '绿鲜蔬选果蔬仓储中心 ',
+ title: '蔬菜分拣服务',
+ description: '绿鲜甄选蔬菜分拣中心 ',
location: '临沧市-耿马县',
- price: '600.0',
+ price: '150',
rank: '1',
+ imageUrl: 'images/vegetable.png',
},
{
- imageUrl: '/storage2.jpg',
- title: '果蔬保鲜仓储',
- description: '绿鲜蔬选果蔬仓储中心',
+ title: '水果分拣服务',
+ description: '果韵鲜享分拣站',
location: '临沧市-耿马县',
- price: '600.0',
+ price: '150',
rank: '2',
+ imageUrl: 'images/fruit.png',
},
{
- imageUrl: '/storage3.jpg',
- title: '果蔬保鲜仓储',
- description: '绿鲜蔬选果蔬仓储中心 ',
+ title: '水果分拣服务',
+ description: '好果分拣站 ',
location: '临沧市-耿马县',
- price: '600.0',
+ price: '150',
rank: '3',
+ imageUrl: 'images/fruit.png',
},
{
- imageUrl: '/storage3.jpg',
- title: '果蔬保鲜仓储',
- description: '绿鲜蔬选果蔬仓储中心 ',
+ title: '水果分拣服务',
+ description: '果美分拣站 ',
location: '临沧市-耿马县',
- price: '600.0',
+ price: '150',
rank: '',
+ imageUrl: 'images/fruit.png',
},
{
- imageUrl: '/storage3.jpg',
- title: '果蔬保鲜仓储',
- description: '绿鲜蔬选果蔬仓储中心 ',
+ title: '水果分拣服务',
+ description: '好果存分拣站 ',
location: '临沧市-耿马县',
- price: '600.0',
- rank: '',
- },
- {
- imageUrl: '/storage3.jpg',
- title: '果蔬保鲜仓储',
- description: '绿鲜蔬选果蔬仓储中心 ',
- location: '临沧市-耿马县',
- price: '600.0',
+ price: '150',
rank: '',
+ imageUrl: 'images/fruit.png',
},
],
});
-const currentTab = ref(0);
+const currentTab1 = ref(0);
+const currentTab2 = ref(0);
+const currentTab3 = ref(0);
+const dialogVisible = ref(false);
+const formRef = ref(null);
+
+const form = reactive({
+ quantity: '',
+ title: '',
+ phone: '',
+ name: '',
+});
+
+const diotext = ref('');
+const diodescription = ref('');
+
+const goDei = (data) => {
+ diodescription.value = data.description;
+ diotext.value = data.title;
+ dialogVisible.value = true;
+};
+
+const handleSubmit = () => {
+ formRef.value.validate((valid) => {
+ if (valid) {
+ console.log('提交数据:', form);
+ dialogVisible.value = false;
+ }
+ });
+};
const currentChange = (current) => {
state.query.current = current;
};
const toLink = (row) => {
- router.push({
- path: '/sub-operation-service/warehouse-detail',
- query: { id: row?.id ?? '100' },
- });
+ // router.push({
+ // path: '/sub-operation-service/warehouse-detail',
+ // query: { id: row?.id ?? '100' },
+ // });
};
diff --git a/sub-operation-service/src/views/userCenter/myFinance.vue b/sub-operation-service/src/views/userCenter/myFinance.vue
index 8e41880..d2bc72f 100644
--- a/sub-operation-service/src/views/userCenter/myFinance.vue
+++ b/sub-operation-service/src/views/userCenter/myFinance.vue
@@ -1,6 +1,6 @@
-
+
@@ -23,11 +23,13 @@
-
-
+
+
-
-
+
+
+
+
@@ -59,10 +61,11 @@
@selection-change="handleSelectionChange"
>
-
-
- {{ slotProps.row.status === 1 ? '已通过' : '已申请' }}
-
+
+ 未申请
+ 已申请
+ 已通过
+ 未通过
@@ -98,7 +101,7 @@ const formInline = reactive({
productName: '',
applicant: '',
guarantor: '',
- status: '99',
+ applyStatus: '99',
startDate: '',
endDate: '',
});
@@ -111,6 +114,11 @@ let bottomList = reactive([
]);
const tabChange = () => {
console.log(activeCurrent.value);
+ if (activeCurrent.value == '3') {
+ columns.value = columns2.value;
+ } else {
+ columns.value = columns1.value;
+ }
};
const searchForm = ref(null);
@@ -124,12 +132,19 @@ const resetForm = () => {
// 表格数据
const tableData = ref([]);
// 列配置
-const columns = ref([
- { prop: 'id', label: 'ID', width: '80' },
+const columns = ref([]);
+const columns1 = ref([
+ { prop: 'productName', label: '产品名称' },
+ { prop: 'applicant', label: '申请人' },
+ { prop: 'applyStatus', label: '申请状态', slotName: 'applyStatus' },
+ { prop: 'applyTime', label: '申请日期', width: '180px' },
+ { prop: 'action', label: '操作', slotName: 'action', width: '180' },
+]);
+const columns2 = ref([
{ prop: 'productName', label: '产品名称' },
{ prop: 'guarantor', label: '担保人' },
{ prop: 'applicant', label: '申请人' },
- { prop: 'status', label: '申请状态', slotName: 'status' },
+ { prop: 'applyStatus', label: '申请状态', slotName: 'applyStatus' },
{ prop: 'applyTime', label: '申请日期', width: '180px' },
{ prop: 'action', label: '操作', slotName: 'action', width: '180' },
]);
@@ -141,8 +156,8 @@ const generateMockData = () => {
'id|+1': 1,
productName: '惠农e贷', //产品名称 水果 蔬菜
applyTime: '@datetime',
- 'status|1': [1, 1, 1, 0], //0待检测 1已检测
- guarantor: '@cname',
+ 'applyStatus|1': [0, 1, 2, 3], //0未申请 1已申请 2已通过 3未通过
+ guarantor: '惠农有限公司',
applicant: '@cname',
},
],
@@ -199,6 +214,7 @@ const calculateTableHeight = () => {
};
// 组件挂载时加载数据
onMounted(() => {
+ columns.value = columns1.value;
loadData();
calculateTableHeight();
@@ -389,5 +405,18 @@ onBeforeUnmount(() => {
cursor: pointer;
transition: all 0.3s;
}
+ // 表格中文本的颜色
+ .color-gray {
+ color: $color-5a;
+ }
+ .color-orange {
+ color: $color-warning;
+ }
+ .color-green {
+ color: $color-success;
+ }
+ .color-red {
+ color: $color-danger;
+ }
}
diff --git a/sub-operation-service/src/views/userCenter/mySource.vue b/sub-operation-service/src/views/userCenter/mySource.vue
index a6c5a50..81e57fa 100644
--- a/sub-operation-service/src/views/userCenter/mySource.vue
+++ b/sub-operation-service/src/views/userCenter/mySource.vue
@@ -1,6 +1,6 @@
-
+
@@ -50,9 +50,8 @@
>
-
- {{ slotProps.row.status === 1 ? '已检测' : '待检测' }}
-
+ 待检测
+ 已检测
@@ -154,7 +153,6 @@ const resetForm = () => {
const tableData = ref([]);
// 列配置
const columns = ref([
- { prop: 'id', label: 'ID', width: '80' },
{ prop: 'productName', label: '产品名称', width: '180px' },
{ prop: 'applyTime', label: '申请时间', width: '180px' },
{ prop: 'status', label: '申请状态', slotName: 'status' },
@@ -205,7 +203,6 @@ const handleSelectionChange = (selection) => {
let nowClickRow = ref(null);
const dialogVisible = ref(false);
let codeUrl = ref('');
-codeUrl.value = getAssetsFile('images/userCenter/检测报告.png').href ?? '';
// 编辑操作
const handleEdit = (row, num) => {
nowClickRow.value = row;
@@ -223,7 +220,7 @@ const seeReportImg = (row) => {
if (row.reportUrl) {
// 支持相对路径处理
// const imgUrl = row.reportUrl.startsWith('http') ? row.reportUrl : `${import.meta.env.VITE_API_BASE}${row.reportUrl}`;
- const imgUrl = codeUrl.value;
+ const imgUrl = getAssetsFile('images/userCenter/检测报告.png').href ?? '';
previewImageUrl.value = imgUrl;
showPreview.value = true;
@@ -484,5 +481,15 @@ onBeforeUnmount(() => {
cursor: pointer;
transition: all 0.3s;
}
+ // 表格中文本的颜色
+ .color-gray {
+ color: $color-5a;
+ }
+ .color-green {
+ color: $color-success;
+ }
+ .color-red {
+ color: $color-danger;
+ }
}