瀏覽代碼

按钮置灰 修复input无法正确输入

DESKTOP-B78GIPM\admin 2 年之前
父節點
當前提交
f5c6761d78
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/stock/modules/DepositoryForm.vue

+ 3 - 2
src/views/stock/modules/DepositoryForm.vue

@@ -25,7 +25,7 @@
                     </a-form-item>
                 </a-col>
                 <a-col :span="6" style="margin-top:5px;">
-                    <a-button @click="handleGoods" type="primary" icon="plus">批量添加</a-button>
+                    <a-button :disabled="!model.supplierId" @click="handleGoods" type="primary" icon="plus">批量添加</a-button>
                 </a-col>
             </a-row>
         </a-form-model>
@@ -250,7 +250,8 @@ export default {
         },
         selectOk(e) {
             console.log(e);
-            this.dataSource = e
+            this.dataSource = JSON.parse(JSON.stringify(e))
+            console.log(this.dataSource);
         },
         add() {
             this.edit(this.modelDefault,1);