王震
2024-01-12 4db7bd40aa774870c8fb73e5bfc41514ec662923
src/views/plan/manufacturingorder/routing.vue
@@ -31,7 +31,7 @@
  </el-dialog>
</template>
<script>
import { fetchList } from '@/api/technology/routing'
import { fetchList } from '@/api/technology/document'
import ttable from '@/views/common/ztt-table.vue'
import { remote } from '@/api/admin/dict'
export default {
@@ -73,12 +73,12 @@
        border: true, // 是否有纵向边框
        lazy: false, // 是否需要懒加载
        fit: true, // 列的宽度是否自撑开
        multiSelect: false, //
        multiSelect: true, //
        seqNo: true,
        isRefresh: true, // 是否显示刷新按钮
        isShowHide: true, // 是否显示显影按钮
        isSearch: false, // 高级查询按钮
        defaultOrderBy: { column: 'updateTime', direction: 'desc' }
        isShowHide: true, // 是否显示显影按钮H
        isSearch: true, // 高级查询按钮
        defaultOrderBy: { column: 'createTime', direction: 'desc' }
      },
      table: {
        total: 0,
@@ -89,62 +89,62 @@
        column: [
          {
            minWidth: '100',
            prop: 'routingNo',
            label: '工艺编号',
            prop: 'number',
            label: '文件编号',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            minWidth: '100',
            prop: 'name',
            label: '文件名称',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text'
          },
          // 工艺类型
          // {
          //   minWidth: '120',
          //   prop: 'bomTypeDb',
          //   label: '工艺类型',
          //   sort: true,
          //   isTrue: true,
          //   isSearch: false,
          //   searchInfoType: 'select',
          //   formatter: this.formatBomTypeDbType,
          //   optList: () => {
          //     return this.bomTypeDbOptions
          //   }
          // },
          // {
          //   minWidth: '100',
          //   prop: 'name',
          //   label: '工艺名称',
          //   prop: 'master',
          //   label: '主工艺',
          //   sort: true,
          //   isTrue: true,
          //   isSearch: true,
          //   searchInfoType: 'text'
          //   searchInfoType: 'select',
          //   formatter: this.getMaster,
          //   optList: () => {
          //     return this.getMasterList()
          //   }
          // },
          // 工艺类型
          {
            minWidth: '120',
            prop: 'bomTypeDb',
            label: '工艺类型',
            sort: true,
            isTrue: true,
            isSearch: false,
            searchInfoType: 'select',
            formatter: this.formatBomTypeDbType,
            optList: () => {
              return this.bomTypeDbOptions
            }
          },
          {
            minWidth: '100',
            prop: 'master',
            label: '主工艺',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'select',
            formatter: this.getMaster,
            optList: () => {
              return this.getMasterList()
            }
          },
          {
            minWidth: '100',
            prop: 'state',
            label: '状态',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'select',
            formatter: this.getMasterState,
            optList: () => {
              return this.getMasterStateList()
            }
          },
          // {
          //   minWidth: '100',
          //   prop: 'state',
          //   label: '状态',
          //   sort: true,
          //   isTrue: true,
          //   isSearch: true,
          //   searchInfoType: 'select',
          //   formatter: this.getMasterState,
          //   optList: () => {
          //     return this.getMasterStateList()
          //   }
          // },
          {
            minWidth: '100',
            prop: 'description',
@@ -154,16 +154,16 @@
            isSearch: true,
            searchInfoType: 'text'
          },
          {
            minWidth: '120',
            prop: 'partName',
            label: '零件名',
            sort: true,
            isTrue: true,
            isSearch: true,
            searchInfoType: 'text',
            noShowTip: false
          },
          // {
          //   minWidth: '120',
          //   prop: 'partName',
          //   label: '零件名',
          //   sort: true,
          //   isTrue: true,
          //   isSearch: true,
          //   searchInfoType: 'text',
          //   noShowTip: false
          // },
          {
            minWidth: '120',
            prop: 'partNo',
@@ -202,7 +202,7 @@
          label: '草稿'
        },
        {
          value: '02accepted',
          value: '02pending',
          label: '已接受'
        },
        {
@@ -285,7 +285,7 @@
    currshowlist() {
      this.innerVisible = this.currshowlist
      if (this.currshowlist) {
        this.queryParam.state = '02accepted'
        this.queryParam.state = '03accepted'
        this.$nextTick(() => {
          this.getData()
        })