buli
2023-03-30 cb7617f2a39f5622bb0c6d21aac6d897497ab389
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<template>
    <div class="exampleHolder" if:true={IsLoading}>
        <lightning-spinner
            alternative-text="Loading"
            size="large"
        ></lightning-spinner>
    </div>
    <div style="padding: 30px">
        <div style="float: right">
            <div
                class="demo-only demo-only_viewport"
                style="height: 4.5rem"
                if:true={Tongzhishow}
            >
                <div class="slds-notification-container" style={IsLeftStyle}>
                    <div
                        aria-live="assertive"
                        aria-atomic="true"
                        class="slds-assistive-text"
                    >
                        提示
                    </div>
                    <section
                        class="slds-notification"
                        role="dialog"
                        aria-labelledby="noti77"
                        aria-describedby="dialog-body-id-43"
                    >
                        <div
                            class="slds-notification__body"
                            id="dialog-body-id-43"
                        >
                            <a
                                class="slds-notification__target slds-media"
                                href="#"
                                style={BgColorStyle}
                            >
                                <span
                                    class="slds-icon_container slds-icon-standard-task slds-media__figure"
                                    title="task"
                                >
                                    <lightning-icon
                                        icon-name={TongzhiIcon}
                                        alternative-text="Account"
                                        title="Account"
                                    ></lightning-icon>
                                </span>
                                <div class="slds-media__body">
                                    <h2
                                        class="slds-text-heading_small slds-m-bottom_xx-small"
                                        id="noti77"
                                    >
                                        <span class="slds-assistive-text"
                                            >task notification:</span
                                        >提示
                                    </h2>
                                    <p>{SaveShowText}</p>
                                </div>
                            </a>
                            <button
                                class="slds-button slds-button_icon slds-button_icon-container slds-notification__close"
                                title="close"
                            >
                                <lightning-icon
                                    icon-name="utility:close"
                                    alternative-text="close"
                                    title="close"
                                    size="x-small"
                                    onclick={CloseAlert}
                                ></lightning-icon>
                            </button>
                        </div>
                    </section>
                </div>
            </div>
        </div>
 
        <p>
            <lightning-formatted-text
                value="当前预测OCSM签约日 : "
            ></lightning-formatted-text
            >{opp.Close_Forecasted_Check}
        </p>
 
        <div class={xgxLy} style="width: 495px; padding: 1px">
            <lightning-combobox
                name="progress"
                label="日期提前/日期延后"
                value={opp.Date_InAdvance_Delay}
                options={RelateOption}
                onchange={handleRelationFn}
            >
            </lightning-combobox>
        </div>
 
        <!-- 提前 -->
        <div class={bxgLy} if:true={isAdvance}>
            <lightning-combobox
                name="progress"
                label="预测日期提前理由"
                value={opp.Predicted_date_ChangeReason}
                placeholder="请选择提前理由"
                options={AdvanceReasons}
                style="width: 495px; padding: 1px"
                onchange={handleRelationFn1}
            >
            </lightning-combobox>
            <div style="font-size: 10px; color: red" if:true={bxgLyFlag}>
                请选择提前理由
            </div>
        </div>
 
        <!-- 延后 -->
        <!-- onchange={handleIrrelevantFn} -->
        <div class={bxgLy} if:true={isDelay}>
            <lightning-combobox
                name="progress"
                label="预测日期延后理由"
                value={opp.Predicted_date_ChangeReason}
                placeholder="请选择延后理由"
                options={DelayReasons}
                style="width: 495px; padding: 1px"
                onchange={handleRelationFn1}
            >
            </lightning-combobox>
            <div style="font-size: 10px; color: red" if:true={bxgLyFlag}>
                请选择延后理由
            </div>
        </div>
 
        <!-- 改变日期 -->
        <div>
            <lightning-input
                type="date"
                label="请选择要改变的日期"
                name="aaa"
                style="width: 495px; padding: 1px"
                value={opp.Close_Forecasted_Date}
                onchange={handleRelationFn2}
            >
            </lightning-input>
        </div>
 
        <div if:true={flg}>
            <lightning-input
                type="date"
                label="预测发货日"
                name="aa"
                style="width: 495px; padding: 1px"
                value={opp.CloseDate}
                onchange={handleRelationFn3}
            >
            </lightning-input>
        </div>
 
        <button
            class="slds-button slds-button_brand"
            onclick={saveFn}
            style="margin-top: 10px"
        >
            保存
        </button>
    </div>
</template>