|
@@ -50,7 +50,7 @@
|
|
rules: [{ required: true, message: '请选择商品分类' }] },
|
|
rules: [{ required: true, message: '请选择商品分类' }] },
|
|
]"
|
|
]"
|
|
placeholder="请选择商品分类">
|
|
placeholder="请选择商品分类">
|
|
- <a-select-option v-for="(item,index) in goodsTypeList" :key="index" :value="item.goodsTypeNo">{{ item.name }}</a-select-option>
|
|
|
|
|
|
+ <a-select-option v-for="(item,index) in goodsTypeList" :key="index" :value="item.goodsTypeNo" :disabled="item.state==0">{{ item.name }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="商品价格" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
<a-form-item label="商品价格" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
@@ -103,7 +103,7 @@
|
|
rules: [{ required: true, message: '请选择供货商' }] },
|
|
rules: [{ required: true, message: '请选择供货商' }] },
|
|
]"
|
|
]"
|
|
placeholder="请选择供货商">
|
|
placeholder="请选择供货商">
|
|
- <a-select-option v-for="(item,index) in partnerList" :key="index" :value="item.officialPartnerNo">{{ item.name }}</a-select-option>
|
|
|
|
|
|
+ <a-select-option v-for="(item,index) in partnerList" :key="index" :value="item.officialPartnerNo" :disabled="item.state==0">{{ item.name }}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="商品详情" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
<a-form-item label="商品详情" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
@@ -183,7 +183,7 @@ export default {
|
|
},
|
|
},
|
|
// 商品分类下拉数据
|
|
// 商品分类下拉数据
|
|
getGoodsType () {
|
|
getGoodsType () {
|
|
- goodsTypeQueryList({ state: 1 }).then(res => {
|
|
|
|
|
|
+ goodsTypeQueryList({}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.goodsTypeList = res.data
|
|
this.goodsTypeList = res.data
|
|
} else {
|
|
} else {
|
|
@@ -193,7 +193,7 @@ export default {
|
|
},
|
|
},
|
|
// 供应商下拉数据
|
|
// 供应商下拉数据
|
|
getPartnerQueryList () {
|
|
getPartnerQueryList () {
|
|
- supplierQueryList({ state: 1 }).then(res => {
|
|
|
|
|
|
+ supplierQueryList({}).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.partnerList = res.data
|
|
this.partnerList = res.data
|
|
} else {
|
|
} else {
|