feat(bom+inbound): BOM子件跳转规格修复 + 成品/半成品按钮迁移到标题行
This commit is contained in:
@ -250,9 +250,18 @@
|
||||
|
||||
<div class="form-card basic-card">
|
||||
<div class="card-title">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="display: flex; align-items: center; gap: 8px;">
|
||||
<el-icon class="icon"><Box /></el-icon>
|
||||
<span>1. 基础信息</span>
|
||||
<el-link
|
||||
v-if="form.base_id"
|
||||
type="primary"
|
||||
:underline="false"
|
||||
style="font-size: 13px;"
|
||||
@click="openMaterialInNewTab"
|
||||
>
|
||||
<el-icon style="margin-right: 4px"><EditPen /></el-icon>前往修改基础信息
|
||||
</el-link>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
@ -561,7 +570,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted, watch, computed } from 'vue'
|
||||
import { Plus, Setting, Refresh, Search, Box, House, Link, InfoFilled, Printer, Camera, Picture } from '@element-plus/icons-vue'
|
||||
import { Plus, Setting, Refresh, Search, Box, House, Link, InfoFilled, Printer, Camera, Picture, EditPen } from '@element-plus/icons-vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ElMessage, ElLoading } from 'element-plus'
|
||||
import dayjs from 'dayjs'
|
||||
@ -621,6 +630,20 @@ const vLoadmore = {
|
||||
|
||||
const userStore = useUserStore()
|
||||
const router = useRouter()
|
||||
|
||||
// 在新标签页打开基础信息编辑
|
||||
const openMaterialInNewTab = () => {
|
||||
if (!form.base_id) return ElMessage.warning('请先选择物料')
|
||||
const routeUrl = router.resolve({
|
||||
path: '/material',
|
||||
query: {
|
||||
edit_id: form.base_id,
|
||||
keyword: form.spec_model || form.material_name || ''
|
||||
}
|
||||
})
|
||||
window.open(routeUrl.href, '_blank')
|
||||
}
|
||||
|
||||
const loading = ref(false)
|
||||
const submitting = ref(false)
|
||||
const visible = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user