yangpeixing
2025-12-04 25c71bc8a6015bf4885374e75576f3dc75d1424e
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.jsx
@@ -858,6 +858,20 @@
    if (!(await this.initBox())) return
    this.resetDetailTable(row)
    this.setEditForm(row)
    this.setContinueAddNew()
    //设置远程查询表单的默认key/value
    this.getRemoteFormDefaultKeyValue()
    //点击编辑按钮弹出框后,可以在此处写逻辑,如,从后台获取数据
    this.modelOpenProcess(row)
  },
  async linkDataNew(row, remark) {
    this.boxOptions.title = remark
    //点击table单元格快捷链接显示编辑数据
    this.currentAction = this.const.EDIT
    this.currentRow = row
    if (!(await this.initBox())) return
    this.resetDetailTable(row)
    this.setEditForm(row)
    this.setContinueAdd(false)
    //设置远程查询表单的默认key/value
    this.getRemoteFormDefaultKeyValue()
@@ -873,6 +887,11 @@
      _button.name = isAdd ? this.continueAddName : '保 å­˜'
    }
  },
  setContinueAddNew() {
    this.boxButtons.forEach((btn) => {
        btn.hidden=true
      })
  },
  resetAdd() {
    if (this.hasDetail) {
      this.$refs.detail &&