装备属性优化
This commit is contained in:
parent
488ce70086
commit
c37a64e9e7
|
|
@ -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({})
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
|
>
|
||||||
|
<el-row
|
||||||
|
v-for="(item, index) in chunkedItems"
|
||||||
:key="index"
|
:key="index"
|
||||||
:model="item"
|
:model="item"
|
||||||
class="dynamic-item"
|
class="dynamic-item"
|
||||||
>
|
|
||||||
<el-row
|
|
||||||
: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"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue