扫码枪页面
This commit is contained in:
@@ -92,9 +92,23 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<el-tag :type="statusTagType(scope.row.status)" disable-transitions>
|
||||
<el-select v-model="scope.row.status" @change="handleStatusChange(scope.row)">
|
||||
<el-option key="1" :value="0" label="新建">
|
||||
<el-tag type="info">新建</el-tag>
|
||||
</el-option>
|
||||
<el-option key="2" :value="1" label="已排产">
|
||||
<el-tag type="warning">已排产</el-tag>
|
||||
</el-option>
|
||||
<el-option key="3" :value="2" label="生产中">
|
||||
<el-tag type="primary">生产中</el-tag>
|
||||
</el-option>
|
||||
<el-option key="4" :value="3" label="已完成">
|
||||
<el-tag type="success">已完成</el-tag>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- <el-tag :type="statusTagType(scope.row.status)" disable-transitions>
|
||||
{{ statusText(scope.row.status) }}
|
||||
</el-tag>
|
||||
</el-tag> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
@@ -111,14 +125,12 @@
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
|
||||
>删除</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
@@ -267,6 +279,13 @@
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
handleStatusChange(row) {
|
||||
console.log(row);
|
||||
updateSchedulePlan(row).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
|
||||
Reference in New Issue
Block a user