Commit d3e6cb36 authored by Marcus's avatar Marcus

后台入仓时添加商品 / 后台入仓时添加商品-前端 追加的时候不能添加新品名

https://zentao.test.jdshangmen.com/task-view-1921.html
parent 34d4c71d
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
<template slot="label"><span style="color: red">*</span>{{ $t('中文品名') }}</template> <template slot="label"><span style="color: red">*</span>{{ $t('中文品名') }}</template>
<span style="min-width: 200px;margin-right: 15px;display: inline-block"> <span style="min-width: 200px;margin-right: 15px;display: inline-block">
<product-selector v-if="!order.parentOrderId && !isAdd" v-model="form.prodId" @change="onProductChange"/> <product-selector v-if="!order.parentOrderId && !isAdd" v-model="form.prodId" @change="onProductChange"/>
<span v-else>{{ prodTitleZh || warehousing.prodTitleZh }}</span> <span v-else>{{ warehousing.prodTitleZh }}</span>
</span> </span>
<el-button type="text" @click="isShowProduct = true">添加新商品</el-button> <el-button v-if="!order.parentOrderId && !isAdd" type="text" @click="isShowProduct = true">添加新商品</el-button>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label"><span style="color: red">*</span>{{ $t('英文品名') }}</template> <template slot="label"><span style="color: red">*</span>{{ $t('英文品名') }}</template>
<product-selector v-if="!order.parentOrderId && !isAdd" lang="En" v-model="form.prodId" @change="onProductChange"/> <product-selector v-if="!order.parentOrderId && !isAdd" lang="En" v-model="form.prodId" @change="onProductChange"/>
<span v-else>{{ prodTitleEn || warehousing.prodTitleEn }}</span> <span v-else>{{ warehousing.prodTitleEn }}</span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('品牌')"> <el-descriptions-item :label="$t('品牌')">
<template slot="label"><span style="color: red">*</span>{{ $t('品牌') }}</template> <template slot="label"><span style="color: red">*</span>{{ $t('品牌') }}</template>
...@@ -641,10 +641,7 @@ export default { ...@@ -641,10 +641,7 @@ export default {
//类型列表 //类型列表
typeList: [], typeList: [],
// 特性列表 // 特性列表
attrList: [], attrList: []
// 添加商品时的临时名字
prodTitleZh: '',
prodTitleEn: ''
} }
}, },
...@@ -909,8 +906,6 @@ export default { ...@@ -909,8 +906,6 @@ export default {
this.$modal.msgSuccess(this.$t("新增成功")) this.$modal.msgSuccess(this.$t("新增成功"))
if (this.activeName === 'first') { if (this.activeName === 'first') {
this.form.prodId = response.data this.form.prodId = response.data
this.prodTitleZh = this.productForm.titleZh
this.prodTitleEn = this.productForm.titleEn
} else { } else {
this.form1.prodId = response.data this.form1.prodId = response.data
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment