|
@@ -117,26 +117,24 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
<el-form-item
|
|
|
- label="业务来源:"
|
|
|
- prop="businessSource"
|
|
|
- :rules="{required: true, message: '请输入业务来源', trigger: 'blur'}"
|
|
|
+ label="客户名字:"
|
|
|
+ prop="clientName"
|
|
|
+ :rules="{required: true, message: '选择客户', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
- <el-select
|
|
|
- v-model="postForm.businessSource"
|
|
|
- placeholder=""
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- class="filter-item"
|
|
|
- style=" width: 100%"
|
|
|
- >
|
|
|
- <el-option key="1" label="自主营销" value="自主营销"/>
|
|
|
- <el-option key="2" label="公司转接" value="公司转接"/>
|
|
|
- <el-option key="3" label="投标抽签" value="投标抽签"/>
|
|
|
+ <el-select v-model="postForm.customerId" filterable class="filter-item" style="float: left;width: 100%;" placeholder="请选择" @change="getCustomerDetail">
|
|
|
+ <el-option
|
|
|
+ v-for="item in customerOptions"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+
|
|
|
+
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
<el-form-item
|
|
|
label="委托单位:"
|
|
@@ -145,18 +143,18 @@
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
- <el-input v-model="postForm.clientUnit" class="filter-item"/>
|
|
|
+ <el-input :value="postForm.clientUnit" class="filter-item" readonly disabled/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
<el-form-item
|
|
|
- label="委托人:"
|
|
|
- prop="clientName"
|
|
|
- :rules="{required: true, message: '请输入委托人', trigger: 'blur'}"
|
|
|
+ label="联系方式:"
|
|
|
+ prop="mobile"
|
|
|
+ :rules="{required: true, message: '请输入联系方式', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
- <el-input v-model="postForm.clientName" class="filter-item"/>
|
|
|
+ <el-input :value="postForm.mobile" class="filter-item" readonly disabled />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -165,29 +163,38 @@
|
|
|
<el-form-item
|
|
|
label="客户经理:"
|
|
|
prop="clientManager"
|
|
|
- :rules="{required: true, message: '请输入客户经理', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
- <el-input v-model="postForm.clientManager" class="filter-item"/>
|
|
|
+ <el-input :value="postForm.clientManager" class="filter-item" readonly disabled/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
<el-form-item
|
|
|
- label="联系方式:"
|
|
|
- prop="mobile"
|
|
|
- :rules="{required: true, message: '请输入联系方式', trigger: 'blur'}"
|
|
|
+ label="业务来源:"
|
|
|
+ prop="businessSource"
|
|
|
+ :rules="{required: true, message: '请输入业务来源', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
- <el-input v-model="postForm.mobile" class="filter-item"/>
|
|
|
+ <el-select
|
|
|
+ v-model="postForm.businessSource"
|
|
|
+ placeholder=""
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ class="filter-item"
|
|
|
+ style=" width: 100%"
|
|
|
+ >
|
|
|
+ <el-option key="1" label="自主营销" value="自主营销"/>
|
|
|
+ <el-option key="2" label="公司转接" value="公司转接"/>
|
|
|
+ <el-option key="3" label="投标抽签" value="投标抽签"/>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
<el-form-item
|
|
|
label="项目负责人:"
|
|
|
prop="skiller"
|
|
|
- :rules="{required: true, message: '请输入项目负责人', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
@@ -243,7 +250,6 @@
|
|
|
<el-form-item
|
|
|
label="所属部门:"
|
|
|
prop="departmentId"
|
|
|
- :rules="{required: true, message: '所属部门', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
@@ -315,6 +321,10 @@
|
|
|
type: 'detail',
|
|
|
postForm: {
|
|
|
departmentId:'',
|
|
|
+ clientUnit:'',
|
|
|
+ mobile:'',
|
|
|
+ userId: this.$store.getters.userInfo.id,
|
|
|
+ clientManager:this.$store.getters.userInfo.name
|
|
|
},
|
|
|
dataId: this.$route.query.id,
|
|
|
activeName: 'first',
|
|
@@ -328,14 +338,28 @@
|
|
|
departmentsOptions:[],
|
|
|
contractName:'',
|
|
|
fileList:[],
|
|
|
+ customerOptions:[]
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getAllUser();
|
|
|
this.getDepartment();
|
|
|
this.getDetail();
|
|
|
+ this.getCustomerSelect();
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ getCustomerDetail(){
|
|
|
+ this.$api.customer.detail(this.postForm.customerId).then(res =>{
|
|
|
+ this.postForm.clientUnit = res.data.department;
|
|
|
+ this.postForm.mobile = res.data.mobile;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getCustomerSelect() {
|
|
|
+ this.$api.customer.simpleAll().then(res => {
|
|
|
+ this.customerOptions = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
handleAttachmentPreview(file){
|
|
|
// var a = document.createElement('a');
|
|
|
// var event = new MouseEvent('click');
|