zouyu
2023-12-21 a48ded866d223f581944ea9043df1b296b3425e3
	modified:   src/views/basic/company/index.vue
modified: src/views/basic/customizeparamtemplatetype/index.vue
modified: src/views/basic/division/index.vue
modified: src/views/basic/factory/index.vue
modified: src/views/basic/location/index.vue
modified: src/views/basic/param/index.vue
modified: src/views/basic/part/index.vue
modified: src/views/basic/post/index.vue
modified: src/views/basic/shift/index.vue
modified: src/views/basic/staff/index.vue
modified: src/views/basic/template/index.vue
modified: src/views/basic/warehouse/index.vue
modified: src/views/basic/workstation/index.vue
modified: src/views/plan/manufacturingorder/index.vue
modified: src/views/plan/masterproductionschedule/index.vue
modified: src/views/plan/operationtask/index.vue
modified: src/views/plan/productionschedul/index.vue
modified: src/views/quality/finishedProductInspection/index.vue
modified: src/views/quality/rawMaterial/index.vue
modified: src/views/technology/completeproductstructure/index.vue
modified: src/views/technology/document/index.vue
modified: src/views/technology/operation/index.vue
modified: src/views/technology/routing/index.vue
modified: src/views/technology/structure/index.vue
modified: src/views/warehouse/FinishedWarehousing/index.vue
modified: src/views/warehouse/changestock/index.vue
modified: src/views/warehouse/pallettransports/index.vue
已修改27个文件
1275 ■■■■ 文件已修改
src/views/basic/company/index.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/customizeparamtemplatetype/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/division/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/factory/index.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/location/index.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/param/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/part/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/post/index.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/shift/index.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/staff/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/template/index.vue 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/warehouse/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/workstation/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/manufacturingorder/index.vue 59 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/masterproductionschedule/index.vue 87 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/operationtask/index.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/productionschedul/index.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/finishedProductInspection/index.vue 514 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/rawMaterial/index.vue 63 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/completeproductstructure/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/document/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/operation/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/routing/index.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/structure/index.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/FinishedWarehousing/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/changestock/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/pallettransports/index.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/company/index.vue
@@ -77,23 +77,13 @@
          ],
          toolbar: [],
          operator:[
            {
              text: '删除',
              type: 'text',
              size: 'small',
              fun: this.deleteHandle
            }
          ],
          operator: null,
          operatorConfig:{
            fixed:'right',
            label:'操作',
            width:100,
            minWidth:100
          },
          isCopy:{
            fun:this.hello
          }
        },
      }
    },
@@ -104,12 +94,25 @@
    computed: {
      ...mapGetters(['permissions'])
    },
    created(){
      if(this.permissions.basic_company_del){
          this.table.operator = [
            {
              text: '删除',
              type: 'text',
              size: 'small',
              fun: this.deleteHandle
            }
          ]
      }
      if(this.permissions.basic_company_copy){
        this.table.isCopy = {
            fun:this.hello
          }
      }
    },
    methods: {
      hello(){
        if(!this.permissions.basic_company_copy){
          this.$message.error("该角色没有操作权限")
          return
        }
        if(this.multipleSelection.length < 1){
          this.$message.error("请先选择要复制的数据!")
          return
@@ -135,10 +138,6 @@
      },
      // 删除公司信息
      deleteHandle(row) {
        if(!this.permissions.basic_company_del){
          this.$message.error("该角色没有操作权限")
          return
        }
        this.$confirm('是否确认删除公司名为:"'+row.companyName+'"', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
src/views/basic/customizeparamtemplatetype/index.vue
@@ -92,14 +92,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -119,6 +112,16 @@
    TableForm
  },
  created() {
    if(this.permissions.basic_templatetyperelation_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getParamApplyDict()
  },
  methods: {
@@ -135,10 +138,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_templatetyperelation_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除类型名称为' + row.templateTypeName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/division/index.vue
@@ -158,14 +158,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -178,6 +171,18 @@
  components: {
    TableForm,
    ttable
  },
  created(){
    if(this.permissions.basic_division_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
  },
  computed: {
    ...mapGetters(['permissions'])
@@ -200,10 +205,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_division_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除部门名称为:' + row.divisionName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/factory/index.vue
@@ -150,14 +150,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -174,6 +167,18 @@
  computed: {
    ...mapGetters(['permissions'])
  },
  created(){
    if(this.permissions.basic_factory_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
  },
  methods: {
    // 获取数据列表
    getData() {
@@ -183,6 +188,7 @@
    addOrUpdateHandle(row) {
      if(!this.permissions.basic_factory_edit && row.id!=null){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
@@ -191,10 +197,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_factory_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除工厂名称为:' + row.factoryName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/location/index.vue
@@ -210,14 +210,7 @@
          } */
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -243,6 +236,16 @@
    TableForm
  },
  created() {
    if(this.permissions.basic_location_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getLocTypeCache('warehouse_type') // 获取定时任务运行时状态
    this.initWarehouseSelect()
    // this.getIFSLocationCache()
@@ -359,10 +362,7 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_location_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除库位号为' + row.locNo, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/param/index.vue
@@ -152,15 +152,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -179,6 +171,17 @@
    ...mapGetters(['permissions'])
  },
  created() {
    if(this.permissions.technology_param_del){
      this.table.operator = [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getParamType()
  },
  methods: {
@@ -219,10 +222,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_param_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除编号为' + row.code, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/part/index.vue
@@ -404,14 +404,7 @@
          //   loading: false
          // }
        ],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -441,6 +434,16 @@
    PrintLabelForm
  },
  created() {
    if(this.permissions.basic_part_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.uploadInfo.isShow = this.permissions.basic_part_upload
    this.table.column.find((e) => e.label === 'IFS启用批次管理').isTrue = false
    this.table.column.find((e) => e.label === '计划方法').isTrue = false
@@ -476,10 +479,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_part_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认零件名为:' + row.partName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/post/index.vue
@@ -119,20 +119,12 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
          width: 60,
          minWidth: 60
          width: 70,
          minWidth: 70
        }
      },
@@ -199,6 +191,19 @@
    TableForm,
    ttable
  },
  created(){
    if(this.permissions.basic_staff_del){
      this.table.operator = [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
  },
  computed: {
    ...mapGetters(['permissions'])
  },
@@ -219,10 +224,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_staff_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除编号为' + row.postNo, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/shift/index.vue
@@ -62,15 +62,7 @@
            {minWidth:'140',prop:"name",label:"班次",sort: true,isTrue:true,isSearch:true,searchInfoType:'text',render:{fun:this.addOrUpdateHandle}}
          ],
          toolbar: [],
          operator: [
            {
              text: '删除',
              icon: 'el-icon-delete',
              type: 'text',
              size: 'small',
              fun: this.deleteHandle
            }
          ],
          operator: null,
          operatorConfig: {
            fixed: 'right',
            label: '操作',
@@ -83,6 +75,19 @@
    components: {
      TableForm,
      ttable
    },
    created(){
      if(this.permissions.basic_shift_del){
        this.table.operator = [
            {
              text: '删除',
              icon: 'el-icon-delete',
              type: 'text',
              size: 'small',
              fun: this.deleteHandle
            }
          ]
      }
    },
    computed: {
      ...mapGetters(['permissions'])
@@ -105,10 +110,6 @@
      },
      // 删除
      deleteHandle(row) {
        if(!this.permissions.basic_shift_del){
          this.$message.error("该角色没有操作权限")
          return
        }
        this.$confirm('是否确认删除班次名称为:' + row.name, '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
src/views/basic/staff/index.vue
@@ -211,14 +211,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -254,10 +247,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_staff_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除人员名称为:' + row.staffName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
@@ -290,6 +279,16 @@
  },
  created() {
    this.uploadInfo.isShow = this.permissions.basic_staff_upload
    if(this.permissions.basic_staff_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.initPersonNatureSelect()
  }
}
src/views/basic/template/index.vue
@@ -267,15 +267,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -290,6 +282,19 @@
    ttable,
    TableForm,
    ParamDialog
  },
  created(){
    if(this.permissions.technology_operationtemplate_del){
      this.table.operator = [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
  },
  computed: {
    ...mapGetters(['permissions'])
@@ -432,10 +437,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_operationtemplate_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除模板编号为' + row.templateNo, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/warehouse/index.vue
@@ -181,14 +181,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -214,6 +207,16 @@
    TableForm
  },
  created() {
    if(this.permissions.basic_warehouse_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getWarehouseTypeCache('storehouse_type') // 获取定时任务运行时状态
  },
  computed: {
@@ -267,10 +270,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_warehouse_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除仓库名称为' + row.warehouseName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/basic/workstation/index.vue
@@ -125,14 +125,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -152,6 +145,16 @@
    ...mapGetters(['permissions'])
  },
  created() {
    if(this.permissions.basic_workstation_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getReportTypeDict()
  },
  methods: {
@@ -196,10 +199,6 @@
    },
    // 删除工作站点
    deleteHandle(row) {
      if(!this.permissions.basic_workstation_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除工作站为' + row.name, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/plan/manufacturingorder/index.vue
@@ -101,6 +101,7 @@
          </el-button> -->
          <el-button
          v-if="permissions.manufacturingorder_export"
            @click="exportExcel"
            type="primary"
            style="margin-left:10px;"
@@ -108,6 +109,7 @@
            >导出
          </el-button>
          <el-button
          v-if="permissions.manufacturingorder_label_print"
            @click="labelPrint"
            type="primary"
            style="margin-left:10px;"
@@ -1017,21 +1019,6 @@
  },
  created() {
    this.getManufactureAttrs()
    /**
 * {
            text: '新增',
            type: 'primary',
            fun: this.addOrUpdateHandle
          },
          {
            text: '按客户订单查询',
            fun: this.getOperationTaskByCustomer
          },
          {
            text: '订单合并',
            fun: this.openOrderMerge
          }
 */
    if (this.permissions.plan_manufacturingorder_add) {
      this.table.toolbar.push({
        text: '新增',
@@ -1045,28 +1032,6 @@
        fun: this.getOperationTaskByCustomer
      })
    }
    // if (this.permissions.manufacturingorder_order_merge) {
    //   this.table.toolbar.push({
    //     text: '订单合并',
    //     fun: this.openOrderMerge
    //   })
    // }
    /**
     * {
          label: '手动新增',
          command: 'MANUAL',
          disabled: false,
          permitArr: ['01planned', '02issued']
        },
        {
          label: '自动新增',
          command: 'AUTO',
          disabled: false,
          permitArr: ['01planned', '02issued']
        }
     */
    if (this.permissions.manufacturingorder_create_task_manual) {
      this.taskTypeArr.push({
        label: '手动新增',
@@ -1083,21 +1048,7 @@
        permitArr: ['01planned', '02issued']
      })
    }
    // 初始化queryParam
    // this.initSearchCondition()
    // if (!this.options.cancelRunCreated) {
    //   this.getDataList()
    // }
    // const queryParam = []
    //       queryParam.push(
    //         Object.assign({
    //           prop: 'state',
    //           searchInfoType: 'select',
    //           propVal: '01planned'
    //         })
    //       )
    //   this.$refs.manufacturingOrderTable.setQueryParam(queryParam)
    //   this.getData()
    this.getBomTypeDbOptions()
    // 车间订单是否同步IFS
@@ -1301,6 +1252,10 @@
    },
    // 新增 / 修改
    addOrUpdateHandle(row) {
      if(!this.permissions.plan_manufacturingorder_edit && row.id!=null){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$router.push({
        name: 'productorderForm',
        query: { id: row == null ? null : row.id }
src/views/plan/masterproductionschedule/index.vue
@@ -591,38 +591,7 @@
          } */
        ],
        toolbar: [],
        operator: [
          // {
          //   text: '订单预留',
          //   type: 'text',
          //   size: 'small',
          //   fun: this.customReserved
          // },
          // {
          //   text: '查看库存',
          //   type: 'text',
          //   size: 'small',
          //   fun: this.stockHandle
          // },
          {
            text: '来源',
            type: 'text',
            size: 'small',
            fun: this.searchMasterPlanSourceHandle
          },
          {
            text: '作废',
            type: 'text',
            size: 'small',
            fun: this.deleteMainPlan
          },
          // {
          //   text: '订单',
          //   type: 'text',
          //   size: 'small',
          //   fun: this.searchOrderHandle
          // }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -668,40 +637,25 @@
  },
  created() {
    this.getManufactureAttrs()
    /*
          {
            text: '新增',
            type: 'primary',
            fun: this.addMasterProductionSchedule,
            disabled: false,
            permitArr: []
          },
          {
            text: '创建委外订单',
            fun: this.createOutsourcingOrder
          } */
    if (this.permissions.plan_masterproductionschedule_add) {
      /* this.table.toolbar.push({
        text: '新增',
        type: 'primary',
        fun: this.addMasterProductionSchedule,
        disabled: false,
        permitArr: []
      }) */
    let optionList = []
    if(this.permissions.masterproductionschedule_view_source){
      optionList.push({
            text: '来源',
            type: 'text',
            size: 'small',
            fun: this.searchMasterPlanSourceHandle
          })
    }
    if (this.permissions.masterproductionschedule_create_outsourcing) {
      // this.table.toolbar.push({
      //   text: '创建委外订单',
      //   fun: this.createOutsourcingOrder
      // })
    if(this.permissions.plan_masterproductionschedule_del){
      optionList.push({
            text: '作废',
            type: 'text',
            size: 'small',
            fun: this.deleteMainPlan
          })
    }
    if (this.permissions.masterproductionschedule_create_order_manual) {
      // this.orderTypeArr.push({
      //   label: '手动新增',
      //   command: 'MANUAL',
      //   disabled: false,
      //   permitArr: ['02processed']
      // })
    if(optionList.length>0){
      this.table.operator = optionList
    }
    if (this.permissions.masterproductionschedule_create_order_auto) {
      this.orderTypeArr.push({
@@ -714,7 +668,6 @@
    this.getSysParam(sysParam.IS_REPORT_OPERATION)
  },
  methods: {
    deleteMainPlan(row){},
    getSysParam(paramKey) {
      getSysParam(paramKey).then((response) => {
        var paramVal = response.data.data
@@ -756,6 +709,10 @@
    },
    // 修改
    addOrUpdateHandle(row) {
      if(!this.permissions.plan_masterproductionschedule_edit && row.id!=null){
        this.$message.error("该角色没有操作权限");
        return
      }
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
        this.$refs.addOrUpdate.init(row ? row.id : row, row ? row.state : row)
src/views/plan/operationtask/index.vue
@@ -43,7 +43,9 @@
          >
            货盘运输
          </el-button>
          <el-button style="margin-left:10px" @click="openTaskOrder">
          <el-button
          v-if="permissions.operationTask_operationtask_priority"
          style="margin-left:10px" @click="openTaskOrder">
            优先级
          </el-button>
        </template>
@@ -476,15 +478,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -539,6 +533,17 @@
    taskOrderDialog
  },
  created() {
    if(this.permissions.operationTask_operationtask_del){
      this.table.operator = [
          {
            text: '删除',
            icon: 'el-icon-delete',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getManufactureAttrs()
  },
  mounted() {
src/views/plan/productionschedul/index.vue
@@ -16,8 +16,18 @@
            @selection-change="selectionRow"
            :table-loading="loading">
            <template #menu="{ row, index }">
              <el-button type="text" icon="el-icon-edit" size="small" @click="editHandle(row, index)">编辑</el-button>
              <el-button type="text" icon="el-icon-delete" size="small" @click="deleteHandle(row, index)">删除</el-button>
              <el-button
              v-if="permissions.plan_productionschedul_edit"
              type="text"
              icon="el-icon-edit"
              size="small"
              @click="editHandle(row, index)">编辑</el-button>
              <el-button
              v-if="permissions.plan_productionschedul_del"
              type="text"
              icon="el-icon-delete"
              size="small"
              @click="deleteHandle(row, index)">删除</el-button>
            </template>
          </avue-crud>
          </div>
@@ -27,7 +37,7 @@
            <el-card>
              <div slot="header" class="clearfix">
                <span>调度时间线</span>
                <el-button v-if="scheduleList.length>0" @click="openEditDialog" style="float: right; padding: 3px 0" type="text">编辑</el-button>
                <el-button v-if="permissions.plan_productionschedul_edit_line && scheduleList.length>0" @click="openEditDialog" style="float: right; padding: 3px 0" type="text">编辑</el-button>
              </div>
              <div style="height:70vh;overflow-y: scroll;">
                <el-timeline>
@@ -274,6 +284,9 @@
        ],
      },
      spanArr: [{
        prop: 'id',
        span: []
      },{
        prop: 'projectName',
        span: []
      }, {
@@ -306,6 +319,9 @@
    ...mapGetters(['permissions']),
  },
  created(){
    if(!this.permissions.plan_productionschedul_edit && !this.permissions.plan_productionschedul_del){
      this.option.menu = false
    }
    this.loading = true
    this.getData()
    this.getParamType()
src/views/quality/finishedProductInspection/index.vue
@@ -35,272 +35,282 @@
    import finishedProductInspectionAdd from './finishedProduct-form'
    import { page,deletePro,exportExaminationProducts,queryById } from '@/api/quality/finishedProduct'
    import { transform } from '@/util/fileTransform'
    import { mapGetters } from 'vuex'
    import printTemplate from './finishedProducter-print.vue'
    import PrintJS from 'print-js'
    import { title } from 'process'
    export default {
        components: {
            finishedProductInspectionAdd,
            ttable,
            printTemplate
        },
        data() {
            return {
                printFormData: null,
                printDialogVisible: false,
                result:[{label:'全部',value: ''},{label:'合格',value: '1'},{label:'不合格',value: '0'}],
                type: [1],
                prelang: 'finishedProduct',
                ajaxFun: page,
                options: {
                    height: 300, // 默认高度-为了表头固定
                    stripe: true, // 是否为斑马纹 table
                    highlightCurrentRow: false, // 是否要高亮当前行
                    border: true, // 是否有纵向边框
                    lazy: false, // 是否需要懒加载
                    fit: true, // 列的宽度是否自撑开
                    multiSelect: true, //
                    seqNo: true,
                    isRefresh: true, // 是否显示刷新按钮
                    isShowHide: true, // 是否显示显影按钮H
                    isSearch: true, // 高级查询按钮
                    defaultOrderBy: { column: 'createTime', direction: 'desc' },
                },
                table: {
                    total: 0,
                    currentPage: 1,
                    pageSize: 20,
                    data: [],
                    // 标题
                    column: [
                         {
                            minWidth: '120',
                            prop: 'finInsNo',
                            label: '产品检验编号',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text',
                            render: { fun: this.addOrUpdateHandle }
                        },
    components: {
        finishedProductInspectionAdd,
        ttable,
        printTemplate
    },
    data() {
        return {
            printFormData: null,
            printDialogVisible: false,
            result:[{label:'全部',value: ''},{label:'合格',value: '1'},{label:'不合格',value: '0'}],
            type: [1],
            prelang: 'finishedProduct',
            ajaxFun: page,
            options: {
                height: 300, // 默认高度-为了表头固定
                stripe: true, // 是否为斑马纹 table
                highlightCurrentRow: false, // 是否要高亮当前行
                border: true, // 是否有纵向边框
                lazy: false, // 是否需要懒加载
                fit: true, // 列的宽度是否自撑开
                multiSelect: true, //
                seqNo: true,
                isRefresh: true, // 是否显示刷新按钮
                isShowHide: true, // 是否显示显影按钮H
                isSearch: true, // 高级查询按钮
                defaultOrderBy: { column: 'createTime', direction: 'desc' },
            },
            table: {
                total: 0,
                currentPage: 1,
                pageSize: 20,
                data: [],
                // 标题
                column: [
                        {
                            minWidth: '120',
                            prop: 'productNo',
                            label: '报工单号',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'orderNumber',
                            label: '订单号',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'customerName',
                            label: '客户名称',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '130',
                            width: '150',
                            prop: 'projectName',
                            label: '工程名称',
                            sort: true,
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text',
                        },
                        {
                            minWidth: '120',
                            prop: 'outBatchNo',
                            label: '批次号',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'materialCode',
                            label: '产品编号',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'material',
                            label: '产品大类',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'specs',
                            label: '规格型号',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'unit',
                            label: '单位',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'quantity',
                            label: '数量',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'text'
                        },
                        {
                            minWidth: '120',
                            prop: 'createTime',
                            label: '检验日期',
                            sort: true,
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'datetimerange',
                            formatter: this.formatDateTime,
                        },
                        {
                            minWidth: '120',
                            prop: 'result',
                            label: '检测结果',
                            isTrue: true,
                            isSearch: true,
                            searchInfoType: 'select',
                            formatter: this.formatResult,
                            optList: () => {
                                return this.result
                            }
                        },
                    ],
                    toolbar: [
                        {
                            text: '下载检验报告',
                            type: 'primary',
                            fun: this.downloadProReport
                        }
                    ],
                    operator: [{
                        text: '作废',
                        type: 'text',
                        size: 'small',
                        fun: this.deleteHandle
                    }],
                    operatorConfig: {
                    fixed: 'right',
                    label: '操作',
                    width: 100,
                    minWidth: 100
                        minWidth: '120',
                        prop: 'finInsNo',
                        label: '产品检验编号',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text',
                        render: { fun: this.addOrUpdateHandle }
                    },
                    {
                        minWidth: '120',
                        prop: 'productNo',
                        label: '报工单号',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'orderNumber',
                        label: '订单号',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'customerName',
                        label: '客户名称',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '130',
                        width: '150',
                        prop: 'projectName',
                        label: '工程名称',
                        sort: true,
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text',
                    },
                    {
                        minWidth: '120',
                        prop: 'outBatchNo',
                        label: '批次号',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'materialCode',
                        label: '产品编号',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'material',
                        label: '产品大类',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'specs',
                        label: '规格型号',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'unit',
                        label: '单位',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'quantity',
                        label: '数量',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text'
                    },
                    {
                        minWidth: '120',
                        prop: 'createTime',
                        label: '检验日期',
                        sort: true,
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'datetimerange',
                        formatter: this.formatDateTime,
                    },
                    {
                        minWidth: '120',
                        prop: 'result',
                        label: '检测结果',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'select',
                        formatter: this.formatResult,
                        optList: () => {
                            return this.result
                        }
                    },
                ],
                toolbar: [],
                operator: null,
                operatorConfig: {
                fixed: 'right',
                label: '操作',
                width: 100,
                minWidth: 100
                },
            }
        },
        created() { },
        watch:{
            },
        }
    },
    created() {
        if(this.permissions.quality_finishedProductInspection_download){
            this.table.toolbar.push({
                text: '下载检验报告',
                type: 'primary',
                fun: this.downloadProReport
            })
        }
        if(this.permissions.quality_finishedProductInspection_del){
            this.table.operator = [{
                    text: '作废',
                    type: 'text',
                    size: 'small',
                    fun: this.deleteHandle
                }]
        }
    },
    computed: {
        ...mapGetters(['permissions'])
    },
    watch:{
        printFormData(newVal){
            if(newVal){
                this.printFormData = newVal
            }
        }
    },
        methods: {
            downloadProReport(){
                this.$message.info("开发中...")
            },
            //打印按钮
            printFun() {
                const style = '@page {margin: 10mm 5mm; margin-bottom: 0;margin-top:0;} ' +'@media print {.title{font-size:30pt;font-weight: 400;font-family: 黑体;!important;}' ;
                PrintJS({
                    printable: "printRaw",
                    type: "html",
                    scanStyles: false,
                    maxWidth: 1200,
                    header: "产品检测报告",
                    style:style,
                    css:'./title.css',
                    targetStyles: ["*"],
                    ignoreElements: ["no-ignore"],
                    orientation: 'portrait'
                });
            },
            //查看报告按钮
            showPrint(row){
                queryById(row.id).then(res=>{
                    this.printFormData = res.data.data
                    this.printFormData.createTime = row.createTime
                    this.printFormData.updateTime = row.updateTime
                    this.printDialogVisible = true
                }).catch(error=>{
                })
            },
            exportExcel(){
                let queryParam=this.$refs.finishedProduct.getQueryParam();
                delete queryParam.criteria
                exportExaminationProducts(queryParam).then((res)=>{
                    transform(res)
                })
            },
            deleteHandle(row){
                this.$confirm('确认删除该数据吗?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning',
                }).then(()=>{
                    deletePro(row.id).then(res=>{
                        if(res.data.code == 0){
                            this.$message.success("删除成功")
                        }else{
                            this.$message.error("删除失败")
                        }
                        this.getData()
                    })
                })
            },
            // 新增 / 修改
            addOrUpdateHandle(row) {
                this.$router.push({
                    name: 'finishedProductForm',
                    query: {
                        id: row == null ? null : row.id,
                    },
                    params: {
                        resultVal: row == null ? null : row.result
    methods: {
        downloadProReport(){
        },
        //打印按钮
        printFun() {
            const style = '@page {margin: 10mm 5mm; margin-bottom: 0;margin-top:0;} ' +'@media print {.title{font-size:30pt;font-weight: 400;font-family: 黑体;!important;}' ;
            PrintJS({
                printable: "printRaw",
                type: "html",
                scanStyles: false,
                maxWidth: 1200,
                header: "产品检测报告",
                style:style,
                css:'./title.css',
                targetStyles: ["*"],
                ignoreElements: ["no-ignore"],
                orientation: 'portrait'
            });
        },
        //查看报告按钮
        showPrint(row){
            queryById(row.id).then(res=>{
                this.printFormData = res.data.data
                this.printFormData.createTime = row.createTime
                this.printFormData.updateTime = row.updateTime
                this.printDialogVisible = true
            }).catch(error=>{
            })
        },
        exportExcel(){
            let queryParam=this.$refs.finishedProduct.getQueryParam();
            delete queryParam.criteria
            exportExaminationProducts(queryParam).then((res)=>{
                transform(res)
            })
        },
        deleteHandle(row){
            this.$confirm('确认删除该数据吗?', '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning',
            }).then(()=>{
                deletePro(row.id).then(res=>{
                    if(res.data.code == 0){
                        this.$message.success("删除成功")
                    }else{
                        this.$message.error("删除失败")
                    }
                })
            },
            formatResult(row, column, cellValue){
                if(cellValue != undefined || cellValue != null){
                    if(cellValue == 0){
                        return "<span style='color:#E84738;'>不合格</span>"
                    }else if(cellValue == 1){
                        return "<span style='color:#34BD66;'>合格</span>"
                    }
                    this.getData()
                })
            })
        },
        // 新增 / 修改
        addOrUpdateHandle(row) {
            if(!this.permissions.quality_finishedProductInspection_edit && row.id!=null){
                this.$message.error("该角色没有操作权限")
                return
            }
            this.$router.push({
                name: 'finishedProductForm',
                query: {
                    id: row == null ? null : row.id,
                },
                params: {
                    resultVal: row == null ? null : row.result
                }
            },
            formatDateTime(row, column, cellValue) {
                return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : ''
            },
            handleSelectionChange(){ },
            getData() {
                this.$refs.finishedProduct.getDataList()
            },
        }
    }
            })
        },
        formatResult(row, column, cellValue){
            if(cellValue != undefined || cellValue != null){
                if(cellValue == 0){
                    return "<span style='color:#E84738;'>不合格</span>"
                }else if(cellValue == 1){
                    return "<span style='color:#34BD66;'>合格</span>"
                }
            }
        },
        formatDateTime(row, column, cellValue) {
            return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : ''
        },
        handleSelectionChange(){ },
        getData() {
            this.$refs.finishedProduct.getDataList()
        },
    }
}
</script>
<style scope="scope">
src/views/quality/rawMaterial/index.vue
@@ -214,38 +214,8 @@
                            }
                    },
                ],
                toolbar: [
                    {
                        text: '新增',
                        type: 'primary',
                        fun: this.addOrUpdateHandle
                    },
                    {
                        text: '下载检验报告',
                        type: 'primary',
                        fun: this.downloadReport
                    }
                ],
                operator: [
                //     {
                //     text: '打印',
                //     type: 'text',
                //     size: 'small',
                //     fun: this.previewFun,
                //     show: {
                //         val: [
                //             '1',
                //             '0'
                //         ],
                //         key: 'judgeState'
                //     }
                // },
                {
                    text: '作废',
                    type: 'text',
                    size: 'small',
                    fun: this.deleteHandle
                }],
                toolbar: [],
                operator: null,
                operatorConfig: {
                fixed: 'right',
                label: '操作',
@@ -262,7 +232,30 @@
        RawMaterialForm,
        printTemplate,
    },
    created() { },
    created() {
        if(this.permissions.quality_rawMaterial_add){
            this.table.toolbar.push({
                text: '新增',
                type: 'primary',
                fun: this.addOrUpdateHandle
            })
        }
        if(this.permissions.quality_rawMaterial_download){
            this.table.toolbar.push({
                text: '下载检验报告',
                type: 'primary',
                fun: this.downloadReport
            })
        }
        if(this.permissions.quality_rawMaterial_del){
            this.table.operator = [{
                    text: '作废',
                    type: 'text',
                    size: 'small',
                    fun: this.deleteHandle
                }]
        }
     },
    computed: {
        ...mapGetters(['permissions'])
    },
@@ -375,6 +368,10 @@
        },
        // 新增 / 修改
        addOrUpdateHandle(row) {
            if(!this.permissions.quality_rawMaterial_edit && row.id!=null){
                this.$message.error("该角色没有操作权限")
                return
            }
            this.$router.push({
                name: 'rawMaterialForm',
                query: { 
src/views/technology/completeproductstructure/index.vue
@@ -229,14 +229,7 @@
          },
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle,
          },
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -272,6 +265,16 @@
    this.getData()
  },
  created() {
    if(this.permissions.technology_completeproductstructure_del){
        this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle,
          },
        ]
      }
    this.getBomTypeDbOptions()
  },
  methods: {
@@ -328,10 +331,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_completeproductstructure_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除编号为' + row.number, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/technology/document/index.vue
@@ -371,7 +371,7 @@
            permitArr: []
          } */
        ],
        operator: [],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -442,9 +442,8 @@
    this.getData()
  },
  created() {
    this.getBomTypeDbOptions()
    if (this.permissions.technology_document_del) {
      this.table.operator.push({
      this.table.operator = [{
        text: '删除',
        type: 'text',
        size: 'small',
@@ -453,19 +452,9 @@
          val: ['01draft'],
          key: 'state'
        }
      })
    } else {
      this.table.operator.push({
        text: '删除',
        type: 'text',
        size: 'small',
        fun: this.deleteHandle,
        show: {
          val: [],
          key: 'state'
        }
      })
    }
      }]
    }
    this.getBomTypeDbOptions()
  },
  methods: {
    getBomTypeDbOptions() {
@@ -518,10 +507,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_document_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除工艺文件编号:' + row.number + '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/technology/operation/index.vue
@@ -224,14 +224,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -254,6 +247,16 @@
    ...mapGetters(['permissions'])
  },
  created() {
    if(this.permissions.technology_operation_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.getReportTypeDict()
    this.getRunTimeCodeDbTypeDict()
    this.getLaborClassNoCache()
@@ -279,10 +282,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_operation_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除编号为' + row.operationNo, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/technology/routing/index.vue
@@ -358,18 +358,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
            // show: {
            //   val: ['01draft'],
            //   key: 'state'
            // }
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -446,6 +435,20 @@
    this.getData()
  },
  created() {
    if(this.permissions.technology_routing_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
            // show: {
            //   val: ['01draft'],
            //   key: 'state'
            // }
          }
        ]
    }
    this.getBomTypeDbOptions()
  },
  methods: {
@@ -474,10 +477,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_routing_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除工艺编号:' + row.routingNo + '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/technology/structure/index.vue
@@ -231,14 +231,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -298,6 +291,16 @@
    this.getData()
  },
  created() {
    if(this.permissions.technology_structure_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.uploadInfo.isShow = this.permissions.technology_structure_upload
    this.table.column.find((e) => e.label === '已同步至ERP').isTrue = false
    this.getBomTypeDbOptions()
@@ -329,10 +332,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_structure_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除ID为' + row.id, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
src/views/warehouse/FinishedWarehousing/index.vue
@@ -5,7 +5,8 @@
        :table="table"
        :isShowHide="true"
        :prelang="prelang"
        :options="options"
        :options="options"
        :dataListLoading="false"
        ref="processconfiguration"
        >
        <template #toolbar></template>
@@ -20,7 +21,6 @@
    data(){
        return {
            prelang: 'operation',
            dataListLoading: false,
            options: {
                height: 300, // 默认高度-为了表头固定
                stripe: true, // 是否为斑马纹 table
@@ -128,9 +128,9 @@
       }
    },
    medthods: {},
//     computed: {
//     ...mapGetters(['permissions'])
//   },
    computed: {
    // ...mapGetters(['permissions'])
    },
    components: {
    ttable
    },
src/views/warehouse/changestock/index.vue
@@ -94,11 +94,12 @@
            <span>实时库存</span>
          </div>
          <el-button size="mini" type="primary" @click="addOrUpdateHandle()"
            >新增</el-button
            v-if="permissions.warehouse_changestock_add">新增</el-button
          >
          <el-button size="mini" type="primary" @click="addStockSubmit()">接收</el-button>
          <el-button size="mini" type="primary" @click="addStockSubmit()"
          v-if="permissions.warehouse_changestock_receive">接收</el-button>
          <el-button size="mini" type="primary" @click="deleteStockSubmit()"
            >发放</el-button
          v-if="permissions.warehouse_changestock_grant">发放</el-button
          >
          <el-table
src/views/warehouse/pallettransports/index.vue
@@ -81,7 +81,7 @@
              </el-table-column>
              <el-table-column prop="toIfsLocationNo" label="移至库位" align="center">
              </el-table-column>
              <el-table-column label="操作" align="center" width="100">
              <el-table-column label="操作" align="center" width="100" v-if="permissions.warehouse_pallettransports_demand_edit">
                <template slot-scope="scope">
                  <!-- <el-button v-show="!scope.row.canEdit" type="text" :disabled="scope.row.detailExistState"
                    @click="scope.row.canEdit = true">编辑</el-button> -->
@@ -151,7 +151,7 @@
                  }}</span>
                </template>
              </el-table-column>
              <el-table-column label="操作" align="center" width="85">
              <el-table-column label="操作" align="center" width="85" v-if="permissions.warehouse_pallettransports_detail_edit">
                <template slot-scope="scope">
                  <!-- <el-button type="text" @click="openEditStockDialog(scope.row)"
                    :disabled="scope.row.state === '01initial' ? false : true">编辑</el-button> -->
@@ -303,14 +303,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -363,7 +356,18 @@
      }
    }
  },
  created() { },
  created() {
     if(this.permissions.warehouse_pallettransports_edit){
        this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
     }
   },
  methods: {
                // 单行选中
            handleCurrentChange(row) {