diff --git a/src/api/hjm/hjmCar/model/index.ts b/src/api/hjm/hjmCar/model/index.ts
index 264eeb8..4cd7534 100644
--- a/src/api/hjm/hjmCar/model/index.ts
+++ b/src/api/hjm/hjmCar/model/index.ts
@@ -21,6 +21,8 @@ export interface HjmCar {
code?: string;
// 车架号
vinCode?: string;
+ // 保单图片
+ bdImg?: string;
// 绑定操作员
driverId?: number;
// 操作员名称
diff --git a/src/views/hjm/hjmCar/components/hjmCarEdit.vue b/src/views/hjm/hjmCar/components/hjmCarEdit.vue
index 52e92d9..eb2f3f1 100644
--- a/src/views/hjm/hjmCar/components/hjmCarEdit.vue
+++ b/src/views/hjm/hjmCar/components/hjmCarEdit.vue
@@ -45,6 +45,15 @@
@done="chooseInsuranceStatus"
/>
+
+
+
(null);
const images = ref([]);
+const bgImages = ref([]);
// 是否显示地图选择弹窗
const showMap = ref(false);
const users = ref([]);
@@ -191,6 +201,7 @@ const form = reactive({
id: undefined,
name: undefined,
image: undefined,
+ bdImg: undefined,
type: undefined,
kuaidi: undefined,
kuaidiAdmin: undefined,
@@ -354,6 +365,18 @@ const onDeleteItem = (index: number) => {
images.value.splice(index, 1);
};
+// 保单图片
+const chooseBdImg = (data: FileRecord) => {
+ bgImages.value.push({
+ uid: data.id,
+ url: data.path,
+ status: 'done'
+ });
+};
+
+const onDeleteBdImg = (index: number) => {
+ bgImages.value.splice(index, 1);
+}
const {resetFields} = useForm(form, rules);
/* 保存编辑 */
@@ -371,7 +394,8 @@ const save = () => {
loading.value = true;
const formData = {
...form,
- image: JSON.stringify(images.value)
+ image: JSON.stringify(images.value),
+ bdImg: JSON.stringify(bgImages.value),
};
const saveOrUpdate = isUpdate.value ? updateHjmCar : addHjmCar;
saveOrUpdate(formData)
@@ -395,6 +419,7 @@ watch(
(visible) => {
if (visible) {
images.value = [];
+ bgImages.value = [];
// 加载机构
listOrganizations()
.then((list) => {
@@ -426,6 +451,16 @@ watch(
});
});
}
+ if (props.data.bdImg) {
+ const arr = JSON.parse(props.data.bdImg);
+ arr.map((item) => {
+ bgImages.value.push({
+ uid: uuid(),
+ url: item.url,
+ status: 'done'
+ });
+ });
+ }
if (props.data.organizationParentId) {
organizationId.value = props.data.organizationParentId;
getUsers();
diff --git a/src/views/hjm/hjmViolation/index.vue b/src/views/hjm/hjmViolation/index.vue
index 60262b0..47777f3 100644
--- a/src/views/hjm/hjmViolation/index.vue
+++ b/src/views/hjm/hjmViolation/index.vue
@@ -24,8 +24,8 @@
- 显示
- 隐藏
+ 待处理
+ 已处理
@@ -174,7 +174,7 @@ const openMove = () => {
/* 删除单个 */
const remove = (row: HjmViolation) => {
const hide = message.loading('请求中..', 0);
- removeHjmViolation(row.hjmViolationId)
+ removeHjmViolation(row.id)
.then((msg) => {
hide();
message.success(msg);
@@ -199,7 +199,7 @@ const removeBatch = () => {
maskClosable: true,
onOk: () => {
const hide = message.loading('请求中..', 0);
- removeBatchHjmViolation(selection.value.map((d) => d.hjmViolationId))
+ removeBatchHjmViolation(selection.value.map((d) => d.id))
.then((msg) => {
hide();
message.success(msg);