loulijun2021
2023-03-06 a9fa58b552dbd8df7cadfccc0b66dbb125ce9f98
1.节拍工价计件单价控制修改2.班组、人员报表红字添加
已修改4个文件
145 ■■■■ 文件已修改
src/views/bbgl/bzgz.vue 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/bbgl/rygz.vue 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/gd.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/zzmx/jpgj.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/bbgl/bzgz.vue
@@ -1,8 +1,34 @@
<template>
  <div>
    <div class="body" :style="{height:mainHeight+'px'}">
      <div class="bodyTopButtonGroup">
      <div class="bodyTopButtonGroup" style="justify-content: space-between">
        <el-button v-waves type="primary" icon="el-icon-download" @click="download">导出</el-button>
        <div
          style="color: red;margin: 10px 5px 0 0;"
        >当前报表只统计自制件工序
        </div>
        <!--                <div class="topRight" style="display: flex;align-items: center">-->
        <!--                   <el-select-->
        <!--                    v-model="form.rejectstepcode"-->
        <!--                    style="width: 170px;"-->
        <!--                    multiple-->
        <!--                    placeholder="请选择剔除工序"-->
        <!--                    collapse-tags-->
        <!--                    filterable-->
        <!--                    clearable-->
        <!--                    @change="getGroupSalaryReportSearch"-->
        <!--                  >-->
        <!--                    <el-option-->
        <!--                      v-for="item in StepSelectArr"-->
        <!--                      :key="item.stepcode"-->
        <!--                      :label="item.stepname"-->
        <!--                      :value="item.stepcode"-->
        <!--                    />-->
        <!--                  </el-select>-->
        <!--                </div>-->
      </div>
      <div class="bodyTopFormGroup">
@@ -87,7 +113,6 @@
        </div>
      </div>
      <el-tabs type="border-card" style="margin-top: 10px" @tab-click="tabClick">
        <el-tab-pane label="末道工序">
          <div class="elTableDiv" style="margin: 0 auto 10px;">
@@ -417,7 +442,6 @@
            @pagination="getGroupSalaryReportSearch"
          />
        </el-tab-pane>
      </el-tabs>
    </div>
@@ -462,7 +486,7 @@
    />
  </div>
</template>
  </div></template>
<script>
import Pagination from '@/components/Pagination'
@@ -477,6 +501,7 @@
import { MesOrderStepReportSelectUserGroup } from '@/api/scgl'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
import { StepSelect } from '@/api/zzmx'
export default {
  name: 'Zzjg',
@@ -490,6 +515,7 @@
      isExpandForm: false,
      mainHeight: 0,
      tableHeight: 0,
      StepSelectArr: [], // 剔除工序数组
      form: {
        wocode: '', // 工单编号
        partcode: '', // 产品编码
@@ -499,6 +525,7 @@
        groupcode: '', // 生产班组
        username: '', // 操作人员
        operdate: '', // 操作时间
        rejectstepcode: [], // 剔除工序(固定薪资工序不参与计算
        compute: 'last', // 计件方式  逐道工序:contin   末道工序:last
        prop: 'lm_date', // 排序字段
        order: 'desc', // 排序字段
@@ -562,8 +589,14 @@
      this.getGroupSalaryReportSearch().then(res => {
        if (res.code === '200') {
          this.getMesOrderStepReportSelectUserGroup()
          this.getStepSelect()
        }
      })
    },
    // 获取工序下拉接口
    async getStepSelect() {
      const { data: res } = await StepSelect()
      this.StepSelectArr = res
    },
    getSummaries(param) {
      const { columns, data } = param
@@ -579,9 +612,9 @@
          sums[index] = values.reduce((prev, curr) => {
            const value = Number(curr)
            if (!isNaN(value)) {
              return prev + curr
              return Math.round(prev * 100) / 100 + Math.round(curr * 100) / 100
            } else {
              return prev
              return Math.round(prev * 100) / 100
            }
          }, 0)
          sums[index] += ' 元'
@@ -611,6 +644,7 @@
        groupcode: this.form.groupcode,
        username: this.form.username,
        operdate: tempDate,
        rejectstepcode: this.form.rejectstepcode.join(','),
        compute: this.form.compute,
        prop: this.form.prop,
        order: this.form.order,
@@ -918,6 +952,20 @@
    height: 100% !important;
  }
}
.topRight ::v-deep {
  input::-webkit-input-placeholder {
    color: $main_color;
  }
  //input::-moz-input-placeholder {
  //  color: rgba(0, 204, 254, 1);
  //}
  input::-ms-input-placeholder {
    color: $main_color;
  }
}
</style>
<style>
src/views/bbgl/rygz.vue
@@ -1,8 +1,34 @@
<template>
  <div>
    <div class="body" :style="{height:mainHeight+'px'}">
      <div class="bodyTopButtonGroup">
      <div class="bodyTopButtonGroup" style="justify-content: space-between">
        <el-button v-waves type="primary" icon="el-icon-download" @click="download">导出</el-button>
        <div
          style="color: red;margin: 10px 5px 0 0;"
        >当前报表只统计自制件工序
        </div>
        <!--        <div class="topRight" style="display: flex;align-items: center">-->
        <!--          &lt;!&ndash;          <div style="font-size: 14px;margin-right: 15px;color: #a7a7a7">剔除工序</div>&ndash;&gt;-->
        <!--          <el-select-->
        <!--            v-model="form.rejectstepcode"-->
        <!--            style="width: 170px;"-->
        <!--            multiple-->
        <!--            placeholder="请选择剔除工序"-->
        <!--            collapse-tags-->
        <!--            filterable-->
        <!--            clearable-->
        <!--            @change="getPeopleSalaryReportSearch"-->
        <!--          >-->
        <!--            <el-option-->
        <!--              v-for="item in StepSelectArr"-->
        <!--              :key="item.stepcode"-->
        <!--              :label="item.stepname"-->
        <!--              :value="item.stepcode"-->
        <!--            />-->
        <!--          </el-select>-->
        <!--        </div>-->
      </div>
      <div class="bodyTopFormGroup">
@@ -199,7 +225,7 @@
              </el-table-column>
              <el-table-column
                prop="ratio"
                label="工序单价"
                label="分配比例"
                width="110"
                sortable="custom"
              >
@@ -448,6 +474,7 @@
import { MesOrderStepReportSelectUserGroup } from '@/api/scgl'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
import { StepSelect } from '@/api/zzmx'
export default {
  name: 'Zzjg',
@@ -461,6 +488,7 @@
      isExpandForm: false,
      mainHeight: 0,
      tableHeight: 0,
      StepSelectArr: [], // 剔除工序数组
      form: {
        wocode: '', // 工单编号
        partcode: '', // 产品编码
@@ -470,6 +498,7 @@
        groupcode: '', // 生产班组
        reportname: '', // 操作人员
        reportdate: '', // 操作时间
        rejectstepcode: [], // 剔除工序(固定薪资工序不参与计算
        compute: 'last', // 计件方式
        prop: 'partcode', // 排序字段
        order: 'desc', // 排序字段
@@ -533,15 +562,21 @@
      this.getPeopleSalaryReportSearch().then(res => {
        if (res.code === '200') {
          this.getMesOrderStepReportSelectUserGroup()
          this.getStepSelect()
        }
      })
    },
    // 获取工序下拉接口
    async  getStepSelect() {
      const { data: res } = await StepSelect()
      this.StepSelectArr = res
    },
    getSummaries(param) {
      const { columns, data } = param
      const sums = []
      columns.forEach((column, index) => {
        if (index === 10) {
        if (index === 11) {
          sums[index] = '总价'
          return
        }
@@ -550,9 +585,10 @@
          sums[index] = values.reduce((prev, curr) => {
            const value = Number(curr)
            if (!isNaN(value)) {
              return prev + curr
              // return prev + curr
              return Math.round(prev * 100) / 100 + Math.round(curr * 100) / 100
            } else {
              return prev
              return Math.round(prev * 100) / 100
            }
          }, 0)
@@ -567,7 +603,10 @@
        this.$refs.tableDataRef.doLayout()
        this.$refs.tableDataRef2.doLayout()
      })
      // (Math.round(sums * 100) / 100).toS
      // console.log(typeof sums)
      // console.log(sums[11].split(' '))
      return sums
    },
    async getPeopleSalaryReportSearch() {
@@ -584,6 +623,7 @@
        groupcode: this.form.groupcode,
        compute: this.form.compute,
        reportname: this.form.reportname,
        rejectstepcode: this.form.rejectstepcode.join(','),
        reportdate: tempDate,
        prop: this.form.prop,
        order: this.form.order,
@@ -890,6 +930,20 @@
    height: 100% !important;
  }
}
.topRight ::v-deep {
  input::-webkit-input-placeholder {
    color: $main_color;
  }
  //input::-moz-input-placeholder {
  //  color: rgba(0, 204, 254, 1);
  //}
  input::-ms-input-placeholder {
    color: $main_color;
  }
}
</style>
<style>
src/views/scgl/gd.vue
@@ -2081,6 +2081,8 @@
      const { data: res2 } = await RouteSelectWkshop(data)
      this.wkshopArr = res2
      this.dialogForm.wkshopcode = ''
      this.sumbitBottonIsDisabled = false
    },
    // 是否排程值改变时
    changeIsAps(val) {
src/views/zzmx/jpgj.vue
@@ -312,7 +312,7 @@
      </el-form>
      <div style="display: flex;flex-direction: column;margin-bottom: 20px">
        <div>
          <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" style="margin: -20px 10px 20px 0" />工序集合
          <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" style="margin: -20px 10px 20px 0;" />工序集合
        </div>
        <div style="display: flex;background-color: #F2F6FC;padding:20px 0  20px 20px; min-height: 100px">
          <el-radio-group v-model="dialogForm.stepcode" @change="radioChange">
@@ -355,15 +355,15 @@
          />
          <el-table-column
            prop="eqpcode"
            label="设备编码"
            :label="eqpTable.steptype==='W'?'供应商编码':'设备编码'"
            sortable="custom"
            show-tooltip-when-overflow
            min-width="110"
            min-width="120"
          />
          <el-table-column
            prop="eqpname"
            label="设备名称"
            min-width="110"
            :label="eqpTable.steptype==='W'?'供应商名称':'设备名称'"
            min-width="120"
            show-tooltip-when-overflow
            sortable="custom"
          />
@@ -551,6 +551,7 @@
        partcode: '',
        routecode: '',
        stepcode: '',
        steptype: '',
        page: 1,
        rows: 10,
        prop: 'eqpcode',
@@ -664,6 +665,7 @@
    },
    async routeDialogChange(val) {
      const { data: res } = await RouteSelectStep({ routecode: val })
      // this.stepDialogArr = res.filter(i => i.flag === 'Z')
      this.stepDialogArr = res
      this.eqpDialogArr = []
      this.radioChangeTempValue = ''
@@ -689,11 +691,13 @@
    },
    async getEqpTable(val) {
      if (typeof val === 'string') {
        this.eqpTable.steptype = this.stepDialogArr.find(item => item.name === val).flag
        this.eqpTable.partcode = this.dialogForm.partcode
        this.eqpTable.routecode = this.dialogForm.routecode
        this.eqpTable.stepcode = this.stepDialogArr.find(item => item.name === val).code
      // } else if (typeof val === 'number') {
        // } else if (typeof val === 'number') {
      } else {
        this.eqpTable.steptype = this.stepDialogArr[0].flag
        this.eqpTable.partcode = this.dialogForm.partcode
        this.eqpTable.routecode = this.dialogForm.routecode
        this.eqpTable.stepcode = this.stepDialogArr[0].code
@@ -711,9 +715,10 @@
    },
    // 保存行
    async saveRow(row) {
      if (parseFloat(row.unprice) <= 0) {
      if (parseFloat(row.unprice) <= 0 && this.eqpTable.steptype !== 'W') {
        return this.$message.info('计件单价必须大于零!')
      }
      const data = {
        partcode: this.eqpTable.partcode, //  产品编码
        routecode: this.eqpTable.routecode, //  工艺路线编码