Commit 3a2418ef authored by Facius's avatar Facius

feat: 填写记账

parent 69194fe9
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<script> <script>
const sys = uni.getSystemInfoSync() const sys = uni.getSystemInfoSync()
const edgeWidth = 58
export default { export default {
props: { props: {
// 是否启用自动停靠 // 是否启用自动停靠
...@@ -49,8 +50,8 @@ export default { ...@@ -49,8 +50,8 @@ export default {
data() { data() {
return { return {
clicked: 1, clicked: 1,
top: sys.windowHeight - 58, top: sys.windowHeight - edgeWidth,
left: sys.windowWidth - 58, left: sys.windowWidth - edgeWidth,
width: 0, width: 0,
height: 0, height: 0,
offsetWidth: 0, offsetWidth: 0,
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
// #ifdef H5 // #ifdef H5
clientY += this.height clientY += this.height
// #endif // #endif
let edgeBottom = this.windowHeight - 58 let edgeBottom = this.windowHeight - edgeWidth
// 上下触及边界 // 上下触及边界
if (clientY < this.edge) { if (clientY < this.edge) {
......
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
}, },
text: { text: {
type: String, type: String,
default: '导出账单', default: '',
}, },
image: { image: {
type: String, type: String,
......
...@@ -147,13 +147,22 @@ ...@@ -147,13 +147,22 @@
} }
},{ },{
"path": "detail", "path": "detail",
"name": "maintain-bill", "name": "maintain-bill-detail",
"style": { "style": {
"navigationBarTitleText": "详情", "navigationBarTitleText": "详情",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true "disableScroll": true
} }
},{
"path": "create",
"name": "maintain-bill-create",
"style": {
"navigationBarTitleText": "填写",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
}] }]
}], }],
"globalStyle": { "globalStyle": {
......
<template>
<view class="maintain-create">
<NavbarRight
title="维修记账"
/>
<view class="content-view">
</view>
</view>
</template>
<script>
import NavbarRight from '@/components/navbar-right'
export default {
components: {
NavbarRight,
},
data() {
return {
loading: false,
info: {}
}
},
computed: {
baseUrl() {
return process.uniEnv.qn_base_url
},
params() {
return {}
}
},
onLoad(options) {
if (options && options.billId) {
this.billId = options.billId
this.loading = true
this.init()
}
},
onUnload() {
},
onShow() {},
methods: {
init() {
this.loading = false
this.info = {
id: '766766777878',
name: '张三',
phone: '18589096795',
location:
'发大事发声范德萨范飞大帅府撒风萨顶顶发大水德萨范德萨范德萨范德萨范大师范德萨范德萨发大水',
time: '2099-33-09 33:90',
statusA: '未确认',
statusB: '未结清',
a: '22',
b: '33',
c: '44',
remark: `发大水发烧发大水范德萨
范德萨范大师发大水范德萨发送范德萨范德萨范德萨
范德萨范德萨`,
images: [
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
'http://reu2asz23.hn-bkt.clouddn.com/icon/beijing%403x.png',
],
records: [
{
name: '待发货',
time: '2022-30-33 90:09',
},
{
name: '待签收',
time: '2022-30-33 90:09',
},
{
name: '待确认',
time: '2022-30-33 90:09',
},
],
}
},
},
}
</script>
<style scoped lang="scss">
.maintain-bill {
display: flex;
flex-direction: column;
height: 100vh;
background-color: #f6f7fa;
.content-view {
height: 100%;
overflow: auto;
padding: 0 24rpx 44rpx 24rpx;
}
}
</style>
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<NoData v-else-if="!loading" customStyle="margin-top:100rpx" :image="currentNoData.image" :text="currentNoData.text"/> <NoData v-else-if="!loading" customStyle="margin-top:100rpx" :image="currentNoData.image" :text="currentNoData.text"/>
</view> </view>
<PopNormal title="操作提醒" :visible.sync="visible" @confirm="handleClickConfirm" cancelText="取消" confirmText="导出" content="确认导出账单吗?"/> <PopNormal title="操作提醒" :visible.sync="visible" @confirm="handleClickConfirm" cancelText="取消" confirmText="导出" content="确认导出账单吗?"/>
<FabView/> <FabView @click="handleClickFab"/>
</view> </view>
</template> </template>
...@@ -201,6 +201,13 @@ export default { ...@@ -201,6 +201,13 @@ export default {
}, },
}) })
}, },
handleClickFab() {
this.$u.route({
url: 'pages/maintain-bill/create',
params: {
},
})
},
handlClickOut() { handlClickOut() {
this.visible = true this.visible = true
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment