zhaowc
2025-04-07 19e95f4acc328bbf62a0427fe658d00268019e66
HTML/views/HouseWithinSetting/CRLogTask.html
@@ -130,7 +130,7 @@
               }}
               {{ GetBtn1(d) }}
            </script>
            <!-- 任务类型 -->
            <script type="text/html" id="TypeButton">
               {{# 
@@ -141,6 +141,26 @@
                     html = `<p>出库</p>`; 
                  } else if(d.Type=='2') { 
                     html = `<p>移库</p>`; 
                  } else {
                  }
                  return html;
               }}
            </script>
            <!-- 单据类型 -->
            <script type="text/html" id="OrderTypeButton">
               {{#
                  var html = ``;
                  if(d.OrderType=='0'){
                     html = `<p>入库单</p>`;
                  } else if(d.OrderType=='1') {
                     html = `<p>出库单</p>`;
                  } else if(d.OrderType=='2') {
                     html = `<p>盘点单</p>`;
                  } else if(d.OrderType=='3') {
                     html = `<p>移库单</p>`;
                  } else {
                     
                  }
@@ -271,6 +291,12 @@
                  width: 95,
                  align: 'center',
                  templet: '#TypeButton',
               }, {
                  field: 'OrderType',
                  title: '单据类型',
                  width: 95,
                  align: 'center',
                  templet: '#OrderTypeButton',
               }, {
                  field: 'IsSuccess',
                  title: '是否下发成功',
@@ -618,9 +644,14 @@
            if (obj.event === 'cancel') {
               layer.confirm('确定取消选中的出库任务?', function (index) {
                  var param = {
                     taskNo: data.TaskNo
                     taskNo: data.TaskNo,
                     receiver: data.Receiver
                  };
                  sendData(IP + "/BllCheck/CancelCheckTask", param, 'post', function (res) {
                  var postUrl="/BllCheck/CancelCheckTask"
                  if(data.OrderType=='3'){
                     postUrl='/BllCheck/CancelMoveTask'
                  }
                  sendData(IP + postUrl, param, 'post', function (res) {
                     console.log(res);
                     if (res.code == 0) { //成功
                        layer.msg(res.msg, {
@@ -646,7 +677,11 @@
                  var param = {
                     taskNo: data.TaskNo,
                  };
                  sendData(IP + "/BllCheck/FinishCheckTask", param, 'post', function (res) {
                  var postUrl="/BllCheck/FinishCheckTask"
                  if(data.OrderType=='3'){
                     postUrl='/BllCheck/FinishMoveTask'
                  }
                  sendData(IP + postUrl, param, 'post', function (res) {
                     console.log(res);
                     if (res.code == 0) { //成功
                        layer.msg(res.msg, {
@@ -670,7 +705,8 @@
            } else if (obj.event === 'send') {
               layer.confirm('确定要下发选中的出库任务?', function (index) {
                  var param = {
                     taskNo: data.TaskNo
                     taskNo: data.TaskNo,
                     receiver:data.Receiver
                  };
                  sendData(IP + "/DownApi/AgainSendCheckTask", param, 'get', function (res) {
                     console.log(res);