loulijun2021
2023-06-25 0ee16193f6ede38950215bd74b49d58b779595a5
1.项目bug修改
已修改7个文件
71 ■■■■ 文件已修改
src/views/basicSettings/organizationList.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/userList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/makeModel/meterPrice.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/makeModel/processRoute.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produceManager/produceStartOrder.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/produceManager/workOrder.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportManager/groupSalaryList.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicSettings/organizationList.vue
@@ -474,9 +474,9 @@
    handleRequest() {
      this.getOrganizationSearch().then(res => {
        if (res.code === '200') {
          this.getPrentOrganization()
        }
        // if (res.code === '200') {
        //   this.getPrentOrganization()
        // }
      })
    },
    async getOrganizationSearch() {
@@ -523,6 +523,8 @@
        return this.$message.info('当前用户无新增权限!')
      }
      await this.getPrentOrganization()
      this.operation = operation
      this.dialogVisible = true
@@ -552,7 +554,6 @@
      //   this.dialogForm.OrgType = '生产线'
      // }
      this.$nextTick(() => {
        this.changeRadio(this.dialogForm.OrgType)
        this.dialogForm.OrgCode = row.org_code
        this.dialogForm.OrgName = row.org_name
        this.dialogForm.SupUnit = row.parent_id
src/views/basicSettings/userList.vue
@@ -1110,17 +1110,17 @@
      this.usergroupArr = res
    },
    // 新增按钮
    add(operation) {
    async add(operation) {
      this.operation = operation
      this.dialogVisible = true
      // this.dialogForm.StuOrg = getCookie('stu_torgcode')
      // this.$refs.dialogCascader.checkedValue = [getCookie('stu_torgcode')]
      this.getUserOrganization2()
      await this.getUserOrganization2()
      if (this.$store.state.settings.orgType !== '') {
        this.getStorgGroupSelect(getCookie('stu_torgcode'), this.StuOrgArr2.find(i => i.code === getCookie('stu_torgcode')) ? 'D' : 'W')
        await this.getStorgGroupSelect(getCookie('stu_torgcode'), this.StuOrgArr2.find(i => i.code === getCookie('stu_torgcode')) ? 'D' : 'W')
      }
    },
    // 修改按钮
src/views/makeModel/meterPrice.vue
@@ -711,7 +711,7 @@
        }, {
          minWidth: false,
          width: 110,
          prop: 'cavity_qty',
          prop: 'unprice',
          label: '计件单价',
          id: 17,
          show: true,
src/views/makeModel/processRoute.vue
@@ -613,6 +613,7 @@
    async getStepSelectArr() {
      const { data: res } = await StepSelect({ WorkShop: this.dialogForm.wkshopcode })
      this.routeArr = res
      console.log('执行了!')
    },
    // 处理下拉选择
    handleSelect(item, tag) {
@@ -895,20 +896,23 @@
      this.operation = operation
      this.dialogVisible = true
      if (this.$store.state.settings.orgType === 'W') {
        await this.getStepSelectArr()
      }
      // if (this.$store.state.settings.orgType === 'W') {
      // }
      const { data: res } = await ViewRoute({ routecode: row.code })
      // 待改
      this.dynamicTags = []
      this.routeSelectedArr = []
      this.$nextTick(() => {
        this.dialogForm.code = res[0].code
        this.dialogForm.name = res[0].name
        this.dialogForm.enable = res[0].enable
        this.dialogForm.description = res[0].description
        this.dialogForm.wkshopcode = res[0].wkshopcode
      await this.getStepSelectArr()
      this.$nextTick(() => {
        res[0].Data.forEach((item, index) => {
          this.dynamicTags.push(
            { seq: item.seq, stepname: item.stepname, stepcode: item.stepcode, editDisabled: true, effect: index === res[0].Data.length - 1 ? 'dark' : 'light' }
@@ -931,7 +935,7 @@
      this.dialogForm.name = ''
      this.dialogForm.enable = 'Y'
      this.dialogForm.description = ''
      this.dialogForm.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode'), // 所属车间
      this.dialogForm.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode') // 所属车间
      this.dialogForm.Data = []
      this.dynamicTags = [
src/views/produceManager/produceStartOrder.vue
@@ -1754,6 +1754,10 @@
    },
    // 扫码键盘回车事件
    async enterNative(val, belong) {
      if (getCookie('description') !== 'W') {
        return this.$message.info('该角色无此操作权限!')
      }
      console.log(val, belong, 89898989)
      // 开工:code="200"  count=0
      // 报工:code="200"  count=1
src/views/produceManager/workOrder.vue
@@ -2369,11 +2369,19 @@
      // this.submitButtonIsDisabled = false
    },
    // 工艺路线值改变
    async routecodeChange(partcode, routecode) {
      // const data = {
      //   partcode,
      //   routecode
      // }
    async routecodeChange() {
      const data = {
        partcode: this.dialogForm.partcode,
        routecode: this.dialogForm.routecode,
        wkshopcode: this.dialogForm.wkshopcode
      }
      await SelectRouteOrWkshop(data).then((res) => {
        // console.log(res, 1)
        this.submitButtonIsDisabled = false
      }).catch(err => {
        // console.log(err, 2)
        this.submitButtonIsDisabled = true
      })
    },
    // 生产车间值改变时
    async  wkshopcodeChange(wkshopcode, partcode) {
@@ -2387,6 +2395,7 @@
      if (res.length === 1) {
        this.dialogForm.routecode = res[0].code
        await this.routecodeChange()
      } else {
        this.dialogForm.routecode = ''
      }
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
@@ -790,7 +788,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>