update
This commit is contained in:
parent
21b2eac76e
commit
ec506645a7
@ -22,6 +22,9 @@
|
||||
<icon-svg class="iconClass" name="新建"></icon-svg>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button size="small" type="success" @click="resetCarStatus()">
|
||||
重置车辆状态
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
@ -160,6 +163,32 @@
|
||||
this.$refs.addOrUpdate.init(id)
|
||||
})
|
||||
},
|
||||
// 重置车辆状态
|
||||
resetCarStatus () {
|
||||
this.$confirm(`确定重置车辆状态?`, '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/vehicle/resetStatus'),
|
||||
method: 'post'
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.$message({
|
||||
message: '操作成功',
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.getDataList()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.error(data.msg)
|
||||
}
|
||||
})
|
||||
}).catch(() => {})
|
||||
},
|
||||
// 删除
|
||||
deleteHandle (id) {
|
||||
this.$confirm(`确定对[id=${id}]进行删除操作?`, '提示', {
|
||||
|
@ -34,18 +34,60 @@
|
||||
align="center"
|
||||
label="客户信息">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="productName"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="产品名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="orderNo"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="订单号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="taskCode"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="任务编码">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="currTaskId"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="当前任务ID">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="materialDes"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="物料牌号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="craftIll"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="工艺要求">
|
||||
<el-table-column
|
||||
prop="quantity"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="数量">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="weight"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="重量">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="unit"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="单位">
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
|
@ -100,7 +100,7 @@
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
scope.row.taskType === 0
|
||||
? "缓存到窑炉加工"
|
||||
? "炉子加工"
|
||||
: scope.row.taskType === 1
|
||||
? "出炉到缓存"
|
||||
: scope.row.taskType === 2
|
||||
|
@ -58,7 +58,7 @@
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
scope.row.taskType === 0
|
||||
? "缓存到窑炉加工"
|
||||
? "炉子加工"
|
||||
: scope.row.taskType === 1
|
||||
? "出炉到缓存"
|
||||
: scope.row.taskType === 2
|
||||
@ -86,7 +86,7 @@
|
||||
width="80"
|
||||
label="详情">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" @click="Detail(scope.row.id)">详情</el-button>
|
||||
<el-button v-if="scope.row.status === 0" type="text" size="small" @click="Detail(scope.row.id)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -86,7 +86,7 @@
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
scope.row.taskType === 0
|
||||
? "缓存到窑炉加工"
|
||||
? "炉子加工"
|
||||
: scope.row.taskType === 1
|
||||
? "出炉到缓存"
|
||||
: scope.row.taskType === 2
|
||||
|
Loading…
Reference in New Issue
Block a user