loulijun2021
2023-08-17 2d29ce8bb3dbbd8c9766f31a3e26b03992e77bc1
src/views/reportManager/groupSalaryList.vue
@@ -486,8 +486,6 @@
      width="800px"
      :close-on-click-modal="false"
      top="15vh"
      @closed="handleClose"
      @close="handleClose"
    >
      <div style="height: 300px;width: 100%;background-color: aliceblue;padding:20px">
        <el-tag
@@ -560,7 +558,8 @@
        groupcode: '', // 生产班组
        username: '', // 操作人员
        wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间
        operdate: '', // 操作时间
        operdate: [new Date().getFullYear() + '-' + (new Date().getMonth() + 1).toString().padStart(
          2, '0') + '-01', new Date().toISOString().slice(0, 10)], // 操作时间
        rejectstepcode: [], // 剔除工序(固定薪资工序不参与计算
        compute: 'last', // 计件方式  逐道工序:contin   末道工序:last
        prop: 'lm_date', // 排序字段
@@ -775,7 +774,8 @@
      this.form.stepname = ''
      this.form.groupcode = ''
      this.form.username = ''
      this.form.operdate = ''
      this.form.operdate = [new Date().getFullYear() + '-' + (new Date().getMonth() + 1).toString().padStart(
        2, '0') + '-01', new Date().toISOString().slice(0, 10)]
      this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '' // 所属车间
      this.getGroupSalaryReportSearch()
    },
@@ -790,7 +790,22 @@
    },
    tableRowClassName({ row, rowIndex }) {
      return 'custom-row'
    },
    // 修改按钮
    async edit(operation, row) {
      this.operation = operation
      this.dialogVisible = true
      const res = await GroupSalaryReportSearchUser({ id: row.id })
      this.tagArr = res.data.map(r => r.username)
      // this.tagArr = ['楼李俊', '张三', '李四']
      // this.$nextTick(() => {
      //   this.dialogForm.OrgCode = row.org_code
      //   this.dialogForm.OrgName = row.org_name
      //   this.dialogForm.SupUnit = row.parent_id
      // })
    }
  }
}
</script>