工商登记开业公海:修改

This commit is contained in:
ZZM 2025-12-26 16:24:33 +08:00
parent 5a63ebaed6
commit 1067ecfb3c
12 changed files with 101 additions and 105 deletions

View File

@ -34,7 +34,6 @@
:class="[{'no-all-selection': config.radio}]"
:header-cell-class-name="headerCellClassName"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -28,6 +28,7 @@
v-if="showDupCheck"
class="dup-check-btn"
@click="dupCheckShow = true">查重</el-button>
<!--
<el-dropdown
v-if="moreTypes.length > 0"
trigger="click"
@ -41,6 +42,7 @@
:command="item.type">{{ item.name }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
-->
</div>
<c-r-m-all-create
v-if="isCreate"

View File

@ -34,7 +34,6 @@
:header-cell-class-name="headerCellClassName"
:row-key="`${crmType}Id`"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -30,13 +30,14 @@
</el-form>
</create-sections>
<!--需要删除-->
<!--
<el-button
v-if="action.type == 'save' && contactsSaveAuth"
slot="footer"
class="handle-button"
type="primary"
@click="debouncedSaveField(true)">保存并新建联系人</el-button>
-->
<!-- 新建 -->
<contacts-create
v-if="contactsCreateShow"

View File

@ -35,7 +35,6 @@
:row-key="`${crmType}Id`"
:class="[{'no-all-selection': config.radio}]"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -48,7 +48,6 @@
:cell-class-name="cellClassName"
:row-key="`${crmType}Id`"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -260,53 +260,6 @@ export default {
if (this.filterObj && this.filterObj.length > 0) {
params.searchList = this.filterObj
}
if (params.poolId === 34557 && this.currentDateTime) {
if (!params.searchList) {
params.searchList = []
}
const time = {
type: 1,
values: [this.currentDateTime],
formType: 'text',
name: 'website'
}
let to = true
for (let i = 0; i < params.searchList; i++) {
if (params.searchList[i].name === 'website') {
params.searchList[i] = [time]
to = false
}
}
if (to) {
params.searchList.push(
time
)
}
}
if (params.poolId === 34557 && this.currentDateTime) {
if (!params.searchList) {
params.searchList = []
}
const time = {
type: 1,
values: [this.currentDateTime],
formType: 'text',
name: 'website'
}
let to = true
for (let i = 0; i < params.searchList; i++) {
if (params.searchList[i].name === 'website') {
params.searchList[i] = [time]
to = false
}
}
if (to) {
params.searchList.push(
time
)
}
}
if (params.poolId === 34557 && this.currentDateTime) {
if (!params.searchList) {
@ -337,6 +290,8 @@ export default {
params.searchList = []
}
const xzqhDm = this.selectedOptions[this.selectedOptions.length - 1]
// 检查 xzqhDm 是否为空
if (xzqhDm) { // 如果 xzqhDm 不为空,再执行后续逻辑
const remark = {
type: 1,
values: [xzqhDm],
@ -344,18 +299,22 @@ export default {
name: 'remark'
}
let to = true
for (let i = 0; i < params.searchList; i++) {
if (params.searchList[i].name === 'website') {
for (let i = 0; i < params.searchList.length; i++) { // 注意:这里应该是 params.searchList.length
if (params.searchList[i].name === 'remark') {
params.searchList[i] = [remark]
to = false
break
}
}
if (to) {
params.searchList.push(
remark
)
params.searchList.push(remark)
}
} else {
// 如果 xzqhDm 为空,移除已有的 remark
params.searchList = params.searchList.filter(item => item.name !== 'remark')
}
}
if (params.poolId === 34557) {
params.search = ''
}

View File

@ -33,7 +33,6 @@
:row-key="`${crmType}Id`"
:class="[{'no-all-selection': config.radio}]"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -50,7 +50,6 @@
:row-key="`${crmType}Id`"
:class="[{'no-all-selection': config.radio}]"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -55,7 +55,6 @@
:cell-class-name="cellClassName"
:row-key="`${crmType}Id`"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row

View File

@ -63,45 +63,45 @@
@click="handlePoolAction">
同步数据
</el-button>
<!-- 添加工商登记开业信息的查询按钮 -->
<div v-if="poolId === 34557" class="time-container">
<el-form>
<el-row>
<el-col :span="1"><p>地区</p></el-col>
<el-col :span="10">
<el-table-column>
<el-row class="flex-container">
<el-col :span="4" class="flex-item">
<p class="flex-label">地区</p>
</el-col>
<el-col :span="7" class="flex-item">
<el-cascader
v-if="poolId === 34557"
:props="{ checkStrictly: true }"
:options="xzqhOptions"
style="width: 150px"
v-model="selectedOptions"
placeholder="选择地区"
class="time-select"
clearable/>
</el-table-column>
class="flex-input"
clearable
/>
</el-col>
<el-col :span="2"><p>开业日期</p></el-col>
<el-col :span="10">
<el-table-column>
<el-col :span="4" class="flex-item">
<p class="flex-label">开业日期</p>
</el-col>
<el-col :span="7" class="flex-item">
<el-date-picker
v-if="poolId === 34557"
v-model="currentDateTime"
type="datetime"
style="width: 150px"
placeholder="选择日期时间"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
class="time-select"
class="flex-input"
/>
</el-table-column>
</el-col>
<el-col :span="1">
<el-col :span="2" class="flex-item">
<el-button
v-if="poolId === 34557"
:loading="isSubmitting"
type="primary"
size="small"
style="margin-left: 2px;height: 40px"
class="flex-button"
@click="crmSearch"
>
查询
@ -109,7 +109,6 @@
</el-col>
</el-row>
</el-form>
<!-- 添加查询按钮 -->
</div>
<!-- 添加导入按钮 -->
<el-button
@ -544,9 +543,52 @@ export default {
display: inline-block;
}
.time-container {
width: 500px;
.flex-container {
display: flex;
align-items: center;
flex-wrap: nowrap;
width: 100%;
gap: 2px; /* 元素间距 */
}
.flex-item {
display: flex;
align-items: center;
flex-shrink: 0; /* 防止缩小 */
}
.flex-label {
margin: 0;
padding: 0 8px 0 0;
text-align: right;
white-space: nowrap;
font-size: calc(12px + 0.2vw);
line-height: 1;
/* 通过flex实现垂直居中 */
display: flex;
align-items: center;
justify-content: flex-end;
height: 100%;
}
.flex-input {
flex: 1 1 auto;
width: 100% !important;
min-width: 120px; /* 设置最小宽度 */
max-width: 200px; /* 设置最大宽度 */
transform: scale(calc(0.9 + 0.1 * (100vw / 1920))); /* 基于视口宽度缩放 */
transform-origin: left center;
}
.flex-button {
flex: 0 0 auto;
width: 100% !important;
min-width: 60px;
max-width: 100px;
height: 40px !important;
transform: scale(calc(0.9 + 0.1 * (100vw / 1920)));
transform-origin: left center;
}
.time-select {

View File

@ -33,7 +33,6 @@
:header-cell-class-name="headerCellClassName"
:row-key="`${crmType}Id`"
class="n-table--border"
use-virtual
stripe
border
highlight-current-row