c7308b25 by lxs

Merge branch 'develop' into release-test

2 parents d5a6d35c f7ed181b
...@@ -612,7 +612,7 @@ const panelChange = (scope, row) => { ...@@ -612,7 +612,7 @@ const panelChange = (scope, row) => {
612 <el-form-item v-if="item.visible ?? true" :key="'form_item_' + index" :prop="item.field" 612 <el-form-item v-if="item.visible ?? true" :key="'form_item_' + index" :prop="item.field"
613 :validate-status="item.validateStatus ?? ''" :error="item.error" :class="[item.col, { is_block: item.block }]" 613 :validate-status="item.validateStatus ?? ''" :error="item.error" :class="[item.col, { is_block: item.block }]"
614 :style="item.style ?? {}"> 614 :style="item.style ?? {}">
615 <span class="item-label" slot="label"> 615 <span class="item-label" :class="[item.labelClass]" slot="label">
616 <span :class="{ 616 <span :class="{
617 required_mark: item.required, 617 required_mark: item.required,
618 }">{{ 618 }">{{
...@@ -1119,7 +1119,8 @@ const panelChange = (scope, row) => { ...@@ -1119,7 +1119,8 @@ const panelChange = (scope, row) => {
1119 <el-radio v-for="(radio, index) in item.options" :label="radio.value"> 1119 <el-radio v-for="(radio, index) in item.options" :label="radio.value">
1120 <template #default> 1120 <template #default>
1121 <span :style="{ 'line-height': '32px' }">{{ radio.label }}</span> 1121 <span :style="{ 'line-height': '32px' }">{{ radio.label }}</span>
1122 <span :style="{ display: 'inline-flex', width: (index == (item.inputOptions?.index ?? (item.options.length - 1)) && item.inputOptions) ? (item.inputOptions.width ?? '230px') : '0px' }"> 1122 <span
1123 :style="{ display: 'inline-flex', width: (index == (item.inputOptions?.index ?? (item.options.length - 1)) && item.inputOptions) ? (item.inputOptions.width ?? '230px') : '0px' }">
1123 <el-form-item 1124 <el-form-item
1124 v-if="index == (item.inputOptions?.index ?? (item.options.length - 1)) && (item.inputOptions?.visible ?? false)" 1125 v-if="index == (item.inputOptions?.index ?? (item.options.length - 1)) && (item.inputOptions?.visible ?? false)"
1125 :prop="item.inputOptions?.field" :class="[item.inputOptions?.col]"> 1126 :prop="item.inputOptions?.field" :class="[item.inputOptions?.col]">
...@@ -1555,6 +1556,10 @@ const panelChange = (scope, row) => { ...@@ -1555,6 +1556,10 @@ const panelChange = (scope, row) => {
1555 1556
1556 .item-label { 1557 .item-label {
1557 color: #666666; 1558 color: #666666;
1559
1560 &.hide {
1561 opacity: 0;
1562 }
1558 } 1563 }
1559 1564
1560 >div { 1565 >div {
......
...@@ -209,7 +209,7 @@ const getTenantDetail = () => { ...@@ -209,7 +209,7 @@ const getTenantDetail = () => {
209 }); 209 });
210 } 210 }
211 211
212 const setBaseFormItemsValue = (info) => { 212 const setBaseFormItemsValue = (info: any) => {
213 let attach = info.registerAttachment || {}; 213 let attach = info.registerAttachment || {};
214 baseFormItems.value.forEach(item => { 214 baseFormItems.value.forEach(item => {
215 if (item.field == 'coverageArea') { 215 if (item.field == 'coverageArea') {
...@@ -331,19 +331,12 @@ const setPropertyFormItemsValue = (info) => { ...@@ -331,19 +331,12 @@ const setPropertyFormItemsValue = (info) => {
331 propertyFormItems.value.forEach((item, index) => { 331 propertyFormItems.value.forEach((item, index) => {
332 if (item.field == 'propertyType' || item.field == 'rightsContent') { 332 if (item.field == 'propertyType' || item.field == 'rightsContent') {
333 item.default = info[item.field] || []; 333 item.default = info[item.field] || [];
334 } else if (item.field == 'propertyTerm') { 334 } else if (item.field == 'propertyTermDate') {
335 item.default = info[item.field]; 335 item.visible = info['propertyTerm'] == 'Y';
336 if (info['propertyTerm'] == 'Y') { 336 item.default = info.propertyTermSdate ? [info.propertyTermSdate, info.propertyTermEdate] : (info.field || []);
337 item.block = false;
338 propertyFormItems.value[index + 1].visible = true;
339 propertyFormItems.value[index + 2].visible = true;
340 } else {
341 item.block = true;
342 propertyFormItems.value[index + 1].visible = false;
343 propertyFormItems.value[index + 2].visible = false;
344 }
345 } else if (item.field == 'address' || item.field == 'socialCreditCode' || item.field == 'registrationDate' || item.field == 'businessLicenseStartDate' || item.field == 'businessLicenseEndDate') {//在会员详情处获取。 337 } else if (item.field == 'address' || item.field == 'socialCreditCode' || item.field == 'registrationDate' || item.field == 'businessLicenseStartDate' || item.field == 'businessLicenseEndDate') {//在会员详情处获取。
346 item.default = tenantDetail.value[item.field]; 338 item.default = tenantDetail.value[item.field];
339 item.field == 'businessLicenseEndDate' && (item.col = info['propertyTerm'] == 'Y'?'no-margin-r':'');
347 } else if (item.field == 'businessLicenseJson') { 340 } else if (item.field == 'businessLicenseJson') {
348 item.default = tenantDetail.value[item.field] ? JSON.parse(tenantDetail.value[item.field]) : []; 341 item.default = tenantDetail.value[item.field] ? JSON.parse(tenantDetail.value[item.field]) : [];
349 if (!item.default.length) { 342 if (!item.default.length) {
...@@ -352,6 +345,9 @@ const setPropertyFormItemsValue = (info) => { ...@@ -352,6 +345,9 @@ const setPropertyFormItemsValue = (info) => {
352 item.visible = true; 345 item.visible = true;
353 } 346 }
354 } else { 347 } else {
348 if(item.field == 'officeLocation' || item.field == 'unitNature'){
349 item.col = info['propertyTerm'] == 'Y'?'no-margin-r':''
350 }
355 item.default = info[item.field]; 351 item.default = info[item.field];
356 } 352 }
357 }); 353 });
...@@ -1309,7 +1305,6 @@ const propertyFormItems: any = ref([ ...@@ -1309,7 +1305,6 @@ const propertyFormItems: any = ref([
1309 type: "radio-group", 1305 type: "radio-group",
1310 placeholder: "", 1306 placeholder: "",
1311 field: "isPledged", 1307 field: "isPledged",
1312 col: 'mr8',
1313 default: 'N', 1308 default: 'N',
1314 options: [ 1309 options: [
1315 { 1310 {
...@@ -1355,7 +1350,6 @@ const propertyFormItems: any = ref([ ...@@ -1355,7 +1350,6 @@ const propertyFormItems: any = ref([
1355 placeholder: "", 1350 placeholder: "",
1356 field: "isLimitations", 1351 field: "isLimitations",
1357 default: 'N', 1352 default: 'N',
1358 col: 'no-margin-r',
1359 options: [ 1353 options: [
1360 { 1354 {
1361 label: "有限制", 1355 label: "有限制",
...@@ -1370,54 +1364,45 @@ const propertyFormItems: any = ref([ ...@@ -1370,54 +1364,45 @@ const propertyFormItems: any = ref([
1370 }, 1364 },
1371 { 1365 {
1372 label: "产权期限", 1366 label: "产权期限",
1373 type: "radio-group", 1367 type: "select",
1374 placeholder: "", 1368 placeholder: "请选择",
1375 field: "propertyTerm", 1369 field: "propertyTerm",
1376 default: 'N', 1370 default: "N",
1377 col: 'mr8',
1378 block: true,
1379 options: [ 1371 options: [
1380 { 1372 {
1381 label: "", 1373 label: "",
1382 value: 'Y', 1374 value: "Y",
1383 }, 1375 },
1384 { 1376 {
1385 label: "无", 1377 label: "否",
1386 value: 'N', 1378 value: "N",
1387 }
1388 ],
1389 required: true,
1390 }, 1379 },
1391 { 1380 ],
1392 label: '产权期限开始日期',
1393 type: 'date',
1394 placeholder: '请输入',
1395 field: 'propertyTermSdate',
1396 default: "",
1397 unlink: true,
1398 clearable: true,
1399 required: true, 1381 required: true,
1400 visible: false, 1382 style: {
1383 width: '100px'
1384 }
1401 }, 1385 },
1402 { 1386 {
1403 label: '产权期限结束日期', 1387 label: "期限范围",
1404 type: 'date', 1388 type: "date-picker",
1405 placeholder: '请输入', 1389 field: "propertyTermDate",
1406 field: 'propertyTermEdate', 1390 default: [],
1407 default: "", 1391 placeholder: "请选择开始/结束日期",
1408 unlink: true, 1392 labelClass: 'hide',
1409 clearable: true, 1393 clearable: true,
1410 required: true, 1394 required: true,
1411 visible: false, 1395 visible: false,
1396 col: 'no-margin-r',
1412 style: { 1397 style: {
1413 'margin-right': '0px' 1398 width: 'calc(33.33% - 116px)',
1399 'margin-left': '8px'
1414 } 1400 }
1415 }, 1401 },
1416 { 1402 {
1417 label: '公司名称', 1403 label: '公司名称',
1418 type: 'input', 1404 type: 'input',
1419 placeholder: '请输入', 1405 placeholder: '请输入',
1420 col: 'mr8',
1421 field: 'tenantName', 1406 field: 'tenantName',
1422 maxlength: 50, 1407 maxlength: 50,
1423 default: userData.tenantName ?? "", 1408 default: userData.tenantName ?? "",
...@@ -1427,10 +1412,10 @@ const propertyFormItems: any = ref([ ...@@ -1427,10 +1412,10 @@ const propertyFormItems: any = ref([
1427 { 1412 {
1428 label: '单位注册地址', 1413 label: '单位注册地址',
1429 type: 'input', 1414 type: 'input',
1430 col: 'mr8',
1431 placeholder: '请输入', 1415 placeholder: '请输入',
1432 field: 'address', 1416 field: 'address',
1433 default: tenantDetail.value.address ?? "", 1417 default: tenantDetail.value.address ?? "",
1418 col: 'mr8',
1434 disabled: true, 1419 disabled: true,
1435 required: false 1420 required: false
1436 }, 1421 },
...@@ -1440,7 +1425,6 @@ const propertyFormItems: any = ref([ ...@@ -1440,7 +1425,6 @@ const propertyFormItems: any = ref([
1440 placeholder: "请选择", 1425 placeholder: "请选择",
1441 field: "officeLocation", 1426 field: "officeLocation",
1442 default: [], 1427 default: [],
1443 col: 'no-margin-r',
1444 showAllLevels: true, 1428 showAllLevels: true,
1445 props: { 1429 props: {
1446 label: 'name', 1430 label: 'name',
...@@ -1460,7 +1444,6 @@ const propertyFormItems: any = ref([ ...@@ -1460,7 +1444,6 @@ const propertyFormItems: any = ref([
1460 type: 'input', 1444 type: 'input',
1461 placeholder: '请输入', 1445 placeholder: '请输入',
1462 field: 'socialCreditCode', 1446 field: 'socialCreditCode',
1463 col: 'mr8',
1464 disabled: true, 1447 disabled: true,
1465 default: tenantDetail.value.socialCreditCode ?? "", 1448 default: tenantDetail.value.socialCreditCode ?? "",
1466 required: false 1449 required: false
...@@ -1471,7 +1454,7 @@ const propertyFormItems: any = ref([ ...@@ -1471,7 +1454,7 @@ const propertyFormItems: any = ref([
1471 placeholder: "", 1454 placeholder: "",
1472 field: "isDishonesty", 1455 field: "isDishonesty",
1473 default: 'N', 1456 default: 'N',
1474 // col: 'mr8', 1457 col: 'mr8',
1475 options: [ 1458 options: [
1476 { 1459 {
1477 label: "是", 1460 label: "是",
...@@ -1490,7 +1473,6 @@ const propertyFormItems: any = ref([ ...@@ -1490,7 +1473,6 @@ const propertyFormItems: any = ref([
1490 placeholder: '请选择', 1473 placeholder: '请选择',
1491 field: 'unitNature', 1474 field: 'unitNature',
1492 default: 1, 1475 default: 1,
1493 col: 'no-margin-r',
1494 options: [ 1476 options: [
1495 { 1477 {
1496 label: '国企', 1478 label: '国企',
...@@ -1508,7 +1490,6 @@ const propertyFormItems: any = ref([ ...@@ -1508,7 +1490,6 @@ const propertyFormItems: any = ref([
1508 label: "注册日期", 1490 label: "注册日期",
1509 type: "date", 1491 type: "date",
1510 field: "registrationDate", 1492 field: "registrationDate",
1511 col: 'mr8',
1512 default: tenantDetail.value.registrationDate ?? "", 1493 default: tenantDetail.value.registrationDate ?? "",
1513 placeholder: "请选择", 1494 placeholder: "请选择",
1514 clearable: true, 1495 clearable: true,
...@@ -1520,8 +1501,8 @@ const propertyFormItems: any = ref([ ...@@ -1520,8 +1501,8 @@ const propertyFormItems: any = ref([
1520 type: 'date', 1501 type: 'date',
1521 placeholder: '请输入', 1502 placeholder: '请输入',
1522 field: 'businessLicenseStartDate', 1503 field: 'businessLicenseStartDate',
1523 col: 'mr8',
1524 default: tenantDetail.value.businessLicenseStartDate ?? "", 1504 default: tenantDetail.value.businessLicenseStartDate ?? "",
1505 col: 'mr8',
1525 unlink: true, 1506 unlink: true,
1526 disabled: true, 1507 disabled: true,
1527 clearable: true, 1508 clearable: true,
...@@ -1534,7 +1515,6 @@ const propertyFormItems: any = ref([ ...@@ -1534,7 +1515,6 @@ const propertyFormItems: any = ref([
1534 field: 'businessLicenseEndDate', 1515 field: 'businessLicenseEndDate',
1535 default: tenantDetail.value.businessLicenseEndDate ?? "", 1516 default: tenantDetail.value.businessLicenseEndDate ?? "",
1536 unlink: true, 1517 unlink: true,
1537 col: 'no-margin-r',
1538 disabled: true, 1518 disabled: true,
1539 clearable: true, 1519 clearable: true,
1540 required: false 1520 required: false
...@@ -1558,11 +1538,8 @@ const propertyFormRules = ref({ ...@@ -1558,11 +1538,8 @@ const propertyFormRules = ref({
1558 rightsContent: [ 1538 rightsContent: [
1559 { type: 'array', required: true, trigger: 'change', message: "请填写权利内容" } 1539 { type: 'array', required: true, trigger: 'change', message: "请填写权利内容" }
1560 ], 1540 ],
1561 propertyTermSdate: [ 1541 propertyTermDate: [
1562 { required: true, trigger: 'change', message: "请填写产权期限开始时间" } 1542 { required: true, trigger: 'change', message: "请选择产权期限日期" }
1563 ],
1564 propertyTermEdate: [
1565 { required: true, trigger: 'change', message: "请填写产权期限结束时间" }
1566 ], 1543 ],
1567 officeLocation: [ 1544 officeLocation: [
1568 { type: 'array', required: true, trigger: 'change', message: "请填写办公所在地" } 1545 { type: 'array', required: true, trigger: 'change', message: "请填写办公所在地" }
...@@ -1570,8 +1547,8 @@ const propertyFormRules = ref({ ...@@ -1570,8 +1547,8 @@ const propertyFormRules = ref({
1570 }); 1547 });
1571 1548
1572 /** 权利信息表单 */ 1549 /** 权利信息表单 */
1573 const propertySelectChange = (val, item) => { 1550 const propertySelectChange = (val, item, row) => {
1574 console.log(item.field); 1551 setPropertyFormItemsValue(row);
1575 } 1552 }
1576 1553
1577 const propertyRadioGroupChange = (val, row, item) => { 1554 const propertyRadioGroupChange = (val, row, item) => {
...@@ -1724,8 +1701,12 @@ const saveDraft = () => { ...@@ -1724,8 +1701,12 @@ const saveDraft = () => {
1724 params.updateFrequency = [baseFormInline.updateFrequency]; 1701 params.updateFrequency = [baseFormInline.updateFrequency];
1725 let propertyFormLine = porpertyInfoFormRef.value.formInline; 1702 let propertyFormLine = porpertyInfoFormRef.value.formInline;
1726 Object.assign(params, propertyFormLine); 1703 Object.assign(params, propertyFormLine);
1704 propertyFormLine.propertyTerm == 'Y' && (params.propertyTermSdate = propertyFormLine.propertyTermDate[0], params.propertyTermEdate = propertyFormLine.propertyTermDate[1]);
1727 delete params.qualityEvaluationInstitutionGuid; 1705 delete params.qualityEvaluationInstitutionGuid;
1728 delete params.costAssessmentInstitutionGuid; 1706 delete params.costAssessmentInstitutionGuid;
1707 delete params.rules;
1708 delete params.cost;
1709 delete params.trem;
1729 1710
1730 let uploadFormInline = uploadFormRef.value.formInline; 1711 let uploadFormInline = uploadFormRef.value.formInline;
1731 let registerAttachment: any = { 1712 let registerAttachment: any = {
...@@ -1837,8 +1818,12 @@ const save = () => { ...@@ -1837,8 +1818,12 @@ const save = () => {
1837 params.updateFrequency = [baseFormInline.updateFrequency]; 1818 params.updateFrequency = [baseFormInline.updateFrequency];
1838 let propertyFormLine = porpertyInfoFormRef.value.formInline; 1819 let propertyFormLine = porpertyInfoFormRef.value.formInline;
1839 Object.assign(params, propertyFormLine); 1820 Object.assign(params, propertyFormLine);
1821 propertyFormLine.propertyTerm == 'Y' && (params.propertyTermSdate = propertyFormLine.propertyTermDate[0], params.propertyTermEdate = propertyFormLine.propertyTermDate[1]);
1840 delete params.qualityEvaluationInstitutionGuid; 1822 delete params.qualityEvaluationInstitutionGuid;
1841 delete params.costAssessmentInstitutionGuid; 1823 delete params.costAssessmentInstitutionGuid;
1824 delete params.rules;
1825 delete params.cost;
1826 delete params.trem;
1842 1827
1843 let uploadFormInline = uploadFormRef.value.formInline; 1828 let uploadFormInline = uploadFormRef.value.formInline;
1844 let registerAttachment: any = { 1829 let registerAttachment: any = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!