提交 267c1650 authored 作者: lidongxu's avatar lidongxu

Merge branch 'dev'

...@@ -51,4 +51,7 @@ onMounted(() => { ...@@ -51,4 +51,7 @@ onMounted(() => {
<style scoped <style scoped
lang="scss"> lang="scss">
.wm-class{
height: 100%;
}
</style> </style>
...@@ -43,6 +43,7 @@ export let constantRoutes = [{ ...@@ -43,6 +43,7 @@ export let constantRoutes = [{
}] }]
// PC端 静态路由 // PC端 静态路由
export const constantPCRoutes = [ export const constantPCRoutes = [
...constantRoutes,
{ {
path: '/redirect', path: '/redirect',
component: Layout, component: Layout,
......
...@@ -231,7 +231,7 @@ const getInspectionTaskDetailFn = async () => { ...@@ -231,7 +231,7 @@ const getInspectionTaskDetailFn = async () => {
conventionRef.value.init() conventionRef.value.init()
scheduleDisplayRef.value.init() scheduleDisplayRef.value.init()
scheduleAdjustmentRef.value.init() scheduleAdjustmentRef.value.init()
// categoryInfomationRef.value.init() categoryInfomationRef.value.init()
}) })
// 一定在这里获取地理位置(保证稽查任务 id 创建完毕) // 一定在这里获取地理位置(保证稽查任务 id 创建完毕)
...@@ -352,7 +352,7 @@ const handleTypeConfirm = async ({ selectedValues }) => { ...@@ -352,7 +352,7 @@ const handleTypeConfirm = async ({ selectedValues }) => {
} }
/*************** tabs 组 ***************/ /*************** tabs 组 ***************/
const active = ref(2) const active = ref(3)
/*************** 其他信息填写 ***************/ /*************** 其他信息填写 ***************/
// 礼盒礼袋在售 // 礼盒礼袋在售
......
...@@ -58,6 +58,12 @@ ...@@ -58,6 +58,12 @@
</template> </template>
<script setup> <script setup>
const props = defineProps({
form: {
type: Object,
default: () => { }
}
})
// 品类型 // 品类型
const typeOptions = ref([ const typeOptions = ref([
{ {
...@@ -250,6 +256,33 @@ const typeOptions = ref([ ...@@ -250,6 +256,33 @@ const typeOptions = ref([
} }
]); ]);
const selectedTypeObj = ref(typeOptions.value[0]) const selectedTypeObj = ref(typeOptions.value[0])
// 创建任务
const createTask = () => {
displayGroup.value.push({
type: selectedTypeObj.value.value,
taste: selectedTypeObj.value.taste.map(item => ({
name: item.name,
value: ''
}))
})
}
const init = () => {
if (props.form.detailMap) {
if (props.form.detailMap['品类信息']) {
checkProperty(props.form.detailMap['品类信息'])
displayGroup.value = props.form.detailMap['品类信息'] || []
return
}
}
// 没传递则自己至少新建 1 个
if (displayGroup.value.length === 0) {
createTask()
}
}
defineExpose({
init
})
</script> </script>
<style lang="scss" <style lang="scss"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论