refactor(wms): 统一物料类型字段并添加操作状态开关
- 将各页面中的itemType字段替换为materialType,使用中文显示物料类型 - 在actflow页面添加待操作状态切换开关 - 移除废弃的warehouseId字段
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
<el-option v-for="item in dict.type.action_type" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="只看待操作" prop="actionStatus">
|
||||
<el-switch @change="switchActionStatus" v-model="queryParams.actionSwitch"/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
@@ -363,6 +366,15 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
switchActionStatus(value) {
|
||||
console.log(value)
|
||||
if (!value) {
|
||||
this.queryParams.actionStatus = null;
|
||||
} else {
|
||||
this.queryParams.actionStatus = 0;
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
|
||||
Reference in New Issue
Block a user