| | |
| | | return request({ |
| | | url: 'DeviceManager/SaveDeviceRepairStanedAssociationEqp?repairstand_code=' + repairstand_code, |
| | | method: 'post', |
| | | params: data |
| | | data |
| | | }) |
| | | } |
| | |
| | | linename: res1.data[0].linename, |
| | | lineworkcont: res1.data[0].lineworkcont, |
| | | children: res1.data[0].children ? res.data[0].children[count] : [] |
| | | // children: res1.data[0].children[count] |
| | | } |
| | | flag1 = false |
| | | } |
| | |
| | | } |
| | | } |
| | | }, 1000 * 3) |
| | | // }, res1.data[0].children && res1.data[0].children.length > 0 ? 1000 * 3 : 1000 * 3) |
| | | } else if (index === 1) { |
| | | let count = 0 |
| | | if (flag2) { |
| | |
| | | children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | } |
| | | } |
| | | // }, res2.data[0].children && res2.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | }, 1000 * 3) |
| | | |
| | | // setInterval(() => { |
| | | // if (count > 0) { |
| | | // this.lineContent02 = { |
| | | // linename: res2.data[0].linename, |
| | | // lineworkcont: res2.data[0].lineworkcont, |
| | | // children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | // } |
| | | // } |
| | | // if (res2.data[0].children.length === count++) { |
| | | // count = 0 |
| | | // LineSearchTopLeftData([item]).then(res => { |
| | | // res2 = res |
| | | // this.lineContent02 = { |
| | | // linename: res2.data[0].linename, |
| | | // lineworkcont: res2.data[0].lineworkcont, |
| | | // children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | // } |
| | | // }) |
| | | // |
| | | // // this.handleEveryLine(item, index) |
| | | // } |
| | | // }, res2.data[0].children && res2.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | } else if (index === 2) { |
| | | let count = 0 |
| | | if (flag3) { |
| | |
| | | |
| | | if (res3.data[0].children.length === count++) { |
| | | count = 0 |
| | | // LineSearchTopLeftData([item]).then(res => { |
| | | // res3 = res |
| | | this.lineContent03 = { |
| | | linename: res3.data[0].linename, |
| | | lineworkcont: res3.data[0].lineworkcont, |
| | | children: res3.data[0].children ? res3.data[0].children[count] : [] |
| | | } |
| | | // }) |
| | | // this.handleEveryLine(item, index) |
| | | } |
| | | // }, res3.data[0].children && res3.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | }, 1000 * 3) |
| | | } else if (index === 3) { |
| | | let count = 0 |
| | |
| | | children: res4.data[0].children ? res4.data[0].children[count] : [] |
| | | } |
| | | } |
| | | // }, res4.data[0].children && res4.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | }, 1000 * 3) |
| | | } |
| | | }, |
| | |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | fixed |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | fixed |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="iscontr" |
| | | prop="main_cycle" |
| | | label="保养周期" |
| | | sortable="custom" |
| | | /> |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.main_cycle==='Y'">年</div> |
| | | <div v-if="row.main_cycle==='S'">季</div> |
| | | <div v-if="row.main_cycle==='M'">月</div> |
| | | <div v-if="row.main_cycle==='W'">周</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="is_checkeqp" |
| | | prop="is_repaireqp" |
| | | label="关联设备" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <i v-if="row.is_checkeqp==='Y'" class="el-icon-share" @click="checkeqpClick(row)" /> |
| | | <i v-if="row.is_repaireqp==='Y'" class="el-icon-share" @click="checkeqpClick(row)" /> |
| | | <i |
| | | v-if="row.is_checkeqp==='N'" |
| | | v-if="row.is_repaireqp==='N'" |
| | | class="el-icon-share" |
| | | style="color: rgb(180 ,181, 185)" |
| | | @click="checkeqpClick(row)" |
| | |
| | | DeviceCheckStanedAssociationEqp, DeviceRepairItemSelect, |
| | | DeviceRepairStandArdSearch, DeviceRepairStanedAssociationEqp, |
| | | SaveDeviceCheckStanedAssociationEqp, SaveDeviceRepairStanedAssociationEqp, |
| | | ViewDeviceCheckStanedSearch |
| | | ViewDeviceCheckStanedSearch, ViewDeviceRepairStanedSearch |
| | | } from '@/api/sbgl' |
| | | import $ from 'jquery' |
| | | |
| | |
| | | // 修改按钮 |
| | | edit(operation, row) { |
| | | this.operation = operation |
| | | this.getViewDeviceCheckStanedSearch(row.code) |
| | | this.getViewDeviceRepairStanedSearch(row.code) |
| | | this.dialogVisible = true |
| | | |
| | | this.$nextTick(() => { |
| | |
| | | // }) |
| | | }, |
| | | // 修改前请求接口 |
| | | async getViewDeviceCheckStanedSearch(checkstand_code) { |
| | | const { data: res } = await ViewDeviceCheckStanedSearch({ checkstand_code }) |
| | | async getViewDeviceRepairStanedSearch(repairstand_code) { |
| | | const { data: res } = await ViewDeviceRepairStanedSearch({ repairstand_code }) |
| | | this.tableDataDialog = res.Data |
| | | |
| | | this.dialogForm.code = res.code |
| | |
| | | this.dialogFormEqp.name = row.name |
| | | this.dialogFormEqp.code = row.code |
| | | |
| | | const { data: res } = await DeviceRepairStanedAssociationEqp({ checkstand_code: row.code }) |
| | | const { data: res } = await DeviceRepairStanedAssociationEqp({ repairstand_code: row.code }) |
| | | this.dialogFormEqp.eqpAll = res |
| | | |
| | | if (this.dialogFormEqp.eqpAll.length > 0) { |
| | |
| | | this.dialogFormEqp.eqpTree = [this.dialogFormEqp.eqpAll[index]] |
| | | } |
| | | }) |
| | | this.$nextTick(() => { // 树形回显 |
| | | this.$refs.epqTree.setCheckedKeys(this.dialogFormEqp.eqpCodeSelectedArr) |
| | | }) |
| | | }, |
| | | // 小盒子点击 |
| | | myCheckboxInputClick(val) { |
| | |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | fixed |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | |
| | | <el-table-column |
| | | prop="RowNum" |
| | | width="50" |
| | | fixed |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | |
| | | this.dialogFormEqp.eqpTree = [this.dialogFormEqp.eqpAll[index]] |
| | | } |
| | | }) |
| | | this.$nextTick(() => { // 树形回显 |
| | | this.$refs.epqTree.setCheckedKeys(this.dialogFormEqp.eqpCodeSelectedArr) |
| | | }) |
| | | }, |
| | | // 小盒子点击 |
| | | myCheckboxInputClick(val) { |
| | |
| | | }) |
| | | this.dialogFormEqp.eqpCodeSelectedArr = [...new Set(this.dialogFormEqp.eqpCodeSelectedArr)] |
| | | } |
| | | |
| | | console.log(this.dialogFormEqp.eqpCodeSelectedArr, 666) |
| | | // 2.第二种情况当树形 半叶 为零 全叶 为零 |
| | | if (halfCheckedKeys.length === 0 && checkedKeys.length === 0) { |
| | | console.log('// 2.第二种情况当树形 半叶 为零 全叶 为零') |
| | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button type="primary" @click="dialogVisibleConfirm">下 达</el-button> |
| | | <el-button type="primary" :disabled="sendButtonIsDisabled" @click="dialogVisibleConfirm">下 达</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | this.dialogForm.markqty = '' |
| | | this.dialogForm.ordernum = '' |
| | | this.dialogForm.relse_qty = '' |
| | | |
| | | this.sendButtonIsDisabled = false |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | |
| | | 'ordernum': this.dialogForm.ordernum, |
| | | 'relse_qty': this.dialogForm.relse_qty |
| | | } |
| | | console.log(data) |
| | | this.sendButtonIsDisabled = true |
| | | MarkSaveErpOrder(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('下达成功!') |
| | |
| | | <el-form-item |
| | | v-if="dialogTitle==='外协收料'" |
| | | label="不良原因:" |
| | | prop="badcode" |
| | | > |
| | | <!-- prop="badcode"--> |
| | | <el-select |
| | | v-model="dialogForm.badcode" |
| | | style="width: 200px;" |
| | |
| | | operation: getCookie('navTabId') |
| | | }, |
| | | badTableDataDialog: [], // 不良对话框table表格 |
| | | OperationArr: [] // 人员数组 |
| | | OperationArr: [], // 人员数组 |
| | | sendButtonIsDisabled: false// 下达按钮是否可点击 |
| | | } |
| | | }, |
| | | // computed: { |
| | |
| | | <el-form-item label="库位描述" style=" display: flex;"> |
| | | <el-input v-model="form.description" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="创建人员" style=" display: flex;"> |
| | | <el-input v-model="form.createuser" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="所属仓库" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.stockcode" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="创建人员" style=" display: flex;"> |
| | | <el-input v-model="form.createuser" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | |
| | | </div> |
| | | <div style="display: flex;align-items: start;margin-top: 5px;z-index: 2"> |
| | | <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | |
| | | return this.$message.info('此工序已选,请选择其它工序!') |
| | | } |
| | | |
| | | // this.routeArr.forEach((item, index) => { |
| | | // console.log(this.autocompleteValue.trim() === item.stepname, 2) |
| | | // if (this.autocompleteValue.trim() === item.stepname) { |
| | | // console.log(tag.stepname === item.stepname, 353535) |
| | | // this.routeArr.splice(index, 1) |
| | | // } |
| | | // }) |
| | | // console.log(this.routeArr, 1) |
| | | |
| | | // 将值替换到原tag位置上 |
| | | this.dynamicTags.forEach((item, index) => { |
| | | if ((index + 1) === tag.seq) { |
| | |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | | this.form.OrgCode = '' |
| | | this.form.OrgName = '' |
| | | this.form.OrgType = '' |
| | | this.form.UserName = '' |
| | | this.form.routecode = '' |
| | | this.form.routename = '' |
| | | this.form.description = '' |
| | | this.form.createuser = '' |
| | | this.getRouteSearch() |
| | | }, |
| | | |