wangxinhui
2026-01-19 3edc6956b30df3fc11025e0b719f320fcb1ec9c5
´úÂë¹ÜÀí/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue
@@ -4,8 +4,8 @@
      v-model="dialogFormVisible"
      :on-model-close="closeCustomModel"
      :lazy="true"
      width="20%"
      :padding="15"
      width="25%"
      :padding="20"
      title="选择出库线体"
    >   
        <div> 
@@ -187,6 +187,7 @@
      formFields1: {
        LineCode: "",
        Grade: "0",
        IsFineWorks: "0",
      },
      formRules1:[[
          {
@@ -208,6 +209,15 @@
          {
            title: "是否优先",
            field: "Grade",
            data: [],
            required: false,
            type: "switch",
          },
        ],
          [
          {
            title: "指定精品",
            field: "IsFineWorks",
            data: [],
            required: false,
            type: "switch",
@@ -428,6 +438,7 @@
      if (this.selection.length === 0) {
        return this.$message.error("请选择单据明细");
      }
      this.getLineInfoData();
      this.dialogFormVisible=true;
    },
    open(row) {
@@ -489,12 +500,13 @@
      var keys = this.selection.map((item) => item.id); // èŽ·å–é€‰ä¸­è¡Œçš„id
      this.http
        .post("api/Task/OutProductTask?stationCode="+this.formFields1.LineCode +"&grade="+this.formFields1.Grade, keys, "数据处理中")
        .post("api/Task/OutProductTask?stationCode="+this.formFields1.LineCode +"&grade="+this.formFields1.Grade+"&isFineWorks="+this.formFields1.isFineWorks, keys, "数据处理中")
        .then((x) => {
          if (!x.status) return this.$message.error(x.message);
          this.$message.success("操作成功");
          this.formFields1.LineCode="";
          this.formFields1.Grade="0";
          this.formFields1.isFineWorks="0";
          this.dialogFormVisible=false;
          this.$parent.refresh();
          this.showDetialBox = false;
@@ -555,9 +567,20 @@
          }
        });
    },
    getLineInfoData() {
      var param = ["lineInfo"];
      this.http
        .post("api/Sys_Dictionary/GetVueDictionary", param, "查询中")
        .then((x) => {
          if (x.length > 0) {
            this.formRules1[0][0].data = x[0].data;
          }
        });
    },
    closeCustomModel() {
      this.formFields1.LineCode="";
      this.formFields1.Grade="0";
      this.formFields1.isFineWorks="0";
          this.dialogFormVisible=false;
          this.$parent.refresh();
    },