diff --git a/mobile-h5/src/api/menuApi.ts b/mobile-h5/src/api/menuApi.ts index 2612b4726..6737b3707 100755 --- a/mobile-h5/src/api/menuApi.ts +++ b/mobile-h5/src/api/menuApi.ts @@ -23,11 +23,6 @@ const simpleRoutes: any[] = [ path: '/weighing', name: 'Weighing', meta: { title: '地磅单管理', icon: '', isHide: false } - }, - { - path: '/master-data', - name: 'MasterData', - meta: { title: '基础资料', icon: '', isHide: false } } ] diff --git a/mobile-h5/src/router/index.ts b/mobile-h5/src/router/index.ts index e05656206..db807d2e1 100644 --- a/mobile-h5/src/router/index.ts +++ b/mobile-h5/src/router/index.ts @@ -88,48 +88,6 @@ const routes: RouteRecordRaw[] = [ name: 'WeighingDetailEdit', component: () => import('@/views/weighing/detail.vue'), meta: { title: '地磅单详情' } - }, - { - path: '/master-data', - name: 'MasterData', - component: () => import('@/views/master-data/index.vue'), - meta: { title: '基础资料' } - }, - { - path: '/master-data/company/detail', - name: 'CompanyDetail', - component: () => import('@/views/master-data/company-detail.vue'), - meta: { title: '公司详情' } - }, - { - path: '/master-data/company/detail/:id', - name: 'CompanyDetailEdit', - component: () => import('@/views/master-data/company-detail.vue'), - meta: { title: '公司详情' } - }, - { - path: '/master-data/cargo/detail', - name: 'CargoDetail', - component: () => import('@/views/master-data/cargo-detail.vue'), - meta: { title: '货物详情' } - }, - { - path: '/master-data/cargo/detail/:id', - name: 'CargoDetailEdit', - component: () => import('@/views/master-data/cargo-detail.vue'), - meta: { title: '货物详情' } - }, - { - path: '/master-data/vehicle/detail', - name: 'VehicleDetail', - component: () => import('@/views/master-data/vehicle-detail.vue'), - meta: { title: '车牌号详情' } - }, - { - path: '/master-data/vehicle/detail/:id', - name: 'VehicleDetailEdit', - component: () => import('@/views/master-data/vehicle-detail.vue'), - meta: { title: '车牌号详情' } } ] diff --git a/mobile-h5/src/views/dashboard/index.vue b/mobile-h5/src/views/dashboard/index.vue index 01a335eb8..c36d07535 100644 --- a/mobile-h5/src/views/dashboard/index.vue +++ b/mobile-h5/src/views/dashboard/index.vue @@ -100,8 +100,7 @@ const menuList = computed(() => { return [ { path: '/plans', label: '计划管理', icon: '📋' }, { path: '/inventory', label: '出入库管理', icon: '📦' }, - { path: '/weighing', label: '地磅单管理', icon: '⚖️' }, - { path: '/master-data', label: '基础资料', icon: '📚' } + { path: '/weighing', label: '地磅单管理', icon: '⚖️' } ] }) diff --git a/mobile-h5/src/views/inventory/detail.vue b/mobile-h5/src/views/inventory/detail.vue index e788b0d2a..acf90e25f 100644 --- a/mobile-h5/src/views/inventory/detail.vue +++ b/mobile-h5/src/views/inventory/detail.vue @@ -28,7 +28,7 @@
{{ formData.partnerCompany || '--' }}
-
+
{{ formData.partnerCompany || '请选择往来单位' }} @@ -49,11 +49,11 @@
产品 *
- {{ formData.product || '--' }} + {{ productDisplay || '--' }}
-
- - {{ formData.product || '请选择产品' }} +
+ + {{ productDisplay || '请选择产品' }}
@@ -79,7 +79,7 @@
- {{ formData.vehicleNo || '请选择或输入车牌号' }} + {{ formData.vehicleNo || '请选择车牌号' }}
@@ -125,175 +125,55 @@
- - -
-
- -
- -
-
+ + + - - -
-
- -
- -
-
- - - - - -
-
- -
-
- - -
-
- - 手动输入新车牌号 - -
-
-
- - - - -
- diff --git a/mobile-h5/src/views/plans/index.vue b/mobile-h5/src/views/plans/index.vue index ac54aaa00..0cff811de 100644 --- a/mobile-h5/src/views/plans/index.vue +++ b/mobile-h5/src/views/plans/index.vue @@ -437,7 +437,7 @@ const handleViewRelated = async (record: Plan) => { } } -const handleDelete = (id: number) => { +const handleDelete = (id: string) => { showDialog({ title: '确认删除', message: '确定要删除这个计划吗?', @@ -455,17 +455,17 @@ const handleDelete = (id: number) => { const handleGenerateInventory = (record: Plan) => { router.push({ - path: '/inventory', + path: '/inventory/detail', query: { planNo: record.planNo || '', product: record.product || '', + productId: record.productId || '', businessType: record.businessType || '', customerName: record.customerName || '', purchasePlanId: String(record.id), from: 'plan' } }) - showToast({ type: 'success', message: '已跳转到出入库页面' }) } onMounted(() => { diff --git a/mobile-h5/src/views/weighing/detail.vue b/mobile-h5/src/views/weighing/detail.vue index 0ecb90390..a9d6edcff 100644 --- a/mobile-h5/src/views/weighing/detail.vue +++ b/mobile-h5/src/views/weighing/detail.vue @@ -15,21 +15,22 @@
{{ formData.vehicleNo || '--' }}
- +
+ + {{ formData.vehicleNo || '请选择车牌号' }} + + +
货物名称 *
- {{ formData.cargoName || '--' }} + {{ cargoDisplay || '--' }}
- - {{ formData.cargoName || '请选择货物名称' }} + + {{ cargoDisplay || '请选择货物名称' }}
@@ -188,68 +189,10 @@
- - -
-
- -
- -
-
- - - -
-
- -
- -
-
- - - -
-
- -
- -
-
+ + + + diff --git a/mobile-h5/src/views/weighing/index.vue b/mobile-h5/src/views/weighing/index.vue index d8f718753..3ceab87b8 100644 --- a/mobile-h5/src/views/weighing/index.vue +++ b/mobile-h5/src/views/weighing/index.vue @@ -429,7 +429,7 @@ const isWeighingRecordToday = (item: WeighingRecord) => { return dateStr === dayjs().format('YYYY-MM-DD') } -const handleVoid = (id: number) => { +const handleVoid = (id: string) => { showDialog({ title: '确认作废', message: '确定要作废这条地磅单吗?',