装备属性优化
This commit is contained in:
parent
488ce70086
commit
c37a64e9e7
|
|
@ -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({})
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue