|
|
@ -18,10 +18,10 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="20"> |
|
|
|
<el-form-item prop=""> |
|
|
|
<el-select v-model="temp.pdistributorSid" class="addinputw" placeholder="请选择所属经销商" |
|
|
|
@change="pdistributorSidChange" clearable> |
|
|
|
<el-option v-for="(item,index) in pdistributorSid_list" :key="item.sid" :label="item.disName" |
|
|
|
:value="item.sid"/> |
|
|
|
<el-select v-model="temp.pDistributorName" class="addinputw" placeholder="请选择" |
|
|
|
@change="pDistributorSidChange" clearable> |
|
|
|
<el-option v-for="(item,index) in pDistributorSid_list" :key="item.sid" :label="item.disName" |
|
|
|
:value="item.disName"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -30,7 +30,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>经销商名称</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="disName"> |
|
|
|
<el-input v-model="temp.disName" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -38,7 +38,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>统一社会信用代码</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="registNum"> |
|
|
|
<el-input v-model="temp.registNum" maxlength="125" placeholder="请填写统一社会信用代码" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -48,53 +48,55 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>注册地址</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> <!--@change="getShen" @change="getShen" @change="getQu"--> |
|
|
|
<el-form-item prop="registAddress"> |
|
|
|
<el-select v-model="registProvinceSid" filterable placeholder="请选择省" class="filter-item" style="width:33%" |
|
|
|
@change="getShen"> |
|
|
|
<el-option v-for="item in inputProvinceList" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="registcitySid" filterable placeholder="请选择市" class="filter-item" style="width:33%" |
|
|
|
@change="getShi"> |
|
|
|
<el-option v-for="item in inputCityList" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="registcountSid" filterable placeholder="请选择县" class="filter-item" style="width:33%" |
|
|
|
@change="getQu"> |
|
|
|
<el-option v-for="item in inputCountyList" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<el-col :span="20"> <!--@change="getShen" @change="getShen" @change="getQu"--> |
|
|
|
<el-form-item prop="registDetailAddress"> |
|
|
|
<!-- <el-select v-model="registProvinceSid" filterable placeholder="请选择省" class="filter-item" style="width:12%"--> |
|
|
|
<!-- @change="getShen">--> |
|
|
|
<!-- <el-option v-for="item in inputProvinceList" :key="item.sid" :label="item.name" :value="item.sid"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- <el-select v-model="registcitySid" filterable placeholder="请选择市" class="filter-item" style="width:12%"--> |
|
|
|
<!-- @change="getShi">--> |
|
|
|
<!-- <el-option v-for="item in inputCityList" :key="item.sid" :label="item.name" :value="item.sid"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- <el-select v-model="registcountSid" filterable placeholder="请选择县" class="filter-item" style="width:12%"--> |
|
|
|
<!-- @change="getQu">--> |
|
|
|
<!-- <el-option v-for="item in inputCountyList" :key="item.sid" :label="item.name" :value="item.sid"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<el-input v-model="temp.registDetailAddress" maxlength="125" placeholder="请填写详细地址" style="width:63%" |
|
|
|
clearable/> <!-- temp.registDetailAddress --> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-input v-model="temp.registDetailAddress" maxlength="125" placeholder="请填写详细地址" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- <el-col :span="12">--> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>实际经营地址</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="20"> |
|
|
|
<el-form-item prop=""> <!-- --> |
|
|
|
<el-select v-model="managementProvinceSid" filterable placeholder="请选择省" class="filter-item" |
|
|
|
style="width: 33%" |
|
|
|
@change="getSheng02"> |
|
|
|
<el-option v-for="item in inputProvinceList02" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="managementcitySid" filterable placeholder="请选择市" class="filter-item" |
|
|
|
style="width: 33%" |
|
|
|
@change="getShi02"> |
|
|
|
<el-option v-for="item in inputCityList02" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="managementcountSid" filterable placeholder="请选择县" class="filter-item" |
|
|
|
style="width: 33%" |
|
|
|
@change="getQu02"> |
|
|
|
<el-option v-for="item in inputCountyList02" :key="item.sid" :label="item.name" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
<!-- <el-select v-model="managementProvinceSid" filterable placeholder="请选择省" class="filter-item"--> |
|
|
|
<!-- style="width: 12%"--> |
|
|
|
<!-- @change="getSheng02">--> |
|
|
|
<!-- <el-option v-for="item in inputProvinceList02" :key="item.sid" :label="item.name" :value="item.sid"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- <el-select v-model="managementcitySid" filterable placeholder="请选择市" class="filter-item"--> |
|
|
|
<!-- style="width: 12%"--> |
|
|
|
<!-- @change="getShi02">--> |
|
|
|
<!-- <el-option v-for="item in inputCityList02" :key="item.sid" :label="item.name" :value="item.sid"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<!-- <el-select v-model="managementcountSid" filterable placeholder="请选择县" class="filter-item"--> |
|
|
|
<!-- style="width: 12%"--> |
|
|
|
<!-- @change="getQu02">--> |
|
|
|
<!-- <el-option v-for="item in inputCountyList02" :key="item.sid" :label="item.name" :value="item.sid"/>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<el-input v-model="temp.managementDetailAddress" maxlength="125" placeholder="请填写详细地址" style="width:63%" |
|
|
|
clearable/> <!-- temp.managementDetailAddress --> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-input v-model="temp.managementDetailAddress" maxlength="125" placeholder="请填写详细地址" class="addinputw" |
|
|
|
clearable/> |
|
|
|
<!-- </el-col>--> |
|
|
|
<!-- <el-col :span="12">--> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
@ -104,6 +106,7 @@ |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item prop="setUpTime"> |
|
|
|
<el-date-picker |
|
|
|
class="addinputw" |
|
|
|
v-model="temp.setUpTime" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
@ -113,11 +116,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>开始合作时间</span> |
|
|
|
<span>开始合作日期</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item prop="startCoopDate"> |
|
|
|
<el-date-picker |
|
|
|
class="addinputw" |
|
|
|
v-model="temp.startCoopDate" |
|
|
|
type="date" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
@ -153,7 +157,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>联系电话</span> |
|
|
|
<span><span style="color: red">*</span>手机号码</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item prop="legalMobile"> |
|
|
@ -163,7 +167,7 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>企业人联系人</span> |
|
|
|
<span>企业联系人</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item prop="contract"> |
|
|
@ -171,7 +175,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>联系电话</span> |
|
|
|
<span>手机号码</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-form-item prop="mobile"> |
|
|
@ -186,7 +190,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>单位名称</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item> |
|
|
|
{{ temp.disName }} |
|
|
|
<!-- <el-input v-model="" readonly maxlength="125" placeholder="" class="addinputw" />--> |
|
|
@ -195,7 +199,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>税号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item> |
|
|
|
<span>{{ temp.registNum }}</span> |
|
|
|
</el-form-item> |
|
|
@ -206,16 +210,17 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span>地址</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop=""> |
|
|
|
<span>{{ registProvince + registcity + registcount }}</span> |
|
|
|
<span>{{temp.registDetailAddress}}</span> |
|
|
|
<!-- <span>{{ registProvince + registcity + registcount + temp.registDetailAddress}}</span>--> |
|
|
|
<!-- <el-input v-model="" readonly maxlength="125" placeholder="" class="addinputw"/>--> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>联系电话</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="invoPhone"> |
|
|
|
<el-input v-model="temp.invoPhone" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -225,7 +230,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>开户行</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="invoBank"> |
|
|
|
<el-input v-model="temp.invoBank" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -233,7 +238,7 @@ |
|
|
|
<el-col :span="4" class="tleftb"> |
|
|
|
<span><span style="color: red">*</span>银行账号</span> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item prop="invoBankNum"> |
|
|
|
<el-input v-model="temp.invoBankNum" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</el-form-item> |
|
|
@ -261,14 +266,14 @@ |
|
|
|
<el-table-column label="身份" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select v-model="scope.row.identityKey" class="addinputw" placeholder="请选择身份" |
|
|
|
@change="identityChange" clearable> |
|
|
|
@change="identityChange(scope.row,scope.row.identityKey)" clearable> |
|
|
|
<el-option v-for="(item,index) in identity_list" :key="item.dictKey" :label="item.dictValue" |
|
|
|
:value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
<!-- <el-input v-model="scope.row.linkType" maxlength="125" placeholder="" class="addinputw" clearable/>--> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="联系电话" align="center"> |
|
|
|
<el-table-column label="手机号码" align="center"> |
|
|
|
<template slot-scope="scope" prop="mobile"> |
|
|
|
<el-input v-model="scope.row.mobile" maxlength="125" placeholder="" class="addinputw" clearable/> |
|
|
|
</template> |
|
|
@ -399,9 +404,10 @@ |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="balanceStyle"> |
|
|
|
<el-link :href="scope.row.filePath" target="_blank" type="primary"> |
|
|
|
<el-button type="primary" size="small">查看</el-button> |
|
|
|
</el-link> |
|
|
|
<el-button type="primary" size="small" @click="handLook(scope.row)">查看</el-button> |
|
|
|
<!-- <el-link :href="scope.row.filePath" target="_blank" type="primary">--> |
|
|
|
<!-- <el-button type="primary" size="small">查看</el-button>--> |
|
|
|
<!-- </el-link>--> |
|
|
|
<el-button type="danger" size="small" @click="handDelete(scope.row, '0004')">删除</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -456,13 +462,20 @@ export default { |
|
|
|
} else { |
|
|
|
callback() |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
var checkSubmit = (rule, value, callback) => { |
|
|
|
const Submit = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; |
|
|
|
if (Submit.test(value)) { |
|
|
|
return callback(); |
|
|
|
} |
|
|
|
callback(new Error("请输入手机号")); |
|
|
|
callback(new Error("请输入正确的手机号")); |
|
|
|
}; |
|
|
|
var checkIDcard = (rule, value, callback) => { |
|
|
|
const Submit = /^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/; |
|
|
|
if (Submit.test(value)) { |
|
|
|
return callback(); |
|
|
|
} |
|
|
|
callback(new Error("请输入正确的身份证号")); |
|
|
|
}; |
|
|
|
return { |
|
|
|
pickerOptions: { |
|
|
@ -490,6 +503,8 @@ export default { |
|
|
|
listLoading: false, |
|
|
|
index: 0, |
|
|
|
accept: '.jpg,.jpeg,.png,.JPG,.JPEG,.PNG', |
|
|
|
registDetailAddress:'', // 注册地址详细 |
|
|
|
managementAll:'', // 经营地址详细 |
|
|
|
registProvince: '', // 注册省name |
|
|
|
registcity: '',// 注册市 |
|
|
|
registcount: '',// 注册县 |
|
|
@ -502,14 +517,12 @@ export default { |
|
|
|
managementProvinceSid: '', // 经营省 |
|
|
|
managementcitySid: '',// 经营市 |
|
|
|
managementcountSid: '',// 经营县 |
|
|
|
pdistributorSid_list: [], |
|
|
|
pDistributorSid_list: [], |
|
|
|
temp: { |
|
|
|
sid: '', |
|
|
|
contract: '', //联系人 |
|
|
|
createOrg: '', //创建组织 |
|
|
|
createOrgName: '', //创建组织名称 |
|
|
|
disLevelKey: '', // 级别key |
|
|
|
disLevelValue: '', // 级别value |
|
|
|
disName: '', //经销商名称 |
|
|
|
invoBank: '', //开票开户行 |
|
|
|
invoBankNum: '', //开票银行账号 |
|
|
@ -521,8 +534,8 @@ export default { |
|
|
|
managementAddress: '',// 经营地址(省市:'县,//) |
|
|
|
managementDetailAddress: '', //实际经营地址 |
|
|
|
mobile: '', //联系人手机号码 |
|
|
|
pdistributorName: '',//所属经销商名字 |
|
|
|
pdistributorSid: '', // 所属经销商sid |
|
|
|
pDistributorName: '',//所属经销商名字 |
|
|
|
pDistributorSid: '', // 所属经销商sid |
|
|
|
registAddress: '',// 注册(登记)地址(省市县) false |
|
|
|
registDetailAddress: '', // 注册(登记)地址 |
|
|
|
registNum: '', // 统一社会信用代码 |
|
|
@ -563,25 +576,16 @@ export default { |
|
|
|
dialogVisible: false, |
|
|
|
dataArr: [], |
|
|
|
rules: { |
|
|
|
orgName: [{required: true, message: '请填写企业名称', trigger: 'blur'}], |
|
|
|
registNumType: [{required: true, message: '请选择登记注册号类型', trigger: 'chang'}], |
|
|
|
registNum: [{required: true, message: '请填写登记注册号码', trigger: 'blur'}], |
|
|
|
signatureCode: [{required: true, message: '请填写中征码', trigger: 'blur'}], |
|
|
|
telephone: [{required: true, message: '请填写公司联系电话', trigger: 'blur'}], |
|
|
|
setUpTime: [{required: true, message: '请填写成立时间', trigger: 'blur'}], |
|
|
|
registCapital: [{required: true, message: '请填写注册资本', trigger: 'blur'}], |
|
|
|
// registAddress: [{required: true, message: '请填写注册(登记)地址', trigger: 'blur'}], |
|
|
|
address: [{required: true, message: '请填写联系地址', trigger: 'blur'}], |
|
|
|
contract: [{required: true, message: '请填写业务联系人', trigger: 'blur'}], |
|
|
|
mobile: [{required: true, validator: checkSubmit, message: '请填写联系电话', trigger: 'change'}], |
|
|
|
businessScope: [{required: true, message: '请填写经营(业务)范围', trigger: 'blur'}], |
|
|
|
licenseType: [{required: true, message: '请填写许可证类型', trigger: 'blur'}], |
|
|
|
qualifiDate: [{required: true, message: '请填写资质有效期', trigger: 'blur'}], |
|
|
|
legalName: [{required: true, message: '请填写法定代表人姓名', trigger: 'blur'}], |
|
|
|
legalIdCard: [{required: true, message: '请填写实际控制人身份证号码', trigger: 'blur'}], |
|
|
|
disName: [{required: true, message: '请填写经销商名称', trigger: 'blur'}], |
|
|
|
registNum: [{required: true, message: '请填写统一社会信用代码', trigger: 'blur'}], |
|
|
|
registAll: [{required: true, message: '请填写注册地址', trigger: 'blur'}], |
|
|
|
legalName: [{required: true, message: '请填写实际控制人姓名', trigger: 'blur'}], |
|
|
|
legalIdCard: [{required: true, validator:checkIDcard,message: '请填写实际控制人身份证号码', trigger: 'blur'}], |
|
|
|
legalMobile: [{required: true, validator: checkSubmit, message: '请填写实际控制人联系电话', trigger: 'blur'}], |
|
|
|
invoPhone: [{required: true, validator: checkSubmit, message: '请填写开票人联系电话', trigger: 'change'}], |
|
|
|
legalMobile: [{required: true, validator: checkSubmit, message: '请填写实际控制人联系方式', trigger: 'blchangeur'}], |
|
|
|
useOrgArry: [{required: true, validator: validCascader, trigger: 'change'}] |
|
|
|
invoBank: [{required: true, message: '请填写开户行', trigger: 'blur'}], |
|
|
|
invoBankNum: [{required: true, message: '请填写银行账号', trigger: 'blur'}], |
|
|
|
setUpTime: [{required: true, message: '请选择成立日期', trigger: 'blur'}], |
|
|
|
} |
|
|
|
// ------------------------------------ |
|
|
|
} |
|
|
@ -598,6 +602,8 @@ export default { |
|
|
|
this.viewTitle = '【新增】经销商' |
|
|
|
this.dialogStatus = 'add' |
|
|
|
this.init() |
|
|
|
this.getLevelList(this.temp.pDistributorSid) |
|
|
|
console.log('新增进去的页面',this.temp) |
|
|
|
}, |
|
|
|
showEdit(sids) { |
|
|
|
this.init() |
|
|
@ -606,9 +612,6 @@ export default { |
|
|
|
console.log('huixian', sids) |
|
|
|
details(sids).then((response) => { |
|
|
|
if (response.code === '200') { |
|
|
|
if (response.data.useOrg) { |
|
|
|
this.useOrgArry = response.data.useOrg |
|
|
|
} |
|
|
|
this.list = response.data.perList |
|
|
|
this.list1 = response.data.yyzzList |
|
|
|
this.list2 = response.data.dlysxkzList |
|
|
@ -619,14 +622,14 @@ export default { |
|
|
|
this.registProvinceSid = response.data.registAddressProvince |
|
|
|
this.registcitySid = response.data.registAddressCity |
|
|
|
this.registcountSid = response.data.registAddressCounty |
|
|
|
|
|
|
|
this.registProvince = response.data.registAddressProvince |
|
|
|
this.registcity = response.data.registAddressCity |
|
|
|
this.registcount = response.data.registAddressCounty |
|
|
|
|
|
|
|
this.managementProvinceSid = response.data.managementAddressProvince |
|
|
|
this.managementcitySid = response.data.managementAddressCity |
|
|
|
this.managementcountSid = response.data.managementAddressCounty |
|
|
|
console.log(response.data.pDistributorSid) |
|
|
|
this.getLevelList(sids) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -642,6 +645,13 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getLevelList(sid){ |
|
|
|
getOneLevelList({sid:sid}).then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.pDistributorSid_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 注册地址 -------------------------------- |
|
|
|
huoquSheng() { |
|
|
|
getProvince().then((res) => { |
|
|
@ -664,6 +674,7 @@ export default { |
|
|
|
}) |
|
|
|
// 这里是把code的值赋给province省字段 |
|
|
|
this.registProvince = bb.name |
|
|
|
console.log('注册地址-省',this.registProvince) |
|
|
|
this.huoquShi(bb.sid) |
|
|
|
}, |
|
|
|
huoquShi(sid1) { |
|
|
@ -689,6 +700,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
this.registcity = bb.name |
|
|
|
console.log('注册地址-市',this.registcity) |
|
|
|
this.huoquXian(bb.sid) |
|
|
|
}, |
|
|
|
huoquXian(sid1) { |
|
|
@ -714,6 +726,7 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
this.registcount = bb.name |
|
|
|
console.log('注册地址-区/县',this.registcount) |
|
|
|
this.deCode.push(bb.districtCode) |
|
|
|
}, |
|
|
|
|
|
|
@ -808,29 +821,21 @@ export default { |
|
|
|
this.identity_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
getOneLevelList().then((res) => { |
|
|
|
if (res.code === '200') { |
|
|
|
this.pdistributorSid_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 人员身份 |
|
|
|
identityChange(val) { |
|
|
|
const choosetItem = this.identity_list.filter((item) => item.dictKey == val) |
|
|
|
this.temp.identityValue = choosetItem[0].dictValue |
|
|
|
console.log('name:', this.temp.identityValue, 'key:', this.temp.identityKey) |
|
|
|
identityChange(row, identityKey) { |
|
|
|
const choosetItem = this.identity_list.filter((item) => item.dictKey == identityKey) |
|
|
|
row.identityValue = choosetItem[0].dictValue |
|
|
|
console.log('name:', row.identityValue, 'key:', row.identityKey) |
|
|
|
}, |
|
|
|
// 上级经销商 |
|
|
|
pdistributorSidChange(val) { |
|
|
|
const choosetItem = this.pdistributorSid_list.filter((item) => item.sid == val) |
|
|
|
pDistributorSidChange(val) { |
|
|
|
const choosetItem = this.pDistributorSid_list.filter((item) => item.disName == val) |
|
|
|
console.log('上级经销商', choosetItem[0]) |
|
|
|
if (choosetItem[0]) { |
|
|
|
this.temp.pdistributorName = choosetItem[0].disName |
|
|
|
} else { |
|
|
|
this.temp.pdistributorName = '无' |
|
|
|
this.temp.pdistributorSid = '0' |
|
|
|
this.temp.pDistributorSid = choosetItem[0].sid |
|
|
|
} |
|
|
|
console.log('name:', this.temp.pdistributorName, 'key:', this.temp.pdistributorSid) |
|
|
|
console.log('name:', this.temp.pDistributorName, 'key:', this.temp.pDistributorSid) |
|
|
|
}, |
|
|
|
|
|
|
|
usrOrgArryChange(e) { |
|
|
@ -907,6 +912,14 @@ export default { |
|
|
|
filesAdd(item, val) { |
|
|
|
var arrayList = [] |
|
|
|
arrayList = item.data |
|
|
|
var nowDate = new Date(); |
|
|
|
var date = { |
|
|
|
year: nowDate.getFullYear(), |
|
|
|
month: nowDate.getMonth() + 1, |
|
|
|
day: nowDate.getDate(), |
|
|
|
} |
|
|
|
var dayDate = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) |
|
|
|
console.log(dayDate); |
|
|
|
if (val === '0001') { |
|
|
|
this.list1.push({ |
|
|
|
name: window.sessionStorage.getItem('name'), |
|
|
@ -914,7 +927,8 @@ export default { |
|
|
|
fileType: arrayList.sourceFileName.substr(arrayList.sourceFileName.lastIndexOf('.')), |
|
|
|
attachType: val, |
|
|
|
fileSize: arrayList.size, |
|
|
|
filePath: arrayList.fullUrl |
|
|
|
filePath: arrayList.fullUrl, |
|
|
|
createTime:dayDate |
|
|
|
}) |
|
|
|
} else if (val === '0002') { |
|
|
|
this.list2.push({ |
|
|
@ -923,7 +937,8 @@ export default { |
|
|
|
fileType: arrayList.sourceFileName.substr(arrayList.sourceFileName.lastIndexOf('.')), |
|
|
|
attachType: val, |
|
|
|
fileSize: arrayList.size, |
|
|
|
filePath: arrayList.fullUrl |
|
|
|
filePath: arrayList.fullUrl, |
|
|
|
createTime:dayDate |
|
|
|
}) |
|
|
|
} else if (val === '0003') { |
|
|
|
this.list3.push({ |
|
|
@ -932,7 +947,8 @@ export default { |
|
|
|
fileType: arrayList.sourceFileName.substr(arrayList.sourceFileName.lastIndexOf('.')), |
|
|
|
attachType: val, |
|
|
|
fileSize: arrayList.size, |
|
|
|
filePath: arrayList.fullUrl |
|
|
|
filePath: arrayList.fullUrl, |
|
|
|
createTime:dayDate |
|
|
|
}) |
|
|
|
} else if (val === '0004') { |
|
|
|
this.list4.push({ |
|
|
@ -941,7 +957,8 @@ export default { |
|
|
|
fileType: arrayList.sourceFileName.substr(arrayList.sourceFileName.lastIndexOf('.')), |
|
|
|
attachType: val, |
|
|
|
fileSize: arrayList.size, |
|
|
|
filePath: arrayList.fullUrl |
|
|
|
filePath: arrayList.fullUrl, |
|
|
|
createTime:dayDate |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(this.list4, 856856) |
|
|
@ -998,33 +1015,37 @@ export default { |
|
|
|
filesRemove(item) { |
|
|
|
console.log(item) |
|
|
|
}, |
|
|
|
// 添加数据 |
|
|
|
// 添加数据 !!!!!!!其中注释的代码不可删!!!!!!! |
|
|
|
handleCreate() { |
|
|
|
if (this.dialogStatus == 'add') { |
|
|
|
if (!this.temp.registAddress) { |
|
|
|
this.temp.registAddress = this.registProvince + '-' + this.registcity + '-' + this.registcount |
|
|
|
console.log('新增注册地址', this.temp.registAddress) |
|
|
|
} |
|
|
|
if (!this.temp.managementAddress) { |
|
|
|
this.temp.managementAddress = this.managementProvince + '-' + this.managementcity + '-' + this.managementcount |
|
|
|
console.log('新增经营地址', this.temp.managementAddress) |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.dialogStatus == 'edit') { |
|
|
|
if (!this.registProvince) { |
|
|
|
this.temp.registAddress = this.registProvince + '-' + this.registcity + '-' + this.registcount |
|
|
|
console.log('编辑注册地址', this.temp.registAddress) |
|
|
|
} |
|
|
|
if (this.managementProvince !== '') { |
|
|
|
console.log('编辑经营地址', this.managementProvince) |
|
|
|
this.temp.managementAddress = this.managementProvince + '-' + this.managementcity + '-' + this.managementcount |
|
|
|
console.log('编辑经营地址', this.temp.managementAddress) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.temp.pDistributorName == '') { |
|
|
|
this.temp.pDistributorName = '无' |
|
|
|
this.temp.pDistributorSid = '0' |
|
|
|
} |
|
|
|
// this.temp.registDetailAddress = this.registProvince + this.registcity + this.registcount + this.registAll |
|
|
|
// this.temp.managementDetailAddress = this.managementProvince + this.managementcity + this.managementcount + this.managementAll |
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
// if (this.dialogStatus == 'add') { |
|
|
|
// if (!this.temp.registAddress) { |
|
|
|
// this.temp.registAddress = this.registProvince + '-' + this.registcity + '-' + this.registcount |
|
|
|
// console.log('新增注册地址', this.temp.registAddress) |
|
|
|
// |
|
|
|
// } |
|
|
|
// if (!this.temp.managementAddress && this.managementProvince && this.managementcity && this.managementcount) { |
|
|
|
// this.temp.managementAddress = this.managementProvince + '-' + this.managementcity + '-' + this.managementcount |
|
|
|
// console.log('新增经营地址', this.temp.managementAddress) |
|
|
|
// } |
|
|
|
// } |
|
|
|
// if (this.dialogStatus == 'edit') { |
|
|
|
// if (!this.registProvince) { |
|
|
|
// this.temp.registAddress = this.registProvince + '-' + this.registcity + '-' + this.registcount |
|
|
|
// console.log('编辑注册地址', this.temp.registAddress) |
|
|
|
// } |
|
|
|
// if (this.managementProvince !== '') { |
|
|
|
// this.temp.managementAddress = this.managementProvince + '-' + this.managementcity + '-' + this.managementcount |
|
|
|
// console.log('编辑经营地址', this.temp.managementAddress) |
|
|
|
// } |
|
|
|
// } |
|
|
|
this.FormLoading = true |
|
|
|
if (this.temp.sid === '') { |
|
|
|
this.temp.perList = this.list |
|
|
@ -1073,12 +1094,6 @@ export default { |
|
|
|
console.log('返回值:', response) |
|
|
|
this.FormLoading = false |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '添加成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
@ -1111,12 +1126,6 @@ export default { |
|
|
|
console.log('response', response) |
|
|
|
this.FormLoading = false |
|
|
|
if (response.code === '200') { |
|
|
|
this.$notify({ |
|
|
|
title: '提示', |
|
|
|
message: '修改成功', |
|
|
|
type: 'success', |
|
|
|
duration: 2000 |
|
|
|
}) |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
this.$notify({ |
|
|
@ -1145,13 +1154,13 @@ export default { |
|
|
|
this.managementProvinceSid = '' // 经营省sid |
|
|
|
this.managementcitySid = '' // 经营市sid |
|
|
|
this.managementcountSid = '' // 经营县sid |
|
|
|
this.registAll = '' |
|
|
|
this.managementAll = '' |
|
|
|
this.temp = { |
|
|
|
sid: '', |
|
|
|
contract: '', //联系人 |
|
|
|
createOrg: '', //创建组织 |
|
|
|
createOrgName: '', //创建组织名称 |
|
|
|
disLevelKey: '', // 级别key |
|
|
|
disLevelValue: '', // 级别value |
|
|
|
disName: '', //经销商名称 |
|
|
|
invoBank: '', //开票开户行 |
|
|
|
invoBankNum: '', //开票银行账号 |
|
|
@ -1163,8 +1172,8 @@ export default { |
|
|
|
managementAddress: '',// 经营地址(省市:'县,//) |
|
|
|
managementDetailAddress: '', //实际经营地址 |
|
|
|
mobile: '', //联系人手机号码 |
|
|
|
pdistributorName: '',//所属经销商名字 |
|
|
|
pdistributorSid: '', // 所属经销商sid |
|
|
|
pDistributorName: '',//所属经销商名字 |
|
|
|
pDistributorSid: '', // 所属经销商sid |
|
|
|
registAddress: '',// 注册(登记)地址(省市县) false |
|
|
|
registDetailAddress: '', // 注册(登记)地址 |
|
|
|
registNum: '', // 统一社会信用代码 |
|
|
@ -1239,4 +1248,11 @@ export default { |
|
|
|
background-color: #0294d7; |
|
|
|
color: #ffffff; |
|
|
|
} |
|
|
|
|
|
|
|
.listconadd { |
|
|
|
padding: 0 20px; |
|
|
|
} |
|
|
|
.addinputw{ |
|
|
|
width: 90%!important; |
|
|
|
} |
|
|
|
</style> |
|
|
|