装备属性优化

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);
}
// Word
const submitBtn = () => {
window.location.href = wordUrl.value
}
//
const getReceiptGoodsAddress = async () => {
const res: any = await getAddressListApi({})

View File

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