优化更新
This commit is contained in:
parent
5fe5efabc5
commit
8776f8e1fb
@ -50,7 +50,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="right" @click="naviTo(contract.contract_no)">
|
||||
<view class="right" @click="navTo(contract.contract_no)">
|
||||
<!-- <image class="icon"></image> -->
|
||||
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
|
||||
<view>查看</view>
|
||||
@ -164,7 +164,7 @@
|
||||
this.initContract(this.$props.id, this.$props.type || null);
|
||||
},
|
||||
methods: {
|
||||
naviTo(contract_no) {
|
||||
navTo(contract_no) {
|
||||
download_file({ applyNo: contract_no }).then(res => {
|
||||
if (res.code != 1) {
|
||||
Toast(res.msg)
|
||||
|
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<view class="c_card">
|
||||
<view class="f_card">
|
||||
<view class="item" @click="naviTo('/subpkg/topUp/topUp')">
|
||||
<view class="item" @click="navTo('/subpkg/topUp/topUp')">
|
||||
<view>公司账户余额(元)</view>
|
||||
<view class="price" v-if="company.deposit">{{cCount(company.deposit)}}</view>
|
||||
<view class="price" v-else>0.00</view>
|
||||
</view>
|
||||
<view class="item" @click="naviTo('/subpkg/withdrawDeposit/withdrawDeposit')">
|
||||
<view class="item" @click="navTo('/subpkg/withdrawDeposit/withdrawDeposit')">
|
||||
<view>公司收益金额(元)</view>
|
||||
<view class="price" v-if="company.company_money">{{cCount(company.company_money)}}</view>
|
||||
<view class="price" v-else>0.00</view>
|
||||
@ -17,7 +17,7 @@
|
||||
<view class="right">
|
||||
<view class="btn" :class="current==0?'active':''" @click="current=0;initLoad()">日账单</view>
|
||||
<view class="btn" :class="current==1?'active':''" @click="current=1;initLoad()">月账单</view>
|
||||
<view class="btn" @click="naviTo('/subpkg/companyFinance/companyFinance')">更多</view>
|
||||
<view class="btn" @click="navTo('/subpkg/companyFinance/companyFinance')">更多</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="f_list">
|
||||
@ -72,7 +72,7 @@
|
||||
})
|
||||
},
|
||||
methods:{
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
|
@ -6,7 +6,7 @@
|
||||
<uni-segmented-control :current="current" :values="['全部','已完成', '未完成']" styleType="text" @clickItem="changeCurrent" activeColor="#3274F9"></uni-segmented-control>
|
||||
</u-sticky>
|
||||
<view class="c_task_index_list">
|
||||
<view v-for="item in 10" @click="naviTo('/subpkg/dispatching/dispatching')" :key="item">
|
||||
<view v-for="item in 10" @click="navTo('/subpkg/dispatching/dispatching')" :key="item">
|
||||
<taskItem></taskItem>
|
||||
</view>
|
||||
</view>
|
||||
@ -44,7 +44,7 @@
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -52,7 +52,7 @@ import { Toast } from '../../libs/uniApi';
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
@ -61,8 +61,8 @@ import { Toast } from '../../libs/uniApi';
|
||||
clickTask(){
|
||||
console.log('点击');
|
||||
if(this.$props.datas.type==1){
|
||||
this.naviTo('/subpkg/fileTask/fileTask?id=' + JSON.stringify(this.$props.datas?.extend?.informationg?.arr))
|
||||
}else this.naviTo('');
|
||||
this.navTo('/subpkg/fileTask/fileTask?id=' + JSON.stringify(this.$props.datas?.extend?.informationg?.arr))
|
||||
}else this.navTo('');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
"path": "pages/business/business",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商机信息",
|
||||
"enablePullDownRefresh": false,
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarBackgroundColor": "#3175f9",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
@ -43,6 +43,7 @@
|
||||
"path": "pages/oaExamine/oaExamine",
|
||||
"style": {
|
||||
"navigationBarTitleText": "审批",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarBackgroundColor": "#3175f9",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
@ -318,7 +319,7 @@
|
||||
"path": "noticeList/noticeList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "公告列表",
|
||||
"enablePullDownRefresh": false,
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationBarBackgroundColor": "#3175f9",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
|
@ -34,25 +34,25 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view v-if="$store.state.app.token" class="compile" @click="naviTo()">
|
||||
<!-- <view v-if="$store.state.app.token" class="compile" @click="navTo()">
|
||||
<view class="iconfont icon-bianji"></view>
|
||||
<view class="">编辑</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="assess">
|
||||
<view class="ass_cent flex_a_c_j_sb">
|
||||
<view class="cent_item" @click="naviTo('/subpkg/finance/finance')">
|
||||
<view class="cent_item" @click="navTo('/subpkg/finance/finance')">
|
||||
<!-- <view class="num">{{ oaUserInfo.achievements_money }}</view> -->
|
||||
<view class="num" v-if="!$store.state.app.token">*</view>
|
||||
<view class="num" v-else-if="eyeType">{{oaUserInfo.user_money||'0.00'}}</view>
|
||||
<view class="num" v-if="!eyeType">****</view>
|
||||
<view class="name">账户余额(元)</view>
|
||||
</view>
|
||||
<!-- <view class="cent_item" @click="naviTo('/subpkg/finance/finance')">
|
||||
<!-- <view class="cent_item" @click="navTo('/subpkg/finance/finance')">
|
||||
<view class="num">0.00</view>
|
||||
<view class="name">冻结金额</view>
|
||||
</view> -->
|
||||
<view class="cent_item" @click="naviTo('/subpkg/finance/finance')">
|
||||
<view class="cent_item" @click="navTo('/subpkg/finance/finance')">
|
||||
<!-- <view class="num">{{ oaUserInfo.company_money }}</view> -->
|
||||
<view class="num" v-if="!$store.state.app.token">*</view>
|
||||
<view class="num" v-else-if="eyeType">{{oaUserInfo.income||'0.00'}}</view>
|
||||
@ -65,7 +65,7 @@
|
||||
</view>
|
||||
<view class="other_guide">
|
||||
<block v-for="(item,i) in myOaData" :key="i">
|
||||
<view class="other_item flex_a_c_j_sb" @click="naviTo(item.url)">
|
||||
<view class="other_item flex_a_c_j_sb" @click="navTo(item.url)">
|
||||
<view class="flex_a_c left">
|
||||
<!-- <view class="iconfont2" :class="item.icon"></view> -->
|
||||
<image :src="item.icon"></image>
|
||||
@ -142,7 +142,7 @@
|
||||
const res = await userInfo();
|
||||
this.$store.commit('setUserInfo', res.data);
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
|
@ -45,7 +45,7 @@
|
||||
</view>
|
||||
<view class="other_guide">
|
||||
<block v-for="(item,i) in myOaData" :key="i">
|
||||
<view class="other_item flex_a_c_j_sb" @click="naviTo(item.url)">
|
||||
<view class="other_item flex_a_c_j_sb" @click="navTo(item.url)">
|
||||
<view class="flex_a_c">
|
||||
<view class="iconfont2" :class="item.icon"></view>
|
||||
<view class="text">{{ item.name }}</view>
|
||||
@ -91,7 +91,7 @@
|
||||
console.log(res,'111');
|
||||
this.oaUserInfo = res
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -19,7 +19,7 @@
|
||||
<view class="right">
|
||||
<!-- <view class="btn" :class="current==0?'active':''" @click="current=0;initLoad()">日账单</view>
|
||||
<view class="btn" :class="current==1?'active':''" @click="current=1;initLoad()">月账单</view> -->
|
||||
<view class="btn" @click="naviTo('/subpkg/companyFinance/companyFinance')">历史账单</view>
|
||||
<view class="btn" @click="navTo('/subpkg/companyFinance/companyFinance')">历史账单</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
@ -69,7 +69,7 @@
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
methods: {
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
|
@ -10,7 +10,7 @@
|
||||
</view>
|
||||
<view class="company_list" v-show="current==1">
|
||||
<view class="info_card" v-for="item in companyList" :key="item.id">
|
||||
<view class="top" @click="naviTo('/subpkg/companySign/companySign?id='+item.id)">
|
||||
<view class="top" @click="navTo('/subpkg/companySign/companySign?id='+item.id)">
|
||||
<view>
|
||||
<view class="info_name" :class="item.is_contract?'have':'no'">{{item.company_name}}</view>
|
||||
<view class="info_type">{{item.company_type_name}}</view>
|
||||
@ -39,7 +39,7 @@
|
||||
</view>
|
||||
<u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText"
|
||||
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
|
||||
<mybtn text="新建签约" @click="naviTo('/subpkg/companyUnsign/companyUnsign')"></mybtn>
|
||||
<mybtn text="新建签约" @click="navTo('/subpkg/companyUnsign/companyUnsign')"></mybtn>
|
||||
</view>
|
||||
<view class="company_info" v-show="current==2">
|
||||
<companyFinance></companyFinance>
|
||||
@ -119,7 +119,7 @@
|
||||
}
|
||||
this.companyList = [...this.companyList, ...res.data?.data]
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -140,7 +140,7 @@
|
||||
}
|
||||
uni.hideLoading();
|
||||
Toast('合同已发送');
|
||||
this.naviTo('/subpkg/submit/submit');
|
||||
this.navTo('/subpkg/submit/submit');
|
||||
}catch(e){
|
||||
uni.hideLoading();
|
||||
Toast('发送失败');
|
||||
@ -161,10 +161,10 @@
|
||||
id: this.id
|
||||
})
|
||||
Toast('短信已发送');
|
||||
this.naviTo('/subpkg/submit/submit');
|
||||
this.navTo('/subpkg/submit/submit');
|
||||
}
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="">
|
||||
<view class="company_list">
|
||||
<view class="info_card" v-for="item in companyList" :key="item.id">
|
||||
<view class="top" @click="naviTo('/subpkg/companySign/companySign?id='+item.id)">
|
||||
<view class="top" @click="navTo('/subpkg/companySign/companySign?id='+item.id)">
|
||||
<view>
|
||||
<view class="info_name" :class="item.is_contract?'have':'no'">{{item.company_name}}</view>
|
||||
<view class="info_type">{{item.company_type_name}}</view>
|
||||
@ -77,7 +77,7 @@ export default {
|
||||
}
|
||||
this.companyList = [...this.companyList, ...res.data?.data]
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -40,7 +40,7 @@
|
||||
<view class="bottom">
|
||||
<view class="left">已签订</view>
|
||||
<!-- <view class="left red">已到期</view> -->
|
||||
<button class="right" @click="naviTo('/subpkg/contractDetail/contractDetail?id='+item.id)">详情</button>
|
||||
<button class="right" @click="navTo('/subpkg/contractDetail/contractDetail?id='+item.id)">详情</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -79,7 +79,7 @@
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -25,7 +25,7 @@
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -2,7 +2,7 @@
|
||||
<view class="">
|
||||
<view class="finance_head">
|
||||
<view class="top">
|
||||
<view class="left" @click="naviTo()">
|
||||
<view class="left" @click="navTo()">
|
||||
<view v-if="user_id==0">
|
||||
<u--image :showLoading="true" :src="userInfo.avatar||'../../static/img/public/man.png'" width="44px" height="44px" shape="circle"></u--image>
|
||||
<view class="name">{{userInfo.nickname}}</view>
|
||||
@ -12,7 +12,7 @@
|
||||
<view class="name">{{userInfo.nickname}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="right" @click="naviTo('/subpkg/topUp/topUp')">
|
||||
<!-- <view class="right" @click="navTo('/subpkg/topUp/topUp')">
|
||||
账户充值
|
||||
</view> -->
|
||||
</view>
|
||||
@ -28,7 +28,7 @@
|
||||
<view class="text" v-show="!eyeType">可提现金额****元</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom" @click="naviTo('/subpkg/orderDetail/orderDetail')">
|
||||
<view class="bottom" @click="navTo('/subpkg/orderDetail/orderDetail')">
|
||||
<view class="item">
|
||||
<view>账户余额(元)</view>
|
||||
<view class="num" v-show="eyeType">{{userInfo.user_money||0.00}}</view>
|
||||
@ -93,7 +93,7 @@
|
||||
<u-loadmore status="nomore" nomore-text="仅展示一年数据" />
|
||||
</view>
|
||||
|
||||
<!-- <button class="btn" @click="naviTo('/subpkg/withdrawDeposit/withdrawDeposit')">提现余额</button> -->
|
||||
<!-- <button class="btn" @click="navTo('/subpkg/withdrawDeposit/withdrawDeposit')">提现余额</button> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -149,7 +149,7 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
@ -50,7 +50,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="right" @click="naviTo(contract.contract_no)">
|
||||
<view class="right" @click="navTo(contract.contract_no)">
|
||||
<!-- <image class="icon"></image> -->
|
||||
<uni-icons type="paperclip" color="#3274F9"></uni-icons>
|
||||
<view>查看</view>
|
||||
@ -72,7 +72,7 @@
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
methods: {
|
||||
naviTo(contract_no) {
|
||||
navTo(contract_no) {
|
||||
download_file({ applyNo: contract_no }).then(res => {
|
||||
if (res.code != 1) {
|
||||
Toast(res.msg)
|
||||
|
@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<view class="task_box">
|
||||
<u-search shape="round" v-model="searchText" @change="changeSearch" placeholder="搜索公告" :showAction="false"></u-search>
|
||||
<u-search shape="round" v-model="searchText" @change="changeSearch" placeholder="搜索公告"
|
||||
:showAction="false"></u-search>
|
||||
<view class="screening" @click="reSearch">搜索</view>
|
||||
</view>
|
||||
<view class="notice_list">
|
||||
@ -42,16 +43,16 @@
|
||||
},
|
||||
}
|
||||
},
|
||||
onLoad() {},
|
||||
onShow() {
|
||||
onLoad() {
|
||||
this.initConfig()
|
||||
this.loadNotice()
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
initConfig() {
|
||||
this.list = [];
|
||||
this.loadConfig.page = 1;
|
||||
this.loadConfig.status = 'loadmore';
|
||||
this.loadNotice();
|
||||
},
|
||||
async loadNotice() {
|
||||
if (this.loadConfig.status == "nomore") return;
|
||||
@ -80,11 +81,11 @@
|
||||
}, 500),
|
||||
reSearch() {
|
||||
this.initConfig()
|
||||
this.loadNotice()
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
uni.stopPullDownRefresh()
|
||||
this.initConfig();
|
||||
this.$u.sleep(500).then(()=>{uni.stopPullDownRefresh()})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -118,6 +119,7 @@
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.notice_list {
|
||||
padding: 28rpx;
|
||||
|
||||
@ -148,6 +150,7 @@
|
||||
text-overflow: ellipsis;
|
||||
/* 使用省略号表示被截断的文本 */
|
||||
overflow: hidden;
|
||||
|
||||
&::before {
|
||||
content: '公告';
|
||||
display: inline-block;
|
||||
@ -166,6 +169,7 @@
|
||||
font-size: 25rpx;
|
||||
margin-top: 10rpx;
|
||||
color: #99a3bd;
|
||||
|
||||
.click {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
@ -45,8 +45,8 @@
|
||||
</view> -->
|
||||
<u-line color="#999999FF"></u-line>
|
||||
<view class="bottom" style="margin-top: 28rpx;float: right;">
|
||||
<button class="look sign" v-if="item.is_contract==1">已签约</button>
|
||||
<button class="look red" v-else>未签约</button>
|
||||
<button class="look sign" v-if="item.is_contract==1" @click="changeSign(item)">已签约</button>
|
||||
<button class="look red" v-else @click="changeSign(item)">未签约</button>
|
||||
<button class="look" @click="navTo('/subpkg/finance/finance?id='+item.id)">财务查看</button>
|
||||
<button class="look" @click="navTo('/subpkg/personnelDetails/personnelDetails?id='+item.id)">信息查看</button>
|
||||
</view>
|
||||
@ -112,6 +112,16 @@
|
||||
this.loadConfig.page++;
|
||||
}
|
||||
this.userList = [...this.userList, ...res.data?.data]
|
||||
},
|
||||
// 点击已签约或未签约按钮
|
||||
changeSign(data){
|
||||
if(data.is_contract)Toast('已完成签约');
|
||||
else uni.showModal({
|
||||
content:'该人员还未签约,是否立即签约?',
|
||||
success: (e) => {
|
||||
if(e.confirm)this.navTo('/subpkg/personnelDetails/personnelDetails?id='+data.id);
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
|
@ -255,7 +255,7 @@
|
||||
})
|
||||
})
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url,
|
||||
@ -328,7 +328,7 @@
|
||||
}
|
||||
uni.hideLoading();
|
||||
Toast('合同已发送');
|
||||
this.naviTo('/subpkg/submit/submit');
|
||||
this.navTo('/subpkg/submit/submit');
|
||||
}catch(e){
|
||||
uni.hideLoading();
|
||||
Toast('合同发送失败');
|
||||
@ -349,7 +349,7 @@
|
||||
id: this.userInfo.id
|
||||
})
|
||||
Toast('短信已发送');
|
||||
this.naviTo('/subpkg/submit/submit');
|
||||
this.navTo('/subpkg/submit/submit');
|
||||
}
|
||||
},
|
||||
loadUserDetail() {
|
||||
|
@ -7,7 +7,7 @@
|
||||
<view>您的签约请求已提交,正在生成合同。</view>
|
||||
<view>请耐心等待,合同生成完毕后将会以短信方式通知您。</view>
|
||||
</view>
|
||||
<button class="btn" @click="naviTo">确定</button>
|
||||
<button class="btn" @click="navTo">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -22,7 +22,7 @@ export default {
|
||||
onLoad() {},
|
||||
onShow() {},
|
||||
methods: {
|
||||
naviTo(){
|
||||
navTo(){
|
||||
uni.navigateBack();
|
||||
}
|
||||
},
|
||||
|
@ -11,7 +11,7 @@
|
||||
</view>
|
||||
<view class="task_list">
|
||||
<uni-section class="title" titleFontSize="32rpx" :title="'任务清单 '+ nowYMD" type="line"></uni-section>
|
||||
<view v-for="item in 5" :key="item" @click="naviTo('/subpkg/fileTask/fileTask')">
|
||||
<view v-for="item in 5" :key="item" @click="navTo('/subpkg/fileTask/fileTask')">
|
||||
<taskItem></taskItem>
|
||||
</view>
|
||||
<!-- <u-empty icon="/static/img/empty/data.png" text="没有任务"></u-empty> -->
|
||||
@ -78,7 +78,7 @@
|
||||
let m = e.detail.value.split('-')[1];
|
||||
this.nowDate.m = m < 10 ? +m : m;
|
||||
},
|
||||
naviTo(url) {
|
||||
navTo(url) {
|
||||
url ?
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
Loading…
x
Reference in New Issue
Block a user