pengyh 1 anno fa
parent
commit
90689a6879

+ 2 - 2
src/views/salesPurchasing/mixins/storage_goods.js

@@ -466,7 +466,7 @@ export default {
                             保存
                           </el-button>
                         ) : null,
-                        this.isEditIndex == -1 && this.joinCodeText != 'CODE' ? (
+                        this.isEditIndex == -1 && (this.joinCodeText != 'CODE' ||  this.formDialogType == 0) ? (
                           <el-button
                             type="text"
                             onClick={() => {
@@ -476,7 +476,7 @@ export default {
                             编辑
                           </el-button>
                         ) : null,
-						this.joinCodeText != 'CODE' ? (<el-button
+						this.joinCodeText != 'CODE' || this.formDialogType == 0 ? (<el-button
 						   type="text"
 						   onClick={() => {
 						     this.delGoodsInfo(row, index)

+ 1 - 1
src/views/salesPurchasing/mixins/storage_table.js

@@ -23,7 +23,7 @@ export default {
                 {this.activeName == 'goodsInfo'
                   ? [
                     !!~[0,1].indexOf(this.formDialogType) ? (
-                      this.joinCodeText != 'CODE'?(<div style="margin-bottom:10px">
+                      this.joinCodeText != 'CODE' || this.formDialogType == 0?(<div style="margin-bottom:10px">
                         <el-button type="primary" onClick={this.addGoodsInfo}>
                           添加
                         </el-button>