提交 47d6c165 authored 作者: 黄旭新's avatar 黄旭新

xin

......@@ -152,29 +152,29 @@
}).then(res => {
console.log('获取合同信息')
console.log(res.data)
// if (res.code == 200) {
// that.contractA = res.data.contractA
// that.companyValue = res.data.ename
// // console.log(that.companys)
// for (let i = 0; i < that.companys.length; i++) {
// if (that.companys[i].eName == that.companyValue) {
// console.log(that.companys[i].userId)
// that.userId = that.companys[i].userId
// }
// }
// console.log(that.userId)
// that.electricity = res.data.electricity
// that.contractStartTime = res.data.contractStartTime.replace(new RegExp('-', 'g'), '/')
// that.contractEndTime = res.data.contractEndTime.replace(new RegExp('-', 'g'), '/')
// that.contractType = res.data.contractType
// if (that.contractType == 1) {
// that.typeValue = '固定价差'
// that.fixedSpread = res.data.fixedSpread
// } else {
// that.typeValue = '月竞分成'
// that.shareRatio = res.data.shareRatio
// }
// }
if (res.code == 200) {
that.contractA = res.data.contractA
that.companyValue = res.data.ename
// console.log(that.companys)
for (let i = 0; i < that.companys.length; i++) {
if (that.companys[i].eName == that.companyValue) {
console.log(that.companys[i].userId)
that.userId = that.companys[i].userId
}
}
console.log(that.userId)
that.electricity = res.data.electricity
that.contractStartTime = res.data.contractStartTime.replace(new RegExp('-', 'g'), '/')
that.contractEndTime = res.data.contractEndTime.replace(new RegExp('-', 'g'), '/')
that.contractType = res.data.contractType
if (that.contractType == 1) {
that.typeValue = '固定价差'
that.fixedSpread = res.data.fixedSpread
} else {
that.typeValue = '月竞分成'
that.shareRatio = res.data.shareRatio
}
}
})
},
//选择合同类型
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论