|
@@ -4,24 +4,25 @@
|
|
|
:close-on-click-modal="false"
|
|
|
:modal-append-to-body="true"
|
|
|
:append-to-body="true"
|
|
|
- :title="`${customInfo.CompanyName}——服务记录`"
|
|
|
+ :title="`${customInfo.CompanyName}——沟通记录`"
|
|
|
class="share-list-dialog"
|
|
|
@close="closeDia"
|
|
|
>
|
|
|
<div class="dialog-cotainer">
|
|
|
<div class="add-box" v-if="allowEdit">
|
|
|
- <p class="label">服务描述</p>
|
|
|
+ <p class="label">沟通描述</p>
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
- placeholder="请输入服务描述"
|
|
|
+ placeholder="请输入沟通描述"
|
|
|
v-model="recordContent"
|
|
|
- maxlength="100"
|
|
|
- show-word-limit
|
|
|
:rows="3"
|
|
|
/>
|
|
|
+ <div v-if="allowEdit" style="margin-top:10px">
|
|
|
+ <el-button type="primary" @click="addNewRecord">保存</el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="table-box">
|
|
|
- <p class="label" >历史服务</p>
|
|
|
+ <p class="label" >历史沟通</p>
|
|
|
<el-table
|
|
|
border
|
|
|
:data="recordList"
|
|
@@ -38,7 +39,7 @@
|
|
|
v-if="allowEdit"
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
- width="160"
|
|
|
+ width="120"
|
|
|
>
|
|
|
<template slot-scope="{row,$index}">
|
|
|
<el-button type="text" size="small" style="color:#409eff;"
|
|
@@ -52,14 +53,8 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="foot-container">
|
|
|
- <template v-if="allowEdit">
|
|
|
- <el-button type="primary" @click="addNewRecord">保存</el-button>
|
|
|
- <el-button @click="closeDia">取 消</el-button>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <el-button type="primary" @click="closeDia">知道了</el-button>
|
|
|
- </template>
|
|
|
+ <div class="foot-container" v-if="!allowEdit">
|
|
|
+ <el-button type="primary" @click="closeDia">知道了</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -84,16 +79,16 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
tableColumns:[{
|
|
|
- label:'服务描述',
|
|
|
+ label:'沟通描述',
|
|
|
key:'Content',
|
|
|
- minWidth:300
|
|
|
+ minWidth:350
|
|
|
},{
|
|
|
label:'创建人',
|
|
|
key:'SysAdminName'
|
|
|
},{
|
|
|
label:'创建时间',
|
|
|
key:'CreateTime',
|
|
|
- minWidth:180
|
|
|
+ minWidth:150
|
|
|
}],
|
|
|
recordContent:'',
|
|
|
recordList:[],
|
|
@@ -111,8 +106,12 @@ export default {
|
|
|
methods: {
|
|
|
getRecordList(){
|
|
|
this.tableLoading = true
|
|
|
+ console.log(this.customInfo)
|
|
|
+
|
|
|
+ let CompanyType = this.$route.path==='/overseasCustomList' ? this.customInfo.Source : 2;
|
|
|
customInterence.getRecordList({
|
|
|
- CompanyId:this.customInfo.CompanyId
|
|
|
+ CompanyId:this.customInfo.CompanyId,
|
|
|
+ CompanyType
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
this.recordList = res.Data
|
|
@@ -127,12 +126,14 @@ export default {
|
|
|
},
|
|
|
addNewRecord(){
|
|
|
if(!this.recordContent.length){
|
|
|
- this.$message.warning('请输入服务描述')
|
|
|
+ this.$message.warning('请输入沟通描述')
|
|
|
return
|
|
|
}
|
|
|
+ let CompanyType = this.$route.path==='/overseasCustomList' ? this.customInfo.Source : 2;
|
|
|
customInterence.addRecord({
|
|
|
CompanyId:this.customInfo.CompanyId,
|
|
|
- Content:this.recordContent
|
|
|
+ Content:this.recordContent,
|
|
|
+ CompanyType
|
|
|
}).then(res=>{
|
|
|
if(res.Ret!==200) return
|
|
|
this.$message.success('添加成功')
|
|
@@ -141,7 +142,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
deleteRecord(data){
|
|
|
- this.$confirm('服务记录删除后不可恢复,确认删除吗?','提示',{
|
|
|
+ this.$confirm('沟通记录删除后不可恢复,确认删除吗?','提示',{
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type:'warning',
|