加工顺序调整

This commit is contained in:
zhangdingyu
2019-03-13 09:49:08 +08:00
parent 484d071831
commit 604ffa26f2
2 changed files with 32 additions and 3 deletions

View File

@@ -69,3 +69,15 @@ export function getTable2(stepNumber) {
}
})
}
// 正在加工零件
export function searchParts(stepNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_加工顺序调整_查询正在加工零件工序',
param: '终端编号=' + stepNumber
}
})
}

View File

@@ -3,7 +3,7 @@
<el-card>
<span>工位号:</span>
<el-select v-model="MachineValue" filterable size="small" style="width:220px;margin-bottom:10px" placeholder="工位号" @change="searchTable()">
<el-select v-model="MachineValue" filterable size="small" style="width:220px;margin-bottom:10px" placeholder="工位号" @change="searchTable();searchParts()">
<el-option
v-for="item in Machine"
:key="item.value"
@@ -15,6 +15,8 @@
</el-select>
<el-button type="success" class="el-icon-refresh" size="small" style="margin: 10px 0 0 10px" @click="Refresh">刷新工位</el-button>
<span v-if="lengths !== 0" style="color: #53A3F7;font-size: 14px"> 加工零件 {{ Parts }};加工工序 {{ gongxu }}</span>
<span v-if="lengths === 0" style="color: #53A3F7;font-size: 14px"> 无正在加工零件</span>
<el-badge :value="num" :max="99" class="item">
<el-button size="small" type="text" @click="dialogFormVisible=true;Jurisdiction()">调序权限</el-button>
</el-badge>
@@ -329,11 +331,14 @@
</template>
<script>
import { getMachine, getMachine2, searchtable, getTable2, Order, JurisdictionControl } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
import { searchParts, getMachine, getMachine2, searchtable, getTable2, Order, JurisdictionControl } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
import { wsuri, name } from '@/utils/request'
export default {
data() {
return {
Parts: '',
gongxu: '',
lengths: '',
a: 1,
b: 1,
expands: [],
@@ -363,6 +368,7 @@ export default {
watch: {
MachineValue(val) {
this.searchTable()
this.searchParts()
}
},
created() {
@@ -371,8 +377,19 @@ export default {
this.initWebsocket()
},
methods: {
searchParts() {
this.Parts = ''
this.gongxu = ''
this.lengths = ''
searchParts(this.MachineValue).then(response => {
this.lengths = response.data.length
if (response.data.length !== 0) {
this.Parts = response.data[0].零件图号_零件工艺计划
this.gongxu = response.data[0].工艺名称
}
})
},
getRowKeys(row) {
console.log(row)
return row.零件图号
},
selectMachine(row) {