Commit 22618891 authored by honghy's avatar honghy

需求116 后台-集运-包裹列表-操作-跟进

parent 3aa8e58a
No related merge requests found
......@@ -178,6 +178,7 @@
<el-button size="mini" type="text" icon="el-icon-edit" @click="specialNeedsCons(scope.row)">{{$t('特需')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="specialNeedsConsLook(scope.row)">{{$t('特需查看')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="feeApplication(scope.row)">{{$t('费用申请')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="consFollowup(scope.row)">{{$t('跟进')}}</el-button>
</template>
</el-table-column>
</el-table>
......@@ -356,7 +357,7 @@ export default {
showException: false,
showSpecialNeedsCons: false,
showSpecialNeedsConsLook: false,
showConsFollowupEdit: true,
showConsFollowupEdit: false,
id: null,
currencyList: [],
consNum: null,
......@@ -607,6 +608,11 @@ export default {
this.id = row.id
this.consNum = row.consNum
this.feeApplicationBol = true
},
//跟进记录
consFollowup(row) {
this.id = row.id
this.showConsFollowupEdit = true
}
}
};
......
<template>
<el-dialog :title="$t('跟进记录')" :before-close="()=>{$emit('update:showConsFollowupEdit',false)}"
<el-dialog :title="cons.consNum+'-'+cons.customerNumber+'-'+$t('跟进记录')" :before-close="()=>{$emit('update:showConsFollowupEdit',false)}"
:visible.sync="showConsFollowupEdit">
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="状态" prop="status">
......@@ -7,7 +7,7 @@
:type="DICT_TYPE.ECW_CONS_FOLLOWUP_STATUS"></dict-selector>
</el-form-item>
<el-form-item label="跟进内容">
<el-input type="textarea" v-model="form.followContent" :rows="6"/>
<el-input type="textarea" v-model="form.followContent" :rows="6" />
</el-form-item>
<el-form-item label="下次跟进时间" prop="nextFollowTime">
......@@ -15,17 +15,29 @@
placeholder="选择下次跟进时间" />
</el-form-item>
<el-form-item label="下次跟进内容">
<el-input type="textarea" v-model="form.nextFollowContent" :rows="6"/>
<el-input type="textarea" v-model="form.nextFollowContent" :rows="6" />
</el-form-item>
<el-form-item :label="$t('图片')">
<image-upload v-model="exceptionUrls"></image-upload>
<image-upload v-model="form.exceptionUrls"></image-upload>
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="跟进人" prop="followUserId">
<el-input v-model="form.followUserId" placeholder="请输入跟进人" />
<el-select
v-model="form.followUserId"
:placeholder="$t('请选择客户经理')"
clearable
size="small"
>
<el-option
v-for="dict in userServiceList"
:key="dict.id"
:label="dict.nickname"
:value="dict.id"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -37,25 +49,21 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="创建人" prop="followUserId">
<el-input v-model="form.followUserId" placeholder="请输入跟进人" />
<el-form-item label="创建人">
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建时间" prop="followUserId">
<el-input v-model="form.followUserId" placeholder="请输入跟进人" />
<el-form-item label="创建时间">
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="最后更新人" prop="followUserId">
<el-input v-model="form.followUserId" placeholder="请输入跟进人" />
<el-form-item label="最后更新人">
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="最后更新时间" prop="followUserId">
<el-input v-model="form.followUserId" placeholder="请输入跟进人" />
<el-form-item label="最后更新时间">
</el-form-item>
</el-col>
</el-row>
......@@ -70,38 +78,61 @@
<script>
import imageUpload from "@/components/ImageUpload/index.vue"
import { createConsException } from "@/api/ecw/consException"
import Editor from "@/components/Editor/index.vue"
import { getCons } from "@/api/ecw/cons"
import { listSimpleUsers } from "@/api/system/user"
import { createConsFollowup } from "@/api/ecw/consFollowup"
export default {
name: "consFollowupEdit",
components: { Editor, imageUpload },
props: {
id: [Number],
showConsFollowupEdit: {
type: Boolean,
default: false
}
id: Number,
showConsFollowupEdit: Boolean
},
data() {
return {
form: {},
exceptionUrls: [],
form: {
exceptionUrls: [],
},
rules: {
status: [
{ required: true, message: "请选择状态", trigger: "blur" }
]
}
},
cons: {},
userServiceList: []
}
},
methods: {
submitForm() {
this.$refs.form.validate(validate => {
if (validate) {
this.form.exceptionUrls = this.params.exceptionUrls.length ? this.params.exceptionUrls.split(",") : []
this.form.mediaBusinessType = 2
createConsFollowup(this.form).then(response => {
this.showConsFollowupEdit = false
this.$emit("determine")
this.$modal.msgSuccess("新增成功")
})
}
})
}
},
watch: {
showConsFollowupEdit(val) {
if (val) {
getCons(this.id).then(res => {
this.cons = res.data
})
listSimpleUsers().then((r) => {
this.userServiceList = r.data;
});
} else {
this.exceptionUrls = []
this.form = {}
}
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment