dengjunjie
2025-10-23 1bca0b45d05bd4df8ab5963bad1af52cebebb063
н¨Îļþ¼Ð/WMS/src/extension/basic/extend/printView.vue
@@ -14,13 +14,14 @@
        <div
          style="display: flex; justify-content: center; align-items: center"
        >
          <VueQrcode id="qrcode" :value="palletCode" :size="200"></VueQrcode>
          <VueQrcode id="qrcode" :value="materielCode" :size="200"></VueQrcode>
        </div>
      </div>
      <div id="palletcode">
        <span
          style="display: flex; justify-content: center; align-items: center"
          >{{ palletCode }}</span
          >物料编号:{{ materielCode }}<br>
          ç‰©æ–™åç§°ï¼š{{ materielName }}</span
        >
      </div>
@@ -45,15 +46,19 @@
      showDetialBox: false,
      row: null,
      qrcodeDataURL: "",
      palletCode: "",
      materielCode: "",
      materielName: "",
      materielinfo:"",
    };
  },
  methods: {
    open(row) {
      this.row = row;
      this.showDetialBox = true;
      if (row && row.palletCode) {
        this.palletCode = row.palletCode;
      if (row && row.materielCode) {
        this.materielCode = row.materielCode;
        this.materielName = row.materielName;
        this.materielinfo="物料编号:"+row.materielCode+"物料名称:"+row.materielName;
      }
    },
    print() {
@@ -66,14 +71,14 @@
      printWindow.focus();
      printWindow.print();
      printWindow.close();
      this.http
            .post("api/palletCodeInfo/PrintStatusUp?printCode="+this.palletCode, null, "数据处理中")
            .then((x) => {
              if (!x.status) return this.$message.error(x.message);
              this.$message.success("操作成功");
              this.$parent.refresh();
              this.showDetialBox = false;
            });
      // this.http
      //       .post("api/palletCodeInfo/PrintStatusUp?printCode="+this.palletCode, null, "数据处理中")
      //       .then((x) => {
      //         if (!x.status) return this.$message.error(x.message);
      //         this.$message.success("操作成功");
      //         this.$parent.refresh();
      //         this.showDetialBox = false;
      //       });
    },
  },
  created() {},