更新 #20
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-15 15:17:30
|
* @Date: 2021-11-15 15:17:30
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-08 23:18:46
|
* @LastEditTime: 2022-07-13 09:51:46
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<el-card class="base-container" style="margin-top: 20px; min-height: 200px">
|
<el-card class="base-container" style="margin-top: 20px; min-height: 200px">
|
||||||
<el-row :gutter="30" style="padding: 20px;">
|
<el-row :gutter="30" style="padding: 20px;">
|
||||||
<el-col class="footer-item-container" :span="6" v-for="count in 2" :key="count">
|
<el-col class="footer-item-container" :span="6" v-for="count in 4" :key="count">
|
||||||
<el-card class="footer-item-box base-container" @click.native="selectPlat(count)">
|
<el-card class="footer-item-box base-container" @click.native="selectPlat(count)">
|
||||||
<div class="plat" style="font-size: 24px">出库液压台{{ count }}</div>
|
<div class="plat" style="font-size: 24px">出库液压台{{ count }}</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: gtz
|
* @Author: gtz
|
||||||
* @Date: 2022-03-04 10:22:13
|
* @Date: 2022-03-04 10:22:13
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2022-07-12 10:42:13
|
* @LastEditTime: 2022-07-13 10:11:05
|
||||||
* @Description: file content
|
* @Description: file content
|
||||||
* @FilePath: \mt-qj-wms-ui\src\views\common\order-auto-submit.vue
|
* @FilePath: \mt-qj-wms-ui\src\views\common\order-auto-submit.vue
|
||||||
-->
|
-->
|
||||||
@ -245,7 +245,7 @@
|
|||||||
requestData.taskCreateParamList.push({
|
requestData.taskCreateParamList.push({
|
||||||
autoTaskStep: 1,
|
autoTaskStep: 1,
|
||||||
autoTaskType: this.dataForm.autoTaskType,
|
autoTaskType: this.dataForm.autoTaskType,
|
||||||
craftCode: this.dataForm.secProcess,
|
craftCode: this.dataForm.firstProcess,
|
||||||
detParams: this.dataList,
|
detParams: this.dataList,
|
||||||
kilnId: this.dataForm.firstPosition.split(',')[0],
|
kilnId: this.dataForm.firstPosition.split(',')[0],
|
||||||
processType: this.dataForm.processType,
|
processType: this.dataForm.processType,
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="auto-undo">
|
<div class="auto-undo" v-if="false">
|
||||||
<el-row style="margin: 10px 0; font-weight: bold">
|
<el-row style="margin: 10px 0; font-weight: bold">
|
||||||
未完成自动任务
|
未完成自动任务
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -71,9 +71,23 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="craftName" label="工艺"> </el-table-column>
|
||||||
<el-table-column prop="startPosition" label="开始位置"> </el-table-column>
|
<el-table-column prop="startPosition" label="开始位置"> </el-table-column>
|
||||||
<el-table-column prop="targetPosition" label="目标位置">
|
<el-table-column prop="targetPosition" label="目标位置">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
fixed="right"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
width="80"
|
||||||
|
label="置顶"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" size="small" @click="topList(scope.row.id)"
|
||||||
|
>置顶</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
fixed="right"
|
fixed="right"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
@ -115,7 +129,7 @@
|
|||||||
:disabled="scope.row.status === 1"
|
:disabled="scope.row.status === 1"
|
||||||
style="color:red"
|
style="color:red"
|
||||||
size="small"
|
size="small"
|
||||||
@click="deleteHandle(scope.row.sheetNo)"
|
@click="deleteHandle(scope.row.id)"
|
||||||
>
|
>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
class="item"
|
class="item"
|
||||||
@ -163,12 +177,27 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
totalPage: 0,
|
totalPage: 0,
|
||||||
dataListLoading: false,
|
dataListLoading: false,
|
||||||
statusList
|
statusList,
|
||||||
|
processList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
activated () {
|
activated () {
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
this.timer = setInterval(this.getDataList, 180000)
|
this.timer = setInterval(this.getDataList, 180000)
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/craftInfo/page'),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData({
|
||||||
|
current: 1,
|
||||||
|
size: 999
|
||||||
|
})
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.processList = data.data.records
|
||||||
|
} else {
|
||||||
|
this.processList.splice(0, this.processList.length)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
@ -184,7 +213,15 @@ export default {
|
|||||||
})
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataList = data.data.records
|
const resData = data.data.records
|
||||||
|
resData.forEach(item => {
|
||||||
|
if (item.craftCodeId) {
|
||||||
|
this.processList.find(item1 => {
|
||||||
|
if (item1.id === item.craftCodeId) { item.craftName = item1.craftCode }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.dataList = resData
|
||||||
this.totalPage = data.data.total
|
this.totalPage = data.data.total
|
||||||
} else {
|
} else {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
@ -232,18 +269,38 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
topList (id) {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/currTask/top'),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData({ id })
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '操作成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
this.getDataList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 删除
|
// 删除
|
||||||
deleteHandle (sheetNo) {
|
deleteHandle (id) {
|
||||||
this.$confirm(`确定对[生产单编号=${sheetNo}]进行删除操作?`, '提示', {
|
this.$confirm(`确定对[${id}]进行删除操作?`, '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('/currTask/deleteBySheetNo'),
|
url: this.$http.adornUrl('/currTask/deleteById'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: this.$http.adornData({sheetNo})
|
data: this.$http.adornData({ id })
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
Loading…
Reference in New Issue
Block a user