zhanghonglin
10 天以前 cfb3f2c7e9cde8cc2eb2a19263d0802c0c5410a3
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/components/basic/ViewGrid/methods.js
@@ -916,6 +916,38 @@
      this.$success("成功");
    })
  },
  async boundOrder(rows) {
    this.boxOptions.title = '执行订单';
    this.currentAction = this.const.EDIT;
    if (rows) {
      if (!(rows instanceof Array)) {
        rows = [rows];
      }
    } else {
      rows = this.$refs.table.getSelected();
    }
    if (rows.length == 0) {
      return this.$error('请选择要编辑的行!');
    }
    if (rows.length != 1) {
      return this.$error('只能选择一行数据进行编辑!');
    }
    //记录当前编辑的行
    this.currentRow = rows[0];
    let w = this.currentRow.id;
    axios
    .post("api/Task/ExecuteOrder/?k=" + w, {
      rows: 100
    })
    .then(x => {
      if(x==null||x==""){
        this.$success("成功");
      }else{
        this.$message(x.data);
        console.log(x.data+"///");
      }
    });
  },
  async add() {
    this.boxOptions.title = this.table.cnName + '(新建)';
    //新建