UpgradeItem.js 1.28 KB
// packageEquity/pages/clueList/components/UpgradeItem/UpgradeItem.js
import itemMixin from '../itemMixins'
import { checkDailyReport } from "~/store/ModalToQueueControl";
Component({
  behaviors: [itemMixin],
  /**
   * 组件的属性列表
   */
  properties: {
    data: Object
  },

  /**
   * 组件的初始数据
   */
  data: {
    sceneTypeStatusMap: [{
      label: '权益服务',
      key: '0'
    },
    {
      label: '精品加装',
      key: '1'
    },
    ],
    orderObj: [{
      label: '升级价格',
      key: 'totalPrice',
      unit: '¥'
    },
    {
      label: '支付时间',
      key: 'successDate'
    }
    ],
    status: {
      1: '待跟进',
      2: '战败',
      3: '待支付',
      4: '已支付',
      6: '已评价',
      9: '已撤销',
      10: '已关闭',
      11: '已失效',
      12: '已退款',
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    async jump() {
      // 校验是否填写昨日日报
      let staffCheck = await checkDailyReport(true);
      if (staffCheck) return false;;
      const {
        data
      } = this.data
      let params = {
        isClue: true
      }
      if (data.customerInfo) params.customerInfo = data.customerInfo
      wx.$router.go('createOrderCarQuotationSimple', params)
    }
  }
})