解决发现的问题
This commit is contained in:
@@ -77,6 +77,13 @@ public class BasProductPortController extends BaseController
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody BasProductPort basProductPort)
|
||||
{
|
||||
// 检查点位名称是否重复
|
||||
BasProductPort checkPort = new BasProductPort();
|
||||
checkPort.setPortName(basProductPort.getPortName());
|
||||
List<BasProductPort> existingPorts = basProductPortService.selectBasProductPortList(checkPort);
|
||||
if (!existingPorts.isEmpty()) {
|
||||
return error("点位名称已存在,请使用其他名称");
|
||||
}
|
||||
return toAjax(basProductPortService.insertBasProductPort(basProductPort));
|
||||
}
|
||||
|
||||
@@ -88,6 +95,15 @@ public class BasProductPortController extends BaseController
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody BasProductPort basProductPort)
|
||||
{
|
||||
// 检查点位名称是否重复(排除当前记录)
|
||||
BasProductPort checkPort = new BasProductPort();
|
||||
checkPort.setPortName(basProductPort.getPortName());
|
||||
List<BasProductPort> existingPorts = basProductPortService.selectBasProductPortList(checkPort);
|
||||
for (BasProductPort existingPort : existingPorts) {
|
||||
if (!existingPort.getId().equals(basProductPort.getId())) {
|
||||
return error("点位名称已存在,请使用其他名称");
|
||||
}
|
||||
}
|
||||
return toAjax(basProductPortService.updateBasProductPort(basProductPort));
|
||||
}
|
||||
|
||||
|
||||
@@ -498,4 +498,9 @@ export default {
|
||||
width: auto;
|
||||
min-width: fit-content;
|
||||
}
|
||||
/* 统一表单控件宽度 */
|
||||
.el-select,
|
||||
.el-input {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
|
||||
<!-- 添加或修改库存信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" :label-width="labelWidthForFunction">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<!-- 货位ID -->
|
||||
<el-form-item :label="$t('cargoSpace.cargoSpaceId')" prop="warehouseId">
|
||||
<el-input v-model="form.warehouseId" :placeholder="$t('cargoSpace.placeholderCargoSpaceId')" />
|
||||
|
||||
@@ -486,3 +486,10 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
/* 统一表单控件宽度 */
|
||||
.el-select,
|
||||
.el-input {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -398,14 +398,14 @@ export default {
|
||||
if (valid) {
|
||||
if (this.title === this.$t('warehouse.editWarehouseItem')) {
|
||||
updateWarehouse(this.form).then(response => {
|
||||
this.$modal.msgSuccess(this.$t('warehouse.editsuccessInfo'))
|
||||
this.$modal.msgSuccess(this.$t('warehouse.editSuccessInfo'))
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
if (this.title === this.$t('warehouse.addWarehouseItem')) {
|
||||
addWarehouse(this.form).then(response => {
|
||||
this.$modal.msgSuccess(this.$t('warehouse.addsuccessInfo'))
|
||||
this.$modal.msgSuccess(this.$t('warehouse.addSuccessInfo'))
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
@@ -420,7 +420,7 @@ export default {
|
||||
return delWarehouse(warehouseIds)
|
||||
}).then(() => {
|
||||
this.getList()
|
||||
this.$modal.msgSuccess(this.$t('warehouse.deletesuccessInfo'))
|
||||
this.$modal.msgSuccess(this.$t('warehouse.deleteSuccessInfo'))
|
||||
}).catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
@@ -449,3 +449,10 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
/* 统一表单控件宽度 */
|
||||
.el-select,
|
||||
.el-input {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -206,7 +206,7 @@
|
||||
warehouseId: [
|
||||
{ required: true, message: this.$t('checkCreate.warehouseRequired'), trigger: "change" }
|
||||
],
|
||||
billType: [
|
||||
checkType: [
|
||||
{ required: true, message: this.$t('checkCreate.documentTypeRequired'), trigger: "change" }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -198,9 +198,6 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item :label="$t('stockManagement.englishDesc')" prop="englishDesc"> <!– 物料名称 –>-->
|
||||
<!-- <el-input v-model="addForm.extraField.englishDesc" :placeholder="$t('stockManagement.inputEnglishDesc')" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label="$t('stockManagement.quantity')" prop="quantity"> <!-- 库存数量 -->
|
||||
<el-input v-model="addForm.quantity" :placeholder="$t('stockManagement.inputQuantity')" />
|
||||
</el-form-item>
|
||||
@@ -527,3 +524,11 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 统一表单控件宽度 */
|
||||
.el-select,
|
||||
.el-input {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -129,13 +129,13 @@ export default {
|
||||
// 表单验证规则
|
||||
rules: {
|
||||
warehouseId: [
|
||||
{ required: true, message: "请选择仓库", trigger: "change" }
|
||||
{ required: true, message: this.$t('addOutStockout.selectWarehouse'), trigger: "change" }
|
||||
],
|
||||
customerNo: [
|
||||
{ required: true, message: "请输入客户编号", trigger: "blur" }
|
||||
{ required: true, message: this.$t('addOutStockout.inputCustomerNo'), trigger: "blur" }
|
||||
],
|
||||
billType: [
|
||||
{ required: true, message: "请选择单据类型", trigger: "change" }
|
||||
outType: [
|
||||
{ required: true, message: this.$t('addOutStockout.selectDocumentType'), trigger: "change" }
|
||||
]
|
||||
},
|
||||
// 主表数据
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<el-form-item label="是否成功" prop="isSuccessful">
|
||||
<el-select v-model="queryParams.isSuccessful" placeholder="请选择是否成功" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.sys_yes_no"
|
||||
v-for="dict in dict.type.is_available"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
@@ -34,48 +34,48 @@
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['requestInterface:log:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['requestInterface:log:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['requestInterface:log:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['requestInterface:log:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-plus"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click="handleAdd"-->
|
||||
<!-- v-hasPermi="['requestInterface:log:add']"-->
|
||||
<!-- >新增</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="success"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="single"-->
|
||||
<!-- @click="handleUpdate"-->
|
||||
<!-- v-hasPermi="['requestInterface:log:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="danger"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- :disabled="multiple"-->
|
||||
<!-- @click="handleDelete"-->
|
||||
<!-- v-hasPermi="['requestInterface:log:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="warning"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-download"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click="handleExport"-->
|
||||
<!-- v-hasPermi="['requestInterface:log:export']"-->
|
||||
<!-- >导出</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
@@ -86,40 +86,40 @@
|
||||
<el-table-column label="来源系统" align="center" prop="sourceSystem" />
|
||||
<el-table-column label="目标系统" align="center" prop="targetSystem" />
|
||||
<el-table-column label="接口名称" align="center" prop="endpoint" />
|
||||
<el-table-column label="请求URL" align="center" prop="requestUrl" />
|
||||
<el-table-column label="请求URL" width="300" align="left" prop="requestUrl" />
|
||||
<el-table-column label="请求方式" align="center" prop="requestMethod" />
|
||||
<el-table-column label="请求头信息" align="center" prop="requestHeaders" />
|
||||
<el-table-column label="请求参数" align="center" prop="requestBody" />
|
||||
<el-table-column label="响应时间" align="center" prop="responseTime" />
|
||||
<el-table-column label="响应主体" align="center" prop="responseBody" />
|
||||
<el-table-column label="请求参数" width="300" align="left" prop="requestBody" />
|
||||
<el-table-column label="响应时间" width="180" align="left" prop="responseTime" />
|
||||
<el-table-column label="响应主体" align="center" prop="responseBody" />
|
||||
<el-table-column label="响应状态" align="center" prop="responseStatus" />
|
||||
<el-table-column label="错误信息" align="center" prop="errorDetails" />
|
||||
<el-table-column label="耗时" align="center" prop="duration" />
|
||||
<el-table-column label="是否成功" align="center" prop="isSuccessful">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.sys_yes_no" :value="scope.row.isSuccessful"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['requestInterface:log:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['requestInterface:log:remove']"
|
||||
>删除</el-button>
|
||||
<dict-tag :options="dict.type.is_available" :value="scope.row.isSuccessful"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['requestInterface:log:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- v-hasPermi="['requestInterface:log:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
@@ -164,7 +164,7 @@
|
||||
<el-form-item label="是否成功" prop="isSuccessful">
|
||||
<el-select v-model="form.isSuccessful" placeholder="请选择是否成功">
|
||||
<el-option
|
||||
v-for="dict in dict.type.sys_yes_no"
|
||||
v-for="dict in dict.type.is_available"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
@@ -185,7 +185,7 @@ import { listLog, getLog, delLog, addLog, updateLog } from "@/api/requestInterfa
|
||||
|
||||
export default {
|
||||
name: "Log",
|
||||
dicts: ['sys_yes_no'],
|
||||
dicts: ['is_available'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
|
||||
@@ -74,24 +74,24 @@
|
||||
<el-table-column :label="$t('stockFreeze.method')" align="left" prop="method" /> <!-- 操作 -->
|
||||
<el-table-column :label="$t('stockFreeze.warehouseId')" align="left" prop="warehouseName" /> <!-- 仓库 -->
|
||||
<el-table-column :label="$t('stockFreeze.createTime')" align="left" prop="createTime" /> <!-- 创建时间 -->
|
||||
<el-table-column :label="$t('stockFreeze.operation')" align="center" class-name="small-padding fixed-width"> <!-- 操作 -->
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['stock:freeze:edit']"
|
||||
>{{$t('stockFreeze.edit')}}</el-button> <!-- 修改 -->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['stock:freeze:remove']"
|
||||
>{{$t('stockFreeze.delete')}}</el-button> <!-- 删除 -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column :label="$t('stockFreeze.operation')" align="center" class-name="small-padding fixed-width"> <!– 操作 –>-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['stock:freeze:edit']"-->
|
||||
<!-- >{{$t('stockFreeze.edit')}}</el-button> <!– 修改 –>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- v-hasPermi="['stock:freeze:remove']"-->
|
||||
<!-- >{{$t('stockFreeze.delete')}}</el-button> <!– 删除 –>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
|
||||
@@ -99,24 +99,24 @@
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('stockRecord.warehouseId')" align="left" prop="warehouseName" /> <!-- 仓库 -->
|
||||
<el-table-column :label="$t('stockRecord.createTime')" align="left" prop="createTime" /> <!-- 创建时间 -->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['stock:record:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['stock:record:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- v-hasPermi="['stock:record:edit']"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- v-hasPermi="['stock:record:remove']"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
|
||||
Reference in New Issue
Block a user