zhanghonglin
5 天以前 8f9b9411ca279670bd85fcfa7763987295ed9abf
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/views/Home.vue
@@ -32,13 +32,17 @@
    </div>
    <div id="xiak">
      <div class="fenk">
        <p class="biaoti">人工强制满桶出库</p>
        <p class="biaoti">人工出库</p>
        <input placeholder="数量(组)" type="text" id="shuliang" />
        <input placeholder="种类" type="text" id="zhonglei" style="margin-top: 0%;" />
        <input placeholder="种类(代号)" type="text" id="zhonglei" style="margin-top: 0%;" />
        <button id="fasong" @click="SendTask()">下发任务</button>
      </div>
      <div class="fenk">
        <p class="biaoti"></p>
        <p class="biaoti">空桶入库设置</p>
        <input placeholder="代号" type="text" id="daihao" style="margin-top: 5%;margin-left: 10%;" />
        <button id="kongtong" @click="Rukong()">修改</button>
        <p class="went" style="margin-left: 10%;margin-top: 10%">当前入库代号:</p>
        <p class="wenx" id="xianA4" style="margin-top: 11%"></p>
      </div>
      <div class="fenk">
        <p class="biaoti"></p>
@@ -95,6 +99,14 @@
  }
  Hint();
};
//入空设置
const Rukong=()=>{
  let tiwz = document.getElementById("tiwz");
  let n = document.getElementById("daihao").value;
  tiwz.innerHTML = "是否把当前空桶类型改成"+ n;
  num.value = 5;
  Hint();
}
///提示框
//显示
@@ -154,7 +166,7 @@
        Cancel();
      });
  } else if (type == 4) {
    //人工强制满桶出库
    //人工出库
    let nums = document.getElementById("shuliang");
    let types = document.getElementById("zhonglei");
    axios
@@ -176,6 +188,25 @@
    nums.value = "";
    types.value = "";
  } else if (type == 5) {
    //空桶入库设置
    let n = document.getElementById("daihao")
    axios
      .post(
        "api/Outstockinfo/EmptyOutSet/?Code=" + n.value,
        {
          rows: 100
        }
      )
      .then(x => {
        console.log("空桶入库设置"+x);
        if (x.data.message != null) {
          tiwz.innerHTML = x.data.message;
        } else {
          tiwz.innerHTML = "修改成功";
        }
        Refresh();
        num.value = 7;
      });
  } else if (type == 6) {
  } else if (type == 7) {
    Cancel();
@@ -219,10 +250,12 @@
      //获取页面显示位置
      let xianA1 = document.getElementById("xianA1");
      let xianA3 = document.getElementById("xianA3");
      let xianA4 = document.getElementById("xianA4");
      //显示
      xianA1.innerHTML = x.data.bigOrLittle == 0 ? "优先出少" : "出全满";
      xianA3.innerHTML = x.data.outMode == 1 ? "正常入库" : "直接出库";
      xianA4.innerHTML = x.data.emptyOutSet;
    });
};
</script>
@@ -237,7 +270,8 @@
  text-align: center;
  font-size: 30px;
}
#MaterielCha {
#MaterielCha,
#kongtong {
  float: left;
  margin: 6% -10%;
  width: 15%;
@@ -306,7 +340,8 @@
}
#MaterielName,
#shuliang,
#zhonglei {
#zhonglei,
#daihao {
  width: 50%;
  height: 10%;
  float: left;