小小儁爺
2024-08-08 e3d5394e07c6e7dc24cf620bd16f07d78ff96e03
src/views/statistic/workOrderProcess.vue
@@ -15,6 +15,11 @@
          style="display: flex;"
        >
          <div class="elForm">
            <el-form-item label="销售单号" style=" display: flex;">
              <el-input v-model="form.socode" placeholder="请输入" style="width: 200px"/>
            </el-form-item>
            <el-form-item label="车间名称" style=" display: flex;">
              <el-select
                v-model="form.wkshopcode"
@@ -42,20 +47,20 @@
              </el-select>
            </el-form-item>
            <el-form-item label="工单编号" style=" display: flex;">
              <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px" />
              <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px"/>
            </el-form-item>
            <!--            <el-form-item label="车间名称" style=" display: flex;">-->
            <!--              <el-input v-model="form.wkshopname" placeholder="请输入" style="width: 200px" />-->
            <!--            </el-form-item>-->
            <el-form-item label="产品编码" style=" display: flex;">
              <el-input v-model="form.partcode" placeholder="请输入" style="width: 200px" />
            <el-form-item label="产品编码" v-show="isExpandForm" style=" display: flex;">
              <el-input v-model="form.partcode" placeholder="请输入" style="width: 200px"/>
            </el-form-item>
            <el-form-item v-show="isExpandForm" label="产品名称" style=" display: flex;">
              <el-input v-model="form.partname" placeholder="请输入" style="width: 200px" />
              <el-input v-model="form.partname" placeholder="请输入" style="width: 200px"/>
            </el-form-item>
            <el-form-item v-show="isExpandForm" label="规格型号" style=" display: flex;">
              <el-input v-model="form.partspec" placeholder="请输入" style="width: 200px" />
              <el-input v-model="form.partspec" placeholder="请输入" style="width: 200px"/>
            </el-form-item>
            <el-form-item v-show="isExpandForm" label="单据日期" style="display: flex;align-items: center">
              <el-date-picker
@@ -143,6 +148,13 @@
            sortable="custom"
          />
          <el-table-column
            prop="saleOrderCode"
            label="销售单号"
            width="135"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
            prop="partcode"
            label="产品编码"
            width="105"
@@ -198,7 +210,7 @@
            <!--            show-tooltip-when-overflow-->
            <template slot-scope="{row}">
              <div style="min-width: 900px;display: flex;overflow-x: auto;overflow-y: hidden;height: 65px;">
              <div style="min-width:500px;display: flex;overflow-x: auto;overflow-y: hidden;height: 65px;">
                <div
                  v-for="item in row.concat_name.split(',')"
                  :key="item+row.wo_code"
@@ -220,8 +232,8 @@
                    />
                    <div style="position: absolute;top:22px;">{{ parseFloat(item.split('/')[1]) }}/{{
                      row.plan_qty
                    }}
                        row.plan_qty
                      }}
                    </div>
                  </div>
@@ -267,21 +279,21 @@
<script>
import Pagination from '@/components/Pagination'
import { handleDatetime } from '@/utils/global'
import {handleDatetime} from '@/utils/global'
import elDragDialog from '@/directive/el-drag-dialog'
import waves from '@/directive/waves'
import {
  ProductionScheduleReportExcelSearch,
  ProductionScheduleReportSearch
} from '@/api/ReportManager'
import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData'
import {PrentOrganizationNoCompany} from '@/api/GeneralBasicData'
export default {
  name: 'Zzjg',
  components: {
    Pagination
  },
  directives: { elDragDialog, waves },
  directives: {elDragDialog, waves},
  data() {
    return {
      mouseHoverType: 'mouseout',
@@ -289,6 +301,7 @@
      mainHeight: 0,
      tableHeight: 0,
      form: {
        socode: '',//销售单号
        status: '', // 工单状态
        wocode: '', // 工单编号
        wkshopcode: '', // 工艺路线编码
@@ -303,9 +316,9 @@
        rows: 20 // 每页多少条
      },
      statusArr: [
        { label: '未开始', value: 'NOSTART' },
        { label: '执行中', value: 'START' },
        { label: '已完成', value: 'CLOSED' }
        {label: '未开始', value: 'NOSTART'},
        {label: '执行中', value: 'START'},
        {label: '已完成', value: 'CLOSED'}
      ],
      wkshopcodeArr: [],
@@ -325,7 +338,7 @@
  },
  methods: {
    async getPrentOrganizationNoCompany() {
      const { data: res } = await PrentOrganizationNoCompany()
      const {data: res} = await PrentOrganizationNoCompany()
      this.wkshopcodeArr = res
    },
    async getProductionScheduleReportSearch() {
@@ -334,6 +347,7 @@
        tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
      }
      const data = {
        socode: this.form.socode,
        status: this.form.status,
        wocode: this.form.wocode,
        wkshopcode: this.form.wkshopcode,
@@ -360,6 +374,7 @@
        tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
      }
      const data = {
        socode: this.form.socode,
        status: this.form.status,
        wocode: this.form.wocode,
        wkshopcode: this.form.wkshopcode,
@@ -375,7 +390,7 @@
      window.location.href = res.data
    },
    // 排序改变时
    sortChange({ column, prop, order }) {
    sortChange({column, prop, order}) {
      if (order === 'descending') {
        order = 'desc'
      } else if (order === 'ascending') {
@@ -393,6 +408,7 @@
    },
    // 重置
    reset() {
      this.form.socode=''
      this.form.status = ''
      this.form.wocode = ''
      this.form.wkshopcode = ''
@@ -412,7 +428,7 @@
        this.$refs.tableDataRef.doLayout()
      })
    },
    tableRowClassName({ row, rowIndex }) {
    tableRowClassName({row, rowIndex}) {
      return 'custom-row'
    }
  }