[update] 修改企标流程点同意的时候没填备注的话带入‘同意’
This commit is contained in:
+3
@@ -529,6 +529,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
+3
@@ -431,6 +431,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
const data = this.$refs.baseInfoFormRef.getDataValidate()
|
||||
if (!err && data) {
|
||||
|
||||
@@ -401,6 +401,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
@@ -414,6 +414,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
:can-drag="true"
|
||||
:scroll="{x: '100%'}"
|
||||
ref="table"
|
||||
:rowKey="(index) => {return index}"
|
||||
:rowKey="(record, index) => {return index}"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="false"
|
||||
|
||||
@@ -914,6 +914,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
const param = {} // 需要传给后端的数据
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (this.formInline.projectType === this.ProjectType.RESPONSIBLE_DEPT_CHANGE.value && this.currentNode === 6) {
|
||||
|
||||
@@ -472,6 +472,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
@@ -535,6 +535,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
@@ -401,6 +401,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
@@ -401,6 +401,9 @@ export default {
|
||||
handleAgree () {
|
||||
if (this.loading) return
|
||||
this.validatorRules.commitText.rules[0].required = false
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.loading = true
|
||||
|
||||
Reference in New Issue
Block a user