修改仓库UI测试bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2023-08-01 13:52:10
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-11-02 16:13:31
|
||||
* @LastEditTime: 2023-11-23 15:14:37
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -12,9 +12,10 @@
|
||||
ref="dataForm"
|
||||
v-if="visible"
|
||||
@keyup.enter.native="dataFormSubmit()"
|
||||
label-width="90px">
|
||||
label-width="90px"
|
||||
label-position="top">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="仓库编码" prop="warehouseCode">
|
||||
<el-input
|
||||
v-model="dataForm.warehouseCode"
|
||||
@@ -22,7 +23,7 @@
|
||||
placeholder="请输入仓库编码" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="仓库名称" prop="warehouseName">
|
||||
<el-input
|
||||
v-model="dataForm.warehouseName"
|
||||
@@ -30,7 +31,7 @@
|
||||
placeholder="请输入仓库名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="库位编码" prop="code">
|
||||
<el-input
|
||||
v-model="dataForm.code"
|
||||
@@ -38,7 +39,7 @@
|
||||
placeholder="请输入库位编码" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="库位名称" prop="name">
|
||||
<el-input
|
||||
v-model="dataForm.name"
|
||||
@@ -70,6 +71,7 @@
|
||||
v-model="dataForm.type"
|
||||
filterable
|
||||
clearable
|
||||
style="width: 100%;"
|
||||
placeholder="请选择库位类型">
|
||||
<el-option
|
||||
v-for="item in urlOptions.dictList.dict0"
|
||||
@@ -85,6 +87,7 @@
|
||||
v-model="dataForm.enabled"
|
||||
filterable
|
||||
clearable
|
||||
style="width: 100%;"
|
||||
placeholder="请选择是否可用">
|
||||
<el-option
|
||||
v-for="item in isorno"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2023-08-01 13:52:10
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-11-02 15:45:53
|
||||
* @LastEditTime: 2023-11-23 15:20:31
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -13,47 +13,61 @@
|
||||
v-if="visible"
|
||||
@keyup.enter.native="dataFormSubmit()"
|
||||
label-width="90px">
|
||||
<el-form-item label="仓库编码" prop="code">
|
||||
<el-input
|
||||
v-model="dataForm.code"
|
||||
clearable
|
||||
:disabled="isdetail"
|
||||
placeholder="请输入仓库编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="仓库名称" prop="name">
|
||||
<el-input
|
||||
v-model="dataForm.name"
|
||||
clearable
|
||||
:disabled="isdetail"
|
||||
placeholder="请输入仓库名称" />
|
||||
</el-form-item>
|
||||
<el-form-item prop="type" label="仓库类型">
|
||||
<el-select
|
||||
v-model="dataForm.type"
|
||||
:disabled="isdetail"
|
||||
filterable
|
||||
clearable
|
||||
placeholder="请选择仓库类型">
|
||||
<el-option
|
||||
v-for="item in urlOptions.dictList.dict0"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="parseInt(item.value)"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item prop="storageType" v-if="!isdetail" label="物料类型">
|
||||
<el-select
|
||||
v-model="dataForm.storageType"
|
||||
filterable
|
||||
clearable
|
||||
placeholder="请选择物料类型">
|
||||
<el-option
|
||||
v-for="item in urlOptions.dictList.dict1"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="parseInt(item.value)"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="isdetail?24:12">
|
||||
<el-form-item label="仓库编码" prop="code">
|
||||
<el-input
|
||||
v-model="dataForm.code"
|
||||
clearable
|
||||
:disabled="isdetail"
|
||||
:style="{width: isdetail?'70%':'100%',}"
|
||||
placeholder="请输入仓库编码" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="isdetail?24:12">
|
||||
<el-form-item label="仓库名称" prop="name">
|
||||
<el-input
|
||||
v-model="dataForm.name"
|
||||
clearable
|
||||
:disabled="isdetail"
|
||||
:style="{width: isdetail?'70%':'100%',}"
|
||||
placeholder="请输入仓库名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="isdetail?24:12">
|
||||
<el-form-item prop="type" label="仓库类型">
|
||||
<el-select
|
||||
v-model="dataForm.type"
|
||||
:disabled="isdetail"
|
||||
filterable
|
||||
clearable
|
||||
:style="{width: isdetail?'70%':'100%',}"
|
||||
placeholder="请选择仓库类型">
|
||||
<el-option
|
||||
v-for="item in urlOptions.dictList.dict0"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="parseInt(item.value)"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="isdetail?24:12">
|
||||
<el-form-item prop="storageType" v-if="!isdetail" label="物料类型">
|
||||
<el-select
|
||||
v-model="dataForm.storageType"
|
||||
filterable
|
||||
clearable
|
||||
style="width: 100%;"
|
||||
placeholder="请选择物料类型">
|
||||
<el-option
|
||||
v-for="item in urlOptions.dictList.dict1"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="parseInt(item.value)"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
@confirm="handleConfirm"
|
||||
:before-close="handleCancel"
|
||||
:destroy-on-close="true"
|
||||
width="50%">
|
||||
width="40%">
|
||||
<add-or-update
|
||||
ref="addOrUpdate"
|
||||
@refreshDataList="successSubmit"></add-or-update>
|
||||
@@ -123,6 +123,7 @@ const tableProps = [
|
||||
{
|
||||
prop: 'code',
|
||||
label: '库位编码',
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
prop: 'name',
|
||||
@@ -131,24 +132,29 @@ const tableProps = [
|
||||
{
|
||||
prop: 'arrange',
|
||||
label: '排',
|
||||
width: 50
|
||||
},
|
||||
{
|
||||
prop: 'col',
|
||||
label: '列',
|
||||
width: 50
|
||||
},
|
||||
{
|
||||
prop: 'layer',
|
||||
label: '层',
|
||||
width: 50
|
||||
},
|
||||
{
|
||||
prop: 'type',
|
||||
label: '库位类型',
|
||||
filter: codeFilter('wareType'),
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
prop: 'enabled',
|
||||
label: '是否可用',
|
||||
filter: codeFilter('deactivate'),
|
||||
width: 80
|
||||
},
|
||||
{
|
||||
prop: 'remark',
|
||||
@@ -197,7 +203,7 @@ export default {
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
btnName: '搜索',
|
||||
btnName: '查询',
|
||||
name: 'search',
|
||||
color: 'primary',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user