修改bug:车辆整备下面隐藏遗失物品上报  2.在车辆检测后添加车身清洁,把车身标识及清洁放在车身清洁下
2个文件已修改
23 ■■■■■ 已修改文件
src/views/userContent/contentCenter/components/VehiclePrepareForm.vue 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userContent/contentCenter/opsApp.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userContent/contentCenter/components/VehiclePrepareForm.vue
@@ -16,9 +16,9 @@
const subTabs = [
  { key: 'tirePressure', label: '胎压说明' },
  { key: 'lighting', label: '灯光说明' },
  { key: 'bodyClean', label: '车身标识及清洁' },
  // { key: 'bodyClean', label: '车身标识及清洁' },
  { key: 'cabinClean', label: '舱内清洁及消毒' },
  { key: 'lostItems', label: '遗失物品上报' },
  // { key: 'lostItems', label: '遗失物品上报' },
]
const formRef = ref<FormInst | null>(null)
src/views/userContent/contentCenter/opsApp.vue
@@ -17,9 +17,10 @@
  { key: 'prepare', label: '车辆整备' },
  { key: 'charge', label: '车辆充电' },
  { key: 'inspect', label: '车辆检测' },
  { key: 'bodyClean', label: '车身清洁' },
  { key: 'maintenance', label: '车辆保养' },
  { key: 'insurance', label: '保险说明' },
  { key: 'annual', label: '年检说明' },
  { key: 'maintenance', label: '车辆保养' },
  { key: 'qualification', label: '运营资质' },
  { key: 'opsAppNotice', label: '登录协议' },
]
@@ -38,19 +39,18 @@
        const map: Record<string, number> = {
          tirePressure: 1,
          lighting: 2,
          bodyClean: 3,
          cabinClean: 4,
          lostItems: 5,
        }
        const activeKey = typeof currentForm.getActiveKey === 'function' ? currentForm.getActiveKey() : 'tirePressure'
        const t = map[activeKey] ?? 1
        const content = data[activeKey] || ''
        saveRes = await saveVehicleDescription({ descriptionType: t, descriptionContent: content })
      }
      else if (['charge', 'inspect', 'insurance', 'annual', 'maintenance', 'qualification'].includes(activeTab.value)) {
      else if (['charge', 'inspect', 'bodyClean', 'insurance', 'annual', 'maintenance', 'qualification'].includes(activeTab.value)) {
        const typeMap: Record<string, number> = {
          charge: 6,
          inspect: 7,
          bodyClean: 3,
          insurance: 8,
          annual: 9,
          maintenance: 10,
@@ -91,23 +91,22 @@
    }
    if (tabKey === 'prepare') {
      const types = [1, 2, 3, 4, 5]
      const types = [1, 2, 4]
      const res = await Promise.all(types.map(t => getVehicleDescription(t)))
      if (res.every(r => r && r.code === 200)) {
        const data: Record<string, string> = {
          tirePressure: res[0].data?.descriptionContent || '',
          lighting: res[1].data?.descriptionContent || '',
          bodyClean: res[2].data?.descriptionContent || '',
          cabinClean: res[3].data?.descriptionContent || '',
          lostItems: res[4].data?.descriptionContent || '',
          cabinClean: res[2].data?.descriptionContent || '',
        }
        currentForm.setData(data)
      }
    }
    else if (['charge', 'inspect', 'insurance', 'annual', 'maintenance', 'qualification'].includes(tabKey)) {
    else if (['charge', 'inspect', 'bodyClean', 'insurance', 'annual', 'maintenance', 'qualification'].includes(tabKey)) {
      const typeMap: Record<string, number> = {
        charge: 6,
        inspect: 7,
        bodyClean: 3,
        insurance: 8,
        annual: 9,
        maintenance: 10,
@@ -159,7 +158,7 @@
                  :ref="(el) => { if (el) contentFormRefs[tab.key] = el }"
                />
                <SimpleRichTextForm
                  v-else-if="['charge', 'inspect', 'insurance', 'annual', 'maintenance', 'qualification'].includes(tab.key)"
                  v-else-if="['charge', 'inspect', 'bodyClean', 'insurance', 'annual', 'maintenance', 'qualification'].includes(tab.key)"
                  :ref="(el) => { if (el) contentFormRefs[tab.key] = el }"
                />
                <AgreementListForm