This commit is contained in:
zhangwentao 2025-11-17 17:49:14 +08:00
parent 541f3b9b94
commit 4103bc0d15
11 changed files with 82 additions and 81 deletions

View File

@ -4,7 +4,7 @@
<view class="tab_array"> <view class="tab_array">
<image :src="BASE_IMG_URL+'ss.png'" mode="scaleToFill"></image> <image :src="BASE_IMG_URL+'ss.png'" mode="scaleToFill"></image>
<input @confirm="doSearch" type="text" placeholder-style="color:#999;" <input @confirm="doSearch" type="text" placeholder-style="color:#999;"
:class="name ? 'fontactive' : ''" v-model="name" placeholder="客户名称" class="li_box" /> :class="name ? 'fontactive' : ''" v-model="name" placeholder="门店名称" class="li_box" />
</view> </view>
<view class="tab_screen" @click="screenClick"> <view class="tab_screen" @click="screenClick">
<image :src="BASE_IMG_URL+'shaixuan.png'" mode="scaleToFill"></image> <image :src="BASE_IMG_URL+'shaixuan.png'" mode="scaleToFill"></image>
@ -16,11 +16,11 @@
<!--筛选模块 --> <!--筛选模块 -->
<view class="screen_content" @tap.stop.prevent> <view class="screen_content" @tap.stop.prevent>
<view class="fir_li"> <view class="fir_li">
<view class="li_label">客户星级</view> <view class="li_label">门店星级</view>
<u-rate :count="5" @change="changeLevel" v-model="level" active-color="#FFD049" inactive-color="#b2b2b2" gutter="20"></u-rate> <u-rate :count="5" @change="changeLevel" v-model="level" active-color="#FFD049" inactive-color="#b2b2b2" gutter="20"></u-rate>
</view> </view>
<view class="fir_li"> <view class="fir_li">
<view class="li_label">客户来源</view> <view class="li_label">门店来源</view>
<picker @change="changeSource" :value="sourceIndex" :range="sourceList"> <picker @change="changeSource" :value="sourceIndex" :range="sourceList">
<view class="li_box"> <view class="li_box">
<view class="form_right"> <view class="form_right">
@ -63,7 +63,7 @@
</view> </view>
</view> </view>
<view class="fir_li"> <view class="fir_li">
<view class="li_label">新增客户时间</view> <view class="li_label">新增门店时间</view>
<view class="li_box" style="display: flex;justify-content: space-around;"> <view class="li_box" style="display: flex;justify-content: space-around;">
<picker @change="changeNewStartTime" mode="date" :end="new_end_time" <picker @change="changeNewStartTime" mode="date" :end="new_end_time"
style="width:50%;border-right:1rpx solid #CCCCCC"> style="width:50%;border-right:1rpx solid #CCCCCC">
@ -142,17 +142,17 @@
start_time: '', // start_time: '', //
end_time: '', // end_time: '', //
name: '', // name: '', //
level: '', // level: '', //
source: '', // source: '', //
sourceList: [], sourceList: [],
sourceIndex: null, sourceIndex: null,
follow: '', // follow: '', //
followList: [], followList: [],
followIndex: null, followIndex: null,
createtime: '', // createtime: '', //
new_start_time: '', // new_start_time: '', //
new_end_time: '', // new_end_time: '', //
next_time: '', // next_time: '', //
@ -223,8 +223,8 @@
}, },
getSelect() { getSelect() {
netSelect().then(res => { netSelect().then(res => {
this.sourceList = res.data['客户来源'] this.sourceList = res.data['门店来源']
this.followList = res.data['客户状态'] this.followList = res.data['门店状态']
}) })
}, },
// //
@ -256,7 +256,7 @@
this.statusIndex = this.cusStatus this.statusIndex = this.cusStatus
} }
}, },
// //
changeNewStartTime(e) { changeNewStartTime(e) {
this.showIndex = 2 this.showIndex = 2
this.new_start_time = e.detail.value this.new_start_time = e.detail.value
@ -264,7 +264,7 @@
this.new_end_time = e.detail.value this.new_end_time = e.detail.value
} }
}, },
// //
changeNewEndTime(e) { changeNewEndTime(e) {
this.showIndex = 2 this.showIndex = 2
this.new_end_time = e.detail.value this.new_end_time = e.detail.value
@ -288,7 +288,7 @@
this.start_time = e.detail.value this.start_time = e.detail.value
} }
}, },
// //
changeSource(e) { changeSource(e) {
this.sourceIndex = e.detail.value this.sourceIndex = e.detail.value
this.source = this.sourceList[e.detail.value] this.source = this.sourceList[e.detail.value]
@ -298,7 +298,7 @@
this.followIndex = e.detail.value this.followIndex = e.detail.value
this.follow = this.followList[e.detail.value] this.follow = this.followList[e.detail.value]
}, },
// //
changeCreatetime(e) { changeCreatetime(e) {
this.createtime = e.detail.value this.createtime = e.detail.value
}, },

View File

@ -1,11 +1,11 @@
<template> <template>
<view> <view>
<uni-popup ref="popup" type="bottom" background-color="#fff" @touchmove.stop.prevent> <uni-popup ref="popup" type="bottom" background-color="#fff" @touchmove.stop.prevent>
<view class="popup_title">选择客户</view> <view class="popup_title">选择门店</view>
<view class="searbox"> <view class="searbox">
<image :src="BASE_IMG_URL+'ss.png'" class="searimg" mode="scaleToFill"></image> <image :src="BASE_IMG_URL+'ss.png'" class="searimg" mode="scaleToFill"></image>
<input @input="searchName" type="text" placeholder-style="color:#999;" <input @input="searchName" type="text" placeholder-style="color:#999;"
:class="keyword ? 'fontactive' : ''" v-model="keyword" placeholder="客户名称" class="li_box" /> :class="keyword ? 'fontactive' : ''" v-model="keyword" placeholder="门店名称" class="li_box" />
</view> </view>
<scroll-view scroll-y class="scrollbox" @scrolltolower="loadMoredata" lower-threshold="30"> <scroll-view scroll-y class="scrollbox" @scrolltolower="loadMoredata" lower-threshold="30">
<view class="liwarp" v-for="(item,index) in customerlist" :key="index" @click="selectItem(item,index)"> <view class="liwarp" v-for="(item,index) in customerlist" :key="index" @click="selectItem(item,index)">

View File

@ -40,7 +40,7 @@
pagePath: "/pagesA/crm/customerManagement/customerManagement", pagePath: "/pagesA/crm/customerManagement/customerManagement",
iconPath: BASE_IMG_URL+"tab2.png", iconPath: BASE_IMG_URL+"tab2.png",
selectedIconPath: BASE_IMG_URL+"tab2_a.png", selectedIconPath: BASE_IMG_URL+"tab2_a.png",
text: "客户", text: "门店",
isTip:true, isTip:true,
num:0 num:0
}, },

View File

@ -429,7 +429,7 @@
{ {
"path": "crm/contract/contract", "path": "crm/contract/contract",
"style": { "style": {
"navigationBarTitleText": "新增合同", "navigationBarTitleText": "新增采购",
"navigationBarBackgroundColor": "#008EFF" "navigationBarBackgroundColor": "#008EFF"
} }
}, },
@ -454,7 +454,7 @@
{ {
"path": "crm/customerManagement/customerManagement", "path": "crm/customerManagement/customerManagement",
"style": { "style": {
"navigationBarTitleText": "我的客户", "navigationBarTitleText": "我的门店",
"navigationBarBackgroundColor": "#008EFF", "navigationBarBackgroundColor": "#008EFF",
"app-plus": { "app-plus": {
"bounce": "none" // "bounce": "none" //
@ -909,7 +909,7 @@
{ {
"path": "contract/contractDetail", "path": "contract/contractDetail",
"style": { "style": {
"navigationBarTitleText": "合同详情", "navigationBarTitleText": "采购详情",
"navigationBarBackgroundColor": "#008EFF" "navigationBarBackgroundColor": "#008EFF"
} }
}, },

View File

@ -4,6 +4,7 @@
<view class="tabli" :class="typeIndex == 0 ? 'tabliactive' : ''" @click="changeFirTab(0)">全部</view> <view class="tabli" :class="typeIndex == 0 ? 'tabliactive' : ''" @click="changeFirTab(0)">全部</view>
<view class="tabli" :class="typeIndex == 1 ? 'tabliactive' : ''" @click="changeFirTab(1)">我创建的</view> <view class="tabli" :class="typeIndex == 1 ? 'tabliactive' : ''" @click="changeFirTab(1)">我创建的</view>
<view class="tabli" :class="typeIndex == 2 ? 'tabliactive' : ''" @click="changeFirTab(2)">下属创建的</view> <view class="tabli" :class="typeIndex == 2 ? 'tabliactive' : ''" @click="changeFirTab(2)">下属创建的</view>
<view class="tabli" :class="typeIndex == 3 ? 'tabliactive' : ''" @click="changeFirTab(3)">抄送给我的</view>
</view> </view>
<view class="select_warp"> <view class="select_warp">
@ -41,7 +42,7 @@
</view> </view>
</view> </view>
<view class="fir_li"> <view class="fir_li">
<view class="li_label">合同状态</view> <view class="li_label">采购状态</view>
<picker @change="changeTab" :value="status" :range="statusList"> <picker @change="changeTab" :value="status" :range="statusList">
<view class="li_box" > <view class="li_box" >
<view class="form_right" style="text-align: center;"> <view class="form_right" style="text-align: center;">
@ -84,9 +85,9 @@
</view> </view>
<view class="lxr_con_list" v-for="(item,index) in contract_list" :key="index" <view class="lxr_con_list" v-for="(item,index) in contract_list" :key="index"
@click="toContractDetail(item.id)"> @click="toContractDetail(item.id)">
<view class="name">{{item.name?item.name:'--'}}</view> <view class="name">{{item.owner_staff?item.owner_staff.name:'--'}}</view>
<view class="info">关联客户{{item.customer?item.customer.name:'--'}}</view> <view class="info">门店名称{{item.customer?item.customer.name:'--'}}</view>
<view class="info">合同编号{{item.num}}</view> <view class="info">采购编号{{item.num}}</view>
<view class="info">已回款&yen;{{item.receivables.repayment_money}}</view> <view class="info">已回款&yen;{{item.receivables.repayment_money}}</view>
<view class="info">待回款&yen;{{item.receivables.be_money}}</view> <view class="info">待回款&yen;{{item.receivables.be_money}}</view>
<view class="proce_li"> <view class="proce_li">
@ -102,7 +103,7 @@
</view> </view>
<view class="pro_li_right">&yen;{{item.money}}</view> <view class="pro_li_right">&yen;{{item.money}}</view>
</view> </view>
<view class="info">签约时间{{item.order_date}}</view> <!-- <view class="info">签约时间{{item.order_date}}</view> -->
<view class="con_status" v-if="item.check_status == 0"> <view class="con_status" v-if="item.check_status == 0">
<span>待审核</span> <span>待审核</span>
</view> </view>
@ -125,7 +126,7 @@
<uni-popup ref="popup" type="bottom" background-color="#fff" @touchmove.stop.prevent> <uni-popup ref="popup" type="bottom" background-color="#fff" @touchmove.stop.prevent>
<view class="botwarp"> <view class="botwarp">
<view class="wa_li"> <view class="wa_li">
<view class="wa_label">合同总金额</view> <view class="wa_label">采购总金额</view>
<view class="wa_money"> <text>{{moneyInfo.allmoney?moneyInfo.allmoney:'0'}}</text> </view> <view class="wa_money"> <text>{{moneyInfo.allmoney?moneyInfo.allmoney:'0'}}</text> </view>
</view> </view>
<view class="wa_li"> <view class="wa_li">
@ -339,7 +340,7 @@
this.$refs.screenpopup.close() this.$refs.screenpopup.close()
this.init() this.init()
}, },
// //
toContractDetail(id) { toContractDetail(id) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/contract/contractDetail?id=' + id url: '/pagesB/contract/contractDetail?id=' + id

View File

@ -4,7 +4,7 @@
只展示<span style="color:#f00">必填</span>字段<switch :checked="isRequired" color="#008EFF" @change="changeRequired" /> 只展示<span style="color:#f00">必填</span>字段<switch :checked="isRequired" color="#008EFF" @change="changeRequired" />
</view> </view>
<view class="fllow_form"> <view class="fllow_form">
<view><text>*</text>名称</view> <view><text>*</text>店名称</view>
<view class="form_right" @click="changeCus"> <view class="form_right" @click="changeCus">
<view :class="customerName ? 'valueActive' : '' ">{{customerName ? customerName : '点击选择'}}</view> <view :class="customerName ? 'valueActive' : '' ">{{customerName ? customerName : '点击选择'}}</view>
<view class="iconfont icon-arrows_right"></view> <view class="iconfont icon-arrows_right"></view>
@ -18,21 +18,21 @@
</view> </view>
</view> --> </view> -->
<view class="fllow_form"> <view class="fllow_form">
<view><text>*</text>客户签约人</view> <view><text>*</text>门店签约人</view>
<view class="form_right" @click="changeContact"> <view class="form_right" @click="changeContact">
<view :class="contactName ? 'valueActive' : '' "> <view :class="contactName ? 'valueActive' : '' ">
{{contactName ? contactName : '点击选择'}}</view> {{contactName ? contactName : '点击选择'}}</view>
<view class="iconfont icon-arrows_right"></view> <view class="iconfont icon-arrows_right"></view>
</view> </view>
</view> </view>
<view class="fllow_form"> <!-- <view class="fllow_form">
<view><text>*</text>公司签约人</view> <view><text>*</text>公司签约人</view>
<view class="form_right" @click="changeStaff"> <view class="form_right" @click="changeStaff">
<view :class="staffName ? 'valueActive' : '' "> <view :class="staffName ? 'valueActive' : '' ">
{{staffName ? staffName : '点击选择'}}</view> {{staffName ? staffName : '点击选择'}}</view>
<view class="iconfont icon-arrows_right"></view> <view class="iconfont icon-arrows_right"></view>
</view> </view>
</view> </view> -->
<form-item v-for="(item,index) in listForm" :key="index" :isNotRequired="isRequired" :objInfo="item" @changeData="changeOtherData"> <form-item v-for="(item,index) in listForm" :key="index" :isNotRequired="isRequired" :objInfo="item" @changeData="changeOtherData">
</form-item> </form-item>
<!-- 添加产品 --> <!-- 添加产品 -->
@ -101,7 +101,7 @@
<!-- 固定审批 --> <!-- 固定审批 -->
<fixed-approval v-if="approvalPro.status == 1" :list="approvalPro.stepList"></fixed-approval> <fixed-approval v-if="approvalPro.status == 1" :list="approvalPro.stepList"></fixed-approval>
<!-- 审核信息 --> <!-- 审核信息 -->
<examine-template v-if="approvalPro.status == 0" :remindPeople="remindPeople" @delExamine="delRemind"></examine-template> <!-- <examine-template v-if="approvalPro.status == 0" :remindPeople="remindPeople" @delExamine="delRemind"></examine-template> -->
<view id="btn" class="btn_g bg-blue button-hover round" @click="$noMultipleClicks(toSave)"> <view id="btn" class="btn_g bg-blue button-hover round" @click="$noMultipleClicks(toSave)">
保存 保存
</view> </view>
@ -530,25 +530,25 @@
}) })
return return
} }
if (!order_staff_id) { // if (!order_staff_id) {
uni.showToast({ // uni.showToast({
title: '请选择公司签约人', // title: '',
icon: 'none' // icon: 'none'
}) // })
return // return
} // }
let arrlist = [] let arrlist = []
let params = this.checkCommonForm(this.listForm) let params = this.checkCommonForm(this.listForm)
if(!params){ if(!params){
return return
} }
if (remindPeople.length == 0 && this.approvalPro.status == 0) { // if (remindPeople.length == 0 && this.approvalPro.status == 0) {
uni.showToast({ // uni.showToast({
title: '请选择审核人', // title: '',
icon: 'none' // icon: 'none'
}) // })
return // return
} // }
let arr = [] let arr = []
remindPeople.forEach(ele => { remindPeople.forEach(ele => {
arr.push(ele.id) arr.push(ele.id)
@ -599,7 +599,7 @@
console.log(params,'=====') console.log(params,'=====')
netCreateContract(params).then(res => { netCreateContract(params).then(res => {
uni.showToast({ uni.showToast({
title: res.msg, title: '添加采购成功',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })

View File

@ -4,7 +4,7 @@
只展示<span style="color:#f00">必填</span>字段<switch :checked="isRequired" color="#008EFF" @change="changeRequired" /> 只展示<span style="color:#f00">必填</span>字段<switch :checked="isRequired" color="#008EFF" @change="changeRequired" />
</view> </view>
<view class="fllow_form"> <view class="fllow_form">
<input type="text" class="nameinput" :class="name ? 'valueActive' : '' " v-model="name" placeholder="输入客户名称" /> <input type="text" class="nameinput" :class="name ? 'valueActive' : '' " v-model="name" placeholder="输入门店名称" />
<view class="form_right theme"> <view class="form_right theme">
<image style="width: 40rpx;height: 40rpx; <image style="width: 40rpx;height: 40rpx;
margin: 0 20rpx 0 30rpx;" :src="BASE_IMG_URL+'chachong.png'" mode="scaleToFill"></image> margin: 0 20rpx 0 30rpx;" :src="BASE_IMG_URL+'chachong.png'" mode="scaleToFill"></image>
@ -76,7 +76,7 @@
@confirm="confirm" @confirm="confirm"
></u-select> ></u-select>
<!-- 选择客户 --> <!-- 选择门店 -->
<select-customer ref="customerChild" @getCustomerinfo="sureSelect"></select-customer> <select-customer ref="customerChild" @getCustomerinfo="sureSelect"></select-customer>
</view> </view>
</template> </template>
@ -122,11 +122,11 @@
return { return {
BASE_IMG_URL: BASE_IMG_URL, BASE_IMG_URL: BASE_IMG_URL,
noClick: true, // noClick: true, //
name: '', // name: '', //
subname: '', // subname: '', //
industry: '', // industry: '', //
level: '', // level: '', //
source: '', // source: '', //
follow: '', // follow: '', //
address_dingwei: '', // address_dingwei: '', //
address_detail: '', // address_detail: '', //
@ -144,7 +144,7 @@
remindPeople: [], // remindPeople: [], //
remindType:'customer', remindType:'customer',
sourceIndex: null, sourceIndex: null,
listForm: [], // listForm: [], //
isAddContact:false, // isAddContact:false, //
contactsForm:[], // contactsForm:[], //
list: [], list: [],
@ -206,7 +206,7 @@
this.name = res.data.name this.name = res.data.name
this.address_detail = res.data.address_detail this.address_detail = res.data.address_detail
// //
this.listForm.forEach(item=>{ this.listForm.forEach(item=>{
item.value = res.data[item.id] item.value = res.data[item.id]
}) })
@ -302,7 +302,7 @@
let name = this.name let name = this.name
if (!name) { if (!name) {
uni.showToast({ uni.showToast({
title: '请填写客户姓名', title: '请填写门店姓名',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
@ -356,7 +356,7 @@
// //
subSave(type) { subSave(type) {
let { let {
name, // name, //
location, // location, //
address_dingwei, address_dingwei,
address_detail, // address_detail, //
@ -366,7 +366,7 @@
} = this } = this
if (!name) { if (!name) {
uni.showToast({ uni.showToast({
title: '请填写客户名称', title: '请填写门店名称',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })

View File

@ -16,9 +16,9 @@
</selectTemp> </selectTemp>
<view class="tab_list"> <view class="tab_list">
<view class="tabli" :class="de_type == 0 ? 'tabliactive' : ''" @click="changeFirTab(0)">全部</view> <view class="tabli" :class="de_type == 0 ? 'tabliactive' : ''" @click="changeFirTab(0)">全部</view>
<view class="tabli" :class="de_type == 1 ? 'tabliactive' : ''" @click="changeFirTab(1)">我的客户</view> <view class="tabli" :class="de_type == 1 ? 'tabliactive' : ''" @click="changeFirTab(1)">我的门店</view>
<view class="tabli" :class="de_type == 2 ? 'tabliactive' : ''" @click="changeFirTab(2)">下属的客户</view> <view class="tabli" :class="de_type == 2 ? 'tabliactive' : ''" @click="changeFirTab(2)">下属的门店</view>
<view class="tabli" :class="de_type == 3 ? 'tabliactive' : ''" @click="changeFirTab(3)">我参与的客户</view> <view class="tabli" :class="de_type == 3 ? 'tabliactive' : ''" @click="changeFirTab(3)">我参与的门店</view>
</view> </view>
<!-- 客户信息 --> <!-- 客户信息 -->

View File

@ -15,7 +15,7 @@
<form-item v-for="(item,index) in listForm" :key="index" :isNotRequired="isRequired" :objInfo="item" @changeData="changeBaseData"> <form-item v-for="(item,index) in listForm" :key="index" :isNotRequired="isRequired" :objInfo="item" @changeData="changeBaseData">
</form-item> </form-item>
<view class="fllow_form"> <view class="fllow_form">
<view><text>*</text>关联客户 </view> <view><text>*</text>关联门店 </view>
<view class="form_right" @click="changeKehu"> <view class="form_right" @click="changeKehu">
<view :class="relationName ? 'valueActive' : '' ">{{relationName ? relationName : '点击选择'}}</view> <view :class="relationName ? 'valueActive' : '' ">{{relationName ? relationName : '点击选择'}}</view>
<view class="iconfont icon-arrows_right"></view> <view class="iconfont icon-arrows_right"></view>

View File

@ -2,15 +2,15 @@
<view class="info_detail"> <view class="info_detail">
<view class="info_item"> <view class="info_item">
<view class="basic_main"> <view class="basic_main">
<view>客户名称</view> <view>门店名称</view>
<view>{{info.customer ? info.customer.name : ''}}</view> <view>{{info.customer ? info.customer.name : ''}}</view>
</view> </view>
<view class="basic_main"> <!-- <view class="basic_main">
<view>关联商机</view> <view>关联商机</view>
<view>{{info.business ? info.business.name :''}}</view> <view>{{info.business ? info.business.name :''}}</view>
</view> </view> -->
<view class="basic_main"> <view class="basic_main">
<view>客户签约人</view> <view>门店签约人</view>
<view>{{info.contacts ? info.contacts.name : ''}}</view> <view>{{info.contacts ? info.contacts.name : ''}}</view>
</view> </view>
<view class="basic_main"> <view class="basic_main">

View File

@ -22,7 +22,7 @@
<view class="name">{{info && info.name}}</view> <view class="name">{{info && info.name}}</view>
</view> </view>
<view class="content" v-if="info"> <view class="content" v-if="info">
合同编号{{info.num ? info.num : ''}} 采购编号{{info.num ? info.num : ''}}
</view> </view>
<view class="li_text"> <view class="li_text">
<view class="protext"> <view class="protext">
@ -40,7 +40,7 @@
</view> </view>
<view class="li_text"> <view class="li_text">
<view class="protext" v-if="info"> <view class="protext" v-if="info">
合同金额&yen;{{info.money ? info.money : ''}} 采购金额&yen;{{info.money ? info.money : ''}}
</view> </view>
</view> </view>
<view class="content" v-if="info"> <view class="content" v-if="info">
@ -49,9 +49,9 @@
<view class="content" v-if="info"> <view class="content" v-if="info">
待回款&yen; {{info.receivables ? info.receivables.be_money : ''}} 待回款&yen; {{info.receivables ? info.receivables.be_money : ''}}
</view> </view>
<view class="content" v-if="info"> <!-- <view class="content" v-if="info">
签约时间{{info.order_date ? info.order_date : ''}} 签约时间{{info.order_date ? info.order_date : ''}}
</view> </view> -->
<view class="roll"> <view class="roll">
<scroll-view scroll-x="true" class="scrollView" lower-threshold="50" enable-flex> <scroll-view scroll-x="true" class="scrollView" lower-threshold="50" enable-flex>
@ -111,7 +111,7 @@
</view> </view>
<view style="height:100rpx;"></view> <view style="height:100rpx;"></view>
<!-- 底部导航栏 --> <!-- 底部导航栏 -->
<view class="bottom_nav"> <!-- <view class="bottom_nav">
<view class="bottom_item" style="width: 300rpx; margin: 0 auto;" @click="moreClick"> <view class="bottom_item" style="width: 300rpx; margin: 0 auto;" @click="moreClick">
<image style="width: 48rpx;height: 48rpx;float: left;" :src="BASE_IMG_URL+'morebtn.png'" mode="scaleToFill"></image> <image style="width: 48rpx;height: 48rpx;float: left;" :src="BASE_IMG_URL+'morebtn.png'" mode="scaleToFill"></image>
<view style="font-size: 34rpx;">更多操作</view> <view style="font-size: 34rpx;">更多操作</view>
@ -132,11 +132,11 @@
<view style="padding: 5rpx 12rpx;border: 1px solid #ededed;">撤回审批</view> <view style="padding: 5rpx 12rpx;border: 1px solid #ededed;">撤回审批</view>
</view> </view>
<view class="bottom_item" v-if="info && (info.check_status == 4 || info.check_status == 3)" @click="toEditcontract(info.id)"> <view class="bottom_item" v-if="info && (info.check_status == 4 || info.check_status == 3)" @click="toEditcontract(info.id)">
<view style="padding: 5rpx 12rpx;border: 1px solid #ededed;">编辑合同</view> <view style="padding: 5rpx 12rpx;border: 1px solid #ededed;">编辑采购</view>
</view> </view>
</view> </view>
</u-popup> </u-popup>
</view> </view> -->
</view> </view>
</template> </template>
@ -164,7 +164,7 @@
}, },
data() { data() {
return { return {
id: '', //id id: '', //id
contract_id:'', contract_id:'',
relation_id:'', relation_id:'',
relation_type: 3, relation_type: 3,
@ -308,7 +308,7 @@
// //
getOperalist() { getOperalist() {
let params = { let params = {
relation_type: 3, //1 2 3 relation_type: 3, //1 2 3
relation_id: this.id relation_id: this.id
} }
netOperationList(params).then(res => { netOperationList(params).then(res => {
@ -333,13 +333,13 @@
url: '/pagesB/contract/operation?id='+id +'&relation_type=' + this.type url: '/pagesB/contract/operation?id='+id +'&relation_type=' + this.type
}) })
}, },
// //
addContract(id) { addContract(id) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesA/crm/contract/contract?id=' + id url: '/pagesA/crm/contract/contract?id=' + id
}) })
}, },
// //
getInfo() { getInfo() {
netContractDetail({ netContractDetail({
id: this.id id: this.id
@ -365,7 +365,7 @@
url: '/pagesB/contract/addPayment?id=' + id+'&kehuid='+this.info.customer.id url: '/pagesB/contract/addPayment?id=' + id+'&kehuid='+this.info.customer.id
}) })
}, },
// //
toEditcontract(id) { toEditcontract(id) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/contract/editContract?id=' + id + '&kehuid=' + this.info.customer.id url: '/pagesB/contract/editContract?id=' + id + '&kehuid=' + this.info.customer.id