Commit c66d2337 by yuzhenWang

修复产品名称搜索bug

parent 86c40a5e
......@@ -1406,11 +1406,18 @@ const handleFormValues = source => {
//处理表单数据
for (const key1 in form.value) {
if (key1 == 'nameCn' && submitObj[key1] && submitObj[key1].length < 2) {
if (key1 == 'nameCn' && submitObj[key1]) {
if (submitObj[key1].length < 2) {
errorFields.value.push({
message: `${tipName}-名字至少为2个字符`
})
}
if (submitObj[key1].length > 6) {
errorFields.value.push({
message: `${tipName}-名字长度不能超过6个字符`
})
}
}
for (const key2 in saveKey.value) {
//要判断drawerType
switch (saveKey.value[key2].objType) {
......
......@@ -57,13 +57,13 @@
@click="handleUpdate(scope.row)"
>查看</el-button
>
<el-button
<!-- <el-button
v-if="props.pageSource !== 'policyList'"
type="danger"
link
@click="handleDetele(scope.row)"
>删除</el-button
>
> -->
</template>
</el-table-column>
</el-table>
......@@ -85,7 +85,7 @@
<div class="fileUploadBox">
<el-upload
:action="uploadImgUrl"
:data="{'projectBizId':userStore.projectInfo.projectBizId}"
:data="{ projectBizId: userStore.projectInfo.projectBizId }"
:headers="headers"
multiple
:limit="limit"
......@@ -398,7 +398,7 @@ const uploadSuccess = (res, file, fileList) => {
// 删除已上传的文件(仅从列表移除,不调用后端删除)
const removeUploadedFile = (file, index) => {
try {
delUploadFile(file.fileBizId,userStore.projectInfo.projectBizId).then(response => {
delUploadFile(file.fileBizId, userStore.projectInfo.projectBizId).then(response => {
uploadedFiles.value.splice(index, 1)
})
} catch (error) {
......
......@@ -38,7 +38,7 @@
:type="child.inputType"
v-model="form[father.key][child.key]"
:placeholder="child.placeholder"
:maxlength="child.maxlength|| 50"
:maxlength="child.maxlength || 50"
:disabled="editStatus"
:style="{ width: child.inputWidth ? child.inputWidth : '100%' }"
@input="val => handleInputChange(val, child, father)"
......@@ -522,9 +522,16 @@ const searchSelectList = async (query, fieldKey) => {
projectBizId: userStore.projectInfo.projectBizId,
tenantBizId: userStore.projectInfo.tenantBizId,
fieldBizId: 'field_olk1qZe81qHHKXbw',
fieldValueBizId:fieldKey === 'productLaunchName'? 'field_value_yXzTigvgUdRMFpoR' : 'field_value_uOfJH5ucA2YwJpbn',
categoryCodeList:[form.value.apiProductPlanMainInfoDto.insuranceTypeCode || ''],
insuranceCompanyBizIdList:[form.value.apiProductPlanMainInfoDto.companyId || '']
fieldValueBizId:
fieldKey === 'productLaunchName'
? 'field_value_yXzTigvgUdRMFpoR'
: 'field_value_uOfJH5ucA2YwJpbn',
categoryCodeList: form.value.apiProductPlanMainInfoDto.insuranceTypeCode
? [form.value.apiProductPlanMainInfoDto.insuranceTypeCode]
: [],
insuranceCompanyBizIdList: form.value.apiProductPlanMainInfoDto.companyId
? [form.value.apiProductPlanMainInfoDto.companyId]
: []
}
const response = await secondAdditonalList(params)
if (response.code == 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment