提交 8eca2785 编写于 作者: Y yang-zongying@qq.com

增加名片收集页面

上级 51e298c6
......@@ -34,7 +34,7 @@
<style lang="scss" scoped>
.tab-tit-text {
// font-size: 18px;
font-size: 18px;
font-weight: 400;
color: rgba(56, 56, 56, 1);
}
......
......@@ -609,6 +609,14 @@
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
},
{
"path" : "pages/workSpace/crm/xsy/xsyMpsjAdd",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
}
],
"globalStyle": {
......
<template>
<view class="mainPage">
<!-- 上半部分 -->
<view class="mian-top pdlr">
<view class="mian-top">
<view class="pdlr">
<view class="fl-rsb wcolor user-area">
<view class="fl" @click="toUrl('/pages/setting/userInfo')">
<u-avatar size='65' fontSize="65" :src="userInfo.headImgSrc"></u-avatar>
......@@ -11,7 +12,8 @@
<view class="mgr5"><u--image :showLoading="true" :src="imgbaseUrl + 'setting.png'" width="25px" height="25px" @click="toUrl('/pages/setting/setting')"></u--image></view>
</view>
</view>
<view class="mgtb">
</view>
<view class="pd">
<view class="cardgrid">
<view class="" v-for="(item, index) in indexList" :key="'list'+index">
<rwCard :cardinfo="item" />
......@@ -83,6 +85,14 @@
}, {
name: '异常',
}, ],
list2: [{
name: '关注'
}, {
name: '推荐',
badge: {
isDot: true
}
}],
toList: [{
icon: '6168.00',
title: '资金支付',
......@@ -195,6 +205,8 @@
.user-area {
padding: 20px 0px 10px 0px;
// position: fixed;
width: 100%;
}
.userName {
......
......@@ -112,14 +112,14 @@
</view>
</view>
</view>
<view class="pdt">
<!-- <view class="pdt">
<view class="w100 fl-rsbc bgwhite cu">
<view class="w100 fl-rsbc bgwhite cu bdr">
<u--textarea height="100" v-model="jjForm.njpm" placeholder="销售员意见"
count></u--textarea>
</view>
</view>
</view>
</view> -->
</view>
</view>
</view>
......
......@@ -553,7 +553,7 @@
}]
},
},
onLoad() {
onShow() {
// 设置首页标题
uni.setNavigationBarTitle({
title: this.pageTitle
......
<template>
<view>
<view class="bggray cardpd relative h100">
<view v-if="sqList.length > 0">
<view v-for="(item,index) in sqList" class="mgb" @click="toDetail(item)">
<view class="pd bgwhite cardview">
<view class="fl">
<view class="mgb10">
<view class="stit fl">
<view class="leftsite mgr10"></view>公司名称:KLK099875J
</view>
</view>
</view>
<view class="fl">
<view class="mgr bggray bdr4">
<u--image :showLoading="true" mode="center" :src="imgbaseUrl + 'userCard.png'" width="80px" height="100px"></u--image>
</view>
<view class="fl-csb" style="height: 100px;">
<view class="fl-cs">
<view class="fl mgb5">
<text class="stit blod mgr5"><u--image :showLoading="true" :src="imgbaseUrl + 'userCard1.png'" width="16px" height="16px"></u--image></text>
<text class="stit blod">ADHKHK</text>
</view>
<view class="fl">
<text class="dectext">职务:</text>
<text class="desctit">ADHKHK</text>
</view></view>
<view class="fl">
<view class="fl">
<text class="stit blod mgr5"><u--image :showLoading="true" :src="imgbaseUrl + 'phone1.png'" width="16px" height="16px"></u--image></text>
<text class="stit blod">13227727527</text>
</view>
</view>
</view>
</view>
<view class="fl-gr2 mgt10">
<view class="fl">
<text class="dectext">收集人:</text>
<text class="desctit">ADHKHK</text>
</view>
<view class="fl">
<view class="desc">收集日期:2024-05-01</view>
</view>
</view>
</view>
</view>
</view>
<view v-else class="pdt mgt">
<u-empty text="暂无收集名片" iconSize="80px" textSize="16px"> </u-empty>
</view>
<!-- 申请按钮 -->
<view class="floatbtn" @click="toAddSL()">
<u--image :showLoading="true" :src="imgbaseUrl + 'add.png'" width="28px" height="28px"></u--image>
</view>
</view>
</template>
<script>
import {
mapGetters,
mapState
} from 'vuex';
import XzCardListItem from "@/components/xzCardListItem.vue";
import store from '@/store/index.js';
export default {
components: {
XzCardListItem
},
data() {
return {
}
pageTitle: "名片收集",
imgbaseUrl: this.$globalv.imgBaseUrl,
sqList: [{}],
sqDataList: []
};
},
onReady() {
// 设置首页标题
uni.setNavigationBarTitle({
title: this.pageTitle
});
// this.$nextTick(()=>{
this.initData()
// })
},
methods: {
}
initData() {
// 获取采购列表
console.log("initData");
if (this.userInfo) {
const parameter = {
"st_id": this.userInfo.st_id,
"zyid": ""
};
uni.$u.http.post('/xzgl/jjsqList', parameter).then(data => {
console.log(data);
// 数据处理:
uni.setStorage({
key: 'cgList',
data: data
})
this.sqDataList = data
this.sqList.length = 0
if (data.length > 0) {
data.map(item => {
this.sqList.push({
stid: this.userInfo.st_id,
zyid: item.zyid,
Num: item.djh,
Status: item.flowStatus,
StatusName: item.flowName,
sqrmc: item.sqrmc,
sqbmmc: item.sqbmmc,
sqDate: item.sqrq.split('T').join(" "),
bz: item.jjbz,
})
})
}
this.sqList.sort((a, b) => {
const dateA = new Date(a.sqDate).getTime();
const dateB = new Date(b.sqDate).getTime();
return dateB - dateA;
});
}).catch(err => {
uni.$u.toast(err)
})
} else {
// uni.redirectTo({
// url: '/pages/Login'
// });
}
},
toDetail(item) {
console.log("toDetail:", item)
uni.navigateTo({
url: '/pages/workSpace/jijian/jijianSQDetail',
animationType: 'pop-in',
animationDuration: 200,
events: {
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
// cgDetail: function(data) {
// console.log(data)
// },
},
success: function(res) {
// 通过eventChannel向被打开页面传送数据
uni.$emit('jjDetail', {
data: item
})
res.eventChannel.emit('jjDetail', {
data: item
})
}
});
},
toAddSL() {
uni.navigateTo({
url: '/pages/workSpace/crm/xsy/xsyMpsjAdd',
events: {
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
acceptDataFromOpenedPage: function(data) {
console.log(data)
},
someEvent: function(data) {
console.log(data)
}
},
success: function(res) {
// 通过eventChannel向被打开页面传送数据
res.eventChannel.emit('acceptDataFromOpenerPage', {
data: 'data from starter page'
})
}
});
},
},
computed: {
...mapGetters(['isLoggedIn']),
...mapState({
userInfo: state => state.userStore.userInfo,
})
},
}
</script>
<style>
<style lang="scss">
</style>
</style>
\ No newline at end of file
<template>
<view class="detailPage bggray h100">
<u--form labelPosition="top" :model="yyForm" :rules="rules" labelWidth="400" ref="uForm">
<view class="pdb10">
<!-- <view class="pdb fl-rsbc">
<view class="fl">
<view class="cu mgr5"><u--image :showLoading="true" :src="imgbaseUrl + 'jibenxinxi.png'" width="25px" height="25px"></u--image></view>
<view class="stit wcolor" style="width: 80px;">基本信息</view>
</view>
</view> -->
<view class="mgb10 cardview bgwhite bluebg2">
<view class="pdt10">
<view class=" pdlr pdb">
<view class="">
<view class="pdtb10 fl-rsbc bd1">
<u--input border="none" v-model="yyForm.userID" :maxlength="10" placeholder="公司名称"
type="string" clearable></u--input>
</view>
</view>
<view class="fl-rsb">
<view class=" mgr">
<view class="pdtb10 fl-rsbc bd1">
<u--input border="none" v-model="yyForm.userName" :maxlength="10"
placeholder="姓名(必填)" type="string" clearable></u--input>
</view>
</view>
<view class="">
<view class="pdtb10 fl-rsbc bd1">
<u--input border="none" v-model="yyForm.phone" :maxlength="10"
placeholder="电话(必填)" type="number" clearable></u--input>
</view>
</view>
</view>
<view class="">
<view class="pdtb10 fl-rsbc bd1">
<u--input border="none" v-model="yyForm.carNum" :maxlength="10" placeholder="职务"
type="string" clearable></u--input>
</view>
</view>
<view class="pdt">
<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1"
width="150" height="150" multiple :maxCount="10"></u-upload>
</view>
</view>
</view>
</view>
<view class="fix-area bgwhite">
<view class="pdlr pdt">
<u-button type="primary" class="confirm-btn" @click="onFangkeYY">提交</u-button>
</view>
</view>
</view>
</u--form>
<u-popup mode="bottom" bgColor="#FFF" :round="10" :show="isShowBfr" @close="isShowBfr = false">
<view class="pd">
<view class="fl-rsbc pdb">
<view class="stit">选择拜访人:</view>
<view class="cu" @click="isShowBfr = false">
<u--image :showLoading="true" :src="imgbaseUrl + 'close.png'" width="18px"
height="18px"></u--image>
</view>
</view>
<UserList :list="bfrList" @selected="userListSelected" />
</view>
</u-popup>
</view>
</template>
<script>
import CardTit from '@/components/cardTit.vue'
import UserList from '@/components/userList.vue'
import {
CommonApi
} from "@/config/commonApi.js";
import {
CommonUtil
} from '@/dev/core/utils/common.util.js'
import {
mapGetters,
mapState
} from 'vuex';
export default {
components: {
CardTit,
UserList
},
data() {
return {
pageTitle: "名片收集",
imgbaseUrl: this.$globalv.imgBaseUrl,
yyForm: {
isIn: false,
userName: "",
phone: "",
userID: "",
carNum: "",
yySy: "",
bz: "",
bfrName: "",
bfr: "",
yyccrq: "",
yyjcrq: "",
},
rules: {},
isShowBfr: false,
bfrList: [],
};
},
computed: {
...mapGetters(['isLoggedIn']),
...mapState({
userInfo: state => state.userStore.userInfo,
})
},
onLoad() {
// 设置首页标题
uni.setNavigationBarTitle({
title: this.pageTitle
});
this.initData()
},
methods: {
async initData() {
this.bfrList = await CommonApi.getWupinTypeList("sys_staffdef");
},
checkData() {
console.log(this.yyForm)
if (this.yyForm.njpm == null) {
this.$refs.uNotify.show({
type: 'error',
message: '请填写内件品名!',
fontSize: "32"
})
return false
}
if (this.yyForm.remark == "" || this.yyForm.remark == null) {
this.$refs.uNotify.show({
type: 'error',
message: '请填写申请事由!',
fontSize: 32
})
return false
}
if (this.goodsList.length <= 0) {
this.$refs.uNotify.show({
type: 'error',
message: '物品清单为空!',
fontSize: 32
})
return false
}
return true
},
onFangkeYY() {
// if (this.checkData()) {
const data = {
"yyjcrq": uni.$u.timeFormat(this.yyForm.yyjcrq, 'yyyy-mm-dd hh:MM:ss'),
"yyccrq": uni.$u.timeFormat(this.yyForm.yyccrq, 'yyyy-mm-dd hh:MM:ss'),
"fkxm": this.yyForm.userName,
"zjh": this.yyForm.userID,
"cph": this.yyForm.carNum,
"lxfs": this.yyForm.phone,
"sy": this.yyForm.yySy,
"bfr": this.yyForm.bfr,
"bz": this.yyForm.bz,
"row_guid": CommonUtil.randomUUIDNew(),
"sqbm": this.userInfo.deptid,
"sqrq": uni.$u.timeFormat(Date.now(), 'yyyy-mm-dd hh:MM:ss'),
"sqr": this.userInfo.st_id,
};
console.log("onFangkeYY:", JSON.stringify(data));
uni.$u.http.post('/xzgl/fkyyAdd', data).then(data => {
console.log(data);
// 数据处理:
uni.setStorage({
key: 'fkyyAdd',
data: data
})
uni.navigateBack()
}).catch(err => {
uni.$u.toast(err)
})
// }
},
userListSelected(e) {
console.log("userListSelected", e)
this.yyForm.bfrName = e.name
this.yyForm.bfr = e.value
this.isShowBfr = false
this.$emit("update", this.yyForm)
},
onpopupclosed() {
},
onpopupopened() {
},
},
onReady() {},
};
</script>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<!-- <u--image :src="imgbaseUrl + 'worksetting.png'" width="23px" height="23px"></u--image> -->
</view>
</view>
<u-collapse accordion class="bd0" :border="false" :value="0">
<u-collapse accordion class="bd0" :border="false" :value="0" style="padding-top: 69px;">
<u-collapse-item :title="baseTitList[baseListIndex]" v-for="(baseListItem,baseListIndex) in baseList" :key="baseListIndex" class="bgwhite mgb pdtb5" :name="baseListIndex">
<!-- CRM 特殊处理 -->
<view v-if="baseListIndex === 2">
......@@ -166,7 +166,7 @@
{
name: 'mpsj.png',
title: '名片收集',
url: 'pages/workSpace/gongzi/gongzi',
url: 'pages/workSpace/crm/xsy/xsyMpsj',
},
],
[
......@@ -319,5 +319,8 @@
color: #FFF;
font-size: 22px;
font-weight: 600;
position: fixed;
width: 100%;
z-index: 999;
}
</style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册