|
|
@@ -20,19 +20,15 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
- <el-form-item label-width="0" >
|
|
|
- <businessMessage ref="businessMessage" :keyWord="param.content.enterprisename" @businessData="businessData"></businessMessage>
|
|
|
- </el-form-item>
|
|
|
+ <businessInquiry ref="businessRef" :keyword="param.content.enterprisename"
|
|
|
+ @businessData="businessSelect"></businessInquiry>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="联系人:" prop="name" v-if="param.content.isuppictured === 1" :rules="{required:true,message:'请填写联系人',trigger:'blur'}">
|
|
|
-<!-- <contactsTemplate ref="contactsRef" @contactSelect="contactSelect" :name="param.content.name"></contactsTemplate>-->
|
|
|
<contactsNewTemplate ownertable="" ownerid="" @contactData="contactData" :name="param.content.name" @inputChange="inputChange" placement="left-start"></contactsNewTemplate>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="联系人:" prop="name" v-else>
|
|
|
-<!-- <contactsTemplate ref="contactsRef" @contactSelect="contactSelect" :name="param.content.name"></contactsTemplate>-->
|
|
|
<contactsNewTemplate ownertable="" ownerid="" @contactData="contactData" :name="param.content.name" @inputChange="inputChange" placement="left-start"></contactsNewTemplate>
|
|
|
-
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -102,8 +98,6 @@
|
|
|
:key="item.value"
|
|
|
:label="item.value"
|
|
|
:value="item.value">
|
|
|
- <!-- <span style="float: left">{{ item.value }}</span>-->
|
|
|
- <!-- <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>-->
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
|
@@ -175,11 +169,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="设计师:" prop="contactsid" v-if="param.content.isuppictured === 1" :rules="{required:true,message:'请选择设计师',trigger:'change'}">
|
|
|
-<!-- <el-input v-model="param.content.contactsid" placeholder="请选择设计师" :disabled="param.content.sys_enterpriseid === ''"></el-input>-->
|
|
|
<designer ref="designer" :sys_enterpriseid="param.content.sys_enterpriseid" @designer="selectDesigner" :disabled="isuppictured === 1"></designer>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="设计师:" prop="contactsid" v-else >
|
|
|
- <!-- <el-input v-model="param.content.contactsid" placeholder="请选择设计师" :disabled="param.content.sys_enterpriseid === ''"></el-input>-->
|
|
|
<designer ref="designer" :sys_enterpriseid="param.content.sys_enterpriseid" @designer="selectDesigner" :disabled="isuppictured === 1"></designer>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -226,18 +218,30 @@ import designer from '@/template/clueModel/designer'
|
|
|
import project from '@/template/clueModel/project'
|
|
|
import contactsTemplate from '@/template/contactsTemplate/index'
|
|
|
import contactsNewTemplate from '@/template/contactsNewTemplate/index'
|
|
|
+import businessInquiry from '@/template/businessInquiry/index'
|
|
|
+
|
|
|
export default {
|
|
|
- components: {selectActivity,businessMessage,tableList,designingInstitute,designer,project,contactsTemplate,contactsNewTemplate},
|
|
|
- data () {
|
|
|
- var telephone = (rule,value,callback) =>{
|
|
|
- if (this.param.content.areaCode === '' && this.param.content.telephone === ''){
|
|
|
+ components: {
|
|
|
+ selectActivity,
|
|
|
+ businessMessage,
|
|
|
+ tableList,
|
|
|
+ designingInstitute,
|
|
|
+ designer,
|
|
|
+ project,
|
|
|
+ contactsTemplate,
|
|
|
+ contactsNewTemplate,
|
|
|
+ businessInquiry
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ var telephone = (rule, value, callback) => {
|
|
|
+ if (this.param.content.areaCode === '' && this.param.content.telephone === '') {
|
|
|
callback(new Error('座机电话不能为空'))
|
|
|
} else {
|
|
|
- var reg=/^0\d{2,3}-\d{7,8}$/
|
|
|
+ var reg = /^0\d{2,3}-\d{7,8}$/;
|
|
|
let telephone = this.param.content.areaCode + '-' + this.param.content.telephone
|
|
|
- if (!reg.test(telephone)){
|
|
|
+ if (!reg.test(telephone)) {
|
|
|
callback(new Error('请输入正确座机电话'))
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
callback();
|
|
|
}
|
|
|
}
|
|
|
@@ -467,39 +471,54 @@ export default {
|
|
|
this.param.content.phonenumber = ''
|
|
|
this.param.content.isTelephone = '0'
|
|
|
},
|
|
|
- centerChange (data) {
|
|
|
+ centerChange(data) {
|
|
|
this.param.content.campaign_name = data[0].name
|
|
|
this.param.content.sat_campaignid = data[0].sat_campaignid
|
|
|
this.param.content.cluesource = data[0].name
|
|
|
this.activityVisible = false
|
|
|
},
|
|
|
/*工商信息*/
|
|
|
- businessData(val){
|
|
|
- console.log(val)
|
|
|
- this.param.content.enterprisename = val.companyName
|
|
|
- this.param.content.address = val.address === '-' ? '' : val.address
|
|
|
- this.areaSelectResult = [val.regProvince,val.regCity,val.regArea]
|
|
|
- this.param.content.province = [val.regProvince,val.regCity,val.regArea]
|
|
|
+ businessSelect(val, regProvince) {
|
|
|
+ this.$confirm('是否以查询的工商信息更新客户信息?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$refs.businessRef.businessShow = false;
|
|
|
+ this.param.content.enterprisename = val.companyName;
|
|
|
+ this.param.content.address = val.address === "-" ? '' : val.address;
|
|
|
+ this.areaSelectResult = [regProvince, val.regCity, val.regArea];
|
|
|
+ this.param.content.province = [regProvince, val.regCity, val.regArea];
|
|
|
+ this.param.content.city = val.regCity;
|
|
|
+ this.param.content.county = val.regArea;
|
|
|
+ this.param.content.contact = val.legalPerson
|
|
|
+ }).catch(() => {
|
|
|
+ this.$refs.businessRef.businessShow = false;
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消更新'
|
|
|
+ });
|
|
|
+ })
|
|
|
},
|
|
|
/*获取领域*/
|
|
|
- queryTradefield(){
|
|
|
- this.$store.dispatch('optiontypeselect','tradefield').then(res=>{
|
|
|
+ queryTradefield() {
|
|
|
+ this.$store.dispatch('optiontypeselect', 'tradefield').then(res => {
|
|
|
this.tradefieldSelect = res.data
|
|
|
})
|
|
|
},
|
|
|
/*获取单位*/
|
|
|
- queryUnitname(){
|
|
|
- this.$store.dispatch('optiontypeselect','scaleunitname').then(res=>{
|
|
|
+ queryUnitname() {
|
|
|
+ this.$store.dispatch('optiontypeselect', 'scaleunitname').then(res => {
|
|
|
this.param.content.unitname = res.data[0].value
|
|
|
this.unitnameList = res.data
|
|
|
})
|
|
|
},
|
|
|
/*判断是否上图员*/
|
|
|
- async queryIsuppictured(hrid){
|
|
|
+ async queryIsuppictured(hrid) {
|
|
|
const res = await this.$api.requested({
|
|
|
- "classname":"webmanage.hr.hr",
|
|
|
- "method":"query_hrMain",
|
|
|
- "content":{
|
|
|
+ "classname": "webmanage.hr.hr",
|
|
|
+ "method": "query_hrMain",
|
|
|
+ "content": {
|
|
|
"hrid":hrid
|
|
|
}
|
|
|
})
|