|
@@ -93,27 +93,23 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
<a-form-model-item label="包装数" prop="packQty" :label-col="{span:4}" :wrapper-col="{span:16}">
|
|
<a-form-model-item label="包装数" prop="packQty" :label-col="{span:4}" :wrapper-col="{span:16}">
|
|
- <a-row>
|
|
|
|
- <a-col :span="14">
|
|
|
|
- <a-input-number
|
|
|
|
- id="productInfoEdit-packQty"
|
|
|
|
- v-model="form.packQty"
|
|
|
|
- :precision="0"
|
|
|
|
- :min="1"
|
|
|
|
- :max="999999"
|
|
|
|
- placeholder="请输入"
|
|
|
|
- style="width: 70%;" /><span>{{ form.unit }}/</span>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="10">
|
|
|
|
- <v-select
|
|
|
|
- code="PRODUCT_PACK_UNIT"
|
|
|
|
- id="productLevelEdit-packQtyUnit"
|
|
|
|
- v-model="form.packQtyUnit"
|
|
|
|
- allowClear
|
|
|
|
- placeholder="包装数单位"
|
|
|
|
- ></v-select>
|
|
|
|
- </a-col>
|
|
|
|
- </a-row>
|
|
|
|
|
|
+ <a-input-number
|
|
|
|
+ id="productInfoEdit-packQty"
|
|
|
|
+ v-model="form.packQty"
|
|
|
|
+ :precision="0"
|
|
|
|
+ :min="1"
|
|
|
|
+ :max="999999"
|
|
|
|
+ placeholder="请输入"
|
|
|
|
+ />
|
|
|
|
+ <span style="margin: 0 5px;">/</span>
|
|
|
|
+ <v-select
|
|
|
|
+ code="PRODUCT_PACK_UNIT"
|
|
|
|
+ id="productLevelEdit-packQtyUnit"
|
|
|
|
+ v-model="form.packQtyUnit"
|
|
|
|
+ allowClear
|
|
|
|
+ style="width: 100px;"
|
|
|
|
+ placeholder="单位"
|
|
|
|
+ ></v-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
@@ -215,7 +211,7 @@
|
|
id="productInfoEdit-submit-btn"
|
|
id="productInfoEdit-submit-btn"
|
|
size="large"
|
|
size="large"
|
|
@click="handleSubmit"
|
|
@click="handleSubmit"
|
|
- style="padding: 0 60px;">提交</a-button>
|
|
|
|
|
|
+ style="padding: 0 60px;">保存</a-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -442,6 +438,7 @@ export default {
|
|
this.$refs.editor.setHtml('')
|
|
this.$refs.editor.setHtml('')
|
|
this.$refs.otherDesc.setHtml('')
|
|
this.$refs.otherDesc.setHtml('')
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
|
|
+ this.form.packQtyUnit = undefined
|
|
this.getProductBrand()
|
|
this.getProductBrand()
|
|
this.getProductType()
|
|
this.getProductType()
|
|
if (this.$route.params.id) { // 编辑页
|
|
if (this.$route.params.id) { // 编辑页
|