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