var businessType = require('../../../../public/business-type.js') var key = require('../../../../constant/key.js') class PurchaseOrder { constructor() { this.city = '' this.cityName = '' this.accountType = 1//户籍信息 this.customerData = { 'user_name': '', 'id_card': '', 'nation': '', 'gender': '', 'phone': '', 'sbuId': '' }//参保人(购买人)信息 this.imageDict = { 'first': '', 'second': '' }//身份证照图片 this.beginTime = ''//开始时间 this.timeInterval = 1//时间间隔 this.endTime = ''//结束时间 this.isNewCustomer = true this.purchaseType = businessType.PurchaseType.socialInsurance//业务逻辑 this.pack = false//是否打包购买 this.SSCard = 0//是否购买社保卡 this.socialInsurance = 0//社保金额 this.accumulationFund = ''//公积金金额 this.wageBase = 0//工资基数 this.id = 0//社保数据id this.payFor = ''//支付业务类型 this.isSupplementaryPay = false//是否补缴 this.isFirstBuyShebao = false//是否本城市首次买社保 this.isFirstBuyFund = false//是否本城市首次买公积金 this.purchaseFundWay = businessType.PurchaseFundWay.sum//公积金缴费方式 this.isNeedSalary = false//是否需要流水 this.salary = 0;//流水 this.isInOffice = false;//是否在职 } copy() { var newOrder = new PurchaseOrder() for (var key in this) { newOrder[key] = this[key] } return newOrder } setCity() { var l try { if (this.isSupplementaryPay) { l = wx.getStorageSync(key.StorageKey.lastCity_s) } else { l = wx.getStorageSync(key.StorageKey.lastCity_n) } } catch (e) { } if (l) { this.city = l.id this.cityName = l.name } else { this.city = '1001' this.cityName = '广州' } } } export default PurchaseOrder