|
@@ -26,6 +26,7 @@
|
|
|
filterable
|
|
|
class="filter-item"
|
|
|
style=" width: 100%"
|
|
|
+ @change="getCustomerDetail"
|
|
|
|
|
|
>
|
|
|
<el-option
|
|
@@ -38,6 +39,42 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="10" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="客户部门:"
|
|
|
+ prop="department"
|
|
|
+ label-width="180px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input style="width: 100%" :value="postForm.customerDepartment" readonly disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="10" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="客户科室:"
|
|
|
+ prop="section"
|
|
|
+ label-width="180px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input style="width: 100%" :value="postForm.customerSection" readonly disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="10" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="客户职位:"
|
|
|
+ prop="position"
|
|
|
+ label-width="180px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input style="width: 100%" :value="postForm.customerPosition" readonly disabled/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -66,18 +103,18 @@
|
|
|
<el-row>
|
|
|
<el-col :xs="24" :sm="12" :lg="10" :span="6">
|
|
|
<el-form-item
|
|
|
- label="拜访时间:"
|
|
|
+ label="拜访日期:"
|
|
|
prop="visitTime"
|
|
|
- :rules="{required: true, message: '请选择时间', trigger: 'blur'}"
|
|
|
+ :rules="{required: true, message: '请选择日期', trigger: 'blur'}"
|
|
|
label-width="180px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
<el-date-picker
|
|
|
v-model="postForm.visitTime"
|
|
|
- type="datetime"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
style="width: 100%"
|
|
|
- placeholder="选择时间"
|
|
|
+ placeholder="选择日期"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -93,7 +130,6 @@
|
|
|
prop="spot"
|
|
|
label-width="180px"
|
|
|
class="postInfo-container-item"
|
|
|
- :rules="{required: true, message: '请填写拜访地点', trigger: 'blur'}"
|
|
|
>
|
|
|
<el-input v-model="postForm.spot" class="filter-item"/>
|
|
|
</el-form-item>
|
|
@@ -111,7 +147,7 @@
|
|
|
label-width="180px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
|
- <el-input type="textarea" v-model="postForm.content" class="filter-item" placeholder="200字符"/>
|
|
|
+ <el-input type="textarea" v-model="postForm.content" class="filter-item" placeholder="200字符" :autosize="{ minRows: 8, maxRows: 8}"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -138,7 +174,12 @@
|
|
|
data() {
|
|
|
return {
|
|
|
type: 'detail',
|
|
|
- postForm: {},
|
|
|
+ postForm: {
|
|
|
+ customerId:null,
|
|
|
+ customerDepartment:null,
|
|
|
+ customerSection:null,
|
|
|
+ customerPosition:null
|
|
|
+ },
|
|
|
visitId : this.$route.query.id,
|
|
|
activeName: 'first',
|
|
|
vLoading: false,
|
|
@@ -151,6 +192,13 @@
|
|
|
this.getDetail();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCustomerDetail(){
|
|
|
+ this.$api.customer.detail(this.postForm.customerId).then(res =>{
|
|
|
+ this.postForm.customerDepartment = res.data.department;
|
|
|
+ this.postForm.customerPosition = res.data.position;
|
|
|
+ this.postForm.customerSection = res.data.section;
|
|
|
+ })
|
|
|
+ },
|
|
|
getDetail() {
|
|
|
if (this.visitId) {
|
|
|
this.$api.visit.detail(this.visitId).then(res => {
|