liuyg
2021-08-17 e3373040d1fab5346733824329e619222cabed1a
审批加入审批意见
3 files modified
91 ■■■■ changed files
src/api/permit/permit.js 2 ●●● patch | view | raw | blame | history
src/views/permit/permit.vue 44 ●●●● patch | view | raw | blame | history
src/views/record/record.vue 45 ●●●● patch | view | raw | blame | history
src/api/permit/permit.js
@@ -42,7 +42,7 @@
export const update = (row) => {
  return request({
    url: '/api/permit/submit',
    url: '/api/permit/update',
    method: 'post',
    data: row
  })
src/views/permit/permit.vue
@@ -182,11 +182,21 @@
      width="30%"
      :modal-append-to-body="false"
    >
      <span>是否通过审核?</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="closecc">通过</el-button>
        <el-button type="primary" @click="subcc">不通过</el-button>
      </span>
      <div class="flots">
        <span class="f_title">是否通过审核?</span>
        <span class="f_body">请输入修改意见:</span>
        <textarea
          name="reworkmes"
          cols="40"
          rows="4"
          style="overflow: hidden"
          v-model="textareaShenpi"
        ></textarea>
        <div class="but">
          <el-button @click="closecc">通过</el-button>
          <el-button type="primary" @click="subcc">不通过</el-button>
        </div>
      </div>
    </el-dialog>
  </div>
</template>
@@ -208,6 +218,7 @@
        row: {},
        chiden: {},
      },
      textareaShenpi: "",
      form: {},
      query: {},
@@ -547,11 +558,14 @@
    closecc() {
      this.xukezData.type = "0";
      this.dialogVisiblecc = false;
      this.xukezData["approve"] = this.textareaShenpi;
      console.log(this.xukezData);
      return update(this.xukezData);
    },
    subcc() {
      this.xukezData.type = "1";
      this.dialogVisiblecc = false;
      this.xukezData["approve"] = this.textareaShenpi;
      return update(this.xukezData);
    },
@@ -660,7 +674,7 @@
};
</script>
<style scoped>
<style scoped lang="scss">
.dtype {
  width: 80px;
}
@@ -793,4 +807,22 @@
.PrintBut {
  margin-top: 15px;
}
.flots {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  .f_title {
    position: absolute;
    top: 15px;
    font-size: 18px;
  }
}
.but {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-content: center;
  justify-content: center;
}
</style>
src/views/record/record.vue
@@ -47,6 +47,7 @@
          @click.stop="rowDel(row)"
          v-show="row.type == 2"
          >审批
          <!--  v-show="row.type == 2" -->
        </el-button>
        <el-button
          icon="el-icon-edit"
@@ -105,11 +106,21 @@
      width="30%"
      :modal-append-to-body="false"
    >
      <span>是否通过审核?</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="closecc">通过</el-button>
        <el-button type="primary" @click="subcc">不通过</el-button>
      </span>
      <div class="flots">
        <span class="f_title">是否通过审核?</span>
        <span class="f_body">请输入修改意见:</span>
        <textarea
          name="reworkmes"
          cols="40"
          rows="4"
          style="overflow: hidden"
          v-model="textareaShenpi"
        ></textarea>
        <div class="but">
          <el-button @click="closecc">通过</el-button>
          <el-button type="primary" @click="subcc">不通过</el-button>
        </div>
      </div>
    </el-dialog>
  </basic-container>
</template>
@@ -123,6 +134,8 @@
    return {
      dialogVisiblecc: false, //许可证审核抽屉
      xukezData: {},
      textareaShenpi: "",
      dialogVisible: false, // 备案审批打印的
      form: {},
@@ -491,11 +504,13 @@
    closecc() {
      this.xukezData.type = "0";
      this.dialogVisiblecc = false;
      this.xukezData["approve"] = this.textareaShenpi;
      return update(this.xukezData);
    },
    subcc() {
      this.xukezData.type = "1";
      this.dialogVisiblecc = false;
      this.xukezData["approve"] = this.textareaShenpi;
      return update(this.xukezData);
    },
    // 审批打印
@@ -623,7 +638,7 @@
};
</script>
 
<style scoped>
<style scoped lang="scss">
.dtype {
  width: 80px;
}
@@ -715,4 +730,22 @@
.exam-box span {
  text-decoration: underline;
}
.flots {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  .f_title {
    position: absolute;
    top: 15px;
    font-size: 18px;
  }
}
.but {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-content: center;
  justify-content: center;
}
</style>