| | |
| | | <scUpload v-model="form.avatar" title="工位图片"></scUpload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="12" v-show="!form.id"> |
| | | <el-form-item label="生产日历" prop="calendarCode"> |
| | | <el-select v-model="form.calendarCode" style="width: 240px"> |
| | | <el-option v-for="item in options.calendarList" :key="item.id" :label="item.name" |
| | | :value="item.code" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <!-- 修改的次日生效 --> |
| | | <el-col :span="11" v-show="form.id"> |
| | | <el-form-item label="生产日历" prop="calendarCode"> |
| | | <el-select v-model="form.calendarCodeWaiting" style="width: 240px"> |
| | | <el-option v-for="item in options.calendarList" :key="item.id" :label="item.name" |
| | | :value="item.code" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | </el-col> |
| | | <el-col :span="1" v-show="form.id"> |
| | | <div style="display: flex;align-items: center;height: 32px;margin-bottom: 18px;"> |
| | | <el-tooltip class="box-item" effect="dark" content="修改后的日历次日生效" placement="top-start"> |
| | | <el-icon> |
| | | <el-icon-warning-filled style="vertical-align: middle" /> |
| | | </el-icon> |
| | | </el-tooltip> |
| | | </div> |
| | | |
| | | </el-col> |
| | | <el-col :span="24" style="padding:12px 0;" v-if="form.type == 0"> |
| | | 机器信息 |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数据权限" prop="createDept"> |
| | | <el-tree-select clearable @node-click="nodeClickTree" v-model="form.createDept" :data="tree" |
| | | <el-tree-select :props="{ |
| | | label: 'title', |
| | | id: 'id', |
| | | }" clearable @node-click="nodeClickTree" v-model="form.createDept" :data="tree" |
| | | :check-on-click-node="true" style="width: 240px"> |
| | | <template #default="{ data: { title } }"> |
| | | {{ title }}</template> |
| | | <!-- <template #default="{ data: { title } }"> |
| | | {{ title }}</template> --> |
| | | </el-tree-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | status: '', |
| | | avatar: '', |
| | | calendarCode: '', |
| | | calendarCodeWaiting: '', |
| | | linkWay: '', |
| | | machineId: '', |
| | | machineCode: '', |
| | |
| | | Object.keys(this.form).forEach(key => { |
| | | this.form[key] = params[key] |
| | | }) |
| | | this.$HTTP.get(`/api/blade-cps/workstation/get?workstationId=${params.id}`).then(res => { |
| | | |
| | | this.$HTTP.get(`/api/smis/workstation/get?workstationId=${params.id}`).then(res => { |
| | | this.form = res?.data |
| | | this.$HTTP.get(`/api/blade-cps/workstation-workbench/listWorkbench?workstationId=${params.id}`).then(res => { |
| | | if (this.form.calendarCode && !this.form.calendarCodeWaiting) this.form.calendarCodeWaiting = this.form.calendarCode |
| | | this.$HTTP.get(`/api/smis/workstation-workbench/listWorkbench?workstationId=${params.id}`).then(res => { |
| | | this.form.workbenchVOList = res?.data?.workstationList || [] |
| | | }) |
| | | }) |