Commit 3da1d959 by yubin

修bug

parent 46b00658
...@@ -213,7 +213,8 @@ ...@@ -213,7 +213,8 @@
</div> </div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div><strong>允许混放批次:</strong>{{ scope.row.allowMixedBatches || '-' }}</div> <div><strong>允许混放批次:</strong>
<dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedBatches"/></div>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<div><strong>拣货区:</strong>{{ scope.row.pickingArea || '-' }}</div> <div><strong>拣货区:</strong>{{ scope.row.pickingArea || '-' }}</div>
...@@ -251,7 +252,11 @@ ...@@ -251,7 +252,11 @@
<dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedProducts"/> <dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedProducts"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="允许混放批次" align="center" prop="allowMixedBatches" width="120" /> <el-table-column label="允许混放批次" align="center" prop="allowMixedBatches" width="120" >
<template slot-scope="scope">
<dict-tag :options="dict.type.yorn" :value="scope.row.allowMixedBatches"/>
</template>
</el-table-column>
<el-table-column label="上架顺序" align="center" prop="putawayOrder" width="100" /> <el-table-column label="上架顺序" align="center" prop="putawayOrder" width="100" />
<el-table-column label="拣货顺序" align="center" prop="pickingOrder" width="100" /> <el-table-column label="拣货顺序" align="center" prop="pickingOrder" width="100" />
...@@ -301,7 +306,7 @@ ...@@ -301,7 +306,7 @@
<el-table-column label="温区" align="center" prop="temperatureZone" width="100" /> <el-table-column label="温区" align="center" prop="temperatureZone" width="100" />
<el-table-column label="应用状态" align="center" prop="isEnabled" width="100"> <el-table-column label="应用状态" align="center" prop="isEnabled" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.isEnabled"/> <dict-tag :options="dict.type.is_enabled" :value="scope.row.isEnabled"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="排序" align="center" prop="sortNo" width="80" /> <el-table-column label="排序" align="center" prop="sortNo" width="80" />
...@@ -621,7 +626,7 @@ import { listMaterials } from "@/api/inventory/materials" ...@@ -621,7 +626,7 @@ import { listMaterials } from "@/api/inventory/materials"
export default { export default {
name: "Locations", name: "Locations",
components: { materialsSeletor, WarehouseSelector, ImportExcel }, components: { materialsSeletor, WarehouseSelector, ImportExcel },
dicts: ['sys_normal_disable', 'location_type', 'location_usage', 'yorn'], dicts: ['sys_normal_disable', 'location_type', 'location_usage', 'yorn','is_enabled'],
data() { data() {
return { return {
loading: true, loading: true,
......
...@@ -79,7 +79,15 @@ ...@@ -79,7 +79,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<!-- 新增英文名称查询项 -->
<el-form-item label="英文名称" prop="englishName">
<el-input
v-model="queryParams.englishName"
placeholder="请输入英文名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="税号" prop="taxNumber"> <el-form-item label="税号" prop="taxNumber">
<el-input <el-input
v-model="queryParams.taxNumber" v-model="queryParams.taxNumber"
...@@ -111,6 +119,8 @@ ...@@ -111,6 +119,8 @@
<el-table-column type="selection" width="55" align="center" fixed /> <el-table-column type="selection" width="55" align="center" fixed />
<el-table-column label="货主编码" align="center" prop="ownerCode" width="120" fixed/> <el-table-column label="货主编码" align="center" prop="ownerCode" width="120" fixed/>
<el-table-column label="货主名称" align="center" prop="ownerName"width="220" /> <el-table-column label="货主名称" align="center" prop="ownerName"width="220" />
<!-- 新增英文名称表格列 -->
<el-table-column label="英文名称" align="center" prop="englishName"width="220" />
<el-table-column label="货主类型" align="center" prop="ownerType"> <el-table-column label="货主类型" align="center" prop="ownerType">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.owner_type" :value="scope.row.ownerType"/> <dict-tag :options="dict.type.owner_type" :value="scope.row.ownerType"/>
...@@ -178,6 +188,14 @@ ...@@ -178,6 +188,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- 新增英文名称表单项 -->
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="英文名称" prop="englishName">
<el-input v-model="form.englishName" placeholder="请输入英文名称" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="联系人" prop="contactPerson"> <el-form-item label="联系人" prop="contactPerson">
...@@ -294,6 +312,7 @@ export default { ...@@ -294,6 +312,7 @@ export default {
pageSize: 10, pageSize: 10,
ownerCode: null, ownerCode: null,
ownerName: null, ownerName: null,
englishName: null, // 新增英文名称查询参数
ownerType: null, ownerType: null,
contactPerson: null, contactPerson: null,
contactPhone: null, contactPhone: null,
...@@ -316,6 +335,9 @@ export default { ...@@ -316,6 +335,9 @@ export default {
ownerName: [ ownerName: [
{ required: true, message: '货主名称不能为空', trigger: 'blur' } { required: true, message: '货主名称不能为空', trigger: 'blur' }
], ],
englishName: [ // 新增英文名称校验规则(非必填,可根据需求调整)
{ required: false, message: '英文名称不能为空', trigger: 'blur' }
],
contactPerson: [ contactPerson: [
{ required: true, message: '联系人不能为空', trigger: 'blur' } { required: true, message: '联系人不能为空', trigger: 'blur' }
], ],
...@@ -362,6 +384,7 @@ export default { ...@@ -362,6 +384,7 @@ export default {
id: null, id: null,
ownerCode: null, ownerCode: null,
ownerName: null, ownerName: null,
englishName: null, // 新增英文名称表单重置
ownerType: null, ownerType: null,
contactPerson: null, contactPerson: null,
contactPhone: null, contactPhone: null,
...@@ -390,6 +413,7 @@ export default { ...@@ -390,6 +413,7 @@ export default {
pageSize: 10, pageSize: 10,
ownerCode: null, ownerCode: null,
ownerName: null, ownerName: null,
englishName: null, // 新增英文名称查询参数重置
ownerType: null, ownerType: null,
contactPerson: null, contactPerson: null,
contactPhone: null, contactPhone: null,
......
...@@ -148,7 +148,7 @@ public class OutboundOrdersController extends BaseController ...@@ -148,7 +148,7 @@ public class OutboundOrdersController extends BaseController
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response)
{ {
ExcelUtil<InboundTemplateVO> util = new ExcelUtil<InboundTemplateVO>(InboundTemplateVO.class); ExcelUtil<OutboundTemplateVO> util = new ExcelUtil<OutboundTemplateVO>(OutboundTemplateVO.class);
util.importTemplateExcel(response, "入库单及入库物料明细信息"); util.importTemplateExcel(response, "入库单及入库物料明细信息");
} }
......
...@@ -146,6 +146,6 @@ public class StorageLocationsController extends BaseController ...@@ -146,6 +146,6 @@ public class StorageLocationsController extends BaseController
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response)
{ {
ExcelUtil<StorageLocationsLocationTemplateVO> util = new ExcelUtil<StorageLocationsLocationTemplateVO>(StorageLocationsLocationTemplateVO.class); ExcelUtil<StorageLocationsLocationTemplateVO> util = new ExcelUtil<StorageLocationsLocationTemplateVO>(StorageLocationsLocationTemplateVO.class);
util.importTemplateExcel(response, "货主数据"); util.importTemplateExcel(response, "库位数据");
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论