|
|
@@ -86,7 +86,11 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="联系人:" label-width="100px" prop="name">
|
|
|
- <contactsNewTemplate ref="contactsRef" :sys_enterpriseid="form.sys_enterpriseid" :name="form.name" :disabled="form.sys_enterpriseid === ''" @contactData="contactData" @inputChange="inputChange" @focus="$refs.contactsRef.listData($refs.contactsRef.param.content.pageNumner = 1)" placement="left-start"></contactsNewTemplate>
|
|
|
+ <contactsNewTemplate ref="contactsRef" :disabled="form.sys_enterpriseid === ''" :name="form.name"
|
|
|
+ :sa_projectid="$route.query.id" :sys_enterpriseid="form.sys_enterpriseid"
|
|
|
+ placement="left-start" @contactData="contactData"
|
|
|
+ @focus="$refs.contactsRef.listData($refs.contactsRef.param.content.pageNumner = 1)"
|
|
|
+ @inputChange="inputChange"></contactsNewTemplate>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" v-if="isPhone">
|
|
|
@@ -274,27 +278,27 @@ export default {
|
|
|
productObj:{},
|
|
|
form:{
|
|
|
date:[],
|
|
|
- totalPrice:'',
|
|
|
- type:'',
|
|
|
- projectnum:'',
|
|
|
- enterprisename:'',
|
|
|
- name:'',
|
|
|
- phonenumber:'',
|
|
|
- telephone:'',
|
|
|
- specialOffer:'否',
|
|
|
- sa_quotedpriceid:0, //sat_notice_classid<=0时 为新增
|
|
|
+ totalPrice: '',
|
|
|
+ type: '',
|
|
|
+ projectnum: '',
|
|
|
+ enterprisename: '',
|
|
|
+ name: '',
|
|
|
+ phonenumber: '',
|
|
|
+ telephone: '',
|
|
|
+ specialOffer: '否',
|
|
|
+ sa_quotedpriceid: 0, //sat_notice_classid<=0时 为新增
|
|
|
sys_enterpriseid: "",
|
|
|
- contactsid:8,
|
|
|
+ sys_phonebookid: '',
|
|
|
sa_projectid: "0",
|
|
|
discountrate: '',
|
|
|
remarks: "",
|
|
|
invaliddate: "",
|
|
|
projectname: "",
|
|
|
address: "",
|
|
|
- billdate:"",
|
|
|
- enddate:'',
|
|
|
- begdate:'',
|
|
|
- itemtype:[],
|
|
|
+ billdate: "",
|
|
|
+ enddate: '',
|
|
|
+ begdate: '',
|
|
|
+ itemtype: [],
|
|
|
saler_userid:this.data.leader[0].hr.hrid || '',
|
|
|
salername:this.data.leader[0].name || '',
|
|
|
quotedpricenotes: [
|
|
|
@@ -344,6 +348,7 @@ export default {
|
|
|
this.areaCode = ''
|
|
|
this.telephone = ''
|
|
|
this.phonenumber = ''
|
|
|
+ this.form.sys_enterpriseid = ''
|
|
|
},
|
|
|
/*创建报价单,获取商品信息*/
|
|
|
onSubmit(type){
|
|
|
@@ -565,7 +570,7 @@ export default {
|
|
|
},
|
|
|
contactData(val){
|
|
|
this.form.name = val.name
|
|
|
- this.form.contactsid = val.contactsid
|
|
|
+ this.form.sys_phonebookid = val.sys_phonebookid;
|
|
|
if (val.phonenumber.indexOf('-') != '-1'){
|
|
|
this.isPhone = false
|
|
|
this.areaCode = val.phonenumber.substring(0,val.phonenumber.indexOf('-'))
|