cuijian
2023-11-03 5eb201663c723d215014106c69b093a304e932b6
问题修改
已修改3个文件
41 ■■■■■ 文件已修改
src/views/eam/OperationCertificateApplyList.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/operationCertificateApply/OperationCertificateApplyModal.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/OperationCertificateApplyList.vue
@@ -123,8 +123,20 @@
            type="vertical"
          />
          <a @click="handleEdit(record)" v-if="record.auditStatus == 'created'">编辑</a>
          <a @click="handleCommit(record,'approved')" v-if="record.auditStatus == 'submitted'">审批</a>
          <a @click="handleCommit(record,'audited')" v-if="record.auditStatus == 'approved'">审核</a>
          <a-popconfirm
            v-if="record.auditStatus == 'submitted'"
            title="确认通过审批吗?"
            @confirm="() =>handleCommit(record, 'approved')"
          >
            <a>审批</a>
          </a-popconfirm>
          <a-popconfirm
            v-if="record.auditStatus == 'approved'"
            title="确认通过审核吗?"
            @confirm="() =>handleCommit(record, 'audited')"
          >
            <a>审核</a>
          </a-popconfirm>
          <a-divider type="vertical" v-if="record.auditStatus == 'created' || record.auditStatus == 'submitted' || record.auditStatus == 'approved'"/>
          <a-dropdown>
            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
@@ -88,7 +88,6 @@
  },
  data() {
    return {
      isAchievement:false,
      labelCol: {
        xs: { span: 24 },
        sm: { span: 5 }
@@ -232,7 +231,7 @@
      default: false,
      required: false
    },
    isAchievement: {
    achievement: {
      type: Boolean,
      default: false,
      required: false
@@ -243,7 +242,7 @@
      return this.disabled
    },
    achievementDisabled() {
      return this.isAchievement
      return this.achievement
    }
  },
  created() {
@@ -309,13 +308,15 @@
      console.log("formData===>",formData);
      httpAction(url, formData, method).then((res) => {
        if (res.success) {
          httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => {
            if (res.success) {
              this.$message.success(res.message)
            }else {
              this.$message.warning(res.message)
            }
          })
          if(this.achievementDisabled){
            httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => {
              if (res.success) {
                this.$message.success(res.message)
              }else {
                this.$message.warning(res.message)
              }
            })
          }
          this.$message.success(res.message)
          this.$emit('ok')
          this.close()
src/views/eam/modules/operationCertificateApply/OperationCertificateApplyModal.vue
@@ -8,7 +8,7 @@
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel">
    <operation-certificate-apply-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" isAchievement="isAchievement"/>
    <operation-certificate-apply-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" :achievement="isAchievement"/>
  </j-modal>
</template>
@@ -27,7 +27,7 @@
        width:800,
        visible: false,
        disableSubmit: false,
        isAchievement:false
        isAchievement: false
      }
    },
    methods:{