Browse Source

财务主页搭建

pre-production
马远东 11 months ago
parent
commit
8ab7d78715
  1. 43
      src/router/views/index.js
  2. 65
      src/views/financialsector/FinanceHome.vue
  3. 8
      src/views/financialsector/Financialse/FinancialWarehousing.vue

43
src/router/views/index.js

@ -1522,6 +1522,49 @@ export default [
], ],
}, },
// {
// // 这是父路由,财务主页面
// path: '/financialsector/FinanceHome',
// component: Layout,
// redirect: '/financialsector/FinanceHome',
// children: [
// {
// // 这是父页面的默认视图
// meta: {
// i18n: 'dict',
// keepAlive: false,
// },
// path: '/financialsector/FinanceHome',
// name: '财务',
// component: () => import('@/views/financialsector/FinanceHome.vue'),
// },
// {
// // 子页面
// meta: {
// i18n: 'dict',
// keepAlive: false,
// },
// path: '/financialsector/Financialse/FinancialWarehousing',
// name: '新增模板',
// component: () => import('@/views/financialsector/Financialse/FinancialWarehousing.vue'),
// },
// ],
// },
// { // {
// path: '/aftersales/aftersalesWorkOrderSS', // path: '/aftersales/aftersalesWorkOrderSS',
// component: Layout, // component: Layout,

65
src/views/financialsector/FinanceHome.vue

@ -31,42 +31,78 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<!-- 模板内容 -->
<div class="content">
<el-tabs type="border-card">
<template v-for="item in ServiceList" :key="item.label">
<el-tab-pane v-if="item.state" :label="item.label" >
<span v-if="item.label == '提货'">提货</span>
<span v-if="item.label == '干线'">干线</span>
<span v-if="item.label == '仓储'"><FinancialWarehousing :templateData="templateInfo"/></span>
<span v-if="item.label == '配送'">配送</span>
<span v-if="item.label == '安装'">安装</span>
</el-tab-pane>
</template>
</el-tabs>
</div>
</div> </div>
</template> </template>
<script setup> <script setup>
import { ref } from 'vue';
import { ref, defineAsyncComponent } from 'vue';
const FinancialWarehousing = defineAsyncComponent(() =>
import('@/views/financialsector/Financialse/FinancialWarehousing.vue')
);
const form = ref({}); const form = ref({});
const tabNum=ref('干线')
const templateInfo=ref({
name:'参数'
})
const ServiceList = ref([ const ServiceList = ref([
{ {
label: '提货', label: '提货',
value: '1', value: '1',
state: false,
check: false,
}, },
{ {
label: '干线', label: '干线',
value: '2', value: '2',
state: false,
check: false,
}, },
{ {
label: '仓储', label: '仓储',
value: '3', value: '3',
state: false,
check: false,
}, },
{ {
label: '配送', label: '配送',
value: '4', value: '4',
state: false,
check: false,
}, },
{ {
label: '安装', label: '安装',
value: '5', value: '5',
state: false,
check: false,
}, },
]); ]);
//
const isChecked = val => { const isChecked = val => {
console.log(val); console.log(val,'点击的');
val.state=!val.state
};
//
const removeTag = value => {
ServiceList.value.find(res => res.value == value).check = false;
ServiceList.value.find(res => res.value == value).state = false;
}; };
const removeTag=(value) =>{
console.log(value,'value');
ServiceList.value.find(res=>res.value==value).check=false
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@ -75,15 +111,25 @@ ServiceList.value.find(res=>res.value==value).check=false
height: 100%; height: 100%;
} }
.header { .header {
border-bottom: 1px solid #ccc;
padding: 10px;
box-shadow: -1px -1px 3px;
.el_Template { .el_Template {
display: flex;
align-items: center;
.name { .name {
font-size: 16px; font-size: 16px;
margin-right: 10px;
} }
} }
display: flex; display: flex;
.el_Service { .el_Service {
margin-left: 30px; margin-left: 30px;
display: flex;
align-items: center;
.name {
margin-right: 10px;
}
.el-checkbox { .el-checkbox {
width: 100% !important; width: 100% !important;
padding: 0 30px; padding: 0 30px;
@ -113,4 +159,7 @@ ServiceList.value.find(res=>res.value==value).check=false
content: ''; content: '';
display: none; display: none;
} }
.content {
margin-top: 6px;
}
</style> </style>

8
src/views/financialsector/Financialse/FinancialWarehousing.vue

@ -237,9 +237,17 @@
</template> </template>
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { defineProps } from 'vue';
//
const props = defineProps({
templateData: Object
});
console.log(props,'来自父页面参数');
const Storageloading = ref(false); // const Storageloading = ref(false); //
const goriesloading = ref(false); // const goriesloading = ref(false); //
console.log('仓储子页面');
const form = ref({ const form = ref({
CalculationBasis: '1', // CalculationBasis: '1', //
Distinguishcategories: '1', // Distinguishcategories: '1', //

Loading…
Cancel
Save