123
chenjingwu
2024-04-11 87d90d5aa2dac8ab4a52a6ca66a5d1964653e346
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<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;">
                <!-- 按钮 -->
                <template if:false={returnFLGbln}>
                    <lightning-button style="margin: 5px;" label="到货确认" onclick={arriveGoodsConfim} disabled={saveFLGbln}></lightning-button>
                </template>
                <template if:true={returnFLGbln}>
                    <lightning-button style="margin: 5px;" label="登录返品" onclick={updateGoodsOfReturn}></lightning-button>
                </template>
                <p style="height: 10px;"></p>
                <!-- 订单信息 -->
                <template if:true={showOrderDetail}>
                    <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:1%;"></td>
                                        <td style="width:60px;">
                                            <div style="color:#696969;font-size:12px;">订单名称</div>
                                        </td>
                                        <td>
                                            <lightning-formatted-text value={coc.Name}></lightning-formatted-text>
                                        </td>
                                        <td  style="width:5%;"></td>
                                        <td style="width:60px;">
                                            <div style="color:#696969;font-size:12px;">订单总数</div>
                                        </td>
                                        <td>
                                            <lightning-formatted-number value={coc.Total_num__c}></lightning-formatted-number>
                                        </td>
                                        <td  style="width:5%;"></td>
                                        <td style="width:60px;">
                                            <div style="color:#696969;font-size:12px;">已到货数量</div>
                                        </td>
                                        <td>
                                            <lightning-formatted-number value={coc.OrderNumber_arrived__c}></lightning-formatted-number>
                                        </td>
                                        <td  style="width:5%;"></td>
                                        <td style="width:72px;">
                                            <div style="color:#696969;font-size:12px;">还没发货数量</div>
                                        </td>
                                        <td>
                                            <lightning-formatted-number value={coc.OrderNumber_notarrive__c}></lightning-formatted-number>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </template>
                <!-- BarCode录入 -->
                <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>BarCode录入</strong></p>
                    </div>
                    <div style="padding:10px;">
                        <table>
                            <tbody>
                                <tr>
                                    <td></td>
                                    <td align="right">BarCode</td>
                                    <td style="width:600px">
                                        <lightning-textarea name="BarCode" value={barcode} label="" onchange={barcodeChange}></lightning-textarea>
                                    </td>
                                    <td align="right"></td>
                                    <td></td>
                                    <td style="width:200px">
                                        <lightning-button label="BarCode录入" title="BarCode录入" onclick={barcodeEntrys} style="width: 300px;"></lightning-button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- 本次到货产品汇总 -->
                <template if:false={returnFLGbln}>
                    <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="id" columns={currentArrProdCols} data={detailsSummary}></lightning-datatable>
                        </div>
                    </div>
                </template>
                <!-- 到货明细 -->
                <template if:false={returnFLGbln}>
                    <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="id" columns={arrDetailCols} data={consumableorderdetailsRecordsview}></lightning-datatable>
                        </div>
                    </div>
                </template>
                <!-- 返品明细 -->
                <template if:true={returnFLGbln}>
                    <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="id" columns={returnDetailCols} data={showGoodsofReturnList}></lightning-datatable>
                            <!-- <c-lex-custom-lightning-datatable hide-checkbox-column key-field="Id" data={raesList} columns={colms} onclicklink={clickLick}></c-lex-custom-lightning-datatable> -->
                        </div>
                    </div>
                </template>
                <!-- 入库明细 -->
                <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="id" columns={inDetailCols} data={consumableInventory}></lightning-datatable>
                    </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="id" columns={errorDetailCols} data={consumableorderdetailsRecordserror}></lightning-datatable>
                    </div>
                </div>
            </div>
        </div>
    </template>
</template>