|
@@ -65,7 +65,7 @@
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
<a-input
|
|
|
- v-decorator="['ggxh']" />
|
|
|
+ v-decorator="['ggxh', {rules: [{required: true, message: '规格型号不能为空'}]}]" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -109,6 +109,16 @@
|
|
|
<a-button style="width: 30%" type="primary" @click="handleSupplierSelect">选择</a-button>
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
+ <row-item>
|
|
|
+ <a-form-item
|
|
|
+ label="品牌"
|
|
|
+ :labelCol="BaseTool.Constant.labelCol"
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
+ >
|
|
|
+ <a-input
|
|
|
+ v-decorator="['brand', {rules: [{required: true, message: '品牌不能为空'}]}]" />
|
|
|
+ </a-form-item>
|
|
|
+ </row-item>
|
|
|
<row-item>
|
|
|
<a-form-item
|
|
|
label="备件编号"
|
|
@@ -175,14 +185,12 @@
|
|
|
>
|
|
|
<a-select
|
|
|
show-search
|
|
|
- :value="unitName"
|
|
|
+ v-decorator="['unit', {rules: [{required: true, message: '请选择计量单位'}]}]"
|
|
|
:default-active-first-option="false"
|
|
|
:show-arrow="true"
|
|
|
:filter-option="true"
|
|
|
:not-found-content="null"
|
|
|
- @search="handleSearch"
|
|
|
- @blur="handleBlur"
|
|
|
- @change="handleChange">
|
|
|
+ >
|
|
|
<a-select-option
|
|
|
v-for="(label,value) in unitMap"
|
|
|
:key="value"
|
|
@@ -264,7 +272,7 @@
|
|
|
<a-input-number
|
|
|
style="width: 100%"
|
|
|
:min="1"
|
|
|
- v-decorator="['maxStock']" />
|
|
|
+ v-decorator="['maxStock', {rules: [{required: true, message: '最高库存不能为空'}]}]" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item>
|
|
@@ -276,7 +284,7 @@
|
|
|
<a-input-number
|
|
|
style="width: 100%"
|
|
|
:min="1"
|
|
|
- v-decorator="['minStock']" />
|
|
|
+ v-decorator="['minStock', {rules: [{required: true, message: '最低库存不能为空'}]}]" />
|
|
|
</a-form-item>
|
|
|
</row-item>
|
|
|
<row-item v-show="isAdd">
|
|
@@ -291,7 +299,7 @@
|
|
|
:treeData="storeTreeDate"
|
|
|
:treeNodeFilterProp="'title'"
|
|
|
:showSearch="true"
|
|
|
- v-decorator="['storeId', {rules: [{required: false, message: '仓库库位不能为空'}]}]"
|
|
|
+ v-decorator="['storeId']"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
</a-tree-select>
|
|
@@ -591,7 +599,7 @@ export default {
|
|
|
const { form: { setFieldsValue } } = this
|
|
|
this.applicationFileList = record.applicationFileList
|
|
|
this.defaultApplicationFileList = this.BaseTool.UPLOAD.transImg(this.applicationFileList)
|
|
|
- this.unitName = record.unit
|
|
|
+ // this.unitName = record.unit
|
|
|
this.unitNameBz = record.unitBz
|
|
|
this.gg = record.ggxh
|
|
|
// 日期处理
|
|
@@ -659,7 +667,7 @@ export default {
|
|
|
this.confirmLoading = true
|
|
|
console.log('sbId: ' + this.sbId)
|
|
|
setFieldsValue({
|
|
|
- 'unit': this.unitName,
|
|
|
+ // 'unit': this.unitName,
|
|
|
'unitBz': this.unitNameBz,
|
|
|
'sbId': this.sbId
|
|
|
})
|