contactstudiocstools 1.0.259 → 1.0.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
<MoleculeFieldGroup
|
|
71
71
|
:rules="getRulesNote"
|
|
72
72
|
:class="{ error: noteIsInvalid }"
|
|
73
|
+
label="Observação de Tabulação"
|
|
73
74
|
>
|
|
74
75
|
<AtomFieldTextarea
|
|
75
76
|
v-model="note"
|
|
@@ -108,6 +109,29 @@
|
|
|
108
109
|
/>
|
|
109
110
|
</label>
|
|
110
111
|
</MoleculeFieldGroup>
|
|
112
|
+
|
|
113
|
+
<!-- Exibir quando ter manifestação vinculada -->
|
|
114
|
+
<div
|
|
115
|
+
v-show="!manifestationIsEmpty"
|
|
116
|
+
class="mx-5 !pb-4"
|
|
117
|
+
>
|
|
118
|
+
<div class="divider" />
|
|
119
|
+
|
|
120
|
+
<!-- manifestatio observation -->
|
|
121
|
+
<article>
|
|
122
|
+
<MoleculeFieldGroup
|
|
123
|
+
label="Nota de Manifestação"
|
|
124
|
+
class="mt-3"
|
|
125
|
+
>
|
|
126
|
+
<AtomFieldTextarea
|
|
127
|
+
v-model="manifestationNote"
|
|
128
|
+
rows="5"
|
|
129
|
+
placeholder="Nota de Manifestação"
|
|
130
|
+
@blur="persist"
|
|
131
|
+
/>
|
|
132
|
+
</MoleculeFieldGroup>
|
|
133
|
+
</article>
|
|
134
|
+
</div>
|
|
111
135
|
</details>
|
|
112
136
|
</div>
|
|
113
137
|
</article>
|
|
@@ -125,7 +149,7 @@ interface IProps {
|
|
|
125
149
|
manifestation?: INodes;
|
|
126
150
|
persist?: Function;
|
|
127
151
|
disableNode?: (({ nodeValue }: { nodeValue: string }) => boolean) | undefined;
|
|
128
|
-
defaults?: { tabulation: INodes[]; note: string };
|
|
152
|
+
defaults?: { tabulation: INodes[]; note: string ; manifestationNote?: string };
|
|
129
153
|
}
|
|
130
154
|
const props = defineProps<IProps>();
|
|
131
155
|
|
|
@@ -184,6 +208,7 @@ const MoleculeFieldGroupRef = ref<InstanceType<
|
|
|
184
208
|
> | null>(null);
|
|
185
209
|
const tabulation = reactive<INodes[]>(props.defaults?.tabulation ?? []);
|
|
186
210
|
const note = ref<string>(props.defaults?.note ?? "");
|
|
211
|
+
const manifestationNote = ref<string>(props.defaults?.manifestationNote ?? "");
|
|
187
212
|
const additionals = reactive<any>({});
|
|
188
213
|
|
|
189
214
|
// methods
|
|
@@ -198,6 +223,7 @@ function persist(): void {
|
|
|
198
223
|
props.persist({
|
|
199
224
|
tabulation: tabulation,
|
|
200
225
|
note: note.value,
|
|
226
|
+
manifestationNote: manifestationNote.value,
|
|
201
227
|
additionals,
|
|
202
228
|
});
|
|
203
229
|
}
|
|
@@ -228,6 +254,7 @@ watch(
|
|
|
228
254
|
defineExpose({
|
|
229
255
|
tabulation,
|
|
230
256
|
note: getNote,
|
|
257
|
+
manifestationNote,
|
|
231
258
|
additionals,
|
|
232
259
|
isValid,
|
|
233
260
|
isSchedule,
|
|
@@ -180,9 +180,15 @@ export function PausesDTO({ lista_pausa }) {
|
|
|
180
180
|
return pauses;
|
|
181
181
|
}
|
|
182
182
|
export function DoubtsDTO(primitives) {
|
|
183
|
-
if (!primitives)
|
|
183
|
+
if (!primitives || !Array.isArray(primitives)) {
|
|
184
184
|
return [];
|
|
185
|
-
|
|
185
|
+
}
|
|
186
|
+
return primitives.reduce((acc, primitive) => {
|
|
187
|
+
if (primitive && Array.isArray(primitive.doubt)) {
|
|
188
|
+
acc.push(...primitive.doubt);
|
|
189
|
+
}
|
|
190
|
+
return acc;
|
|
191
|
+
}, []);
|
|
186
192
|
}
|
|
187
193
|
export function UserDTO(primitive) {
|
|
188
194
|
if (!primitive.info_agente) {
|