| | |
| | | }} |
| | | {{ GetBtn1(d) }} |
| | | </script> |
| | | |
| | | |
| | | <!-- 任务类型 --> |
| | | <script type="text/html" id="TypeButton"> |
| | | {{# |
| | |
| | | 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 { |
| | | |
| | | } |
| | |
| | | width: 95, |
| | | align: 'center', |
| | | templet: '#TypeButton', |
| | | }, { |
| | | field: 'OrderType', |
| | | title: '单据类型', |
| | | width: 95, |
| | | align: 'center', |
| | | templet: '#OrderTypeButton', |
| | | }, { |
| | | field: 'IsSuccess', |
| | | title: '是否下发成功', |
| | |
| | | var param = { |
| | | taskNo: data.TaskNo |
| | | }; |
| | | 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, { |
| | |
| | | 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, { |