| | |
| | | stripe |
| | | :style="{width: 100+'%',height:tableHeight+'px'}" |
| | | highlight-current-row |
| | | :height="tableHeight" |
| | | :height="tableHeight+'px'" |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChange" |
| | |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.description==='F'">工厂</div> |
| | | <!-- <div v-if="row.description==='F'">工厂</div>--> |
| | | <div v-if="row.description==='D'">部门</div> |
| | | <div v-if="row.description==='W'">车间</div> |
| | | <div v-if="row.description==='K'">科室</div> |
| | | <div v-if="row.description==='L'">生产线</div> |
| | | <!-- <div v-if="row.description==='K'">科室</div>--> |
| | | <!-- <div v-if="row.description==='L'">生产线</div>--> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="parentorg_name" |
| | | label="上级单位" |
| | | sortable="custom" |
| | | /> |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.parentorg_name===null">/</div> |
| | | <div v-else>{{ row.parentorg_name }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="lm_user" |
| | | label="创建人员" |
| | |
| | | <el-dialog |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="60%" |
| | | width="800px" |
| | | top="15vh" |
| | | :close-on-click-modal="false" |
| | | @closed="handleClose" |
| | |
| | | <el-form-item label="组织名称" prop="OrgName"> |
| | | <el-input v-model="dialogForm.OrgName" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-if="dialogFormOrgTypeSelected!=='F'" prop="SupUnit" label="上级单位"> |
| | | <!-- <el-form-item v-if="dialogFormOrgTypeSelected!=='F'" prop="SupUnit" label="上级单位">--> |
| | | <el-form-item v-if="dialogFormOrgTypeSelected!=='D'" prop="SupUnit" label="上级单位"> |
| | | <el-select |
| | | v-model="dialogForm.SupUnit" |
| | | style="width: 200px" |
| | |
| | | |
| | | const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | export default { |
| | | name: 'Zzjg', |
| | | name: 'ZZJG', |
| | | components: { |
| | | Pagination |
| | | }, |
| | |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | OrgTypeArr: [ |
| | | { label: '工厂', value: 'F' }, |
| | | // { label: '工厂', value: 'F' }, |
| | | { label: '部门', value: 'D' }, |
| | | { label: '车间', value: 'W' }, |
| | | { label: '科室', value: 'K' }, |
| | | { label: '生产线', value: 'L' } |
| | | { label: '车间', value: 'W' } |
| | | // { label: '科室', value: 'K' }, |
| | | // { label: '生产线', value: 'L' } |
| | | ], |
| | | |
| | | total: 10, |
| | |
| | | } else { |
| | | this.dialogFormOrgTypeSelected = val |
| | | } |
| | | if (this.dialogFormOrgTypeSelected !== 'F') { |
| | | // if (this.dialogFormOrgTypeSelected !== 'F') { |
| | | if (this.dialogFormOrgTypeSelected !== 'D') { |
| | | const { data: res } = await PrentOrganization({ orgcode: this.dialogFormOrgTypeSelected }) |
| | | this.SupUnitArr = res |
| | | } |
| | |
| | | edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | if (row.description === 'F') { |
| | | this.dialogForm.OrgType = '工厂' |
| | | } else if (row.description === 'D') { |
| | | // if (row.description === 'F') { |
| | | // this.dialogForm.OrgType = '工厂' |
| | | // } else |
| | | if (row.description === 'D') { |
| | | this.dialogForm.OrgType = '部门' |
| | | } else if (row.description === 'W') { |
| | | this.dialogForm.OrgType = '车间' |
| | | } else if (row.description === 'K') { |
| | | this.dialogForm.OrgType = '科室' |
| | | } else if (row.description === 'L') { |
| | | this.dialogForm.OrgType = '生产线' |
| | | } |
| | | // else if (row.description === 'K') { |
| | | // this.dialogForm.OrgType = '科室' |
| | | // } else if (row.description === 'L') { |
| | | // this.dialogForm.OrgType = '生产线' |
| | | // } |
| | | this.$nextTick(() => { |
| | | this.changeRadio(this.dialogForm.OrgType) |
| | | this.dialogForm.OrgCode = row.org_code |
| | |
| | | numvalue: '', |
| | | // RightCode: this.operation === 'add' ? getCookie('ruleCode') : '', |
| | | // numvalue: this.operation === 'add' ? this.numvalue : '', |
| | | SupUnit: this.dialogFormOrgTypeSelected === 'F' ? '0' : this.dialogForm.SupUnit, |
| | | // SupUnit: this.dialogFormOrgTypeSelected === 'F' ? '0' : this.dialogForm.SupUnit, |
| | | SupUnit: this.dialogFormOrgTypeSelected === 'D' ? '0' : this.dialogForm.SupUnit, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | Operator: getCookie('admin') |
| | | } |
| | |
| | | color: #606266; |
| | | } |
| | | |
| | | //::v-deep .el-dialog__body { |
| | | // padding: 20px 100px !important; |
| | | //} |
| | | ::v-deep .el-dialog__body { |
| | | padding: 20px 100px !important; |
| | | } |
| | | |
| | | ::v-deep .el-radio__input.is-checked .el-radio__inner { |
| | | background-color: $main_color; |