modified: src/page/index/sidebar/index.vue
modified: src/page/index/sidebar/sidebarItem.vue
modified: src/page/login/index.vue
modified: src/views/basic/company/index.vue
modified: src/views/basic/crew/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/customerorder/index.vue
modified: src/views/technology/routing/routing-form.vue
| | |
| | | <el-scrollbar style="height:100%"> |
| | | <div v-if="validatenull(menu)" class="avue-sidebar--tip">没有发现菜单</div> |
| | | <el-menu :default-active="nowTagValue" :show-timeout="200" :collapse="keyCollapse" unique-opened mode="vertical"> |
| | | <sidebar-item :menu="menu" :screen="screen" :props="website.menu.props" :collapse="keyCollapse" first /> |
| | | <sidebar-item :menu="filterMenu" :screen="screen" :props="website.menu.props" :collapse="keyCollapse" first /> |
| | | </el-menu> |
| | | </el-scrollbar> |
| | | </div> |
| | |
| | | import sidebarItem from './sidebarItem' |
| | | export default { |
| | | name: 'Sidebar', |
| | | data(){ |
| | | return { |
| | | } |
| | | }, |
| | | inject: ["Index"], |
| | | components: { sidebarItem, logo }, |
| | | created() { |
| | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['website', 'menu', 'tag', 'keyCollapse', 'screen']), |
| | | filterMenu: function(){ |
| | | return this.menu.filter(ele=>{ |
| | | return ele.children.length > 0 |
| | | }) |
| | | }, |
| | | nowTagValue: function () { |
| | | return this.$router.$avueRouter.getValue(this.$route) |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | |
| | | <template v-for="(child,cindex) in item[childrenKey]"> |
| | | <el-menu-item |
| | | v-if="validatenull(child[childrenKey])" |
| | | :index="child[pathKey],cindex" |
| | | :index="child[pathKey]" |
| | | :class="{'is-active':vaildAvtive(child)}" |
| | | :key="child[labelKey]" |
| | | > |
| | |
| | | created() { |
| | | this.getSysTitle() |
| | | }, |
| | | mounted() { |
| | | const _that = this |
| | | $.ajax({ |
| | | type: 'get', |
| | | url: 'http://127.0.0.1:15211/LocalUnique', |
| | | /* headers: { |
| | | 'Content-Type': 'text/xml;charset=utf-8' |
| | | }, */ |
| | | // data: requireData, |
| | | success: function(response) { |
| | | const resultData = JSON.parse( |
| | | response |
| | | .replace(/\r/g, '') |
| | | .replace(/\n/g, '') |
| | | .replace(/\s*/g, '') |
| | | ) |
| | | const username = resultData[0].ID |
| | | const password = resultData[0].Unique |
| | | _that.$store |
| | | .dispatch('LoginByMSL', { username: username, password: password }) |
| | | .then(() => { |
| | | _that.$router.push({ path: _that.tagWel.value }) |
| | | }) |
| | | }, |
| | | error: function(XMLHttpRequest, textStatus, errorThrown) { |
| | | console.error('访问马上聊出错') |
| | | } |
| | | }) |
| | | }, |
| | | // mounted() { |
| | | // const _that = this |
| | | // $.ajax({ |
| | | // type: 'get', |
| | | // url: 'http://127.0.0.1:15211/LocalUnique', |
| | | // /* headers: { |
| | | // 'Content-Type': 'text/xml;charset=utf-8' |
| | | // }, */ |
| | | // // data: requireData, |
| | | // success: function(response) { |
| | | // const resultData = JSON.parse( |
| | | // response |
| | | // .replace(/\r/g, '') |
| | | // .replace(/\n/g, '') |
| | | // .replace(/\s*/g, '') |
| | | // ) |
| | | // const username = resultData[0].ID |
| | | // const password = resultData[0].Unique |
| | | // _that.$store |
| | | // .dispatch('LoginByMSL', { username: username, password: password }) |
| | | // .then(() => { |
| | | // _that.$router.push({ path: _that.tagWel.value }) |
| | | // }) |
| | | // }, |
| | | // error: function(XMLHttpRequest, textStatus, errorThrown) { |
| | | // console.error('访问马上聊出错') |
| | | // } |
| | | // }) |
| | | // }, |
| | | computed: { |
| | | ...mapGetters(['website', 'tagWel']) |
| | | }, |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="companyTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type='primary' @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_company_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getData"></table-form> |
| | |
| | | {minWidth:'120',prop: "createTime",label:"创建时间",sort: true,isTrue:true,isSearch:true,searchInfoType:'datetimerange'}, |
| | | |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator:[ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | methods: { |
| | | hello(){ |
| | | if(!this.permissions.basic_company_copy){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | if(this.multipleSelection.length < 1){ |
| | | this.$message.error("请先选择要复制的数据!") |
| | | return |
| | |
| | | }, |
| | | // 新增 /修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_company_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row==null?null:row.id) |
| | |
| | | }, |
| | | // 删除公司信息 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_company_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除公司名为:"'+row.companyName+'"', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="crewTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_crew_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | |
| | | :paramObj="paramObj" |
| | | ref="staffTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addHandle" |
| | | v-if="permissions.basic_crew_person_add"></el-button> |
| | | </template> |
| | | </ttable> |
| | | </el-col> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | |
| | | render: { fun: this.addOrUpdateHandle } |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: 100, |
| | | minWidth: 100 |
| | | width: 110, |
| | | minWidth: 110 |
| | | } |
| | | }, |
| | | crewId: null, |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '添加', |
| | | type: 'primary', |
| | | fun: this.addHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_crew_edit && row.id!=null){ |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | } |
| | | }, |
| | | deleteStaff(row) { |
| | | if(!this.permissions.basic_crew_person_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | var newStaffList = [] |
| | | newStaffList.push(row) |
| | | this.crewList = { id: this.crewId, staffList: newStaffList } |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_crew_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除班次名称为:' + row.crewName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="paramTemplateTypeTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_templatetyperelation_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | import { remote } from '@/api/admin/dict' |
| | | import ttable from '@/views/common/ztt-table.vue' |
| | | import TableForm from './templatetype-form' |
| | | import { mapGetters } from 'vuex' |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | searchInfoType: 'datetimerange' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | dataTypeList: [] |
| | | } |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | components: { |
| | | ttable, |
| | | TableForm |
| | |
| | | methods: { |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_templatetyperelation_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_templatetyperelation_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除类型名称为' + row.templateTypeName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="divisionTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_division_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_division_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_division_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除部门名称为:' + row.divisionName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="factoryTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_factory_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_factory_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_factory_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工厂名称为:' + row.factoryName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="locationTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_location_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'text' |
| | | } */ |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_location_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_location_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除库位号为' + row.locNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="paramTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.technology_param_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'datetimerange' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.technology_param_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_param_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.code, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="partTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_part_add">新增</el-button> |
| | | <el-button type="primary" @click="() => (this.syncDateVisible = true)" |
| | | v-if="permissions.basic_part_mdm">同步MDM</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | } */ |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | }, |
| | | { |
| | | text: '同步MDM', |
| | | type: 'primary', |
| | | fun: () => (this.syncDateVisible = true), |
| | | loading: false |
| | | } |
| | | // { |
| | | // text: '大标签', |
| | | // type: 'primary', |
| | |
| | | PrintLabelForm |
| | | }, |
| | | created() { |
| | | 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 |
| | | this.getCategoryType('category') |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_part_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_part_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认零件名为:' + row.partName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="partFamilyTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button @click="addOrUpdateHandle" type="primary" |
| | | v-if="permissions.basic_post_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | </el-col> |
| | | <el-col :span="12" style="padding-left: 10px"> |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_post_edit && row.id!=null){ |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_staff_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.postNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="shiftTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_shift_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getData"></table-form> |
| | |
| | | column: [ |
| | | {minWidth:'140',prop:"name",label:"班次",sort: true,isTrue:true,isSearch:true,searchInfoType:'text',render:{fun:this.addOrUpdateHandle}} |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_shift_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_shift_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除班次名称为:' + row.name, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="staffTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_staff_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | ttable |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | ...mapGetters(['permissions']), |
| | | }, |
| | | methods: { |
| | | // 获取数据列表 |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_staff_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | 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 |
| | | this.initPersonNatureSelect() |
| | | } |
| | | } |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="templateTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.technology_operationtemplate_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | </el-col> |
| | | <el-col :span="12" style="padding-left: 10px"> |
| | |
| | | <el-button |
| | | style="float: right; padding: 3px 0" |
| | | type="text" |
| | | v-if="permissions.technology_operationtemplate_param_add" |
| | | @click="relateOperationParam()" |
| | | >添加</el-button |
| | | > |
| | |
| | | |
| | | <el-table-column label="单位" prop="unit" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center"> |
| | | <el-table-column label="操作" align="center" |
| | | v-if="permissions.technology_operationtemplate_param_edit"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="text" |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.technology_operationtemplate_edit && row.id!=null){ |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_operationtemplate_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除模板编号为' + row.templateNo, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="wareHouseTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_warehouse_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'datetimerange' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_warehouse_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_warehouse_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除仓库名称为' + row.warehouseName, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | :ajaxFun="ajaxFun" |
| | | ref="workstationTable" |
| | | > |
| | | <template #toolbar></template> |
| | | <template #toolbar> |
| | | <el-button type="primary" @click="addOrUpdateHandle" |
| | | v-if="permissions.basic_workstation_add">新增</el-button> |
| | | </template> |
| | | </ttable> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <table-form |
| | |
| | | searchInfoType: 'text' |
| | | } |
| | | ], |
| | | toolbar: [ |
| | | { |
| | | text: '新增', |
| | | type: 'primary', |
| | | fun: this.addOrUpdateHandle |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(row) { |
| | | if(!this.permissions.basic_workstation_edit && row.id!=null){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.addOrUpdateVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(row == null ? null : row.id) |
| | |
| | | }, |
| | | // 删除工作站点 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_workstation_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工作站为' + row.name, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | width: '100px', |
| | | prop: 'contractNo', |
| | | label: '合同编号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | routingNo: null, |
| | | name: null, |
| | | partId: null, |
| | | partNo: null, |
| | | partName: null, |
| | | description: null, |
| | | state: null, |