af-mobile-client-vue3 1.4.27 → 1.4.29
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/package.json +1 -1
- package/src/components/data/OtherCharge/OtherChargeForm.vue +9 -0
- package/src/components/data/OtherCharge/OtherChargeGroupModal.vue +542 -542
- package/src/components/data/OtherCharge/OtherChargeItem.vue +140 -33
- package/src/components/data/XOlMap/types.ts +1 -1
- package/src/views/component/XCellListView/index.vue +1 -78
- package/src/views/component/XFormView/index.vue +0 -1
- package/src/views/component/XOlMapView/XLocationPicker/index.vue +118 -118
package/package.json
CHANGED
|
@@ -269,6 +269,14 @@ function removeChargeItem(itemId: number) {
|
|
|
269
269
|
chargeItems.value = chargeItems.value.filter(item => item.id !== itemId)
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
// 更新费用项
|
|
273
|
+
function updateChargeItem(updatedItem: ChargeItem) {
|
|
274
|
+
const index = chargeItems.value.findIndex(item => item.id === updatedItem.id)
|
|
275
|
+
if (index !== -1) {
|
|
276
|
+
chargeItems.value[index] = updatedItem
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
272
280
|
// 生成收据
|
|
273
281
|
function generateReceipt() {
|
|
274
282
|
// 验证是否有费用项
|
|
@@ -467,6 +475,7 @@ function onFileRemoved(): void {
|
|
|
467
475
|
:is-work-order="props.isWorkOrder"
|
|
468
476
|
:work-order-data="props.workOrderData"
|
|
469
477
|
@remove="removeChargeItem"
|
|
478
|
+
@update="updateChargeItem"
|
|
470
479
|
/>
|
|
471
480
|
</template>
|
|
472
481
|
<p v-else class="text-gray-400 text-center">
|