yxh
yxh
2023-08-07 3cbb8936b9f9f977741bb9e465fb1f904836b71b
yxh
已修改2个文件
97 ■■■■■ 文件已修改
src/views/project/fund/overheadcosts/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/funddetail/index.vue 95 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/overheadcosts/index.vue
@@ -806,7 +806,7 @@
    handleAdd() {
      this.$router.push({
        path: "/finance/funddetail/",
        query: { id: 0, businesstype: 4, operationtype: "add" }
        query: { id: 0, businesstype: "4", operationtype: "add" }
      });
      this.istrue += 2;
src/views/project/funddetail/index.vue
@@ -32,12 +32,7 @@
        </el-col>
      </el-row>
      <el-row style="text-align: left">
        <!--
          <el-col :span="7">
            <el-form-item label="联系电话" prop="phone">
              <el-input v-model="form.phone" placeholder="请输入申请者的联系方式" clearable />
            </el-form-item>
          </el-col>
        <!--
          <el-col :span="7">
            <el-form-item label="工作单位" prop="unitno">
              <org-selecter ref="orgSelecter" :org-type="'3'" v-model="form.unitno" />
@@ -46,7 +41,7 @@
          -->
        <el-col :span="5">
          <el-form-item label="费用类型">
            <el-radio v-model="form.applytype" label="1">杂项费用申请</el-radio>
            <el-radio v-model="form.applytype" label="true">杂项费用申请</el-radio>
          </el-form-item>
        </el-col>
        <el-col :span="10">
@@ -78,7 +73,8 @@
          <el-form-item label="应缴税" prop="taxcost">
            <el-input v-model="form.taxcost" placeholder="应缴税金额合计" :disabled="true" />
          </el-form-item>
        </el-col><!--
        </el-col>
        <!--
          <el-col :span="5">
            <el-form-item label="税后金额" prop="pretaxcost">
              <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" />
@@ -572,7 +568,7 @@
      total: 0,
      //申请单类型
      businesstype: "4",
      businesstype: null,
      //操作类型
      operationtype: "edit",
      //所有人员表
@@ -695,17 +691,17 @@
  created() {
    //获取单据类型和操作要求
    this.getCurFundType();
    this.getUserProfile();
    this.getroute();
    this.getUserProfile();
  },
  //生命周期 - 挂载完成(可以访问DOM元素)
  mounted() {
  mounted() {
    this.getUserList();
    this.getUnitList();
    this.selectReporters();
    this.getExternalpersonList();
    this.getBaseInfoList();
    this.getBaseInfoList();
  },
  beforeCreate() {
@@ -726,52 +722,35 @@
      let tempbusinesstype = this.$route.query.businesstype;
      let tempoperationtype = this.$route.query.operationtype;
      // this.userprofile = this.$route.query.routerparam;
      if (tempbusinesstype == 1) {
        this.businesstype = tempbusinesstype;
      this.businesstype = tempbusinesstype;
      if (tempbusinesstype == "1") {
        this.title = '专家劳务费申请单';
        this.handleAdd(ids);
      } else if (tempbusinesstype == 2) {
        this.businesstype = tempbusinesstype;
      } else if (tempbusinesstype == "2") {
        this.title = '伦理专家劳务费申请单';
        this.handleUpdate(ids);
      }
      else if (tempbusinesstype == 3) {
        this.businesstype = tempbusinesstype;
      else if (tempbusinesstype == "3") {
        this.title = '医学成本报销单';
        this.handleDetail(ids);
      }
      else if (tempbusinesstype == 4) {
        this.businesstype = tempbusinesstype;
        this.title = '杂象费用报销单';
        // this.handleCheck(ids);
      else if (tempbusinesstype == "4") {
        this.title = '杂项费用报销单';
      }
      if (tempoperationtype == 1) {
        this.operationtype = 'add';
      this.operationtype = tempoperationtype;
      if (tempoperationtype == 'add') {
        this.title += '新建'
        this.handleAdd(ids);
      } else if (tempoperationtype == 2) {
        this.operationtype = 'update';
        this.handleAdd();
      } else if (tempoperationtype == 'update') {
        this.title += '修改'
        this.handleUpdate(ids);
      }
      else if (tempoperationtype == 3) {
        this.operationtype = 'detail';
      else if (tempoperationtype == 'detail') {
        this.title += '查看'
        this.handleDetail(ids);
      } else if (tempoperationtype == 4) {
      } else if (tempoperationtype == 'check') {
        this.title += '审核'
        this.handleCheck(ids);
      }
      console.log(
        this.businesstype = tempbusinesstype, this.title);
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.daterangeReporttime = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 新增按钮操作 */
@@ -779,8 +758,8 @@
      this.reset();
      this.queryParams.params = {};
      /** businesstype:4:杂项费用报销申请 */
      if (this.businesstype != "4") {
      /** businesstype:1:专家费;2:伦理专家费 */
      if (this.businesstype == "1" && this.businesstype == "2") {
        if (this.curCase.id) {
          this.istrue += 2;
          this.form.donorno = this.curCase.donorno;
@@ -799,14 +778,9 @@
        }
      }
      this.form.username = this.userprofile.nickName;
      this.form.userno = this.userprofile.userName;
      this.form.phone = this.userprofile.phonenumber;
      this.form.deptmentname = this.userprofile.dept.deptName;
      this.form.deptmentno = this.userprofile.dept.deptId;
      this.form.managername = this.userprofile.dept.leader;
//初始化明细
      //初始化
      // this.form.applytype = this.businesstype;
      this.form.createTime = new Date();
      this.fundDetails = [];
      this.addRow();
@@ -1318,16 +1292,25 @@
      this.showDetailInfoDialog = false;
    },
    //获取当前用户信息
    //获取当前用户信息,并初始化经办人信息
    getUserProfile() {
      getUserProfile().then((response) => {
        this.userprofile = response.data;
        this.standardlevel = response.data.standardlevel;
      getUserProfile().then((res) => {
        this.userprofile = res.data;
        this.standardlevel = res.data.standardlevel;
        if (this.userprofile.createBy == "admin" || this.userprofile.createBy == "001" || this.userprofile.createBy == "002") {
          this.ismanager = true;
        } else {
          this.ismanager = false;
        }
        if (this.operationtype = "add") {
          this.form.username = this.userprofile.nickName;
          this.form.userno = this.userprofile.userName;
          this.form.phone = this.userprofile.phonenumber;
          this.form.deptmentname = this.userprofile.dept.deptName;
          this.form.deptmentno = this.userprofile.dept.deptId;
          this.form.managername = this.userprofile.dept.leader;
        }
      });
    },