|
@@ -56,6 +56,16 @@
|
|
|
<a-input-number :default-value="0" v-model="form.safetyStock"/>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-model-item label="主单位" name='unit' :labelCol="{offset: 1}">
|
|
|
+ <a-input placeholder="请输入" v-model="form.unit" disabled />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
+ <a-form-model-item label="辅单位" name='auxiliaryUnit' :labelCol="{offset: 1}">
|
|
|
+ <a-input placeholder="请输入" v-model="form.auxiliaryUnit" disabled />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
</a-form-model>
|
|
|
</div>
|
|
@@ -167,7 +177,8 @@
|
|
|
this.$set(this.form,'inventoryName',data.Name)
|
|
|
this.$set(this.form,'specs',data.SPECS)
|
|
|
this.$set(this.form,'inventory',data.ID )
|
|
|
- this.$set(this.form,'attribute',data.Code1 )
|
|
|
+ this.$set(this.form,'unit',data.unit )
|
|
|
+ this.$set(this.form,'auxiliaryUnit',data.auxiliaryUnit )
|
|
|
this.$refs.form.clearValidate()
|
|
|
},
|
|
|
onSearch(){
|