Admin
2026-01-22 bde09c027eee16a7b05b82e71dea4d3405d6d52d
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/taskinfo/task.js
@@ -59,20 +59,20 @@
        }
      }
      this.columns.forEach(x => {
        if (x.field == "palletType") {
          x.render = (h, { row, column, index }) => {
            if ((row.roadway == "1" || row.roadway == "2") && row.palletType=="1") {
              return h('span',"布料");
            }else if((row.roadway == "1" || row.roadway == "2") && row.palletType=="2"){
                  return h('span',"松布料");
            }else{
              return h('span',"成品");
            }
      // this.columns.forEach(x => {
      //   if (x.field == "palletType") {
      //     x.render = (h, { row, column, index }) => {
      //       if ((row.roadway == "1" || row.roadway == "2") && row.palletType == "1") {
      //         return h('span', "布料");
      //       } else if ((row.roadway == "1" || row.roadway == "2") && row.palletType == "2") {
      //         return h('span', "松布料");
      //       } else {
      //         return h('span', "成品");
      //       }
          }
        }
      });
      //     }
      //   }
      // });
      //手动上传按钮
@@ -80,27 +80,52 @@
      if (ManualUploadBtn != null) {
        ManualUploadBtn.onClick = () => {
          let rows = this.$refs.table.getSelected();
          if (rows.length == 0) {
            return this.$error("请选择数据!");
          } else {
            var ids = rows.map(x => {
              return  x.taskId
          if (rows.length == 0) return this.$error("请选择数据!");
          if (rows.length > 1) return this.$error("请选择一条数据!");
          var ids = rows.map(x => {
            return x.taskId
          })
          var param = {
            DelKeys: ids, //taskNo
            Extra: true
          }
          this.http
            .post("api/Task/MESManualUpload", param, "数据处理中...")
            .then((x) => {
              if (x.status) {
                this.$Message.success(x.message);
                this.refresh();
              } else {
                return this.$error(x.message);
              }
            });
        }
      }
      //任务恢复按钮
      var TaskRecoveryBtn = this.buttons.find(x => x.value == "TaskRecovery");
      if (TaskRecoveryBtn != null) {
        TaskRecoveryBtn.onClick = () => {
          let rows = this.$refs.table.getSelected();
          if (rows.length == 0) return this.$error("请选择数据!");
          if (rows.length > 1) return this.$error("请选择一条数据!");
          var ids = rows.map(x => {
              return x.taskId
            })
            var param = {
              DelKeys: ids, //taskNo
              Extra: true
            }
            this.http
              .post("api/Task/MESManualUpload", param, "数据处理中...")
              .post("api/Task/WMSTaskRecovery", param, "数据处理中...")
              .then((x) => {
                if (x.status) {
                  this.$Message.success('成功.');
                  this.$Message.success(x.message);
                  this.refresh();
                } else {
                  return this.$error(x.message);
                }
              });
          }
        }
      }