Browse Source

Merge branch 'apply' of ssh://101.201.226.163:50022/DIGITAL_MANAGEMENT/finance into apply

apply
song 4 years ago
parent
commit
7a0113348d
  1. 8
      pages/Initiate-application.vue
  2. 64
      pages/applicant.vue
  3. 130
      pages/application-details.vue
  4. 2
      plugins/vant.js

8
pages/Initiate-application.vue

@ -209,8 +209,8 @@
v-model="applyDepartment"
is-link
readonly
label="申请类型"
placeholder="请选择申请类型"
label="所属部门"
placeholder="请选择所属部门"
@click="showDepartment = true"
required
input-align="right"
@ -231,7 +231,7 @@
<span class="title">历史申请</span>
<div v-if="showHistory">
<Search />
<Table />
<FinanceManage />
</div>
<div v-if="!showHistory" class="no-data">
暂无历史记录
@ -315,7 +315,7 @@ const applyData = ref([
}
]); //
const isSuccess = ref(false) //
const name = ref('黛西') //
const name = ref('') //
const applyMoney = ref(5000) //
const titleHidden = ref(true) //
const currentPage = ref(0) //

64
pages/applicant.vue

@ -13,7 +13,7 @@
<span class="title">历史申请</span>
<div v-if="isShow">
<Search />
<Table />
<FinanceManage />
</div>
<div v-if="!isShow" class="no-data">
暂无历史记录
@ -27,7 +27,27 @@
</NuxtLink>
</div>
</van-tab>
<van-tab title="我的奖金">我的奖金</van-tab>
<van-tab title="我的奖金">
<div class="mt-8 bg-white">
<div class="p-4 pb-0 text-gray-500 font-semibold">奖金领取记录</div>
<Search class="px-4 pt-0"/>
<FinanceManage class="px-4 mt-0"/>
</div>
<div class="my-4 bg-white">
<div class="text-gray-500 font-semibold m-4 py-3 border-b">待领取奖金</div>
<div class="text-ms text-gray-400 pl-4">可领取:</div>
<div class="w-full h-20 text-gray-400 font-semibold text-center leading-loose" v-if="!isBonus">
暂无可领取的奖金
</div>
<div class="w-full h-20 text-blue-500 font-semibold text-center leading-loose text-2xl" v-if="isBonus">
500
</div>
<div class="px-8">
<van-button type="primary" block :disabled="!isBonus" >立即领取</van-button>
</div>
</div>
</van-tab>
</van-tabs>
</div>
@ -39,45 +59,7 @@ import {ref} from 'vue'
const active = ref(0);
const isShow = ref(true);
const currentPage = ref(1)
const applyData = ref([
{
applicant:'代用名1',
money:100,
time:'2021/12/31 12:31',
type: 1
},
{
applicant:'代用名2',
money:100,
time:'2021/12/31 12:31',
type: 2
},
{
applicant:'代用名1',
money:100,
time:'2021/12/31 12:31',
type: 3
},
{
applicant:'代用名2',
money:100,
time:'2021/12/31 12:31',
type: 3
},
{
applicant:'代用名1',
money:100,
time:'2021/12/31 12:31',
type: 1
},
{
applicant:'代用名2',
money:100,
time:'2021/12/31 12:31',
type: 2
}
]);
const isBonus =ref(true)
function onClickLeft(){
console.log('返回上一页')

130
pages/application-details.vue

@ -7,17 +7,61 @@
@click-left="onClickLeft"
/>
<!-- 审核结果 -->
<div class="bg-white">
<div class="text-gray-500 font-semibold p-3">审核结果</div>
<div class="bg-white px-3">
<div class="text-gray-500 font-semibold px-1 py-3">审核结果</div>
<div v-for="item in checkerList" class="flex p-3 text-gray-400 text-base justify-between">
<div>
<div>{{item.name}}</div>
<div class="text-sm pt-1">{{item.advice}}</div>
<div class="text-sm pt-1">{{item.checkedTime}}</div>
</div>
<div class="text-center">
<div :class="item.status === '1' ? 'text-green-500' : item.status === '2' ? 'text-red-500' : ''">
{{item.status === '1' ? '已通过' : item.status === '2' ? '已驳回' : '待审批'}}
</div>
<div v-if="item.score>0" class="mt-1">
<van-circle
v-model:current-rate="item.score"
:rate="item.score"
:speed="100"
:text="item.score"
class="w-12"
color="#ff6700"
:stroke-width="100"
/>
</div>
</div>
</div>
</div>
<!-- 发票信息 -->
<div class="bg-white px-3">
<div class="text-gray-500 font-semibold px-1 py-3 mt-5">发票信息</div>
<div v-for="item in billList" class="flex p-2 text-gray-400 text-base justify-between">
<div>{{item.name}}</div>
<div>{{item.value}}</div>
</div>
</div>
<!-- 其他信息 -->
<div class="bg-white px-3">
<div class="text-gray-500 font-semibold px-1 py-3 mt-5">其他信息</div>
<div v-for="item in otherData" class="flex p-2 text-gray-400 text-base justify-between">
<div>{{item.name}}</div>
<div>{{item.value}}</div>
</div>
</div>
<!-- 提交人信息 -->
<div class="bg-white px-3">
<div class="text-gray-500 font-semibold px-1 py-3 mt-5">提交人信息</div>
<div v-for="item in submitter" class="flex p-2 text-gray-400 text-base justify-between">
<div>{{item.name}}</div>
<div>{{item.value}}</div>
</div>
</div>
</div>
</template>
<script setup>
//
//
const checkerList = ref([
{
name: "冯教授",
@ -30,15 +74,91 @@ const checkerList = ref([
advice: "很棒!",
checkedTime: "12/18 14:55",
status: "1",
score:100
},
{
name: "薇薇安",
name: "小明",
advice: "很棒!",
checkedTime: "12/18 14:55",
status: "1",
score:80
}
])
//
const billList = ref([
{
name: "发票代码",
value: "4154153125646",
},
{
name: "发票号码",
value: "545648789",
},
{
name: "合计金额(元)",
value: "40",
},
{
name: "税额(元)",
value: "2",
},
{
name: "开票日期",
value: "2022年1月2日",
},
{
name: "备注",
value: "业务支出",
},
])
//
const otherData = ref([
{
name: "申请类型",
value: "项目申请"
},
{
name: "所属项目",
value: "PT项目"
},
{
name: "所属任务",
value: "财务条界面设计"
},
{
name: "类目",
value: "报销"
},
{
name: "名目",
value: "业务招待费"
},
])
//
const submitter = ref([
{
name:'姓名',
value:'黛西'
},
{
name:'部门',
value:'软件部'
},
{
name:'提交时间',
value:'2021/12/29 13:22'
},
])
function onClickLeft(){
console.log("上一页")
}
</script>
<style lang="less" scoped>
.van-circle{
width: 2.5rem !important;
height: 2.5rem !important;
}
</style>

2
plugins/vant.js

@ -19,6 +19,7 @@ import {
Form,
Popup,
Cascader,
Circle,
} from 'vant';
import { defineNuxtPlugin } from '#app';
@ -41,5 +42,6 @@ export default defineNuxtPlugin(nuxtApp => {
.use(Form)
.use(Cascader)
.use(Popup)
.use(Circle)
.use(Tabs);
});

Loading…
Cancel
Save