|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
- <el-form-item label="路径规划名称" prop="flowName">
|
|
|
+ <el-form-item label="名称" prop="flowName">
|
|
|
<el-input
|
|
|
v-model="queryParams.flowName"
|
|
|
- placeholder="请输入路径规划名称"
|
|
|
+ placeholder="请输入名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
@@ -55,7 +55,7 @@
|
|
|
<el-table v-loading="loading" :data="locationPriorityList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="编号" align="center" prop="id" />
|
|
|
- <el-table-column label="路径规划名称" align="center" prop="flowName" />
|
|
|
+ <el-table-column label="名称" align="center" prop="flowName" />
|
|
|
<el-table-column label="所属区域" align="center" prop="locationZoneName" />
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
<template slot-scope="scope">
|
|
@@ -92,13 +92,13 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
- <!-- 添加或修改路径规划对话框 -->
|
|
|
+ <!-- 添加或修改对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="路径规划名称" prop="flowName">
|
|
|
- <el-input v-model="form.flowName" placeholder="请输入路径规划名称" />
|
|
|
+ <el-form-item label="名称" prop="flowName">
|
|
|
+ <el-input v-model="form.flowName" placeholder="请输入名称" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -220,7 +220,7 @@
|
|
|
<el-form-item label="自定义字段5" prop="userdefine5">
|
|
|
<el-input v-model="form.userdefine5" placeholder="请输入自定义字段5" />
|
|
|
</el-form-item>-->
|
|
|
- <el-divider content-position="center">路径规划信息</el-divider>
|
|
|
+ <el-divider content-position="center">信息</el-divider>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddLocationPriorityDetails">添加</el-button>
|
|
@@ -300,10 +300,10 @@ export default {
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
flowName: [
|
|
|
- { required: true, message: "路径规划不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "名称不能为空", trigger: "blur" }
|
|
|
],
|
|
|
locationZone: [
|
|
|
- { required: true, message: "所属不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "所属区域不能为空", trigger: "blur" }
|
|
|
],
|
|
|
sku: [
|
|
|
{ required: true, message: "物料不能为空", trigger: "blur" }
|
|
@@ -328,7 +328,7 @@ export default {
|
|
|
this.skuCombo = response.data
|
|
|
});
|
|
|
},
|
|
|
- /** 查询路径规划列表 */
|
|
|
+ /** 查询列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listLocationPriority(this.queryParams).then(response => {
|
|
@@ -390,7 +390,7 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
- this.title = "添加路径规划";
|
|
|
+ this.title = "添加出入库策略";
|
|
|
// 加载批次属性明细
|
|
|
listLotattConfig().then(response => {
|
|
|
this.locationPriorityDetailsList = response.data;
|
|
@@ -408,7 +408,7 @@ export default {
|
|
|
this.form.locationZone = parseInt(this.form.locationZone)
|
|
|
this.locationPriorityDetailsList = response.data.locationPriorityDetailsList;
|
|
|
this.open = true;
|
|
|
- this.title = "修改路径规划";
|
|
|
+ this.title = "修改出入库策略";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
@@ -435,18 +435,18 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除路径规划编号为"' + ids + '"的数据项?').then(function() {
|
|
|
+ this.$modal.confirm('是否确认删除出入库策略编号为"' + ids + '"的数据项?').then(function() {
|
|
|
return delLocationPriority(ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
- /** 路径规划序号 */
|
|
|
+ /** 出入库策略序号 */
|
|
|
rowLocationPriorityDetailsIndex({ row, rowIndex }) {
|
|
|
row.index = rowIndex + 1;
|
|
|
},
|
|
|
- /** 路径规划添加按钮操作 */
|
|
|
+ /** 出入库策略添加按钮操作 */
|
|
|
handleAddLocationPriorityDetails() {
|
|
|
let obj = {};
|
|
|
obj.lotattId = "";
|
|
@@ -454,10 +454,10 @@ export default {
|
|
|
obj.remark = "";
|
|
|
this.locationPriorityDetailsList.push(obj);
|
|
|
},
|
|
|
- /** 路径规划删除按钮操作 */
|
|
|
+ /** 出入库策略删除按钮操作 */
|
|
|
handleDeleteLocationPriorityDetails() {
|
|
|
if (this.checkedLocationPriorityDetails.length == 0) {
|
|
|
- this.$modal.msgError("请先选择要删除的路径规划数据");
|
|
|
+ this.$modal.msgError("请先选择要删除的出入库策略数据");
|
|
|
} else {
|
|
|
const locationPriorityDetailsList = this.locationPriorityDetailsList;
|
|
|
const checkedLocationPriorityDetails = this.checkedLocationPriorityDetails;
|