工商登记开业公海:修改
This commit is contained in:
parent
5a63ebaed6
commit
1067ecfb3c
|
|
@ -34,7 +34,6 @@
|
||||||
:class="[{'no-all-selection': config.radio}]"
|
:class="[{'no-all-selection': config.radio}]"
|
||||||
:header-cell-class-name="headerCellClassName"
|
:header-cell-class-name="headerCellClassName"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
v-if="showDupCheck"
|
v-if="showDupCheck"
|
||||||
class="dup-check-btn"
|
class="dup-check-btn"
|
||||||
@click="dupCheckShow = true">查重</el-button>
|
@click="dupCheckShow = true">查重</el-button>
|
||||||
|
<!--
|
||||||
<el-dropdown
|
<el-dropdown
|
||||||
v-if="moreTypes.length > 0"
|
v-if="moreTypes.length > 0"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
|
@ -41,6 +42,7 @@
|
||||||
:command="item.type">{{ item.name }}</el-dropdown-item>
|
:command="item.type">{{ item.name }}</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
<c-r-m-all-create
|
<c-r-m-all-create
|
||||||
v-if="isCreate"
|
v-if="isCreate"
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
:header-cell-class-name="headerCellClassName"
|
:header-cell-class-name="headerCellClassName"
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -30,13 +30,14 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</create-sections>
|
</create-sections>
|
||||||
<!--需要删除-->
|
<!--需要删除-->
|
||||||
|
<!--
|
||||||
<el-button
|
<el-button
|
||||||
v-if="action.type == 'save' && contactsSaveAuth"
|
v-if="action.type == 'save' && contactsSaveAuth"
|
||||||
slot="footer"
|
slot="footer"
|
||||||
class="handle-button"
|
class="handle-button"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="debouncedSaveField(true)">保存并新建联系人</el-button>
|
@click="debouncedSaveField(true)">保存并新建联系人</el-button>
|
||||||
|
-->
|
||||||
<!-- 新建 -->
|
<!-- 新建 -->
|
||||||
<contacts-create
|
<contacts-create
|
||||||
v-if="contactsCreateShow"
|
v-if="contactsCreateShow"
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
:class="[{'no-all-selection': config.radio}]"
|
:class="[{'no-all-selection': config.radio}]"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@
|
||||||
:cell-class-name="cellClassName"
|
:cell-class-name="cellClassName"
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -260,53 +260,6 @@ export default {
|
||||||
if (this.filterObj && this.filterObj.length > 0) {
|
if (this.filterObj && this.filterObj.length > 0) {
|
||||||
params.searchList = this.filterObj
|
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.poolId === 34557 && this.currentDateTime) {
|
||||||
if (!params.searchList) {
|
if (!params.searchList) {
|
||||||
|
|
@ -337,6 +290,8 @@ export default {
|
||||||
params.searchList = []
|
params.searchList = []
|
||||||
}
|
}
|
||||||
const xzqhDm = this.selectedOptions[this.selectedOptions.length - 1]
|
const xzqhDm = this.selectedOptions[this.selectedOptions.length - 1]
|
||||||
|
// 检查 xzqhDm 是否为空
|
||||||
|
if (xzqhDm) { // 如果 xzqhDm 不为空,再执行后续逻辑
|
||||||
const remark = {
|
const remark = {
|
||||||
type: 1,
|
type: 1,
|
||||||
values: [xzqhDm],
|
values: [xzqhDm],
|
||||||
|
|
@ -344,18 +299,22 @@ export default {
|
||||||
name: 'remark'
|
name: 'remark'
|
||||||
}
|
}
|
||||||
let to = true
|
let to = true
|
||||||
for (let i = 0; i < params.searchList; i++) {
|
for (let i = 0; i < params.searchList.length; i++) { // 注意:这里应该是 params.searchList.length
|
||||||
if (params.searchList[i].name === 'website') {
|
if (params.searchList[i].name === 'remark') {
|
||||||
params.searchList[i] = [remark]
|
params.searchList[i] = [remark]
|
||||||
to = false
|
to = false
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (to) {
|
if (to) {
|
||||||
params.searchList.push(
|
params.searchList.push(remark)
|
||||||
remark
|
}
|
||||||
)
|
} else {
|
||||||
|
// 如果 xzqhDm 为空,移除已有的 remark
|
||||||
|
params.searchList = params.searchList.filter(item => item.name !== 'remark')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.poolId === 34557) {
|
if (params.poolId === 34557) {
|
||||||
params.search = ''
|
params.search = ''
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
:class="[{'no-all-selection': config.radio}]"
|
:class="[{'no-all-selection': config.radio}]"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,6 @@
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
:class="[{'no-all-selection': config.radio}]"
|
:class="[{'no-all-selection': config.radio}]"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@
|
||||||
:cell-class-name="cellClassName"
|
:cell-class-name="cellClassName"
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
|
|
@ -63,45 +63,45 @@
|
||||||
@click="handlePoolAction">
|
@click="handlePoolAction">
|
||||||
同步数据
|
同步数据
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- 添加工商登记开业信息的查询按钮 -->
|
||||||
<div v-if="poolId === 34557" class="time-container">
|
<div v-if="poolId === 34557" class="time-container">
|
||||||
<el-form>
|
<el-form>
|
||||||
<el-row>
|
<el-row class="flex-container">
|
||||||
<el-col :span="1"><p>地区:</p></el-col>
|
<el-col :span="4" class="flex-item">
|
||||||
<el-col :span="10">
|
<p class="flex-label">地区:</p>
|
||||||
<el-table-column>
|
</el-col>
|
||||||
|
<el-col :span="7" class="flex-item">
|
||||||
<el-cascader
|
<el-cascader
|
||||||
v-if="poolId === 34557"
|
v-if="poolId === 34557"
|
||||||
:props="{ checkStrictly: true }"
|
:props="{ checkStrictly: true }"
|
||||||
:options="xzqhOptions"
|
:options="xzqhOptions"
|
||||||
style="width: 150px"
|
|
||||||
v-model="selectedOptions"
|
v-model="selectedOptions"
|
||||||
placeholder="选择地区"
|
placeholder="选择地区"
|
||||||
class="time-select"
|
class="flex-input"
|
||||||
clearable/>
|
clearable
|
||||||
</el-table-column>
|
/>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2"><p>开业日期:</p></el-col>
|
<el-col :span="4" class="flex-item">
|
||||||
<el-col :span="10">
|
<p class="flex-label">开业日期:</p>
|
||||||
<el-table-column>
|
</el-col>
|
||||||
|
<el-col :span="7" class="flex-item">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-if="poolId === 34557"
|
v-if="poolId === 34557"
|
||||||
v-model="currentDateTime"
|
v-model="currentDateTime"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
style="width: 150px"
|
|
||||||
placeholder="选择日期时间"
|
placeholder="选择日期时间"
|
||||||
format="yyyy-MM-dd"
|
format="yyyy-MM-dd"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
class="time-select"
|
class="flex-input"
|
||||||
/>
|
/>
|
||||||
</el-table-column>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1">
|
<el-col :span="2" class="flex-item">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="poolId === 34557"
|
v-if="poolId === 34557"
|
||||||
:loading="isSubmitting"
|
:loading="isSubmitting"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
style="margin-left: 2px;height: 40px"
|
class="flex-button"
|
||||||
@click="crmSearch"
|
@click="crmSearch"
|
||||||
>
|
>
|
||||||
查询
|
查询
|
||||||
|
|
@ -109,7 +109,6 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- 添加查询按钮 -->
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 添加导入按钮 -->
|
<!-- 添加导入按钮 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -544,9 +543,52 @@ export default {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-container {
|
.flex-container {
|
||||||
width: 500px;
|
|
||||||
display: flex;
|
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 {
|
.time-select {
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
:header-cell-class-name="headerCellClassName"
|
:header-cell-class-name="headerCellClassName"
|
||||||
:row-key="`${crmType}Id`"
|
:row-key="`${crmType}Id`"
|
||||||
class="n-table--border"
|
class="n-table--border"
|
||||||
use-virtual
|
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue