权限、统计接口、默认密码登录
This commit is contained in:
@@ -245,7 +245,7 @@
|
||||
<a-card :bordered="false" v-if="isSaved" class="associated-project">
|
||||
<div class="part-title">
|
||||
<div class="part-title-text">关联项目</div>
|
||||
<a-button type="link" @click="chooseProject">选择项目
|
||||
<a-button type="link" @click="chooseProject" v-has="'revenueContractModule:chooseProject'">选择项目
|
||||
<a-icon type="right"></a-icon>
|
||||
</a-button>
|
||||
</div>
|
||||
@@ -414,7 +414,7 @@ export default {
|
||||
departId: null, // 部门id普通项目列表查询
|
||||
projectType: null, //项目类型
|
||||
signedContactId: null, //签订联系人正式id,用于新增工作组项目回显
|
||||
newFormData:{} // 传入的数据
|
||||
newFormData: {} // 传入的数据
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -434,7 +434,7 @@ export default {
|
||||
this.$refs.installmentForm.initInstallmentList([])
|
||||
// 税率默认为6
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue({rate: 6})
|
||||
this.form.setFieldsValue({ rate: 6 })
|
||||
})
|
||||
this.rateNum = 6 / 100
|
||||
},
|
||||
@@ -447,7 +447,7 @@ export default {
|
||||
// 通过id获取合同信息
|
||||
getRevenueContractById(param).then(res => {
|
||||
// 这是会员跟会议要传的参数
|
||||
this.newFormData = Object.assign({},res.result)
|
||||
this.newFormData = Object.assign({}, res.result)
|
||||
let record
|
||||
record = res.result
|
||||
this.isSaved = true
|
||||
@@ -473,6 +473,8 @@ export default {
|
||||
// 获取应收金额和已收金额
|
||||
this.accountsReceivableNum = record.accountsReceivableAmount
|
||||
this.amountReceivedNum = record.amountReceived
|
||||
// 将pack值改为数字,解决控制台报错
|
||||
record.pack = Number(record.pack)
|
||||
this.model = Object.assign({}, record)
|
||||
this.temporaryModel = Object.assign({}, record)
|
||||
this.$nextTick(() => {
|
||||
@@ -609,7 +611,7 @@ export default {
|
||||
* @param e
|
||||
*/
|
||||
noTaxChange(e) {
|
||||
e.target.value = (e.target.value.replace(/[^0-9.]/g,'')).trim()
|
||||
e.target.value = (e.target.value.replace(/[^0-9.]/g, '')).trim()
|
||||
this.inputNoTaxAmount = Number(e.target.value)
|
||||
this.calculateContractAmount()
|
||||
},
|
||||
@@ -635,7 +637,7 @@ export default {
|
||||
}
|
||||
let contractNum = this.inputNoTaxAmount * (1 + this.rateNum)
|
||||
contractNum = contractNum.toFixed(2)
|
||||
this.form.setFieldsValue({contractAmount: contractNum})
|
||||
this.form.setFieldsValue({ contractAmount: contractNum })
|
||||
},
|
||||
/**
|
||||
* 应收金额输入
|
||||
@@ -797,9 +799,9 @@ export default {
|
||||
// 会议项目
|
||||
case 3:
|
||||
// 打包为是不能选择关联会议项目
|
||||
if(this.newFormData.pack === 1){
|
||||
if (this.newFormData.pack === 1) {
|
||||
this.$message.warn('打包不可选择会议项目')
|
||||
}else {
|
||||
} else {
|
||||
// 传入合同信息
|
||||
this.$refs.selectMeetingProjectModule.open(this.newFormData)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user