buli
2023-05-04 50b39c4b52bf5fd61ec46ada365c51e05a16d2ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
    <template if:true={showSpinner}>
        <lightning-spinner size="medium" variant="brand"></lightning-spinner>
    </template>
    <template if:true={showPage}>
        <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;">
            <div style="border-bottom: 1px solid #D4D4D4;padding:3px;">
                <p style="font-size: 16px;"><strong>到货</strong></p>
            </div>
            <div style="padding:10px;">
                <!-- 按钮 -->
                <lightning-button style="margin: 5px;" label="出库" onclick={proSale} disabled={arrivetoorder}></lightning-button>
                <p style="height: 10px;"></p>
                <!-- 到货订单信息 -->
                <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-bottom:7px;">
                    <div style="border-bottom: 1px solid #D4D4D4;padding:3px;">
                        <p style="font-size: 16px;"><strong>到货订单信息</strong></p>
                    </div>
                    <div style="padding:10px;">
                        <table>
                            <tbody>
                                <tr>
                                    <td  style="width:10px;"></td>
                                    <td style="width:84px;">
                                        <div style="color:#696969;font-size:12px;">到货订单名称</div>
                                    </td>
                                    <td style="width:200px;">
                                        <lightning-formatted-text value={coc.Name}></lightning-formatted-text>
                                    </td>
                                    <td  style="width:30px;"></td>
                                    <td style="width:108px;">
                                        <div style="color:#696969;font-size:12px;">本次入库产品金额</div>
                                    </td>
                                    <td style="width:100px;">
                                        <lightning-formatted-number value={coc.Arrive_total_amount__c}></lightning-formatted-number>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr style="height: 20px;"></tr>
                                <tr>
                                    <td  style="width:10px;"></td>
                                    <td style="width:96px;">
                                        <div style="color:#696969;font-size:12px;">消耗品订单名称</div>
                                    </td>
                                    <td style="width:200px;">
                                        <lightning-formatted-text value={coc.arriveOrder}></lightning-formatted-text>
                                        <!-- <lightning-formatted-text value={coc.Arrive_Order__r.Name}></lightning-formatted-text> -->
                                    </td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- 在库商品库存一览 -->
                <div style="border: 1px solid #D4D4D4;border-top: 3px solid #51606E;border-radius:5px;margin-bottom:7px;">
                    <div style="border-bottom: 1px solid #D4D4D4;padding:3px;">
                        <p style="font-size: 16px;"><strong>在库商品库存一览</strong></p>
                    </div>
                    <div style="padding:10px;">
                        <lightning-datatable hide-checkbox-column key-field="recordId" columns={colms} data={consumableorderdetailsRecords}></lightning-datatable>
                    </div>
                </div>
            </div>
        </div>
    </template>
</template>