| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- const _Http = getApp().globalData.http
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- rowData: Object
- },
- options: {
- addGlobalClass:true
- },
- /**
- * 组件的初始数据
- */
- data: {
- isdesc:1,
- showWhere:'所有日期',
- followList:[],
- timeRangeShow:false,
- whereType: {
- value: "start",
- list: {
- "start": "",
- "end": ""
- }
- },
- where:{}
- },
- ready () {
- setTimeout(() =>{
- this.getFollowDetail()
- },1000)
- },
- /**
- * 组件的方法列表
- */
- methods: {
- getFollowDetail () {
- _Http.basic({
- "classname": "webmanage.saletool.orderclue.publicclue.PublicClue",
- "method": "getFollowList",
- "content": {
- "nocache":true,
- "sat_orderclueid": this.properties.rowData.sat_orderclueid,
- "isdesc": this.data.isdesc,
- "where":this.data.where
- }
- }).then(res => {
- console.log(res,'跟进');
- this.setData({
- followList:res.data
- })
- })
- },
- openSelectDate () {
- },
- changeIsdesc () {
- this.setData({
- isdesc: this.data.isdesc == 1 ? 0 : 1
- });
- this.getFollowDetail()
- },
- /* 打开选择时间 */
- openSelectDate() {
- this.setData({
- timeRangeShow: true
- })
- },
- /* 确定时间范围 */
- determineScope() {
- const {
- list
- } = this.data.whereType;
- this.setData({
- "where": list,
- showWhere: list.start + '~' + list.end,
- timeRangeShow: false
- });
- this.getFollowDetail();
- },
- /* 得到选择时间 */
- getDate({
- detail
- }) {
- let obj = this.data.whereType;
- obj.list[obj.value] = detail;
- this.setData({
- whereType: obj
- })
- },
- /* 选择日期类型 */
- selectDateType(e) {
- const {
- name
- } = e.target.dataset;
- this.setData({
- "whereType.value": name
- })
- },
- /* 查看所有日期 */
- toSeeAll() {
- this.setData({
- showWhere: "所有日期"
- })
- this.timeRangeClose();
- this.getFollowDetail();
- },
- /* 关闭时间范围选择 */
- timeRangeClose() {
- this.setData({
- timeRangeShow: false,
- "where": {
- "start": "",
- "end": ""
- }
- })
- },
- }
- })
|