yxh
2023-12-14 916735aca6816732bc43a186dd9d7ccf5e5a1989
src/views/project/fund/applyDetail/index.vue
@@ -9,11 +9,12 @@
            <el-form-item label="申请日期" prop="createTime">
              <el-date-picker
                clearable
                :disabled="true"
                style="width: 100%"
                v-model="form.createTime"
                type="date"
                value-format="yyyy-MM-dd HH:mm:ss"
                placeholder="申请日期"
                placeholder="日   期"
              >
              </el-date-picker>
            </el-form-item>
@@ -721,11 +722,11 @@
          style="margin-top: 25px; margin-bottom: 5px"
          v-if="operationType == 'check' && userprofile.nickName == '陈慕华'"
        >
          <el-col :span="7">
          <el-col :span="20">
            <el-form-item label="申请材料状态" prop="infoid">
              <el-radio-group v-model="form.checkstatus" align="left">
                <el-radio :label="1">待申请材料</el-radio>
                <el-radio :label="2">申请材料通过等待材料</el-radio>
                <el-radio :label="2">审核通过等待邮寄纸质材料</el-radio>
                <el-radio :label="3">已收到报销材料</el-radio>
              </el-radio-group>
            </el-form-item>
@@ -735,7 +736,7 @@
          style="margin-top: 5px; margin-bottom: 5px"
          v-if="operationType == 'check'"
        >
          <el-col :span="7">
          <el-col :span="20">
            <el-form-item label="审核结果" align="left">
              <el-radio-group v-model="checkObj.flowlevelone" align="left">
                <el-radio label="1">通过</el-radio>
@@ -762,7 +763,7 @@
              operationType == 'update' ||
              ismanager == true
          "
          >提交保存</el-button
          >保存</el-button
        >
        <el-button
          type="success"
@@ -1604,9 +1605,9 @@
      // 表单校验
      rules: {
        createTime: [
          { required: true, message: "请输入填报日期", trigger: "blur" }
        ],
        // createTime: [
        //   { required: true, message: "请输入填报日期", trigger: "blur" }
        // ],
        reason: [
          { required: true, message: "请输入出差事由", trigger: "blur" }
        ],
@@ -2374,21 +2375,26 @@
    // },
    checksubmit() {
      console.log(this.checkObj.flowlevelone);
      if (
        this.form.checkstatus != 3 &&
        this.userprofile.nickName == "陈慕华" &&
        this.checkObj.flowlevelone == 1
      ) {
        this.$modal.msgError("请确认报销的纸质材料已经收到!");
        return;
      } else if (
        (this.form.applytype == "1" || this.form.applytype == "2") &&
        this.form.fundtaxtime == null
      ) {
        this.$modal.msgError(
          "提交专家费用申请单、伦理专家申请费用申请单审核,需要先完成个税计算!"
        );
        return;
      if(this.userprofile.nickName == "陈慕华"){
        //检查是否收到纸质材料
        if ( this.form.checkstatus != 3 && this.checkObj.flowlevelone == 1  ) {
          this.$modal.msgError("请确认报销的纸质材料已经收到!");
          return;
        }
        //检查个税计算
        // if ( (this.form.applytype == "1" || this.form.applytype == "2") && this.form.fundtaxtime == null ) {
        //   this.$modal.msgError(
        //     "提交专家费用申请单、伦理专家申请费用申请单审核,需要先完成个税计算!"
        //   );
        //   return;
        // }
         if ( (this.form.applytype == "1") && this.form.fundtaxtime == null ) {
          this.$modal.msgError(
            "提交专家费用申请单审核,需要先完成个税计算!"
          );
          return;
        }
      }
      this.Savenow();