chenrui 4 tahun lalu
induk
melakukan
2a0e050ddd
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/views/shop/goodsEdit.vue

+ 4 - 4
src/views/shop/goodsEdit.vue

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