|
@@ -6,366 +6,368 @@
|
|
|
<a id="merchantInfoManagement-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
|
</template>
|
|
|
</a-page-header>
|
|
|
- <a-form-model
|
|
|
- id="merchantInfoManagementEdit-form"
|
|
|
- ref="ruleForm"
|
|
|
- :model="form"
|
|
|
- :rules="rules"
|
|
|
- :label-col="formItemLayout.labelCol"
|
|
|
- :wrapper-col="formItemLayout.wrapperCol">
|
|
|
- <!-- 基础信息 -->
|
|
|
- <a-card size="small" :bordered="false" class="merchantInfoManagementEdit-cont">
|
|
|
- <a-collapse :activeKey="['1']">
|
|
|
- <a-collapse-panel key="1" header="基础信息">
|
|
|
- <a-row>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="经销商名称" prop="dealerName">
|
|
|
- <a-input v-model.trim="form.dealerName" id="merchantInfoManagementEdit-dealerName" :maxLength="30" allowClear placeholder="请输入经销商名称(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="经销商别名" prop="dealerAlias">
|
|
|
- <a-input v-model.trim="form.dealerAlias" id="merchantInfoManagementEdit-dealerAlias" :maxLength="30" allowClear placeholder="请输入经销商别名(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="商户类型" prop="dealerType">
|
|
|
- <v-select
|
|
|
- code="DEALER_TYPE"
|
|
|
- id="merchantInfoManagementEdit-dealerType"
|
|
|
- v-model="form.dealerType"
|
|
|
- allowClear
|
|
|
- placeholder="请选择商户类型"></v-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系人1" prop="contact">
|
|
|
- <a-input v-model.trim="form.contact" id="merchantInfoManagementEdit-contact" :maxLength="30" allowClear placeholder="请输入联系人1(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系手机1" prop="contactMobile">
|
|
|
- <a-input v-model.trim="form.contactMobile" id="merchantInfoManagementEdit-contactMobile" :maxLength="11" allowClear placeholder="请输入联系手机1(最多11个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系角色1" prop="contactRole">
|
|
|
- <a-input v-model.trim="form.contactRole" id="merchantInfoManagementEdit-contactRole" :maxLength="30" allowClear placeholder="请输入联系角色1(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系电话" prop="dealerTelephone">
|
|
|
- <a-input v-model.trim="form.dealerTelephone" id="merchantInfoManagementEdit-dealerTelephone" :maxLength="13" allowClear placeholder="请输入联系电话" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16">
|
|
|
- <a-form-model-item label="地址" required style="margin: 0;" :label-col="{span:4}" :wrapper-col="{span:20}">
|
|
|
- <a-row :gutter="20">
|
|
|
- <!-- 地址 -->
|
|
|
- <a-col span="8">
|
|
|
- <a-form-model-item prop="provinceSn">
|
|
|
- <a-select id="merchantInfoManagementEdit-provinceSn" @change="getCityList" v-model="form.provinceSn" placeholder="请选择省">
|
|
|
- <a-select-option v-for="item in addrProvinceList" :value="item.areaSn" :key="item.areaSn + 'a'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col span="8">
|
|
|
- <a-form-model-item prop="citySn">
|
|
|
- <a-select id="merchantInfoManagementEdit-citySn" @change="getAreaList" v-model="form.citySn" placeholder="请选择市">
|
|
|
- <a-select-option v-for="item in addrCityList" :value="item.areaSn" :key="item.areaSn + 'b'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col span="8">
|
|
|
- <a-form-model-item prop="districtSn">
|
|
|
- <a-select id="merchantInfoManagementEdit-districtSn" @change="areaCharged" v-model="form.districtSn" placeholder="请选择区/县">
|
|
|
- <a-select-option v-for="item in addrDistrictList" :value="item.areaSn" :key="item.areaSn + 'c'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="详细地址" prop="address">
|
|
|
- <a-input
|
|
|
- id="merchantInfoManagementEdit-address"
|
|
|
- :maxLength="60"
|
|
|
- v-model="form.address"
|
|
|
- placeholder="请输入详细地址(最多60个字符)"
|
|
|
- allowClear />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- </a-card>
|
|
|
- <!-- 公司信息 -->
|
|
|
- <a-card size="small" :bordered="false" class="merchantInfoManagementEdit-cont">
|
|
|
- <a-collapse>
|
|
|
- <a-collapse-panel key="1" header="公司信息">
|
|
|
- <a-row>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="经营方式" prop="busniessMode" help="(例:国有企业)">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.busniessMode"
|
|
|
- id="merchantInfoManagementEdit-busniessMode"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入经营方式(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="经营项目" prop="busniessItmes">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.busniessItmes"
|
|
|
- id="merchantInfoManagementEdit-busniessItmes"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入经营项目(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="公司规模" prop="busniessScope" help="(例:100-999人)">
|
|
|
- <a-input-number
|
|
|
- id="merchantInfoManagementEdit-busniessScope"
|
|
|
- v-model="form.busniessScope"
|
|
|
- :precision="0"
|
|
|
- :min="1"
|
|
|
- :max="999999"
|
|
|
- placeholder="请输入"
|
|
|
- style="width: 100%;" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="成立时间" prop="buildDate">
|
|
|
- <a-date-picker
|
|
|
- style="width:100%"
|
|
|
- id="merchantInfoManagementEdit-buildDate"
|
|
|
- :disabledDate="disabledDate"
|
|
|
- v-model="form.buildDate"
|
|
|
- :format="dateFormat"
|
|
|
- placeholder="请选择日期" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="一般纳税人" prop="isTaxpayer">
|
|
|
- <v-select
|
|
|
- code="FLAG"
|
|
|
- id="customerManagementEdit-isTaxpayer"
|
|
|
- v-model="form.isTaxpayer"
|
|
|
- allowClear
|
|
|
- placeholder="请选择是否"
|
|
|
- ></v-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="身份证号码" prop="indentityCard">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.indentityCard"
|
|
|
- id="merchantInfoManagementEdit-indentityCard"
|
|
|
- :maxLength="18"
|
|
|
- allowClear
|
|
|
- placeholder="请输入身份证号码(最多18个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="生日" prop="brithday">
|
|
|
- <a-date-picker
|
|
|
- style="width:100%"
|
|
|
- id="merchantInfoManagementEdit-brithday"
|
|
|
- :disabledDate="disabledDate"
|
|
|
- v-model="form.brithday"
|
|
|
- :format="dateFormat"
|
|
|
- placeholder="请选择日期" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="籍贯" prop="nativePlace">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.nativePlace"
|
|
|
- id="merchantInfoManagementEdit-nativePlace"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入籍贯(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="邮箱" prop="mail">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.mail"
|
|
|
- id="merchantInfoManagementEdit-mail"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入邮箱(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系人2" prop="contact2">
|
|
|
- <a-input v-model.trim="form.contact2" id="merchantInfoManagementEdit-contact2" :maxLength="30" allowClear placeholder="请输入联系人2(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系手机2" prop="contactMobile2">
|
|
|
- <a-input v-model.trim="form.contactMobile2" id="merchantInfoManagementEdit-contactMobile2" :maxLength="11" allowClear placeholder="请输入联系手机2(最多11个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="联系角色2" prop="contractRole2">
|
|
|
- <a-input v-model.trim="form.contractRole2" id="merchantInfoManagementEdit-contractRole2" :maxLength="30" allowClear placeholder="请输入联系角色2(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="邮政编码" prop="zipCode">
|
|
|
- <a-input v-model.trim="form.zipCode" id="merchantInfoManagementEdit-zipCode" :maxLength="6" allowClear placeholder="请输入邮政编码(最多6个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="收货人" prop="receiveContact">
|
|
|
- <a-input v-model.trim="form.receiveContact" id="merchantInfoManagementEdit-receiveContact" :maxLength="30" allowClear placeholder="请输入收货人(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="收货电话" prop="receiveMobile">
|
|
|
- <a-input v-model.trim="form.receiveMobile" id="merchantInfoManagementEdit-receiveMobile" :maxLength="13" allowClear placeholder="请输入收货电话" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16">
|
|
|
- <a-form-model-item label="收货地址" style="margin: 0;" :label-col="{span:4}" :wrapper-col="{span:20}">
|
|
|
- <a-row :gutter="20">
|
|
|
- <!-- 地址 -->
|
|
|
- <a-col span="8">
|
|
|
- <a-form-model-item prop="receiveProvinceSn">
|
|
|
- <a-select id="merchantInfoManagementEdit-receiveProvinceSn" @change="getCityList1" v-model="form.receiveProvinceSn" placeholder="请选择省">
|
|
|
- <a-select-option v-for="item in addrProvinceList1" :value="item.areaSn" :key="item.areaSn + 'a'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col span="8">
|
|
|
- <a-form-model-item prop="receiveCitySn">
|
|
|
- <a-select id="merchantInfoManagementEdit-receiveCitySn" @change="getAreaList1" v-model="form.receiveCitySn" placeholder="请选择市">
|
|
|
- <a-select-option v-for="item in addrCityList1" :value="item.areaSn" :key="item.areaSn + 'b'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col span="8">
|
|
|
- <a-form-model-item prop="receiveDistrictSn">
|
|
|
- <a-select id="merchantInfoManagementEdit-receiveDistrictSn" @change="areaCharged1" v-model="form.receiveDistrictSn" placeholder="请选择区/县">
|
|
|
- <a-select-option v-for="item in addrDistrictList1" :value="item.areaSn" :key="item.areaSn + 'c'">{{ item.name }}</a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="收货详细地址" prop="receiveAddress">
|
|
|
- <a-input
|
|
|
- id="merchantInfoManagementEdit-receiveAddress"
|
|
|
- :maxLength="60"
|
|
|
- v-model="form.receiveAddress"
|
|
|
- placeholder="请输入收货详细地址(最多60个字符)"
|
|
|
- allowClear />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="银行账户" prop="tradeAccountName" help="(例:张三)">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.tradeAccountName"
|
|
|
- id="merchantInfoManagementEdit-tradeAccountName"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入银行账户(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="开户行" prop="tradeBankName" help="(例:交通银行)">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.tradeBankName"
|
|
|
- id="merchantInfoManagementEdit-tradeBankName"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入开户行(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="银行账号" prop="tradeBankAccount" help="(例:1123 5677 1112 22342 1123)">
|
|
|
- <a-input
|
|
|
- v-model.trim="form.tradeBankAccount"
|
|
|
- id="merchantInfoManagementEdit-tradeBankAccount"
|
|
|
- :maxLength="30"
|
|
|
- allowClear
|
|
|
- placeholder="请输入银行账号(最多30个字符)" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- </a-card>
|
|
|
- <!-- 总部信息 -->
|
|
|
- <a-card size="small" :bordered="false" class="merchantInfoManagementEdit-cont">
|
|
|
- <a-collapse>
|
|
|
- <a-collapse-panel key="1" header="总部信息">
|
|
|
- <a-row>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="箭冠汽配代码" prop="jgAutoPartsCode">
|
|
|
- <a-input
|
|
|
- id="merchantInfoManagementEdit-jgAutoPartsCode"
|
|
|
- :maxLength="30"
|
|
|
- v-model="form.jgAutoPartsCode"
|
|
|
- placeholder="请输入箭冠汽配代码(最多30个字符)"
|
|
|
- allowClear />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="门头更换日期" prop="jgDoorHeaderChangeTime">
|
|
|
- <a-date-picker
|
|
|
- style="width:100%"
|
|
|
- id="merchantInfoManagementEdit-jgDoorHeaderChangeTime"
|
|
|
- :disabledDate="disabledDate"
|
|
|
- v-model="form.jgDoorHeaderChangeTime"
|
|
|
- :format="dateFormat"
|
|
|
- placeholder="请选择日期" />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
- <a-form-model-item label="特约价是否可见" prop="isShowSpecialPrice">
|
|
|
- <a-radio-group
|
|
|
- name="radioGroup"
|
|
|
- v-model="form.isShowSpecialPrice"
|
|
|
- :disabled="detailData&&detailData.dealerLevel == 'SPECIAL'"
|
|
|
- id="merchantInfoManagementEdit-isShowSpecialPrice" >
|
|
|
- <a-radio :value="1">是</a-radio>
|
|
|
- <a-radio :value="0">否</a-radio>
|
|
|
- </a-radio-group>
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16">
|
|
|
- <a-form-model-item label="备注" prop="remark" :label-col="{span:4}" :wrapper-col="{span:20}">
|
|
|
- <a-textarea
|
|
|
- id="merchantInfoManagementEdit-remark"
|
|
|
- :maxLength="300"
|
|
|
- v-model="form.remark"
|
|
|
- placeholder="请输入备注(最多300个字符)"
|
|
|
- allowClear />
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-collapse-panel>
|
|
|
- </a-collapse>
|
|
|
- </a-card>
|
|
|
- </a-form-model>
|
|
|
- <a-affix :offset-bottom="0">
|
|
|
- <div style="text-align: center;width: 100%;background-color: #fff;padding: 12px 0;box-shadow: 0 0 20px #dcdee2;">
|
|
|
- <a-button
|
|
|
- type="primary"
|
|
|
- class="button-primary"
|
|
|
- id="merchantInfoManagementEdit-submit-btn"
|
|
|
- size="large"
|
|
|
- @click="handleSubmit"
|
|
|
- style="padding: 0 60px;">提交</a-button>
|
|
|
- </div>
|
|
|
- </a-affix>
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
+ <a-form-model
|
|
|
+ id="merchantInfoManagementEdit-form"
|
|
|
+ ref="ruleForm"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ :label-col="formItemLayout.labelCol"
|
|
|
+ :wrapper-col="formItemLayout.wrapperCol">
|
|
|
+ <!-- 基础信息 -->
|
|
|
+ <a-card size="small" :bordered="false" class="merchantInfoManagementEdit-cont">
|
|
|
+ <a-collapse :activeKey="['1']">
|
|
|
+ <a-collapse-panel key="1" header="基础信息">
|
|
|
+ <a-row>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="经销商名称" prop="dealerName">
|
|
|
+ <a-input v-model.trim="form.dealerName" id="merchantInfoManagementEdit-dealerName" :maxLength="30" allowClear placeholder="请输入经销商名称(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="经销商别名" prop="dealerAlias">
|
|
|
+ <a-input v-model.trim="form.dealerAlias" id="merchantInfoManagementEdit-dealerAlias" :maxLength="30" allowClear placeholder="请输入经销商别名(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="商户类型" prop="dealerType">
|
|
|
+ <v-select
|
|
|
+ code="DEALER_TYPE"
|
|
|
+ id="merchantInfoManagementEdit-dealerType"
|
|
|
+ v-model="form.dealerType"
|
|
|
+ allowClear
|
|
|
+ placeholder="请选择商户类型"></v-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系人1" prop="contact">
|
|
|
+ <a-input v-model.trim="form.contact" id="merchantInfoManagementEdit-contact" :maxLength="30" allowClear placeholder="请输入联系人1(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系手机1" prop="contactMobile">
|
|
|
+ <a-input v-model.trim="form.contactMobile" id="merchantInfoManagementEdit-contactMobile" :maxLength="11" allowClear placeholder="请输入联系手机1(最多11个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系角色1" prop="contactRole">
|
|
|
+ <a-input v-model.trim="form.contactRole" id="merchantInfoManagementEdit-contactRole" :maxLength="30" allowClear placeholder="请输入联系角色1(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系电话" prop="dealerTelephone">
|
|
|
+ <a-input v-model.trim="form.dealerTelephone" id="merchantInfoManagementEdit-dealerTelephone" :maxLength="13" allowClear placeholder="请输入联系电话" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16">
|
|
|
+ <a-form-model-item label="地址" required style="margin: 0;" :label-col="{span:4}" :wrapper-col="{span:20}">
|
|
|
+ <a-row :gutter="20">
|
|
|
+ <!-- 地址 -->
|
|
|
+ <a-col span="8">
|
|
|
+ <a-form-model-item prop="provinceSn">
|
|
|
+ <a-select id="merchantInfoManagementEdit-provinceSn" @change="getCityList" v-model="form.provinceSn" placeholder="请选择省">
|
|
|
+ <a-select-option v-for="item in addrProvinceList" :value="item.areaSn" :key="item.areaSn + 'a'">{{ item.name }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col span="8">
|
|
|
+ <a-form-model-item prop="citySn">
|
|
|
+ <a-select id="merchantInfoManagementEdit-citySn" @change="getAreaList" v-model="form.citySn" placeholder="请选择市">
|
|
|
+ <a-select-option v-for="item in addrCityList" :value="item.areaSn" :key="item.areaSn + 'b'">{{ item.name }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col span="8">
|
|
|
+ <a-form-model-item prop="districtSn">
|
|
|
+ <a-select id="merchantInfoManagementEdit-districtSn" @change="areaCharged" v-model="form.districtSn" placeholder="请选择区/县">
|
|
|
+ <a-select-option v-for="item in addrDistrictList" :value="item.areaSn" :key="item.areaSn + 'c'">{{ item.name }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="详细地址" prop="address">
|
|
|
+ <a-input
|
|
|
+ id="merchantInfoManagementEdit-address"
|
|
|
+ :maxLength="60"
|
|
|
+ v-model="form.address"
|
|
|
+ placeholder="请输入详细地址(最多60个字符)"
|
|
|
+ allowClear />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-collapse-panel>
|
|
|
+ </a-collapse>
|
|
|
+ </a-card>
|
|
|
+ <!-- 公司信息 -->
|
|
|
+ <a-card size="small" :bordered="false" class="merchantInfoManagementEdit-cont">
|
|
|
+ <a-collapse>
|
|
|
+ <a-collapse-panel key="1" header="公司信息">
|
|
|
+ <a-row>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="经营方式" prop="busniessMode" help="(例:国有企业)">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.busniessMode"
|
|
|
+ id="merchantInfoManagementEdit-busniessMode"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入经营方式(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="经营项目" prop="busniessItmes">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.busniessItmes"
|
|
|
+ id="merchantInfoManagementEdit-busniessItmes"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入经营项目(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="公司规模" prop="busniessScope" help="(例:100-999人)">
|
|
|
+ <a-input-number
|
|
|
+ id="merchantInfoManagementEdit-busniessScope"
|
|
|
+ v-model="form.busniessScope"
|
|
|
+ :precision="0"
|
|
|
+ :min="1"
|
|
|
+ :max="999999"
|
|
|
+ placeholder="请输入"
|
|
|
+ style="width: 100%;" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="成立时间" prop="buildDate">
|
|
|
+ <a-date-picker
|
|
|
+ style="width:100%"
|
|
|
+ id="merchantInfoManagementEdit-buildDate"
|
|
|
+ :disabledDate="disabledDate"
|
|
|
+ v-model="form.buildDate"
|
|
|
+ :format="dateFormat"
|
|
|
+ placeholder="请选择日期" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="一般纳税人" prop="isTaxpayer">
|
|
|
+ <v-select
|
|
|
+ code="FLAG"
|
|
|
+ id="customerManagementEdit-isTaxpayer"
|
|
|
+ v-model="form.isTaxpayer"
|
|
|
+ allowClear
|
|
|
+ placeholder="请选择是否"
|
|
|
+ ></v-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="身份证号码" prop="indentityCard">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.indentityCard"
|
|
|
+ id="merchantInfoManagementEdit-indentityCard"
|
|
|
+ :maxLength="18"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入身份证号码(最多18个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="生日" prop="brithday">
|
|
|
+ <a-date-picker
|
|
|
+ style="width:100%"
|
|
|
+ id="merchantInfoManagementEdit-brithday"
|
|
|
+ :disabledDate="disabledDate"
|
|
|
+ v-model="form.brithday"
|
|
|
+ :format="dateFormat"
|
|
|
+ placeholder="请选择日期" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="籍贯" prop="nativePlace">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.nativePlace"
|
|
|
+ id="merchantInfoManagementEdit-nativePlace"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入籍贯(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="邮箱" prop="mail">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.mail"
|
|
|
+ id="merchantInfoManagementEdit-mail"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入邮箱(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系人2" prop="contact2">
|
|
|
+ <a-input v-model.trim="form.contact2" id="merchantInfoManagementEdit-contact2" :maxLength="30" allowClear placeholder="请输入联系人2(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系手机2" prop="contactMobile2">
|
|
|
+ <a-input v-model.trim="form.contactMobile2" id="merchantInfoManagementEdit-contactMobile2" :maxLength="11" allowClear placeholder="请输入联系手机2(最多11个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="联系角色2" prop="contractRole2">
|
|
|
+ <a-input v-model.trim="form.contractRole2" id="merchantInfoManagementEdit-contractRole2" :maxLength="30" allowClear placeholder="请输入联系角色2(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="邮政编码" prop="zipCode">
|
|
|
+ <a-input v-model.trim="form.zipCode" id="merchantInfoManagementEdit-zipCode" :maxLength="6" allowClear placeholder="请输入邮政编码(最多6个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="收货人" prop="receiveContact">
|
|
|
+ <a-input v-model.trim="form.receiveContact" id="merchantInfoManagementEdit-receiveContact" :maxLength="30" allowClear placeholder="请输入收货人(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="收货电话" prop="receiveMobile">
|
|
|
+ <a-input v-model.trim="form.receiveMobile" id="merchantInfoManagementEdit-receiveMobile" :maxLength="13" allowClear placeholder="请输入收货电话" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16">
|
|
|
+ <a-form-model-item label="收货地址" style="margin: 0;" :label-col="{span:4}" :wrapper-col="{span:20}">
|
|
|
+ <a-row :gutter="20">
|
|
|
+ <!-- 地址 -->
|
|
|
+ <a-col span="8">
|
|
|
+ <a-form-model-item prop="receiveProvinceSn">
|
|
|
+ <a-select id="merchantInfoManagementEdit-receiveProvinceSn" @change="getCityList1" v-model="form.receiveProvinceSn" placeholder="请选择省">
|
|
|
+ <a-select-option v-for="item in addrProvinceList1" :value="item.areaSn" :key="item.areaSn + 'a'">{{ item.name }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col span="8">
|
|
|
+ <a-form-model-item prop="receiveCitySn">
|
|
|
+ <a-select id="merchantInfoManagementEdit-receiveCitySn" @change="getAreaList1" v-model="form.receiveCitySn" placeholder="请选择市">
|
|
|
+ <a-select-option v-for="item in addrCityList1" :value="item.areaSn" :key="item.areaSn + 'b'">{{ item.name }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col span="8">
|
|
|
+ <a-form-model-item prop="receiveDistrictSn">
|
|
|
+ <a-select id="merchantInfoManagementEdit-receiveDistrictSn" @change="areaCharged1" v-model="form.receiveDistrictSn" placeholder="请选择区/县">
|
|
|
+ <a-select-option v-for="item in addrDistrictList1" :value="item.areaSn" :key="item.areaSn + 'c'">{{ item.name }}</a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="收货详细地址" prop="receiveAddress">
|
|
|
+ <a-input
|
|
|
+ id="merchantInfoManagementEdit-receiveAddress"
|
|
|
+ :maxLength="60"
|
|
|
+ v-model="form.receiveAddress"
|
|
|
+ placeholder="请输入收货详细地址(最多60个字符)"
|
|
|
+ allowClear />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="银行账户" prop="tradeAccountName" help="(例:张三)">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.tradeAccountName"
|
|
|
+ id="merchantInfoManagementEdit-tradeAccountName"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入银行账户(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="开户行" prop="tradeBankName" help="(例:交通银行)">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.tradeBankName"
|
|
|
+ id="merchantInfoManagementEdit-tradeBankName"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入开户行(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="银行账号" prop="tradeBankAccount" help="(例:1123 5677 1112 22342 1123)">
|
|
|
+ <a-input
|
|
|
+ v-model.trim="form.tradeBankAccount"
|
|
|
+ id="merchantInfoManagementEdit-tradeBankAccount"
|
|
|
+ :maxLength="30"
|
|
|
+ allowClear
|
|
|
+ placeholder="请输入银行账号(最多30个字符)" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-collapse-panel>
|
|
|
+ </a-collapse>
|
|
|
+ </a-card>
|
|
|
+ <!-- 总部信息 -->
|
|
|
+ <a-card size="small" :bordered="false" class="merchantInfoManagementEdit-cont">
|
|
|
+ <a-collapse>
|
|
|
+ <a-collapse-panel key="1" header="总部信息">
|
|
|
+ <a-row>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="箭冠汽配代码" prop="jgAutoPartsCode">
|
|
|
+ <a-input
|
|
|
+ id="merchantInfoManagementEdit-jgAutoPartsCode"
|
|
|
+ :maxLength="30"
|
|
|
+ v-model="form.jgAutoPartsCode"
|
|
|
+ placeholder="请输入箭冠汽配代码(最多30个字符)"
|
|
|
+ allowClear />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="门头更换日期" prop="jgDoorHeaderChangeTime">
|
|
|
+ <a-date-picker
|
|
|
+ style="width:100%"
|
|
|
+ id="merchantInfoManagementEdit-jgDoorHeaderChangeTime"
|
|
|
+ :disabledDate="disabledDate"
|
|
|
+ v-model="form.jgDoorHeaderChangeTime"
|
|
|
+ :format="dateFormat"
|
|
|
+ placeholder="请选择日期" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
+ <a-form-model-item label="特约价是否可见" prop="isShowSpecialPrice">
|
|
|
+ <a-radio-group
|
|
|
+ name="radioGroup"
|
|
|
+ v-model="form.isShowSpecialPrice"
|
|
|
+ :disabled="detailData&&detailData.dealerLevel == 'SPECIAL'"
|
|
|
+ id="merchantInfoManagementEdit-isShowSpecialPrice" >
|
|
|
+ <a-radio :value="1">是</a-radio>
|
|
|
+ <a-radio :value="0">否</a-radio>
|
|
|
+ </a-radio-group>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="16" :xl="16">
|
|
|
+ <a-form-model-item label="备注" prop="remark" :label-col="{span:4}" :wrapper-col="{span:20}">
|
|
|
+ <a-textarea
|
|
|
+ id="merchantInfoManagementEdit-remark"
|
|
|
+ :maxLength="300"
|
|
|
+ v-model="form.remark"
|
|
|
+ placeholder="请输入备注(最多300个字符)"
|
|
|
+ allowClear />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-collapse-panel>
|
|
|
+ </a-collapse>
|
|
|
+ </a-card>
|
|
|
+ </a-form-model>
|
|
|
+ <a-affix :offset-bottom="0">
|
|
|
+ <div style="text-align: center;width: 100%;background-color: #fff;padding: 12px 0;box-shadow: 0 0 20px #dcdee2;">
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ class="button-primary"
|
|
|
+ id="merchantInfoManagementEdit-submit-btn"
|
|
|
+ size="large"
|
|
|
+ @click="handleSubmit"
|
|
|
+ style="padding: 0 60px;">提交</a-button>
|
|
|
+ </div>
|
|
|
+ </a-affix>
|
|
|
+ </a-spin>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -378,6 +380,7 @@ export default {
|
|
|
components: { VSelect },
|
|
|
data () {
|
|
|
return {
|
|
|
+ spinning: false,
|
|
|
formItemLayout: {
|
|
|
labelCol: {
|
|
|
span: 8
|
|
@@ -515,18 +518,23 @@ export default {
|
|
|
},
|
|
|
// 提交
|
|
|
handleSubmit () {
|
|
|
+ const _this = this
|
|
|
this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- console.log(this.form, 'form data')
|
|
|
- const params = JSON.parse(JSON.stringify(this.form))
|
|
|
+ // console.log(this.form, 'form data')
|
|
|
+ const params = JSON.parse(JSON.stringify(_this.form))
|
|
|
params.buildDate = params.buildDate ? moment(params.buildDate).format('YYYY-MM-DD hh:mm:ss') : ''
|
|
|
params.brithday = params.brithday ? moment(params.brithday).format('YYYY-MM-DD hh:mm:ss') : ''
|
|
|
params.cooperateEffectiveTime = params.cooperateEffectiveTime ? moment(params.cooperateEffectiveTime).format('YYYY-MM-DD hh:mm:ss') : ''
|
|
|
params.jgDoorHeaderChangeTime = params.jgDoorHeaderChangeTime ? moment(params.jgDoorHeaderChangeTime).format('YYYY-MM-DD hh:mm:ss') : ''
|
|
|
+ _this.spinning = true
|
|
|
dealerSave(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.$message.success(res.message)
|
|
|
- this.handleBack()
|
|
|
+ _this.$message.success(res.message)
|
|
|
+ _this.handleBack()
|
|
|
+ _this.spinning = false
|
|
|
+ } else {
|
|
|
+ _this.spinning = false
|
|
|
}
|
|
|
})
|
|
|
} else {
|