loulijun2021
2022-07-09 bed893abbebac6a1e43478b693e1f862a6b6c8fe
1.生产开报工实现部分2.修改bug
已修改17个文件
586 ■■■■■ 文件已修改
src/App.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 202 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jcsz/jsqd.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jcsz/yhqd.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/jcsz/zzjg.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sbgl/sbqd.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/gd.vue 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/scdd.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/sckbg.vue 263 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/wlgl/ckdy.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/wlgl/kwdy.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/xtsz/bmgz.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/zzmx/chda.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/zzmx/gxdy.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/zzmx/gylx.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/zzmx/jpgj.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/zzmx/wllx.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -1,6 +1,8 @@
<template>
  <div id="app">
    <!--    <keep-alive>-->
    <router-view />
    <!--    </keep-alive>-->
  </div>
</template>
src/router/index.js
@@ -78,34 +78,34 @@
    children: [
      {
        path: 'zzjg',
        name: '组织架构',
        name: 'ZZJG',
        code: '1010',
        component: () => import('@/views/jcsz/zzjg'),
        meta: { code: '1010', title: '组织架构', icon: '' }
        meta: { code: '1010', title: '组织架构', icon: '', keepAlive: true }
      }, {
        path: 'yhqd',
        name: '用户清单',
        name: 'YYQD',
        code: '1011',
        component: () => import('@/views/jcsz/yhqd'),
        meta: { code: '1011', title: '用户清单', icon: '' }
        meta: { code: '1011', title: '用户清单', icon: '', keepAlive: true }
      }, {
        path: 'jsqd',
        name: '角色清单',
        name: 'JSQD',
        code: '1012',
        component: () => import('@/views/jcsz/jsqd'),
        meta: { code: '1012', title: '角色清单', icon: '' }
        meta: { code: '1012', title: '角色清单', icon: '', keepAlive: true }
      }, {
        path: 'wldw',
        name: '往来单位',
        name: 'WLDW',
        code: '1013',
        component: () => import('@/views/jcsz/wldw'),
        meta: { code: '1013', title: '往来单位', icon: '' }
        meta: { code: '1013', title: '往来单位', icon: '', keepAlive: true }
      }, {
        path: 'adsz',
        name: '安灯设置',
        name: 'ADZZ',
        code: '1014',
        component: () => import('@/views/jcsz/adsz'),
        meta: { code: '1014', title: '安灯设置', icon: '' }
        meta: { code: '1014', title: '安灯设置', icon: '', keepAlive: true }
      }
    ]
  },
@@ -120,71 +120,71 @@
    children: [
      {
        path: 'sblx',
        name: '设备类型',
        name: 'SBLX',
        code: '1020',
        component: () => import('@/views/sbgl/sblx'),
        meta: { code: '1020', title: '设备类型', icon: '' }
        meta: { code: '1020', title: '设备类型', icon: '', keepAlive: true }
      },
      {
        path: 'wxjl',
        code: '1029',
        name: '维修记录',
        name: 'WXJL',
        component: () => import('@/views/sbgl/wxjl'),
        meta: { code: '1029', title: '维修记录', icon: '' }
        meta: { code: '1029', title: '维修记录', icon: '', keepAlive: true }
      }, {
        path: 'sbz',
        name: '设备组',
        name: 'SBZ',
        code: '1021',
        component: () => import('@/views/sbgl/sbz'),
        meta: { code: '1021', title: '设备组', icon: '' }
        meta: { code: '1021', title: '设备组', icon: '', keepAlive: true }
      }, {
        path: 'sbqd',
        name: '设备清单',
        code: '1022',
        component: () => import('@/views/sbgl/sbqd'),
        meta: { code: '1022', title: '设备清单', icon: '' }
        meta: { code: '1022', title: '设备清单', icon: '', keepAlive: true }
      },
      {
        path: 'djbz',
        name: '点检标准',
        name: 'DJBZ',
        code: '1023',
        component: () => import('@/views/sbgl/djbz'),
        meta: { code: '1023', title: '点检标准', icon: '' }
        meta: { code: '1023', title: '点检标准', icon: '', keepAlive: true }
      },
      {
        path: 'djbw',
        name: '点检部位',
        name: 'DJBW',
        code: '1024',
        component: () => import('@/views/sbgl/djbw'),
        meta: { code: '1024', title: '点检部位', icon: '' }
        meta: { code: '1024', title: '点检部位', icon: '', keepAlive: true }
      },
      {
        path: 'bybz',
        name: '保养标准',
        name: 'BYBZ',
        code: '1025',
        component: () => import('@/views/sbgl/bybz'),
        meta: { code: '1025', title: '保养标准', icon: '' }
        meta: { code: '1025', title: '保养标准', icon: '', keepAlive: true }
      },
      {
        path: 'bybw',
        name: '保养部位',
        name: 'BYBW',
        code: '1026',
        component: () => import('@/views/sbgl/bybw'),
        meta: { code: '1026', title: '保养部位', icon: '' }
        meta: { code: '1026', title: '保养部位', icon: '', keepAlive: true }
      },
      {
        path: 'djjl',
        name: '点检记录',
        name: 'DJJL',
        code: '1027',
        component: () => import('@/views/sbgl/djjl'),
        meta: { code: '1027', title: '点检记录', icon: '' }
        meta: { code: '1027', title: '点检记录', icon: '', keepAlive: true }
      },
      {
        path: 'byjl',
        name: '保养记录',
        name: 'BYJL',
        code: '1028',
        component: () => import('@/views/sbgl/byjl'),
        meta: { code: '1028', title: '保养记录', icon: '' }
        meta: { code: '1028', title: '保养记录', icon: '', keepAlive: true }
      }
    ]
  },
@@ -199,70 +199,70 @@
    children: [
      {
        path: 'gzlx',
        name: '工装类型',
        name: 'GZLX',
        code: '1030',
        component: () => import('@/views/gzgl/gzlx'),
        meta: { code: '1030', title: '工装类型', icon: '' }
        meta: { code: '1030', title: '工装类型', icon: '', keepAlive: true }
      }, {
        path: 'sjxj',
        name: '上机下机',
        name: 'SJXJ',
        code: '1039',
        component: () => import('@/views/gzgl/sjxj'),
        meta: { code: '1039', title: '上机下机', icon: '' }
        meta: { code: '1039', title: '上机下机', icon: '', keepAlive: true }
      }, {
        path: 'ckrk',
        name: '出库入库',
        name: 'CKRK',
        code: '1040',
        component: () => import('@/views/gzgl/ckrk'),
        meta: { code: '1040', title: '出库入库', icon: '' }
        meta: { code: '1040', title: '出库入库', icon: '', keepAlive: true }
      }, {
        path: 'gzqd',
        name: '工装清单',
        name: 'GZQD',
        code: '1031',
        component: () => import('@/views/gzgl/gzqd'),
        meta: { code: '1031', title: '工装清单', icon: '' }
        meta: { code: '1031', title: '工装清单', icon: '', keepAlive: true }
      }, {
        path: 'djbz',
        name: '点检标准',
        name: 'DJBZ',
        code: '1032',
        component: () => import('@/views/gzgl/djbz'),
        meta: { code: '1032', title: '点检标准', icon: '' }
        meta: { code: '1032', title: '点检标准', icon: '', keepAlive: true }
      }, {
        path: 'djbw',
        name: '点检部位',
        name: 'DJBW',
        code: '1033',
        component: () => import('@/views/gzgl/djbw'),
        meta: { code: '1033', title: '点检部位', icon: '' }
        meta: { code: '1033', title: '点检部位', icon: '', keepAlive: true }
      }, {
        path: 'bybz',
        name: '保养标准',
        name: 'BYBZ',
        code: '1034',
        component: () => import('@/views/gzgl/bybz'),
        meta: { code: '1034', title: '保养标准', icon: '' }
        meta: { code: '1034', title: '保养标准', icon: '', keepAlive: true }
      }, {
        path: 'bybw',
        name: '保养部位',
        name: 'BYBW',
        code: '1035',
        component: () => import('@/views/gzgl/bybw'),
        meta: { code: '1035', title: '保养部位', icon: '' }
        meta: { code: '1035', title: '保养部位', icon: '', keepAlive: true }
      }, {
        path: 'djjl',
        name: '点检记录',
        name: 'DJJL',
        code: '1036',
        component: () => import('@/views/gzgl/djjl'),
        meta: { code: '1036', title: '点检记录', icon: '' }
        meta: { code: '1036', title: '点检记录', icon: '', keepAlive: true }
      }, {
        path: 'byjl',
        name: '保养记录',
        name: 'BYJL',
        code: '1037',
        component: () => import('@/views/gzgl/byjl'),
        meta: { code: '1037', title: '保养记录', icon: '' }
        meta: { code: '1037', title: '保养记录', icon: '', keepAlive: true }
      }, {
        path: 'gzwx',
        name: '工装维修',
        name: 'GZWX',
        code: '1038',
        component: () => import('@/views/gzgl/gzwx'),
        meta: { code: '1038', title: '工装维修', icon: '' }
        meta: { code: '1038', title: '工装维修', icon: '', keepAlive: true }
      }
    ]
  },
@@ -277,41 +277,41 @@
    children: [
      {
        path: 'ckdy',
        name: '仓库定义',
        name: 'CKDY',
        code: '1050',
        component: () => import('@/views/wlgl/ckdy'),
        meta: { code: '1050', title: '仓库定义', icon: '' }
        meta: { code: '1050', title: '仓库定义', icon: '', keepAlive: true }
      },
      {
        path: 'kwdy',
        name: '库位定义',
        name: 'KWDY',
        code: '1051',
        component: () => import('@/views/wlgl/kwdy'),
        meta: { code: '1051', title: '库位定义', icon: '' }
        meta: { code: '1051', title: '库位定义', icon: '', keepAlive: true }
      }, {
        path: 'rqlx',
        name: '容器类型',
        name: 'RYLX',
        code: '1052',
        component: () => import('@/views/wlgl/rqlx'),
        meta: { code: '1052', title: '容器类型', icon: '' }
        meta: { code: '1052', title: '容器类型', icon: '', keepAlive: true }
      }, {
        path: 'rqqd',
        name: '容器清单',
        name: 'RQQD',
        code: '1053',
        component: () => import('@/views/wlgl/rqqd'),
        meta: { code: '1053', title: '容器清单', icon: '' }
        meta: { code: '1053', title: '容器清单', icon: '', keepAlive: true }
      }, {
        path: 'crkjl',
        name: '出入库记录',
        name: 'CRKJL',
        code: '1054',
        component: () => import('@/views/wlgl/crkjl'),
        meta: { code: '1054', title: '出入库记录', icon: '' }
        meta: { code: '1054', title: '出入库记录', icon: '', keepAlive: true }
      }, {
        path: 'kccx',
        name: '库存查询',
        name: 'KCCX',
        code: '1055',
        component: () => import('@/views/wlgl/kccx'),
        meta: { code: '1055', title: '库存查询', icon: '' }
        meta: { code: '1055', title: '库存查询', icon: '', keepAlive: true }
      }
    ]
  },
@@ -326,43 +326,43 @@
    children: [
      {
        path: 'wllx',
        name: '物料类型',
        name: 'WLLX',
        code: '1060',
        component: () => import('@/views/zzmx/wllx'),
        meta: { code: '1060', title: '物料类型', icon: '' }
        meta: { code: '1060', title: '物料类型', icon: '', keepAlive: true }
      },
      {
        path: 'chda',
        name: '存货档案',
        name: 'CHDA',
        code: '1061',
        component: () => import('@/views/zzmx/chda'),
        meta: { code: '1061', title: '存货档案', icon: '' }
        meta: { code: '1061', title: '存货档案', icon: '', keepAlive: true }
      }, {
        path: 'wlqd',
        name: '物料清单',
        name: 'WLQD',
        code: '1062',
        component: () => import('@/views/zzmx/wlqd'),
        meta: { code: '1062', title: '物料清单', icon: '' }
        meta: { code: '1062', title: '物料清单', icon: '', keepAlive: true }
      },
      {
        path: 'gylx',
        name: '工艺路线',
        name: 'GYLX',
        code: '1063',
        component: () => import('@/views/zzmx/gylx'),
        meta: { code: '1063', title: '工艺路线', icon: '' }
        meta: { code: '1063', title: '工艺路线', icon: '', keepAlive: true }
      }, {
        path: 'gxdy',
        name: '工序定义',
        name: 'GXDY',
        code: '1064',
        component: () => import('@/views/zzmx/gxdy'),
        meta: { code: '1064', title: '工序定义', icon: '' }
        meta: { code: '1064', title: '工序定义', icon: '', keepAlive: true }
      },
      {
        path: 'jpgj',
        name: '节拍工价',
        name: 'JPGJ',
        code: '1065',
        component: () => import('@/views/zzmx/jpgj'),
        meta: { code: '1065', title: '节拍工价', icon: '' }
        meta: { code: '1065', title: '节拍工价', icon: '', keepAlive: true }
      }
    ]
  },
@@ -377,28 +377,28 @@
    children: [
      {
        path: 'scdd',
        name: 'ERP生产订单',
        name: 'SCDD',
        code: '1070',
        component: () => import('@/views/scgl/scdd'),
        meta: { code: '1070', title: 'ERP生产订单', icon: '' }
        meta: { code: '1070', title: 'ERP生产订单', icon: '', keepAlive: true }
      }, {
        path: 'gd',
        name: 'MES工单',
        name: 'GD',
        code: '1071',
        component: () => import('@/views/scgl/gd'),
        meta: { code: '1071', title: 'MES工单', icon: '' }
        meta: { code: '1071', title: 'MES工单', icon: '', keepAlive: true }
      }, {
        path: 'gdpg',
        name: '工单派工',
        name: 'GDPD',
        code: '1072',
        component: () => import('@/views/scgl/gdpg'),
        meta: { code: '1072', title: '工单派工', icon: '' }
        meta: { code: '1072', title: '工单派工', icon: '', keepAlive: true }
      }, {
        path: 'sckbg',
        name: '生产开报工',
        name: 'SCKBG',
        code: '1073',
        component: () => import('@/views/scgl/sckbg'),
        meta: { code: '1073', title: '生产开报工', icon: '' }
        meta: { code: '1073', title: '生产开报工', icon: '', keepAlive: true }
      }
    ]
  },
@@ -413,34 +413,34 @@
    children: [
      {
        path: 'zjbz',
        name: '质检标准',
        name: 'ZJBZ',
        code: '1080',
        component: () => import('@/views/zlgl/zjbz'),
        meta: { code: '1080', title: '质检标准', icon: '' }
        meta: { code: '1080', title: '质检标准', icon: '', keepAlive: true }
      }, {
        path: 'qxdy',
        name: '缺陷定义',
        name: 'QXDY',
        code: '1081',
        component: () => import('@/views/zlgl/qxdy'),
        meta: { code: '1081', title: '缺陷定义', icon: '' }
        meta: { code: '1081', title: '缺陷定义', icon: '', keepAlive: true }
      }, {
        path: 'gxjy',
        name: '工序检验',
        name: 'GXDY',
        code: '1082',
        component: () => import('@/views/zlgl/gxjy'),
        meta: { code: '1082', title: '工序检验', icon: '' }
        meta: { code: '1082', title: '工序检验', icon: '', keepAlive: true }
      }, {
        path: 'wljy',
        name: '物流检验',
        name: 'WLJY',
        code: '1083',
        component: () => import('@/views/zlgl/wljy'),
        meta: { code: '1083', title: '物流检验', icon: '' }
        meta: { code: '1083', title: '物流检验', icon: '', keepAlive: true }
      }, {
        path: 'qxsj',
        name: '缺陷统计',
        name: 'QXSJ',
        code: '1084',
        component: () => import('@/views/zlgl/qxsj'),
        meta: { code: '1084', title: '缺陷统计', icon: '' }
        meta: { code: '1084', title: '缺陷统计', icon: '', keepAlive: true }
      }
    ]
  },
@@ -455,28 +455,28 @@
    children: [
      {
        path: 'bmgz',
        name: '编码规则',
        name: 'BMGZ',
        code: '1101',
        component: () => import('@/views/xtsz/bmgz'),
        meta: { code: '1101', title: '编码规则', icon: '' }
        meta: { code: '1101', title: '编码规则', icon: '', keepAlive: true }
      }, {
        path: 'mmxg',
        name: '密码修改',
        name: 'MMXG',
        code: '1102',
        component: () => import('@/views/xtsz/mmxg'),
        meta: { code: '1102', title: '密码修改', icon: '' }
        meta: { code: '1102', title: '密码修改', icon: '', keepAlive: true }
      }, {
        path: 'xtrz',
        name: '系统日志',
        name: 'XTRZ',
        code: '1103',
        component: () => import('@/views/xtsz/xtrz'),
        meta: { code: '1103', title: '系统日志', icon: '' }
        meta: { code: '1103', title: '系统日志', icon: '', keepAlive: true }
      }, {
        path: 'sc',
        name: 'SOP上传',
        name: 'SC',
        code: '1104',
        component: () => import('@/views/xtsz/sc'),
        meta: { code: '1104', title: 'SOP上传', icon: '' }
        meta: { code: '1104', title: 'SOP上传', icon: '', keepAlive: true }
      }
    ]
  }
src/views/jcsz/jsqd.vue
@@ -790,7 +790,7 @@
        console.log(window.innerHeight)
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
      })
    },
    /* 设置模块*/
src/views/jcsz/yhqd.vue
@@ -445,7 +445,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'YYQD',
  components: {
    Pagination
  },
@@ -708,7 +708,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
        if (window.innerHeight < 800) {
          this.tableHeight = this.tableHeight - 50
        }
src/views/jcsz/zzjg.vue
@@ -190,7 +190,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'ZZJG',
  components: {
    Pagination
  },
src/views/sbgl/sbqd.vue
@@ -496,7 +496,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'SBQD',
  components: {
    Pagination
  },
src/views/scgl/gd.vue
@@ -12,10 +12,11 @@
          <div class="elForm">
            <el-form-item label="订单状态" style=" display: flex;">
              <el-select
                v-model="form.erporderstus"
                v-model="form.mesorderstus"
                :popper-append-to-body="false"
                style="width: 200px"
                placeholder="请选择"
                @change="erporderstusChange"
              >
                <el-option
                  v-for="item in erporderstusArr"
@@ -26,7 +27,7 @@
              </el-select>
            </el-form-item>
            <el-form-item label="订单编号" style=" display: flex;">
              <el-input v-model="form.erpordercode" placeholder="请输入" style="width: 200px" />
              <el-input v-model="form.mesordercode" placeholder="请输入" style="width: 200px" />
            </el-form-item>
            <el-form-item label="产品编码" style=" display: flex;">
@@ -50,14 +51,23 @@
              <el-input v-model="form.creatuser" style="width: 200px" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="创建时间" style=" display: flex;">
              <!--              <el-date-picker-->
              <!--                v-model="form.createdate"-->
              <!--                type="daterange"-->
              <!--                :clearable="false"-->
              <!--                range-separator="~"-->
              <!--                start-placeholder="开始日期"-->
              <!--                end-placeholder="结束日期"-->
              <!--                size="mini"-->
              <!--              />-->
              <el-date-picker
                v-model="form.createdate"
                type="daterange"
                :clearable="false"
                range-separator="~"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                type="date"
                size="mini"
                :clearable="false"
                style="width: 200px;"
                format="yyyy-MM-dd"
                placeholder="选择日期"
              />
            </el-form-item>
          </div>
@@ -548,7 +558,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'GD',
  components: {
    Pagination
  },
@@ -685,10 +695,10 @@
  },
  methods: {
    async getMesOrderSearch() {
      let tempDate = this.form.createdate
      if (tempDate.length > 0) {
        tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
      }
      // let tempDate = this.form.createdate
      // if (tempDate.length > 0) {
      //   tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
      // }
      const data = {
        mesorderstus: this.form.mesorderstus, // 工单状态码
@@ -697,7 +707,7 @@
        partname: this.form.partname, // 产品名称
        partspec: this.form.partspec, // 产品规格
        creatuser: this.form.creatuser, // 创建人员
        createdate: tempDate, // 创建时间
        createdate: this.form.createdate.toString().length > 0 ? handleDatetime(this.form.createdate) : '', // 创建时间
        prop: this.form.prop, // 排序字段
        order: this.form.order, // 排序字段
        page: this.form.page, // 第几页
@@ -717,6 +727,10 @@
      // 获取生产车间数组
      const { data: res2 } = await WorkShopSelect()
      this.wkshopArr = res2
    },
    // 订单状态改变时
    erporderstusChange(val) {
      this.form.mesorderstus = val
    },
    // 排序改变时
    sortChange({ column, prop, order }) {
@@ -738,8 +752,8 @@
    // 重置
    reset(val) {
      this.form.erporderstus = ''
      this.form.erpordercode = ''
      this.form.mesorderstus = ''
      this.form.mesordercode = ''
      this.form.partcode = ''
      this.form.partname = ''
      this.form.partspec = ''
@@ -944,7 +958,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
        if (this.isFullscreen) {
          this.tableHeight = this.tableHeight - 50
        }
src/views/scgl/scdd.vue
@@ -44,6 +44,7 @@
                type="daterange"
                range-separator="~"
                size="mini"
                style="width: 240px"
                :clearable="false"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
@@ -55,17 +56,25 @@
              <el-input v-model="form.creatuser" style="width: 200px" placeholder="请输入" />
            </el-form-item>
            <el-form-item label="创建时间" style=" display: flex;">
              <!--              <el-date-picker-->
              <!--                v-model="form.createdate"-->
              <!--                type="daterange"-->
              <!--                :clearable="false"-->
              <!--                range-separator="~"-->
              <!--                start-placeholder="开始日期"-->
              <!--                end-placeholder="结束日期"-->
              <!--                size="mini"-->
              <!--              />-->
              <!--              :picker-options="expireTimeOption"-->
              <el-date-picker
                v-model="form.createdate"
                type="daterange"
                :clearable="false"
                range-separator="~"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                type="date"
                size="mini"
                :clearable="false"
                style="width: 200px;"
                format="yyyy-MM-dd"
                placeholder="选择日期"
              />
              <!--              :picker-options="expireTimeOption"-->
            </el-form-item>
          </div>
          <div style="min-height: 100px">
@@ -141,6 +150,7 @@
          <!--          />-->
          <el-table-column
            width="50"
            fixed
          >
            <template slot-scope="{row}">
              <el-radio
@@ -347,7 +357,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'SCDD',
  components: {
    Pagination
  },
@@ -449,10 +459,10 @@
        tempDate2 = handleDatetime(tempDate2[0]) + '~' + handleDatetime(tempDate2[1])
      }
      let tempDate = this.form.createdate
      if (tempDate.length > 0) {
        tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
      }
      // let tempDate = this.form.createdate
      // if (tempDate.length > 0) {
      //   tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
      // }
      const data = {
        erporderstus: this.form.erporderstus, // 订单状态码
@@ -462,7 +472,8 @@
        partspec: this.form.partspec, // 产品规格
        paydate: tempDate2, // 交付时间
        creatuser: this.form.creatuser, // 创建人员
        createdate: tempDate, // 创建时间
        createdate: this.form.createdate.toString().length > 0 ? handleDatetime(this.form.createdate) : '', // 创建时间
        // createdate: tempDate,
        prop: this.form.prop, // 排序字段
        order: this.form.order, // 排序字段
        page: this.form.page, // 第几页
@@ -628,7 +639,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
        if (this.isFullscreen) {
          this.tableHeight = this.tableHeight - 50
        }
src/views/scgl/sckbg.vue
@@ -9,7 +9,7 @@
              <div style="width: 70px">工序码:</div>
              <el-input
                v-model="produceCode"
                oninput="value=value.replace(/[^0-9.]/g,'')"
                oninput="value=value.replace(/[^0-9a-zA-Z;]/g,'')"
                name="produceCode"
                style="width: 500px"
                @keyup.enter.native="val=>enterNative(val,'produceCode')"
@@ -39,87 +39,103 @@
              :cell-style="this.$cellStyle"
              @sort-change="sortChange"
            >
              <!--          <el-table-column-->
              <!--            type="selection"-->
              <!--            width="50"-->
              <!--          />-->
              <el-table-column
                width="50"
              >
                <template slot-scope="{row}">
                  <!--                  <el-radio-->
                  <!--                    v-model="radioSelected"-->
                  <!--                    :label="row.wo"-->
                  <!--                    style="color: #fff;padding-left: 10px; margin-right: -25px;"-->
                  <!--                    @change.native="getCurrentRow(row.wo)"-->
                  <!--                  />-->
                </template>
              </el-table-column>
              <!--              <el-table-column-->
              <!--                width="50"-->
              <!--              >-->
              <!--                <template slot-scope="{row}">-->
              <!--                  &lt;!&ndash;                  <el-radio&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    v-model="radioSelected"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    :label="row.wo"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    style="color: #fff;padding-left: 10px; margin-right: -25px;"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    @change.native="getCurrentRow(row.wo)"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                  />&ndash;&gt;-->
              <!--                </template>-->
              <!--              </el-table-column>-->
              <el-table-column
                prop="RowNum"
                width="50"
                label="序号"
              />
              <el-table-column
                prop="org_code"
                prop="status"
                label="状态"
                sortable="custom"
              />
                width="110"
              >
                <template slot-scope="{row}">
                  <div v-if="row.status==='NEW'">新订单</div>
                  <div v-if="row.status==='ALLO'">已派发</div>
                  <div v-if="row.status==='START'">开工</div>
                  <div v-if="row.status==='CLOSED'">完工</div>
                </template>
              </el-table-column>
              <el-table-column
                prop="org_name"
                prop="wo_code"
                label="工单号"
                sortable="custom"
                width="160"
              />
              <el-table-column
                prop="description"
                prop="partcode"
                label="产品编码"
                sortable="custom"
                width="150"
              />
              <el-table-column
                prop="parentorg_name"
                prop="partname"
                label="产品名称"
                sortable="custom"
                width="150"
              />
              <el-table-column
                prop="parentorg_name"
                prop="seq"
                width="80"
                label="工序"
                sortable="custom"
              />
              <el-table-column
                prop="parentorg_name"
                prop="descr"
                label="工序描述"
                width="150"
                sortable="custom"
              />
              <el-table-column
                prop="parentorg_name"
                prop="plan_qty"
                label="任务数量"
                width="150"
                sortable="custom"
              />
              <el-table-column
                prop="parentorg_name"
                prop="good_qty"
                label="已报工数量"
                sortable="custom"
                width="150"
              />
              <el-table-column
                prop="lm_user"
                prop="ng_qty"
                label="不良数量"
                width="150"
                sortable="custom"
              />
              <el-table-column
                prop="lm_date"
                prop="plan_startdate"
                label="计划开工日期"
                width="185"
                sortable="custom"
              />
              <el-table-column
                label="操作"
              >
                <template slot-scope="{row}">
                  <div class="operationClass">
                    <el-button type="text" @click="edit('edit',row)">编辑</el-button>
                    <el-button type="text" @click="del(row)">删除</el-button>
                  </div>
                </template>
              </el-table-column>
              <!--              <el-table-column-->
              <!--                label="操作"-->
              <!--                width="150"-->
              <!--                fixed="right"-->
              <!--              >-->
              <!--                <template slot-scope="{row}">-->
              <!--                  <div class="operationClass">-->
              <!--                    <el-button type="text" @click="edit('edit',row)">编辑</el-button>-->
              <!--                    <el-button type="text" @click="del(row)">删除</el-button>-->
              <!--                  </div>-->
              <!--                </template>-->
              <!--              </el-table-column>-->
            </el-table>
          </div>
          <!--分页-->
@@ -140,7 +156,7 @@
              <div style="width: 70px">工序码:</div>
              <el-input
                v-model="WXproduceCode"
                oninput="value=value.replace(/[^0-9.]/g,'')"
                oninput="value=value.replace(/[^0-9a-zA-Z;]/g,'')"
                name="WXproduceCode"
                style="width: 500px"
                @keyup.enter.native="val=>enterNative(val,'WXproduceCode')"
@@ -170,87 +186,103 @@
              :cell-style="this.$cellStyle"
              @sort-change="sortChange"
            >
              <!--          <el-table-column-->
              <!--            type="selection"-->
              <!--            width="50"-->
              <!--          />-->
              <el-table-column
                width="50"
              >
                <template slot-scope="{row}">
                  <!--                  <el-radio-->
                  <!--                    v-model="radioSelected"-->
                  <!--                    :label="row.wo"-->
                  <!--                    style="color: #fff;padding-left: 10px; margin-right: -25px;"-->
                  <!--                    @change.native="getCurrentRow(row.wo)"-->
                  <!--                  />-->
                </template>
              </el-table-column>
              <!--              <el-table-column-->
              <!--                width="50"-->
              <!--              >-->
              <!--                <template slot-scope="{row}">-->
              <!--                  &lt;!&ndash;                  <el-radio&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    v-model="radioSelected"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    :label="row.wo"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    style="color: #fff;padding-left: 10px; margin-right: -25px;"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                    @change.native="getCurrentRow(row.wo)"&ndash;&gt;-->
              <!--                  &lt;!&ndash;                  />&ndash;&gt;-->
              <!--                </template>-->
              <!--              </el-table-column>-->
              <el-table-column
                prop="RowNum"
                width="50"
                label="序号"
              />
              <el-table-column
                prop="org_code"
                prop="status"
                label="状态"
                sortable="custom"
              />
                width="110"
              >
                <template slot-scope="{row}">
                  <div v-if="row.status==='NEW'">新订单</div>
                  <div v-if="row.status==='ALLO'">已派发</div>
                  <div v-if="row.status==='START'">开工</div>
                  <div v-if="row.status==='CLOSED'">完工</div>
                </template>
              </el-table-column>
              <el-table-column
                prop="org_name"
                prop="wo_code"
                label="工单号"
                sortable="custom"
                width="160"
              />
              <el-table-column
                prop="description"
                prop="partcode"
                label="产品编码"
                sortable="custom"
                width="150"
              />
              <el-table-column
                prop="parentorg_name"
                prop="partname"
                label="产品名称"
                sortable="custom"
                width="150"
              />
              <el-table-column
                prop="parentorg_name"
                prop="seq"
                width="80"
                label="工序"
                sortable="custom"
              />
              <el-table-column
                prop="parentorg_name"
                prop="descr"
                label="工序描述"
                width="150"
                sortable="custom"
              />
              <el-table-column
                prop="parentorg_name"
                prop="plan_qty"
                label="任务数量"
                width="150"
                sortable="custom"
              />
              <el-table-column
                prop="parentorg_name"
                prop="good_qty"
                label="已报工数量"
                sortable="custom"
                width="150"
              />
              <el-table-column
                prop="lm_user"
                prop="ng_qty"
                label="不良数量"
                width="150"
                sortable="custom"
              />
              <el-table-column
                prop="lm_date"
                prop="plan_startdate"
                label="计划开工日期"
                width="185"
                sortable="custom"
              />
              <el-table-column
                label="操作"
              >
                <template slot-scope="{row}">
                  <div class="operationClass">
                    <el-button type="text" @click="edit('edit',row)">编辑</el-button>
                    <el-button type="text" @click="del(row)">删除</el-button>
                  </div>
                </template>
              </el-table-column>
              <!--              <el-table-column-->
              <!--                label="操作"-->
              <!--                width="150"-->
              <!--                fixed="right"-->
              <!--              >-->
              <!--                <template slot-scope="{row}">-->
              <!--                  <div class="operationClass">-->
              <!--                    <el-button type="text" @click="edit('edit',row)">编辑</el-button>-->
              <!--                    <el-button type="text" @click="del(row)">删除</el-button>-->
              <!--                  </div>-->
              <!--                </template>-->
              <!--              </el-table-column>-->
            </el-table>
          </div>
          <!--分页-->
@@ -282,8 +314,7 @@
    >
      <el-form ref="dialogForm" inline :model="dialogForm" label-width="110px">
        <el-form-item label="工单编号:">
          <!--          <el-input v-model="dialogForm.name"></el-input>-->
          <div style="width: 200px">PO2022050500001</div>
          <div style="width: 200px">{{ dialogForm.wo_code }}</div>
        </el-form-item>
        <el-form-item label="产品编码:">
          <div style="width: 200px">427100</div>
@@ -310,6 +341,7 @@
        <el-form-item label="未报/已报:">
          <div style="width: 200px">900/100</div>
        </el-form-item>
        <el-form-item v-if="dialogTitle==='自制开始'" label="开工数量:">
          <div style="width: 200px">1000</div>
        </el-form-item>
@@ -547,11 +579,17 @@
import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz'
import { getCookie } from '@/utils/auth'
import $ from 'jquery'
import { MesOrderStepReportSelectUserGroup, MesOrderStepSearch, MesOrderStepStartSelectEqp } from '@/api/scgl'
import {
  MesOrderGroupSelectUser,
  MesOrderStepReportSelectUserGroup,
  MesOrderStepSearch,
  MesOrderStepStartSelectEqp,
  MesOrderWxStepSearch
} from '@/api/scgl'
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'SCKBG',
  components: {
    Pagination
  },
@@ -580,18 +618,18 @@
      produceCode: '', // 工序码
      WXproduceCode: '', // 外协工序码
      form: {
        orderstepqrcode: '', // 扫描的二维码信息
        prop: 'lm_date', // 排序字段
        order: 'desc', // 排序字段
        orderstepqrcode: 'PO202206280001_4;Step01', // 扫描的二维码信息
        prop: 'wo', // 排序字段
        order: 'asc', // 排序字段
        page: 1, // 第几页
        rows: 20 // 每页多少条
      },
      total: 10,
      tableData: [],
      WXform: { // 外协表单
        orderstepqrcode: '', // 扫描的二维码信息
        prop: 'lm_date', // 排序字段
        order: 'desc', // 排序字段
        orderstepqrcode: 'PO202206280001_4;Step01', // 扫描的二维码信息
        prop: 'wo_code', // 排序字段
        order: 'asc', // 排序字段
        page: 1, // 第几页
        rows: 20 // 每页多少条
      },
@@ -601,10 +639,17 @@
      dialogVisible: false,
      dialogTitle: '', // 自制开始、自制报工、外协发料、外协收料
      dialogForm: {
        OrgType: '',
        OrgCode: '',
        OrgName: '',
        SupUnit: ''// 上级单位
        wo_code: '', // 工单编号
        partcode: '', // 产品编码
        partname: '', // 产品名称
        partspec: '', // 产品规格
        currentstep: '', // 当前工序
        nextstep: '', // 下一道工序
        desr: '', // 工序描述
        plan_qty: '', // 任务数量
        report_qty: '', // 已报数量
        noreport_qty: '' // 未报数量
      },
      userTableData: [
        { RowNum: 1, name: '张三' },
@@ -645,9 +690,14 @@
  },
  methods: {
    async getMesOrderStepSearch() {
      // const res = await MesOrderStepSearch(this.form)
      // this.tableData = res.data
      // this.total = res.count
      const res = await MesOrderStepSearch(this.form)
      this.tableData = res.data
      this.total = res.count
    },
    async MesOrderWxStepSearch() {
      const res = await MesOrderWxStepSearch(this.WXform)
      this.WXtableData = res.data
      this.WXtotal = res.count
    },
    // 排序改变时
    sortChange({ column, prop, order }) {
@@ -669,11 +719,13 @@
    tabClick(val, d) {
      console.log(val, d, 1)
      if (this.$refs.elTabs.currentName === '0') {
        this.getMesOrderStepSearch()
        this.$nextTick(() => {
          $("input[name='produceCode']")[0].focus()
        })
      }
      if (this.$refs.elTabs.currentName === '1') {
        this.MesOrderWxStepSearch()
        this.$nextTick(() => {
          $("input[name='WXproduceCode']")[0].focus()
        })
@@ -698,29 +750,42 @@
      this.getMesOrderStepSearch()
    },
    // 自制开始
    ZZstart() {
    async  ZZstart() {
      this.dialogTitle = '自制开始'
      this.dialogVisible = true
      // this.dialogVisible = true
      this.dialogVisibleTrue()
      const res = await MesOrderStepStartSelectEqp({ orderstepqrcode: produceCode })
    },
    // 自制报工
    ZZreport() {
      this.dialogTitle = '自制报工'
      this.dialogVisible = true
      // this.dialogVisible = true
      this.dialogVisibleTrue()
      this.getUserTableData()
    },
    // 外协发料
    WXsend() {
    async  WXsend() {
      this.dialogTitle = '外协发料'
      this.dialogVisible = true
      this.dialogVisibleTrue()
      // this.dialogVisible = true
      // const { data: res } = await MesOrderStepReportSelectUserGroup()
      // this.xx = res
    },
    // 外协收料
    WXback() {
      this.dialogTitle = '外协收料'
      this.dialogVisibleTrue()
      // this.dialogVisible = true
    },
    dialogVisibleTrue() {
      this.dialogVisible = true
      // this.dialogForm.wo_code=
    },
    // 报工查询用户表
    async getUserTableData() {
      // const res = await MesOrderGroupSelectUser({usergroupcode:this.})
      // const { data: res } = await MesOrderGroupSelectUser({ usergroupcode: 'SC01' })
      this.userTableData.forEach(item => {
        let number = Math.random() * Math.random()// 作为删除时的标识符
        number = number === 0 ? (10 + Math.random()) : number
src/views/wlgl/ckdy.vue
@@ -142,7 +142,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'CKDY',
  components: {
    Pagination
  },
src/views/wlgl/kwdy.vue
@@ -172,7 +172,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'KWDY',
  components: {
    Pagination
  },
src/views/xtsz/bmgz.vue
@@ -181,7 +181,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'BMGZ',
  components: {
    Pagination
  },
src/views/zzmx/chda.vue
@@ -522,7 +522,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'CHDA',
  components: {
    Pagination
  },
@@ -789,7 +789,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
        if (window.innerHeight < 800) {
          this.tableHeight = this.tableHeight - 50
        }
src/views/zzmx/gxdy.vue
@@ -357,7 +357,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'GXDY',
  components: {
    Pagination
  },
@@ -568,7 +568,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
        if (window.innerHeight < 800) {
          this.tableHeight = this.tableHeight - 50
        }
src/views/zzmx/gylx.vue
@@ -261,7 +261,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'GYLX',
  components: {
    Pagination
  },
@@ -634,7 +634,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
      })
    }
  }
src/views/zzmx/jpgj.vue
@@ -427,7 +427,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'JPGJ',
  components: {
    Pagination
  },
@@ -817,7 +817,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 250
        this.tableHeight = this.mainHeight - 100
        this.isFullscreen = window.innerHeight < 800
        // this.isFullscreen = window.innerHeight < 800
      })
    }
  }
src/views/zzmx/wllx.vue
@@ -153,7 +153,7 @@
const SER_HZ = /^[\u4e00-\u9fa5]+$/
export default {
  name: 'Zzjg',
  name: 'WLLX',
  components: {
    Pagination
  },