изменила метод создания терминала на createTerminal, убрала изменение цехов
This commit is contained in:
parent
7e448a9273
commit
e5d4f8ecea
@ -50,7 +50,7 @@
|
||||
<th>Введите ID точки заказа:</th>
|
||||
<th><input type="text" style="width: 400px; height: 30px; font-size:20px"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<!--<tr>
|
||||
<th>Введите ID цехов готовки:</th>
|
||||
|
||||
<th>
|
||||
@ -59,10 +59,10 @@
|
||||
<input type="checkbox" value="{{area.selected}}" id="ar" [(ngModel)]="area.selected">
|
||||
<span>Цех: {{area.name}}</span>
|
||||
</tr>
|
||||
</tbody>
|
||||
</th>
|
||||
</tbody>-->
|
||||
<!--</th>-->
|
||||
|
||||
</tr>
|
||||
<!--</tr>-->
|
||||
</ng-template>
|
||||
</p-table>
|
||||
<div *ngIf="create; else change">
|
||||
|
||||
@ -119,7 +119,7 @@ export class TerminalsComponent implements OnInit {
|
||||
"client_id": this.choose,
|
||||
"terminal_id": this.jsonRpcService.changeId,
|
||||
"address": address,
|
||||
"areas": this.chooseArea,
|
||||
"areas": [1,2,3],
|
||||
"public_id": public_id
|
||||
}
|
||||
}, RpcService.authService, false)
|
||||
@ -174,10 +174,14 @@ export class TerminalsComponent implements OnInit {
|
||||
|
||||
registerTerminal2() {
|
||||
let public_id = document.getElementsByTagName("input")[0].value
|
||||
let address = document.getElementsByTagName("input")[1].value
|
||||
this.jsonRpcService.rpc2({
|
||||
method: 'registerTerminal',
|
||||
method: 'createTerminal',
|
||||
params: {
|
||||
"client_id": this.jsonRpcService.ClientChoose,
|
||||
"public_id": public_id,
|
||||
"address": address,
|
||||
"areas": [1,2,3]
|
||||
}
|
||||
}, RpcService.authService, false)
|
||||
.subscribe({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user