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
| | |
| | | |
| | | ], |
| | | toolbar: [], |
| | | operator:[ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig:{ |
| | | fixed:'right', |
| | | label:'操作', |
| | | width:100, |
| | | minWidth:100 |
| | | }, |
| | | isCopy:{ |
| | | fun:this.hello |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | |
| | | 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 |
| | |
| | | }, |
| | | // 删除公司信息 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_company_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除公司名为:"'+row.companyName+'"', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | TableForm |
| | | }, |
| | | created() { |
| | | if(this.permissions.basic_templatetyperelation_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | this.getParamApplyDict() |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_templatetyperelation_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除类型名称为' + row.templateTypeName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | components: { |
| | | TableForm, |
| | | ttable |
| | | }, |
| | | created(){ |
| | | if(this.permissions.basic_division_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_division_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除部门名称为:' + row.divisionName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | created(){ |
| | | if(this.permissions.basic_factory_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | methods: { |
| | | // 获取数据列表 |
| | | getData() { |
| | |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_factory_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_factory_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工厂名称为:' + row.factoryName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } */ |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | 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() |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_location_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | |
| | | this.$confirm('是否确认删除库位号为' + row.locNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | ...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: { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_param_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.code, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | // loading: false |
| | | // } |
| | | ], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | 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 |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_part_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认零件名为:' + row.partName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | 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 |
| | | } |
| | | }, |
| | | |
| | |
| | | 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']) |
| | | }, |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_staff_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.postNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | {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: '操作', |
| | |
| | | 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']) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_shift_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除班次名称为:' + row.name, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_staff_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除人员名称为:' + row.staffName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | }, |
| | | 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() |
| | | } |
| | | } |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | 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']) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_operationtemplate_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除模板编号为' + row.templateNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | TableForm |
| | | }, |
| | | created() { |
| | | if(this.permissions.basic_warehouse_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | this.getWarehouseTypeCache('storehouse_type') // 获取定时任务运行时状态 |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_warehouse_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除仓库名称为' + row.warehouseName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | created() { |
| | | if(this.permissions.basic_workstation_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | this.getReportTypeDict() |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | // 删除工作站点 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_workstation_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工作站为' + row.name, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | </el-button> --> |
| | | |
| | | <el-button |
| | | v-if="permissions.manufacturingorder_export" |
| | | @click="exportExcel" |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | |
| | | >导出 |
| | | </el-button> |
| | | <el-button |
| | | v-if="permissions.manufacturingorder_label_print" |
| | | @click="labelPrint" |
| | | type="primary" |
| | | style="margin-left:10px;" |
| | |
| | | }, |
| | | 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: '新增', |
| | |
| | | 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: '手动新增', |
| | |
| | | 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 |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | 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 } |
| | |
| | | } */ |
| | | ], |
| | | 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: '操作', |
| | |
| | | }, |
| | | 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({ |
| | |
| | | this.getSysParam(sysParam.IS_REPORT_OPERATION) |
| | | }, |
| | | methods: { |
| | | deleteMainPlan(row){}, |
| | | getSysParam(paramKey) { |
| | | getSysParam(paramKey).then((response) => { |
| | | var paramVal = response.data.data |
| | |
| | | }, |
| | | // 修改 |
| | | 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) |
| | |
| | | > |
| | | 货盘运输 |
| | | </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> |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | 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() { |
| | |
| | | @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> |
| | |
| | | <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> |
| | |
| | | ], |
| | | }, |
| | | spanArr: [{ |
| | | prop: 'id', |
| | | span: [] |
| | | },{ |
| | | prop: 'projectName', |
| | | span: [] |
| | | }, { |
| | |
| | | ...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() |
| | |
| | | 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"> |
| | |
| | | } |
| | | }, |
| | | ], |
| | | 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: '操作', |
| | |
| | | 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']) |
| | | }, |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.quality_rawMaterial_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$router.push({ |
| | | name: 'rawMaterialForm', |
| | | query: { |
| | |
| | | }, |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle, |
| | | }, |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | this.getData() |
| | | }, |
| | | created() { |
| | | if(this.permissions.technology_completeproductstructure_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle, |
| | | }, |
| | | ] |
| | | } |
| | | this.getBomTypeDbOptions() |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_completeproductstructure_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.number, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | permitArr: [] |
| | | } */ |
| | | ], |
| | | operator: [], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | this.getData() |
| | | }, |
| | | created() { |
| | | this.getBomTypeDbOptions() |
| | | if (this.permissions.technology_document_del) { |
| | | this.table.operator.push({ |
| | | this.table.operator = [{ |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | |
| | | 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() { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_document_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工艺文件编号:' + row.number + '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | ...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() |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_operation_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.operationNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | // show: { |
| | | // val: ['01draft'], |
| | | // key: 'state' |
| | | // } |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | 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: { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_routing_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工艺编号:' + row.routingNo + '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | 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() |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_structure_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除ID为' + row.id, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :table="table" |
| | | :isShowHide="true" |
| | | :prelang="prelang" |
| | | :options="options" |
| | | :options="options" |
| | | :dataListLoading="false" |
| | | ref="processconfiguration" |
| | | > |
| | | <template #toolbar></template> |
| | |
| | | data(){ |
| | | return { |
| | | prelang: 'operation', |
| | | dataListLoading: false, |
| | | options: { |
| | | height: 300, // 默认高度-为了表头固定 |
| | | stripe: true, // 是否为斑马纹 table |
| | |
| | | } |
| | | }, |
| | | medthods: {}, |
| | | // computed: { |
| | | // ...mapGetters(['permissions']) |
| | | // }, |
| | | computed: { |
| | | // ...mapGetters(['permissions']) |
| | | }, |
| | | components: { |
| | | ttable |
| | | }, |
| | |
| | | <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 |
| | |
| | | </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> --> |
| | |
| | | }}</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> --> |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { }, |
| | | created() { |
| | | if(this.permissions.warehouse_pallettransports_edit){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | methods: { |
| | | // 单行选中 |
| | | handleCurrentChange(row) { |