11
WXL
2023-10-09 13b518856345591ddf9ea7271aba77f6423a1bac
src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -917,6 +917,25 @@
          v-if="operationType == 'check'"
        >
          <el-col :span="7">
            <el-form-item label="预审状态" prop="infoid">
              <el-radio-group
                v-model="form.checkstatus"
                align="left"
                :disabled="userprofile.nickName != '陈慕华'"
              >
                <el-radio label="1">待预审</el-radio>
                <el-radio label="2">预审通过等待材料</el-radio>
                <el-radio label="3">已收到报销材料</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row
          style="margin-top: 25px; margin-bottom: 5px"
          v-if="operationType == 'check'"
        >
          <el-col :span="7">
            <el-form-item label="审核结果" align="left">
              <el-radio-group v-model="checkObj.flowlevelone" align="left">
                <el-radio label="1">通过</el-radio>
@@ -937,13 +956,13 @@
        <el-button
          type="primary"
          @click="submitForm"
          v-if="operationType == 'edit'||beforehandType=='1'"
          v-if="operationType == 'edit' || beforehandType == '1'"
          >保 存</el-button
        >
        <el-button
          type="primary"
          @click="checksubmit"
          v-if="operationType == 'check'&& beforehandType!='1'"
          v-if="operationType == 'check' && beforehandType != '1'"
          >提 交</el-button
        >
        <!--<el-button @click="cancel">退 出</el-button>-->
@@ -1243,6 +1262,8 @@
      queryParamsPayee: {
        rbid: null
      },
      // 当前用户信息
      userprofile: {},
      // 表单参数
      form: {},
      reimbursementList: [],
@@ -1282,7 +1303,7 @@
        {
          id: 3,
          name: "已收到报销材料"
        },
        }
      ],
      baselist: [],
      donatorList: [],
@@ -1301,7 +1322,7 @@
      persontype: null,
      //到达地
      arriveAddr: null,
      beforehandType:null,
      beforehandType: null,
      headers: {
        Authorization: "Bearer " + getToken()
      },
@@ -1330,6 +1351,7 @@
    //获取登录者信息
    getUserProfile().then(response => {
      this.userprofile = response.data;
      this.defaultperson = response.data;
      this.standardlevel = response.data.standardlevel;
      console.log("this.defaultperson", this.defaultperson);
@@ -2136,6 +2158,10 @@
    //提交审核意见
    checksubmit() {
      if (this.form.checkstatus != 3 && this.userprofile.nickName == "陈慕华") {
        this.$modal.msgError("请确认收到材料后再提交审核!");
        return;
      }
      let checkfundobj = {
        flowconclusion: this.checkObj.flowlevelone,
        flowcontent: this.checkObj.flowconclusion,
@@ -2165,7 +2191,6 @@
    submitForm: debounce(function(data) {
      this.$refs["form"].validate(valid => {
        if (valid) {
          //票据文件处理
          const addnumber = this.rbPayees.reduce(
            (amount, item) => amount + Number(item.amount),
@@ -2187,7 +2212,7 @@
          const rbDetails = [...this.rbDetails];
          const rbPayees = [...this.rbPayees];
          if (this.form.id != null) {
            console.log(this.form);
            console.log(this.form);
            updateReimbursement(this.form);
            //   .then(res => {
            //保存明细