装备属性优化

This commit is contained in:
hongchao 2024-12-18 14:49:44 +08:00
parent 488ce70086
commit c37a64e9e7
2 changed files with 24 additions and 20 deletions

View File

@ -742,6 +742,12 @@ const handleViewWord = async (index: any) => {
}, 1000); }, 1000);
} }
// Word
const submitBtn = () => {
window.location.href = wordUrl.value
}
// //
const getReceiptGoodsAddress = async () => { const getReceiptGoodsAddress = async () => {
const res: any = await getAddressListApi({}) const res: any = await getAddressListApi({})

View File

@ -1036,6 +1036,14 @@ const onPreviewImg = (fileUrl: any) => {
previewDialogImageUrl.value = fileUrl previewDialogImageUrl.value = fileUrl
previewDialogVisible.value = true previewDialogVisible.value = true
} }
//
const chunkedItems = computed(() => {
let result = [];
for (let i = 0; i < propertyNames.value.length; i += 2) {
result.push(propertyNames.value.slice(i, i + 2));
}
return result;
})
</script> </script>
<template> <template>
@ -1295,7 +1303,7 @@ const onPreviewImg = (fileUrl: any) => {
</div> --> </div> -->
<TitleTip :titleText="`基本信息`" /> <TitleTip :titleText="`基本信息`" />
<el-form <el-form
label-width="140px" label-width="180px"
ref="addAndEditFormRef" ref="addAndEditFormRef"
label-position="right" label-position="right"
:model="addAndEditForm" :model="addAndEditForm"
@ -1448,30 +1456,20 @@ const onPreviewImg = (fileUrl: any) => {
</el-col> </el-col>
</el-row> --> </el-row> -->
<div <div
v-for="(item, index) in propertyNames"
:key="index"
:model="item"
class="dynamic-item"
> >
<el-row <el-row
v-for="(item, index) in chunkedItems"
:key="index"
:model="item"
class="dynamic-item"
:gutter="20" :gutter="20"
style="display: flex; margin-top: 10px; justify-content: left" style="display: flex ; margin-top: 10px; justify-content: left"
> >
<el-col :span="12"> <el-col v-for="(itemTemp,indexTemp) in item" :key="indexTemp" :span="12" >
<el-form-item label="属性描述:"> <el-form-item :label="itemTemp.propertyName+''" >
<el-input <el-input
v-model="item.propertyName" v-model="itemTemp.propertyValue"
placeholder="请输入"
maxlength="20"
disabled
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="属性值:">
<el-input
v-model="item.propertyValue"
placeholder="请输入" placeholder="请输入"
maxlength="20" maxlength="20"
> >