zss
2024-03-22 d5043ad197423641b066b13fa1eed2189b103f52
模具台账更改,未完成
已修改1个文件
111 ■■■■■ 文件已修改
src/views/equipment/mould/index.vue 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipment/mould/index.vue
@@ -114,20 +114,98 @@
                },
                {
                  minWidth: '140px',
                  prop: 'createUser',
                  label: '责任人',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'status',
                  label: '模具状态',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'model',
                  label: '模具型号',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'workShop',
                  label: '车间',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'select',
                  formatter: this.workShopFormatter,
                  optList: () => {
                    return this.workshopList
                  }
                },
                {
                  minWidth: '140px',
                  prop: 'shelfNo',
                  label: '货架号',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'erpOrder',
                  label: 'ERP订单号',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'texture',
                  label: '材质',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'supplier',
                  label: '供应商',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'userTime',
                  label: '投入使用日期',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'date',
                  formatter: this.formatDateTime
                },
                {
                  minWidth: '140px',
                  prop: 'serviceLife',
                  label: '使用寿命',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text'
                },
                {
                  minWidth: '140px',
                  prop: 'number',
                  label: '已使用次数',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'person',
                  label: '责任人',
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140px',
                  prop: 'createTime',
@@ -147,6 +225,7 @@
                minWidth: 100
              },
          },
        workshopList: []
     }
  },
  computed: {
@@ -180,6 +259,14 @@
            fun: this.deleteHandle
        }]
    }
    this.table.operator = arr.length>0 ? arr : null
    remote('work_shop').then((response) => {
      if (response.data.code === 0) {
        this.workshopList = response.data.data
      } else {
        this.workshopList = []
      }
    })
  },
  mounted(){
@@ -228,6 +315,14 @@
            }
        })
    },
    workShopFormatter(row, column, cellValue) {
      this.workshopList.forEach((obj) => {
        if (obj.value == cellValue) {
          cellValue = obj.label
        }
      })
      return cellValue
    },
    addOrUpdateHandle(row){
        if(row){
            this.editRow = row