Merge branch 'master' of http://192.168.0.149:10010/r/高精2.0
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
// 初始化 工位
|
// 初始化 人员和工位
|
||||||
export function getMachine() {
|
export function getMachine() {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '车间生产管理工艺_加工顺序调整_查询工位及人员'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 获取工位
|
||||||
|
export function getMachine2() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ export function getMachines() {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_机床名称_加工进度修改模块查询',
|
name: '车间生产管理工艺_传递后_机床名称_加工进度修改模块查询_MESWORK'
|
||||||
param: '是否传递=2=int&考核状态=6=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int'
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,17 @@
|
|||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<span>工位号:</span>
|
<span>工位号:</span>
|
||||||
<el-select v-model="MachineValue" size="small" filterable placeholder="工位号" style="width: 180px;" @change="searchTable()">
|
<el-select v-model="MachineValue" filterable size="small" style="width:220px;margin-bottom:10px" placeholder="工位号" @change="searchTable()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Machine"
|
v-for="item in Machine"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.value2 }}</div>
|
||||||
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="searchTable();pageCurrent=1;pageSize=10;total = 0">查询</el-button>
|
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="searchTable();pageCurrent=1;pageSize=10;total = 0">查询</el-button>
|
||||||
<el-badge :value="num" :max="99" class="item">
|
<el-badge :value="num" :max="99" class="item">
|
||||||
<el-button size="small" type="text" @click="dialogFormVisible=true;Jurisdiction()">调序权限</el-button>
|
<el-button size="small" type="text" @click="dialogFormVisible=true;Jurisdiction()">调序权限</el-button>
|
||||||
@@ -112,7 +116,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getMachine, searchtable, Order, JurisdictionControl } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
|
import { getMachine, getMachine2, searchtable, Order, JurisdictionControl } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -146,8 +150,9 @@ export default {
|
|||||||
getMachine().then(response => {
|
getMachine().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.Machine.push({
|
this.Machine.push({
|
||||||
label: response.data[i].MES终端号,
|
label: response.data[i].终端编号,
|
||||||
value: response.data[i].MES终端号
|
value: response.data[i].终端编号,
|
||||||
|
value2: response.data[i].姓名
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
@@ -169,7 +174,7 @@ export default {
|
|||||||
},
|
},
|
||||||
Jurisdiction() {
|
Jurisdiction() {
|
||||||
this.count = 0
|
this.count = 0
|
||||||
getMachine().then(response => {
|
getMachine2().then(response => {
|
||||||
this.gridData = response.data
|
this.gridData = response.data
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
if (response.data[i].调序权限 === '1') { this.count = this.count + 1 }
|
if (response.data[i].调序权限 === '1') { this.count = this.count + 1 }
|
||||||
|
|||||||
Reference in New Issue
Block a user