2023-12-14 13:11:58 +00:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="" prop="siteCode">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.siteCode"
|
|
|
|
|
|
placeholder="站点代码"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="siteName">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.siteName"
|
|
|
|
|
|
placeholder="站点名称"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="siteNameEn">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.siteNameEn"
|
|
|
|
|
|
placeholder="英文名称"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="parentSiteCode">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.parentSiteCode"
|
|
|
|
|
|
placeholder="父站点id"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="parentSiteName">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.parentSiteName"
|
|
|
|
|
|
placeholder="父站点名称"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="defaultCurrency">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.defaultCurrency"
|
|
|
|
|
|
placeholder="缺省货币"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="cutOffTime">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.cutOffTime"
|
|
|
|
|
|
placeholder="截单时间"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
v-hasPermi="['emis:emisSite:add']"
|
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<!--
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="success"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
|
v-hasPermi="['emis:emisSite:edit']"
|
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
|
</el-col> -->
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="danger"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
|
v-hasPermi="['emis:emisSite:remove']"
|
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
v-hasPermi="['emis:emisSite:export']"
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
|
</el-col> -->
|
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="emisSiteList" @selection-change="handleSelectionChange">
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
<el-table-column label="序号" align="center" min-width="60">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span v-text="getIndex(scope.$index)"> </span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<!--
|
|
|
|
|
|
<el-table-column label="xxx" align="left" prop="xxx" min-width="180">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div class="link-type" @click="handleView(scope.row)">{{scope.row.orderSn}}</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="结算状态" align="center" prop="settleStatus" min-width="80">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div v-if="scope.row.settleStatus == 0" style="color:red;">
|
|
|
|
|
|
<span class="el-tag el-tag--info">未结算</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div v-if="scope.row.settleStatus == 10" style="color:red;">
|
|
|
|
|
|
<span class="el-tag">待确认</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div v-if="scope.row.settleStatus == 11" style="color:green;">
|
|
|
|
|
|
<span class="el-tag el-tag--success el-tag--light">已确认</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div v-if="scope.row.settleStatus == 20" >
|
|
|
|
|
|
<span class="el-tag el-tag--warning el-tag--light">待打款</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div v-if="scope.row.settleStatus == 21" style="color:green;">
|
|
|
|
|
|
<span class="el-tag el-tag--success el-tag--light">已打款</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div v-if="scope.row.settleStatus == 40" style="color:red;">
|
|
|
|
|
|
<span class="el-tag el-tag--danger">已拒绝</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="网点编号" align="center" prop="siteCode" min-width="100" />
|
|
|
|
|
|
<el-table-column label="网点名称" align="center" prop="siteName" min-width="100" />
|
|
|
|
|
|
<el-table-column label="网点英文名称" align="center" prop="siteNameEn" min-width="100" />
|
|
|
|
|
|
<el-table-column label="网点分类" align="center" prop="parentSiteCode" min-width="100" />
|
|
|
|
|
|
<el-table-column label="所高品牌" align="center" prop="parentSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column label="二字码" align="center" prop="defaultCurrency" min-width="100" />
|
|
|
|
|
|
<el-table-column label="三字码" align="center" prop="cutOffTime" min-width="100" />
|
|
|
|
|
|
<el-table-column label="截单时间" align="center" prop="superiorFinanceCenterCode" min-width="100" />
|
|
|
|
|
|
<el-table-column label="派件所后网点" align="center" prop="superiorFinanceCenter" min-width="100" />
|
|
|
|
|
|
<el-table-column label="所属区域" align="center" prop="type" min-width="100" />
|
|
|
|
|
|
<el-table-column label="网点类型" align="center" prop="defaultDestinationNameCode" min-width="100" />
|
|
|
|
|
|
<el-table-column label="是否停用" align="center" prop="defaultSendPlace" min-width="100" />
|
|
|
|
|
|
<el-table-column label="目家" align="center" prop="countryCode" min-width="100" />
|
|
|
|
|
|
<el-table-column label="省份" align="center" prop="province" min-width="100" />
|
|
|
|
|
|
<el-table-column label="城市" align="center" prop="city" min-width="100" />
|
|
|
|
|
|
<el-table-column label="区/县" align="center" prop="county" min-width="100" />
|
|
|
|
|
|
<el-table-column label="乡/镇" align="center" prop="town" min-width="100" />
|
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
|
v-hasPermi="['emis:emisSite:edit']"
|
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
|
<!--
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
|
v-hasPermi="['emis:emisSite:remove']"
|
|
|
|
|
|
>删除</el-button> -->
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
|
:total="total"
|
|
|
|
|
|
:page-sizes="[20,50,100,300,500,1000,2000,5000]"
|
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
|
:page-size="queryParams.pageSize"
|
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改网点对话框 -->
|
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="800px" :close-on-click-modal="false" append-to-body>
|
|
|
|
|
|
<el-row :gutter="0">
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="网点代码" prop="siteCode">
|
|
|
|
|
|
<el-input v-model="form.siteCode" placeholder="请输入网点代码" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="网点名称" prop="siteName">
|
|
|
|
|
|
<el-input v-model="form.siteName" placeholder="请输入网点名称" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="7">
|
|
|
|
|
|
<el-form-item label="英文名称" prop="siteNameEn">
|
|
|
|
|
|
<el-input v-model="form.siteNameEn" placeholder="请输入英文名称" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="网点类型" prop="siteType">
|
|
|
|
|
|
<el-select v-model="form.siteType" placeholder="网点类型" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="9">
|
|
|
|
|
|
<el-form-item label="所属网点" prop="parentSiteCode">
|
|
|
|
|
|
<el-select v-model="form.parentSiteCode" placeholder="所属网点" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="所属财务" prop="parentSiteCode">
|
|
|
|
|
|
<el-select v-model="form.parentSiteCode" placeholder="所属财务" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="加盟类型" prop="parentSiteCode">
|
|
|
|
|
|
<el-select v-model="form.parentSiteCode" placeholder="加盟类型" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="截单时间" prop="cutOffTime">
|
|
|
|
|
|
<el-input v-model="form.cutOffTime" placeholder="请输入截单时间" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="国家" prop="countryCode">
|
|
|
|
|
|
<el-select v-model="form.countryCode" placeholder="国家" @change="handleCountrySelectionChange" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in countryIdsOptions"
|
|
|
|
|
|
v-bind:key="item.value"
|
|
|
|
|
|
v-bind:label="item.label"
|
|
|
|
|
|
v-bind:value="item.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="省" prop="province">
|
|
|
|
|
|
<el-select v-model="form.province" placeholder="省" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in provinceIdsOptions"
|
|
|
|
|
|
v-bind:key="item.value"
|
|
|
|
|
|
v-bind:label="item.label"
|
|
|
|
|
|
v-bind:value="item.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="市" prop="city">
|
|
|
|
|
|
<el-input v-model="form.city" placeholder="市" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="区" prop="county">
|
|
|
|
|
|
<el-input v-model="form.county" placeholder="区代" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
<el-form-item label="乡镇" prop="town">
|
|
|
|
|
|
<el-input v-model="form.town" placeholder="乡镇" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-form-item label="详细地址" prop="address">
|
|
|
|
|
|
<el-input v-model="form.address" placeholder="请输入详细地址" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="负责人" prop="principal">
|
|
|
|
|
|
<el-input v-model="form.principal" placeholder="请输入负责人" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-form-item label="负责人电话" prop="phone">
|
|
|
|
|
|
<el-input v-model="form.phone" placeholder="请输入负责人电话" />
|
2023-12-14 13:11:58 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2024-01-02 01:15:26 +00:00
|
|
|
|
|
|
|
|
|
|
<el-row v-show="moreInputVisible" >
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="收派区域(片区)" prop="dispatchRange">
|
|
|
|
|
|
<el-input v-model="form.dispatchRange" placeholder="请输入收派区域" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="特殊区域" prop="specserviceRange">
|
|
|
|
|
|
<el-input v-model="form.specserviceRange" placeholder="请输入特殊区域" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
2023-12-14 13:11:58 +00:00
|
|
|
|
|
2024-01-02 01:15:26 +00:00
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="二字码" prop="dispatchRange">
|
|
|
|
|
|
<el-input v-model="form.dispatchRange" placeholder="请输入二字码" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="三字码" prop="specserviceRange">
|
|
|
|
|
|
<el-input v-model="form.specserviceRange" placeholder="请输入三字码" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-form-item label="所属分拨" prop="parentSiteCode">
|
|
|
|
|
|
<el-select v-model="form.parentSiteCode" placeholder="所属分拨" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="网点级别" prop="siteLevel">
|
|
|
|
|
|
<el-input v-model="form.siteLevel" placeholder="请输入网点级别" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="账套编号" prop="accountCode">
|
|
|
|
|
|
<el-input v-model="form.accountCode" placeholder="请输入账套编号" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="排列序号" prop="sort">
|
|
|
|
|
|
<el-input v-model="form.sort" placeholder="请输入" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="转账密码" prop="password">
|
|
|
|
|
|
<el-input v-model="form.password" placeholder="请输入" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="代收货款金额上限" prop="topLine">
|
|
|
|
|
|
<el-input v-model="form.topLine" placeholder="请输入" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="本币币别" prop="parentSiteCode">
|
|
|
|
|
|
<el-select v-model="form.parentSiteCode" placeholder="本币币别" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="所属品牌" prop="parentSiteCode">
|
|
|
|
|
|
<el-select v-model="form.parentSiteCode" placeholder="所属品牌" clearable filterable>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
v-bind:key="dict.value"
|
|
|
|
|
|
v-bind:label="dict.label"
|
|
|
|
|
|
v-bind:value="dict.value"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-form-item label="网页显示" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-form-item label="是否产生账单" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="是否允许自提" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="是否到付" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="是否可仓库收货" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="是否停用" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="是否仓库收货" prop="status">
|
|
|
|
|
|
<el-radio-group v-model="form.status">
|
|
|
|
|
|
<el-radio
|
|
|
|
|
|
v-for="dict in dict.type.sys_normal_disable"
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="办公地址" prop="parentSiteName">
|
|
|
|
|
|
<el-input v-model="form.parentSiteName" placeholder="请输入办公地址" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="查询电话" prop="parentSiteName">
|
|
|
|
|
|
<el-input v-model="form.parentSiteName" placeholder="请输入查询电话" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2023-12-14 13:11:58 +00:00
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-divider content-position="right" @click="handleShowMoreInput" >更多信息[+]</el-divider>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="titleForm" :visible.sync="openForm" width="500px" append-to-body>
|
|
|
|
|
|
<emisSiteForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisSiteForm>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="titleView" :visible.sync="openView" width="60%" :close-on-click-modal="false" append-to-body>
|
|
|
|
|
|
<emisSiteView :id="id" ></EmisSiteView>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import { listEmisSite, getEmisSite, delEmisSite, addEmisSite, updateEmisSite } from "@/api/emis/emisSite";
|
2024-01-02 01:15:26 +00:00
|
|
|
|
import { listEmisRegion, getEmisRegion, delEmisRegion, addEmisRegion, updateEmisRegion } from "@/api/emis/emisRegion";
|
|
|
|
|
|
import { listEmisCountry, getEmisCountry, delEmisCountry, addEmisCountry, updateEmisCountry } from "@/api/emis/emisCountry";
|
|
|
|
|
|
import { listEmisCountryArea, getEmisCountryArea, delEmisCountryArea, addEmisCountryArea, updateEmisCountryArea } from "@/api/emis/emisCountryArea";
|
2023-12-14 13:11:58 +00:00
|
|
|
|
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
|
|
|
|
|
import emisSiteView from '@/views/emis/emisSite/emisSiteView';
|
|
|
|
|
|
import emisSiteForm from '@/views/emis/emisSite/emisSiteForm';
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: "emisSite",
|
|
|
|
|
|
components: { elDateSimplePicker,emisSiteView,emisSiteForm },
|
2024-01-02 01:15:26 +00:00
|
|
|
|
dicts: ['sys_normal_disable'],
|
2023-12-14 13:11:58 +00:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
// 遮罩层
|
|
|
|
|
|
loading: true,
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
|
single: true,
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
|
multiple: true,
|
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
// 创建时间搜索
|
|
|
|
|
|
dateTimeRange:[],
|
|
|
|
|
|
// 总条数
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// 网点表格数据
|
|
|
|
|
|
emisSiteList: [],
|
2024-01-02 01:15:26 +00:00
|
|
|
|
provinceIdsOptions:[],
|
|
|
|
|
|
currentId:null,
|
2023-12-14 13:11:58 +00:00
|
|
|
|
// 弹出层标题
|
|
|
|
|
|
title: "",
|
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
|
open: false,
|
|
|
|
|
|
|
|
|
|
|
|
openForm: false,
|
|
|
|
|
|
titleForm: "",
|
|
|
|
|
|
|
|
|
|
|
|
titleEmisSite: "",
|
|
|
|
|
|
openEmisSite: false,
|
|
|
|
|
|
|
|
|
|
|
|
// 显示编辑框更多
|
|
|
|
|
|
moreInputVisible: false,
|
|
|
|
|
|
|
|
|
|
|
|
// 弹出展示层
|
|
|
|
|
|
id:null,
|
|
|
|
|
|
titleView:"",
|
|
|
|
|
|
openView: false,
|
|
|
|
|
|
// 删除标志(0代表存在时间范围
|
|
|
|
|
|
daterangeCreateTime: [],
|
|
|
|
|
|
// 删除标志(0代表存在时间范围
|
|
|
|
|
|
daterangeUpdateTime: [],
|
2024-01-02 01:15:26 +00:00
|
|
|
|
//国家数据
|
|
|
|
|
|
countryTree: [],
|
|
|
|
|
|
countryIdsOptions: [],
|
2023-12-14 13:11:58 +00:00
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
siteCode: null,
|
|
|
|
|
|
siteName: null,
|
|
|
|
|
|
siteNameEn: null,
|
|
|
|
|
|
parentSiteCode: null,
|
|
|
|
|
|
parentSiteName: null,
|
|
|
|
|
|
defaultCurrency: null,
|
|
|
|
|
|
cutOffTime: null,
|
|
|
|
|
|
superiorFinanceCenterCode: null,
|
|
|
|
|
|
superiorFinanceCenter: null,
|
|
|
|
|
|
type: null,
|
|
|
|
|
|
defaultDestinationNameCode: null,
|
|
|
|
|
|
defaultSendPlace: null,
|
|
|
|
|
|
countryCode: null,
|
|
|
|
|
|
province: null,
|
|
|
|
|
|
city: null,
|
|
|
|
|
|
county: null,
|
|
|
|
|
|
town: null,
|
|
|
|
|
|
areaCode: null,
|
|
|
|
|
|
areaName: null,
|
|
|
|
|
|
rangeName: null,
|
|
|
|
|
|
phone: null,
|
|
|
|
|
|
principal: null,
|
|
|
|
|
|
manager: null,
|
|
|
|
|
|
managerPhone: null,
|
|
|
|
|
|
salePhone: null,
|
|
|
|
|
|
exigencePhone: null,
|
|
|
|
|
|
fax: null,
|
|
|
|
|
|
siteDesc: null,
|
|
|
|
|
|
dispatchRange: null,
|
|
|
|
|
|
notDispatchRange: null,
|
|
|
|
|
|
publicRemark: null,
|
|
|
|
|
|
privateRemark: null,
|
|
|
|
|
|
orderBy: null,
|
|
|
|
|
|
financialAccount: null,
|
|
|
|
|
|
tbSerName: null,
|
|
|
|
|
|
tbSerTel: null,
|
|
|
|
|
|
tbSerWw: null,
|
|
|
|
|
|
carStartTime: null,
|
|
|
|
|
|
carEndTime: null,
|
|
|
|
|
|
blWeb: null,
|
|
|
|
|
|
joinTime: null,
|
|
|
|
|
|
mapsCoordinate: null,
|
|
|
|
|
|
specserviceRange: null,
|
|
|
|
|
|
qq: null,
|
|
|
|
|
|
email: null,
|
|
|
|
|
|
serviceQuality: null,
|
|
|
|
|
|
salesQuality: null,
|
|
|
|
|
|
levels: null,
|
|
|
|
|
|
warehouseName: null,
|
|
|
|
|
|
siteLimite: null,
|
|
|
|
|
|
jyMobile: null,
|
|
|
|
|
|
jyPwd: null,
|
|
|
|
|
|
blNotInput: null,
|
|
|
|
|
|
stopDate: null,
|
|
|
|
|
|
blAllowAgentMoney: null,
|
|
|
|
|
|
blAllowTopayment: null,
|
|
|
|
|
|
goodsPaymentLimited: null,
|
|
|
|
|
|
topaymentLimited: null,
|
|
|
|
|
|
blRec: null,
|
|
|
|
|
|
blDisp: null,
|
|
|
|
|
|
blCome: null,
|
|
|
|
|
|
blOpenTaobao: null,
|
|
|
|
|
|
blArbitrationDepartment: null,
|
|
|
|
|
|
blAllowAgentSign: null,
|
|
|
|
|
|
blMessage: null,
|
|
|
|
|
|
blProjectclient: null,
|
|
|
|
|
|
blVipSite: null,
|
|
|
|
|
|
blDispatchZt: null,
|
|
|
|
|
|
blBilltoAccount: null,
|
|
|
|
|
|
accountCode: null,
|
|
|
|
|
|
address: null,
|
|
|
|
|
|
dispDeliveryMode: null,
|
|
|
|
|
|
transTypeName: null,
|
|
|
|
|
|
orgName: null,
|
|
|
|
|
|
dataFrom: null,
|
|
|
|
|
|
siteArea: null,
|
|
|
|
|
|
blAllowDispAgentMoney: null,
|
|
|
|
|
|
dispGoodsPaymentLimited: null,
|
|
|
|
|
|
dispDeliverySite: null,
|
|
|
|
|
|
dispDeliverySiteCode: null,
|
|
|
|
|
|
vendorName: null,
|
|
|
|
|
|
creditCode: null,
|
|
|
|
|
|
blCargoService: null,
|
|
|
|
|
|
blHandlingService: null,
|
|
|
|
|
|
pickupCenterSiteCode: null,
|
|
|
|
|
|
pickupCenterSiteName: null,
|
|
|
|
|
|
blDispGood: null,
|
|
|
|
|
|
blPushJd: null,
|
|
|
|
|
|
pushDate: null,
|
|
|
|
|
|
reason: null,
|
|
|
|
|
|
sitePos: null,
|
|
|
|
|
|
distributeCode: null,
|
|
|
|
|
|
blPushSite: null,
|
|
|
|
|
|
siteType: null,
|
|
|
|
|
|
logoType: null,
|
|
|
|
|
|
sizeCode2: null,
|
|
|
|
|
|
sizeCode3: null,
|
|
|
|
|
|
auditStatus: null,
|
|
|
|
|
|
auditDate: null,
|
|
|
|
|
|
auditMan: null,
|
|
|
|
|
|
auditManCode: null,
|
|
|
|
|
|
auditSite: null,
|
|
|
|
|
|
auditSiteCode: null,
|
|
|
|
|
|
blClass: null,
|
|
|
|
|
|
blMaterial: null,
|
|
|
|
|
|
soonPieceType: null,
|
|
|
|
|
|
provinceArea: null,
|
|
|
|
|
|
secondArea: null,
|
|
|
|
|
|
secondAreaCode: null,
|
|
|
|
|
|
provinceAreaCode: null,
|
|
|
|
|
|
blRecName: null,
|
|
|
|
|
|
blDispName: null,
|
|
|
|
|
|
blNotInputName: null,
|
|
|
|
|
|
blDispatchZtName: null,
|
|
|
|
|
|
blAllowAgentMoneyName: null,
|
|
|
|
|
|
blAllowTopaymentName: null,
|
|
|
|
|
|
blCargoServiceName: null,
|
|
|
|
|
|
blHandlingServiceName: null,
|
|
|
|
|
|
blAllowDispAgentMoneyName: null,
|
|
|
|
|
|
blDispGoodName: null,
|
|
|
|
|
|
provinceCode: null,
|
|
|
|
|
|
cityCode: null,
|
|
|
|
|
|
countyCode: null,
|
|
|
|
|
|
townCode: null,
|
|
|
|
|
|
blNotRecName: null,
|
|
|
|
|
|
blNotRec: null,
|
|
|
|
|
|
blNotDispName: null,
|
|
|
|
|
|
blNotDisp: null,
|
|
|
|
|
|
blNotCashOutName: null,
|
|
|
|
|
|
blNotCashOut: null,
|
|
|
|
|
|
remark: null,
|
|
|
|
|
|
delFlag: null,
|
2024-01-02 01:15:26 +00:00
|
|
|
|
countryId: null
|
2023-12-14 13:11:58 +00:00
|
|
|
|
},
|
|
|
|
|
|
// 表单参数
|
|
|
|
|
|
form: {},
|
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
rules: {
|
|
|
|
|
|
id: [
|
|
|
|
|
|
{ required: true, message: "序号不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
|
|
|
this.getList();
|
2024-01-02 01:15:26 +00:00
|
|
|
|
this.getCountryList();
|
2023-12-14 13:11:58 +00:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
/** 查询网点列表 */
|
|
|
|
|
|
getList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
this.queryParams.params = {};
|
|
|
|
|
|
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
|
|
|
|
|
|
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
|
|
|
|
|
|
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
|
|
|
|
|
|
}
|
|
|
|
|
|
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
|
|
|
|
|
|
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
|
|
|
|
|
|
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
|
|
|
|
|
|
}
|
|
|
|
|
|
listEmisSite(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => {
|
|
|
|
|
|
this.emisSiteList = response.rows;
|
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2024-01-02 01:15:26 +00:00
|
|
|
|
getCountryList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
listEmisCountry(this.queryParams).then(response => {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
this.countryTree = [];
|
|
|
|
|
|
this.countryIdsOptions = [];
|
|
|
|
|
|
var cTree={"id":"","label":"国家列表","children":[]};
|
|
|
|
|
|
cTree.children.push({"id":40,"label":"中国"});
|
|
|
|
|
|
this.countryIdsOptions.push({"value":40,"label":"中国"})
|
|
|
|
|
|
//var lastContinentId = -1;
|
|
|
|
|
|
response.rows.forEach(item =>{
|
|
|
|
|
|
if(item.id != 40){
|
|
|
|
|
|
var optItem={value:item.id,label:item.name};
|
|
|
|
|
|
this.countryIdsOptions.push(optItem)
|
|
|
|
|
|
|
|
|
|
|
|
var treeItem={"id":item.id,"label":item.name};
|
|
|
|
|
|
cTree.children.push(treeItem);
|
|
|
|
|
|
}
|
|
|
|
|
|
//lastContinentId = item.id;
|
|
|
|
|
|
});
|
|
|
|
|
|
this.queryParams.countryId = this.currentCountryId;
|
|
|
|
|
|
this.countryTree.push(cTree);
|
|
|
|
|
|
//this.getAreaList();
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
handleCountrySelectionChange(id){
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
var oldCountryId = this.queryParams.countryId;
|
|
|
|
|
|
this.currentCountryId = id;
|
|
|
|
|
|
this.queryParams.countryId = this.currentCountryId;
|
|
|
|
|
|
listEmisCountryArea(this.queryParams).then(response => {
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
this.countryAreaIdsOptionsForm = [];
|
|
|
|
|
|
response.rows.forEach(item =>{
|
|
|
|
|
|
var optItem={value:item.id,label:item.name};
|
|
|
|
|
|
this.countryAreaIdsOptionsForm.push(optItem);
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2023-12-14 13:11:58 +00:00
|
|
|
|
// 取消按钮
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
},
|
|
|
|
|
|
// 表单重置
|
|
|
|
|
|
reset() {
|
|
|
|
|
|
this.form = {
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
siteCode: null,
|
|
|
|
|
|
siteName: null,
|
|
|
|
|
|
siteNameEn: null,
|
|
|
|
|
|
parentSiteId: null,
|
|
|
|
|
|
parentSiteCode: null,
|
|
|
|
|
|
parentSiteName: null,
|
|
|
|
|
|
defaultCurrency: null,
|
|
|
|
|
|
cutOffTime: null,
|
|
|
|
|
|
superiorFinanceCenterCode: null,
|
|
|
|
|
|
superiorFinanceCenter: null,
|
|
|
|
|
|
type: null,
|
|
|
|
|
|
defaultDestinationNameCode: null,
|
|
|
|
|
|
defaultSendPlace: null,
|
|
|
|
|
|
countryCode: null,
|
|
|
|
|
|
province: null,
|
|
|
|
|
|
city: null,
|
|
|
|
|
|
county: null,
|
|
|
|
|
|
town: null,
|
|
|
|
|
|
areaCode: null,
|
|
|
|
|
|
areaName: null,
|
|
|
|
|
|
rangeName: null,
|
|
|
|
|
|
phone: null,
|
|
|
|
|
|
principal: null,
|
|
|
|
|
|
manager: null,
|
|
|
|
|
|
managerPhone: null,
|
|
|
|
|
|
salePhone: null,
|
|
|
|
|
|
exigencePhone: null,
|
|
|
|
|
|
fax: null,
|
|
|
|
|
|
siteDesc: null,
|
|
|
|
|
|
dispatchRange: null,
|
|
|
|
|
|
notDispatchRange: null,
|
|
|
|
|
|
publicRemark: null,
|
|
|
|
|
|
privateRemark: null,
|
|
|
|
|
|
orderBy: null,
|
|
|
|
|
|
financialAccount: null,
|
|
|
|
|
|
tbSerName: null,
|
|
|
|
|
|
tbSerTel: null,
|
|
|
|
|
|
tbSerWw: null,
|
|
|
|
|
|
carStartTime: null,
|
|
|
|
|
|
carEndTime: null,
|
|
|
|
|
|
blWeb: null,
|
|
|
|
|
|
joinTime: null,
|
|
|
|
|
|
mapsCoordinate: null,
|
|
|
|
|
|
specserviceRange: null,
|
|
|
|
|
|
qq: null,
|
|
|
|
|
|
email: null,
|
|
|
|
|
|
serviceQuality: null,
|
|
|
|
|
|
salesQuality: null,
|
|
|
|
|
|
levels: null,
|
|
|
|
|
|
warehouseName: null,
|
|
|
|
|
|
siteLimite: null,
|
|
|
|
|
|
jyMobile: null,
|
|
|
|
|
|
jyPwd: null,
|
|
|
|
|
|
blNotInput: null,
|
|
|
|
|
|
stopDate: null,
|
|
|
|
|
|
blAllowAgentMoney: null,
|
|
|
|
|
|
blAllowTopayment: null,
|
|
|
|
|
|
goodsPaymentLimited: null,
|
|
|
|
|
|
topaymentLimited: null,
|
|
|
|
|
|
blRec: null,
|
|
|
|
|
|
blDisp: null,
|
|
|
|
|
|
blCome: null,
|
|
|
|
|
|
blOpenTaobao: null,
|
|
|
|
|
|
blArbitrationDepartment: null,
|
|
|
|
|
|
blAllowAgentSign: null,
|
|
|
|
|
|
blMessage: null,
|
|
|
|
|
|
blProvide: null,
|
|
|
|
|
|
blProjectclient: null,
|
|
|
|
|
|
blVipSite: null,
|
|
|
|
|
|
blDispatchZt: null,
|
|
|
|
|
|
blBilltoAccount: null,
|
|
|
|
|
|
accountCode: null,
|
|
|
|
|
|
address: null,
|
|
|
|
|
|
dispDeliveryMode: null,
|
|
|
|
|
|
transTypeId: null,
|
|
|
|
|
|
transTypeName: null,
|
|
|
|
|
|
orgId: null,
|
|
|
|
|
|
orgName: null,
|
|
|
|
|
|
dataFrom: null,
|
|
|
|
|
|
siteArea: null,
|
|
|
|
|
|
blAllowDispAgentMoney: null,
|
|
|
|
|
|
dispGoodsPaymentLimited: null,
|
|
|
|
|
|
dispDeliverySite: null,
|
|
|
|
|
|
dispDeliverySiteCode: null,
|
|
|
|
|
|
vendorName: null,
|
|
|
|
|
|
creditCode: null,
|
|
|
|
|
|
blCargoService: null,
|
|
|
|
|
|
blHandlingService: null,
|
|
|
|
|
|
pickupCenterSiteCode: null,
|
|
|
|
|
|
pickupCenterSiteName: null,
|
|
|
|
|
|
pickupCenterSiteId: null,
|
|
|
|
|
|
blDispGood: null,
|
|
|
|
|
|
blPushJd: null,
|
|
|
|
|
|
pushDate: null,
|
|
|
|
|
|
reason: null,
|
|
|
|
|
|
sitePos: null,
|
|
|
|
|
|
distributeCode: null,
|
|
|
|
|
|
dispDeliverySiteId: null,
|
|
|
|
|
|
blPushSite: null,
|
|
|
|
|
|
siteType: null,
|
|
|
|
|
|
logoType: null,
|
|
|
|
|
|
sizeCode2: null,
|
|
|
|
|
|
sizeCode3: null,
|
|
|
|
|
|
auditStatus: null,
|
|
|
|
|
|
auditDate: null,
|
|
|
|
|
|
auditMan: null,
|
|
|
|
|
|
auditManCode: null,
|
|
|
|
|
|
auditSite: null,
|
|
|
|
|
|
auditSiteCode: null,
|
|
|
|
|
|
blClass: null,
|
|
|
|
|
|
blMaterial: null,
|
|
|
|
|
|
soonPieceType: null,
|
|
|
|
|
|
provinceArea: null,
|
|
|
|
|
|
secondArea: null,
|
|
|
|
|
|
secondAreaCode: null,
|
|
|
|
|
|
provinceAreaCode: null,
|
|
|
|
|
|
blRecName: null,
|
|
|
|
|
|
blDispName: null,
|
|
|
|
|
|
blNotInputName: null,
|
|
|
|
|
|
blDispatchZtName: null,
|
|
|
|
|
|
blAllowAgentMoneyName: null,
|
|
|
|
|
|
blAllowTopaymentName: null,
|
|
|
|
|
|
blCargoServiceName: null,
|
|
|
|
|
|
blHandlingServiceName: null,
|
|
|
|
|
|
blAllowDispAgentMoneyName: null,
|
|
|
|
|
|
blDispGoodName: null,
|
|
|
|
|
|
provinceCode: null,
|
|
|
|
|
|
cityCode: null,
|
|
|
|
|
|
countyCode: null,
|
|
|
|
|
|
townCode: null,
|
|
|
|
|
|
blNotRecName: null,
|
|
|
|
|
|
blNotRec: null,
|
|
|
|
|
|
blNotDispName: null,
|
|
|
|
|
|
blNotDisp: null,
|
|
|
|
|
|
blNotCashOutName: null,
|
|
|
|
|
|
blNotCashOut: null,
|
|
|
|
|
|
remark: null,
|
|
|
|
|
|
tenantId: null,
|
|
|
|
|
|
delFlag: null,
|
|
|
|
|
|
createBy: null,
|
|
|
|
|
|
createTime: null,
|
|
|
|
|
|
updateBy: null,
|
|
|
|
|
|
updateTime: null
|
|
|
|
|
|
};
|
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
|
resetQuery() {
|
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
},
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
|
handleAdd(row) {
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
this.open = true;
|
|
|
|
|
|
this.title = "新增";
|
|
|
|
|
|
|
|
|
|
|
|
// 子组件打开模式
|
|
|
|
|
|
// if(row != undefined){
|
|
|
|
|
|
// this.currentParentId = row.id
|
|
|
|
|
|
// }
|
|
|
|
|
|
// this.openEmisSite = true;
|
|
|
|
|
|
// this.titleEmisSite = "新增";
|
|
|
|
|
|
},
|
|
|
|
|
|
handleShowMoreInput(){
|
2024-01-02 01:15:26 +00:00
|
|
|
|
console.log(this.moreInputVisible);
|
2023-12-14 13:11:58 +00:00
|
|
|
|
this.moreInputVisible = !this.moreInputVisible;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
const id = row.id || this.ids
|
|
|
|
|
|
getEmisSite(id).then(response => {
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
this.open = true;
|
|
|
|
|
|
this.title = "修改";
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 子组件打开模式
|
|
|
|
|
|
// this.currentId= row.id || this.ids;
|
|
|
|
|
|
// this.openEmisSite = true;
|
|
|
|
|
|
// this.titleEmisSite = "修改";
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
handleView(row) {
|
|
|
|
|
|
this.id=row.id;
|
|
|
|
|
|
this.titleView="查看";
|
|
|
|
|
|
this.openView=true;
|
|
|
|
|
|
// this.router.push({ path: '/emis/emisSite/viewDetail', query: { id: row.id }})
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
|
submitForm() {
|
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
|
updateEmisSite(this.form).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
addEmisSite(this.form).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
handleFormChanged(){
|
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
cancelForm(){
|
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
|
this.$modal.confirm('是否确认删除').then(function() {
|
|
|
|
|
|
return delEmisSite(ids);
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
|
handleExport() {
|
|
|
|
|
|
// this.download('emis/emisSite/export', {
|
|
|
|
|
|
// ...this.queryParams
|
|
|
|
|
|
// }, `emisSite_${new Date().getTime()}.xlsx`)
|
|
|
|
|
|
const loadingInstance = this.$loading({
|
|
|
|
|
|
text: '正在导出...'
|
|
|
|
|
|
})
|
|
|
|
|
|
var qParam = {...this.queryParams};
|
|
|
|
|
|
qParam.pageNum=1;
|
|
|
|
|
|
qParam.pageSize=5000;
|
|
|
|
|
|
|
|
|
|
|
|
listEmisSite(this.addDateRange(qParam, this.dateTimeRange)).then(response => {
|
|
|
|
|
|
this.downloadLoading = false
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
const curList = response.rows
|
|
|
|
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
|
|
|
|
const tHeader = ['序号','站点代码','站点名称','英文名称','parent_site_id','父站点id','父站点名称','缺省货币','截单时间','财务中心代码','财务中心名称','类型','类型','默认发件地','国家代码','省代码','市代码','区代码','乡镇代码','大区代码','大区名称','范围名称','电话','负责人','管理人','管理人电话','销售电话','紧急电话','传真','站点描述','派送区域','不派送区域','公共备注','私有备注','排序','结算账户','tb服务姓名','tb服务电话','tb服务网址','car开始时间','car结束时间','bl_web','加盟时间','地图经纬度','特殊区域','qq','email','服务数量','服务数量','等级','仓库名称','站点限制','jy电话','jy密码','bl_not_input','停止日期','bl_allow_agent_money','bl_allow_topayment','goods_payment_limited','派到付款限额','bl_rec','bl_disp','bl_come','bl_open_taobao','bl_arbitration_department','bl_allow_agent_sign','bl_message','bl_provide','bl_projectclient','bl_vip_site','bl_dispatch_zt','bl_billto_account','账套编号','地址','disp_delivery_mode','trans_type_id','trans_type_name','org_id','org_name','数据绑定来源','站点区域','允许代理金额','disp_goods_payment_limited','disp_delivery_site','disp_delivery_site_code','vendor_name','credit_code','bl_cargo_service','bl_handling_service','pickup_center_site_code','pickup_center_site_name','pickup_center_site_id','bl_disp_good','bl_push_jd','push_date','reason','site_pos','distribute_code','disp_delivery_site_id','bl_push_site','site_type','logo_type','size_code2','size_code3','audit_status','audit_date','audit_man','audit_man_code','audit_site','audit_site_code','bl_class','bl_material','soon_piece_type','province_area','second_area','second_area_code','province_area_code','bl_rec_name','bl_disp_name','bl_not_input_name','bl_dispatch_zt_name','bl_allow_agent_money_name','bl_allow_topayment_name','bl_cargo_service_name','bl_handling_service_name','bl_allow_disp_agent_money_name','province_area_code','province_code','city_code','county_code','town_code','bl_not_rec_name','bl_not_rec','bl_not_disp_name','bl_not_disp','bl_not_cash_out_name','bl_not_cash_out','备注','租户ID','删除标志(0代表存在','创建者','创建时间','更新者','更新时间',];
|
|
|
|
|
|
const filterVal = ['id','siteCode','siteName','siteNameEn','parentSiteId','parentSiteCode','parentSiteName','defaultCurrency','cutOffTime','superiorFinanceCenterCode','superiorFinanceCenter','type','defaultDestinationNameCode','defaultSendPlace','countryCode','province','city','county','town','areaCode','areaName','rangeName','phone','principal','manager','managerPhone','salePhone','exigencePhone','fax','siteDesc','dispatchRange','notDispatchRange','publicRemark','privateRemark','orderBy','financialAccount','tbSerName','tbSerTel','tbSerWw','carStartTime','carEndTime','blWeb','joinTime','mapsCoordinate','specserviceRange','qq','email','serviceQuality','salesQuality','levels','warehouseName','siteLimite','jyMobile','jyPwd','blNotInput','stopDate','blAllowAgentMoney','blAllowTopayment','goodsPaymentLimited','topaymentLimited','blRec','blDisp','blCome','blOpenTaobao','blArbitrationDepartment','blAllowAgentSign','blMessage','blProvide','blProjectclient','blVipSite','blDispatchZt','blBilltoAccount','accountCode','address','dispDeliveryMode','transTypeId','transTypeName','orgId','orgName','dataFrom','siteArea','blAllowDispAgentMoney','dispGoodsPaymentLimited','dispDeliverySite','dispDeliverySiteCode','vendorName','creditCode','blCargoService','blHandlingService','pickupCenterSiteCode','pickupCenterSiteName','pickupCenterSiteId','blDispGood','blPushJd','pushDate','reason','sitePos','distributeCode','dispDeliverySiteId','blPushSite','siteType','logoType','sizeCode2','sizeCode3','auditStatus','auditDate','auditMan','auditManCode','auditSite','auditSiteCode','blClass','blMaterial','soonPieceType','provinceArea','secondArea','secondAreaCode','provinceAreaCode','blRecName','blDispName','blNotInputName','blDispatchZtName','blAllowAgentMoneyName','blAllowTopaymentName','blCargoServiceName','blHandlingServiceName','blAllowDispAgentMoneyName','blDispGoodName','provinceCode','cityCode','countyCode','townCode','blNotRecName','blNotRec','blNotDispName','blNotDisp','blNotCashOutName','blNotCashOut','remark','tenantId','delFlag','createBy','createTime','updateBy','updateTime',];
|
|
|
|
|
|
const data = this.formatJson(filterVal, curList, response.rows)
|
|
|
|
|
|
excel.export_json_to_excel({
|
|
|
|
|
|
header: tHeader,
|
|
|
|
|
|
data,
|
|
|
|
|
|
filename: '网点',
|
|
|
|
|
|
autoWidth: true
|
|
|
|
|
|
})
|
|
|
|
|
|
loadingInstance.close()
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
formatJson(filterVal, jsonData, resData) {
|
|
|
|
|
|
let index = 0
|
|
|
|
|
|
return jsonData.map(v => filterVal.map(j => {
|
|
|
|
|
|
if (j === 'index') {
|
|
|
|
|
|
return ++index
|
|
|
|
|
|
}
|
|
|
|
|
|
if (j === 'status') {
|
|
|
|
|
|
var statusStr='xxx'
|
|
|
|
|
|
if(v[j] == 10){
|
|
|
|
|
|
statusStr='xxx'
|
|
|
|
|
|
}
|
|
|
|
|
|
return statusStr;
|
|
|
|
|
|
}
|
|
|
|
|
|
return v[j]
|
|
|
|
|
|
}))
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 列索引函数 */
|
|
|
|
|
|
getIndex($index) {
|
|
|
|
|
|
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + $index + 1
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 时间搜索响应函数 */
|
|
|
|
|
|
dateTimeChange(value){
|
|
|
|
|
|
this.dateTimeRange=value;
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.el-divider{
|
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
|
background: 0 0;
|
|
|
|
|
|
border-top: 1px solid #E6EBF5;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-divider__text {
|
|
|
|
|
|
color: #0955ee;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|