|
|
|
@ -51,10 +51,10 @@ |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="重量(kg)" prop="weight"> |
|
|
|
<el-form-item label="高度(mm)" prop="weight"> |
|
|
|
<el-input |
|
|
|
v-model="dataForm.weight" |
|
|
|
placeholder="请输入重量" |
|
|
|
v-model="dataForm.height" |
|
|
|
placeholder="请输入高度" |
|
|
|
:precision="3" |
|
|
|
:min="0" |
|
|
|
:max="999999" |
|
|
|
@ -91,10 +91,10 @@ |
|
|
|
|
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="高度(mm)" prop="height"> |
|
|
|
<el-form-item label="重量(kg)" prop="height"> |
|
|
|
<el-input |
|
|
|
v-model="dataForm.height" |
|
|
|
placeholder="请输入高度" |
|
|
|
v-model="dataForm.weight" |
|
|
|
placeholder="请输入重量(kg)" |
|
|
|
:precision="2" |
|
|
|
:min="0" |
|
|
|
:max="999999" |
|
|
|
@ -137,14 +137,14 @@ export default { |
|
|
|
dataForm: { |
|
|
|
site: '', |
|
|
|
partNo: '', |
|
|
|
isInWh: 'N', |
|
|
|
isInWh: 'Y', |
|
|
|
isRobotPick: 'N', |
|
|
|
isCommonlyUsed: 'N', |
|
|
|
weight: null, |
|
|
|
length: null, |
|
|
|
width: null, |
|
|
|
isCommonlyUsed: 'Y', |
|
|
|
weight: 0, |
|
|
|
length: 0, |
|
|
|
width: 0, |
|
|
|
height: null, |
|
|
|
diameter: null |
|
|
|
diameter: 0 |
|
|
|
}, |
|
|
|
dataRule: { |
|
|
|
site: [ |
|
|
|
@ -193,9 +193,9 @@ export default { |
|
|
|
|
|
|
|
// 设置默认值 |
|
|
|
this.dataForm.site = site || localStorage.getItem('site') || '' |
|
|
|
this.dataForm.isInWh = 'N' |
|
|
|
this.dataForm.isInWh = 'Y' |
|
|
|
this.dataForm.isRobotPick = 'N' |
|
|
|
this.dataForm.isCommonlyUsed = 'N' |
|
|
|
this.dataForm.isCommonlyUsed = 'Y' |
|
|
|
|
|
|
|
if (site && partNo) { |
|
|
|
// 修改模式,获取详情 |
|
|
|
@ -211,9 +211,9 @@ export default { |
|
|
|
const info = data.data |
|
|
|
this.dataForm.site = info.site |
|
|
|
this.dataForm.partNo = info.partNo |
|
|
|
this.dataForm.isInWh = info.isInWh || 'N' |
|
|
|
this.dataForm.isInWh = info.isInWh || 'Y' |
|
|
|
this.dataForm.isRobotPick = info.isRobotPick || 'N' |
|
|
|
this.dataForm.isCommonlyUsed = info.isCommonlyUsed || 'N' |
|
|
|
this.dataForm.isCommonlyUsed = info.isCommonlyUsed || 'Y' |
|
|
|
this.dataForm.weight = info.weight |
|
|
|
this.dataForm.length = info.length |
|
|
|
this.dataForm.width = info.width |
|
|
|
|