Commit 0fd584d4 authored by 白日依山山山's avatar 白日依山山山

客户准入、待办已办搜索栏和加载列表、商务政策里的保证押金数据格式

parent 48cfe4a3
......@@ -159,7 +159,7 @@
</item>
<item>
<div slot="name" class="font-color">保险押金</div>
<span slot="content">{{ itemInfo.insurance_fee * itemInfo.product_num | currency }}</span>
<span slot="content">{{ parseFloat(itemInfo.insurance_fee * itemInfo.product_num).toFixed(2) | currency }}</span>
</item>
<item>
<div slot="name" class="font-color">GPS费用</div>
......@@ -304,7 +304,7 @@ export default {
guarantorInfo: [], // 担保人信息
attachArray: [], // 附件数组
bp_class: this.$route.params.item.bp_class, // 承租人性质(自然人,企业)
info: [], // 租赁信息
info: {}, // 租赁信息
baseInfo: {}, // 基本信息
project_id: '',
bank_flag: false,
......@@ -816,8 +816,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
// vm.info = res.quotation_lists// 拆分
vm.info[0] = res.info
vm.info = res.quotation_lists
}
})
},
......
......@@ -118,8 +118,7 @@ export default {
return
}
// 身份证校验
let idcardReg = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
if (!idcardReg.test(obj.contact_card_no)) {
if (!this.hlsUtil.isCardID(obj.contact_card_no)) {
hlsPopup.showLongCenter('联系人身份证格式错误!')
return
}
......
......@@ -9,30 +9,47 @@
<div class="wrap has-header">
<div class="tab">
<p>
<span :class="{ selected: selected === 'todo' }" @click="isSelected('todo')"><img v-if="selected === 'todo'"
src="@/assets/functionCenter/todo-check.png"><img v-if="selected === 'done'"
<span :class="{ selected: selected === 'todo' }" @click="isSelected('todo')"><img
v-if="selected === 'todo'"
src="@/assets/functionCenter/todo-check.png"><img
v-if="selected === 'done'"
src="@/assets/functionCenter/todo.png">待办</span>
</p>
<p>
<span :class="{ selected: selected === 'done' }" @click="isSelected('done')"><img v-if="selected === 'done'"
src="@/assets/functionCenter/done-check.png"><img v-if="selected === 'todo'"
<span :class="{ selected: selected === 'done' }" @click="isSelected('done')"><img
v-if="selected === 'done'"
src="@/assets/functionCenter/done-check.png"><img
v-if="selected === 'todo'"
src="@/assets/functionCenter/done.png">已办</span>
</p>
</div>
<div class="search">
<input v-model="searchInput" type="text" placeholder="请输入客户名称/合同编号查询" @input="searchList()">
<!-- <input v-model="searchInput" type="text" placeholder="请输入客户名称/合同编号查询" @input="searchList()"> -->
<!-- <Search v-model="searchInput" placeholder="请输入客户名称/合同编号查询" @search="searchList"/> -->
<Search
v-model="searchInput"
show-action
placeholder="请请输入客户名称/合同编号查询"
@search="searchList"
>
<template #action>
<div @click="searchList">搜索</div>
</template>
</Search>
</div>
</div>
<div v-if="
(todoList.length === 0 && selected === 'todo') ||
(doneList.length === 0 && selected === 'done')
">
<div
v-if="
(todoList.length === 0 && selected === 'todo') ||
(doneList.length === 0 && selected === 'done')
">
<div class="display">
<img src="@/assets/messageCenter/noMsg.png" alt="">
</div>
</div>
<scroll v-if="selected === 'todo' && todoList.length > 0" ref="scroll" :updateData="todoList" :pullUp="true"
<scroll
v-if="selected === 'todo' && todoList.length > 0" ref="scroll" :updateData="todoList" :pullUp="true"
:autoUpdate="true" :listenScroll="true" class="scroll-content" @pullingUp="loadMore()">
<div class="pay-content">
<div v-for="(item, index) in todoList" :key="index" class="contract-item">
......@@ -40,8 +57,9 @@
<img src="@/assets/contractRepayment/contract.png" alt="">
<h2>{{ item.workflow_desc }}</h2>
<p>
<img src="@/assets/functionCenter/in@2x.png" alt="" @click="approvalInfo(item, 'todo')
">
<img
src="@/assets/functionCenter/in@2x.png" alt="" @click="approvalInfo(item, 'todo')
">
</p>
</div>
<div class="center">
......@@ -52,7 +70,8 @@
</div>
</scroll>
<scroll v-if="selected === 'done' && doneList.length > 0" ref="scroll" :updateData="doneList" :pullUp="true"
<scroll
v-if="selected === 'done' && doneList.length > 0" ref="scroll" :updateData="doneList" :pullUp="true"
:autoUpdate="true" :listenScroll="true" @pullingUp="loadMore()">
<div class="pay-content">
<div v-for="(item, index) in doneList" :key="index" class="contract-item">
......@@ -60,8 +79,9 @@
<img src="@/assets/contractRepayment/contract.png" alt="">
<h2>{{ item.workflow_desc }}</h2>
<p>
<img src="@/assets/functionCenter/in@2x.png" alt="" @click="approvalInfo(item, 'done')
">
<img
src="@/assets/functionCenter/in@2x.png" alt="" @click="approvalInfo(item, 'done')
">
</p>
</div>
<div class="center">
......@@ -75,10 +95,14 @@
</template>
<script>
import noImg from '../../assets/productQuery/none.png'
import { Search } from 'vant'
import 'vant/lib/search/style'
export default {
name: 'ToDoList',
data() {
components: {
Search,
},
data () {
return {
selected: 'todo',
searchInput: '',
......@@ -86,32 +110,48 @@ export default {
doneList: [],
pageNum: 1,
pageNum_1: 1,
search_pageNum: 1,
search_flag: false,
mysetTimeout: null,
}
},
// watch: {},
watch: {
selected (newVal, oldVal) {
if (newVal === 'todo') {
this.getTodoList()
} else if (newVal === 'done') {
this.getDoneList()
}
},
},
// created () {
// this.getTodoList()
// this.getDoneList()
// },
activated() {
activated () {
this.pageNum = 1
this.pageNum_1 = 1
this.getTodoList()
this.getDoneList()
this.search_pageNum = 1
this.search_flag = false
if (this.selected === 'todo') {
this.getTodoList()
} else if (this.selected === 'done') {
this.getDoneList()
}
// this.getTodoList()
// this.getDoneList()
},
methods: {
// tab切换
isSelected(name) {
isSelected (name) {
this.selected = name
},
searchList() {
searchList () {
this.search_flag = true
if (this.selected === 'todo') {
this.pageNum = 1
this.pageNum = 0
this.todoList = []
} else if (this.selected === 'done') {
this.pageNum_1 = 1
this.pageNum_1 = 0
this.doneList = []
}
if (this.mysetTimeout !== null) {
clearTimeout(this.mysetTimeout)
......@@ -119,12 +159,12 @@ export default {
this.loadMore()
}, 1000)
} else {
this.mysetTimeout = setTimeout(() => {
this.mysetTimeout = setTimeout(() => {
this.loadMore()
}, 1000)
}
},
getTodoList() {
getTodoList () {
this.pageNum = 1
this.todoList = []
let param = {
......@@ -149,7 +189,7 @@ export default {
}
})
},
getDoneList() {
getDoneList () {
this.pageNum_1 = 1
this.doneList = []
let param = {
......@@ -174,7 +214,7 @@ export default {
}
})
},
loadMore() {
loadMore () {
let url
let param
if (this.selected === 'todo') {
......@@ -204,12 +244,16 @@ export default {
let returnData = []
if (res.result === 'S') {
returnData = res.lists
if (returnData.length === 0) {
this.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
this.$refs.scroll.update(true)
} else if (returnData.length === 10) {
// this.$refs.scroll.update(true)
if (!this.search_flag) {
if (returnData.length === 0) {
this.$refs.scroll.update(true)
} else if (returnData.length > 0 && returnData.length < 10) {
this.$refs.scroll.update(true)
} else if (returnData.length === 10) {
// this.$refs.scroll.update(true)
}
} else {
this.search_flag = false
}
this.showLists = returnData
if (this.selected === 'todo') {
......@@ -236,7 +280,7 @@ export default {
if (routerName) {
this.$router.push({
name: routerName, params: { type: type, ...flow }
name: routerName, params: { type: type, ...flow },
})
} else {
hlsPopup.showLongCenter('当前app不支持审批工作流')
......@@ -308,7 +352,8 @@ export default {
.search {
background-color: #fff;
padding: 8px 12px;
height: 36px;
// padding: 8px 12px;
position: relative;
input {
......
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