|
|
@ -172,8 +172,10 @@ |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<!-- <el-button @click="addingRecord(slotProps.scope)">新增记录</el-button> --> |
|
|
|
<!-- <el-button @click="addingRecord(slotProps.scope)">新增记录</el-button> --> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if=" |
|
|
|
v-if="(TabPermissions !== '4' && !AppealStatusT) || (AppealStatusT && UserPermissions !== '仓库客服')" |
|
|
|
(TabPermissions !== '4' && !AppealStatusT) || |
|
|
|
|
|
|
|
(AppealStatusT && UserPermissions !== '仓库客服') |
|
|
|
|
|
|
|
" |
|
|
|
@click="view(slotProps.scope)" |
|
|
|
@click="view(slotProps.scope)" |
|
|
|
>查看</el-button |
|
|
|
>查看</el-button |
|
|
|
> |
|
|
|
> |
|
|
@ -185,22 +187,33 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
v-if="TabPermissions == '6' && !AppealStatusT && UserPermissions=='仓库客服'" |
|
|
|
v-if=" |
|
|
|
|
|
|
|
TabPermissions == '6' && !AppealStatusT && UserPermissions == '仓库客服' |
|
|
|
|
|
|
|
" |
|
|
|
@click="appeal(slotProps.scope, false)" |
|
|
|
@click="appeal(slotProps.scope, false)" |
|
|
|
>申诉</el-button |
|
|
|
>申诉</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<el-button v-if="AppealStatusT && slotProps.scope.row.typesOf=='0' && UserPermissions=='仓库客服'" @click="appeal(slotProps.scope, 'edit')" |
|
|
|
<el-button |
|
|
|
|
|
|
|
v-if=" |
|
|
|
|
|
|
|
AppealStatusT && |
|
|
|
|
|
|
|
slotProps.scope.row.typesOf == '0' && |
|
|
|
|
|
|
|
UserPermissions == '仓库客服' |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
@click="appeal(slotProps.scope, 'edit')" |
|
|
|
>编辑</el-button |
|
|
|
>编辑</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
v-if="AppealStatusT && slotProps.scope.row.typesOf=='0' && UserPermissions=='仓库客服'" |
|
|
|
v-if=" |
|
|
|
|
|
|
|
AppealStatusT && |
|
|
|
|
|
|
|
slotProps.scope.row.typesOf == '0' && |
|
|
|
|
|
|
|
UserPermissions == '仓库客服' |
|
|
|
|
|
|
|
" |
|
|
|
@click="CancelappealFn(slotProps.scope, 'edit')" |
|
|
|
@click="CancelappealFn(slotProps.scope, 'edit')" |
|
|
|
>取消申诉</el-button |
|
|
|
>取消申诉</el-button |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- AppealStatusT申诉列表状态 --> |
|
|
|
<!-- AppealStatusT申诉列表状态 --> |
|
|
|
<!-- <el-button v-if="AppealStatusT" @click="Appealeditor">编辑</el-button> --> |
|
|
|
<!-- <el-button v-if="AppealStatusT" @click="Appealeditor">编辑</el-button> --> |
|
|
|
<!-- <el-button @click="ViewEvent(slotProps.scope)">编辑</el-button> --> |
|
|
|
<!-- <el-button @click="ViewEvent(slotProps.scope)">编辑</el-button> --> |
|
|
@ -445,7 +458,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
<!-- 申诉弹窗 --> |
|
|
|
<!-- 申诉弹窗 --> |
|
|
|
<el-dialog v-model="dialogappeal" :title="AppealeditorState?'工单申述编辑':'工单申诉'" width="30%"> |
|
|
|
<el-dialog |
|
|
|
|
|
|
|
v-model="dialogappeal" |
|
|
|
|
|
|
|
:title="AppealeditorState ? '工单申述编辑' : '工单申诉'" |
|
|
|
|
|
|
|
width="30%" |
|
|
|
|
|
|
|
> |
|
|
|
<div class="el_appeal" v-loading="loadingappeal" element-loading-text="Loading..."> |
|
|
|
<div class="el_appeal" v-loading="loadingappeal" element-loading-text="Loading..."> |
|
|
|
<el-form-item label="选择实际责任方"> |
|
|
|
<el-form-item label="选择实际责任方"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
@ -1485,7 +1502,7 @@ const CancelappealFn = val => { |
|
|
|
const appeal = (val, state) => { |
|
|
|
const appeal = (val, state) => { |
|
|
|
AppealAttachment.value = []; //清空图片 |
|
|
|
AppealAttachment.value = []; //清空图片 |
|
|
|
Appealselection.value = ''; //清空责任人 |
|
|
|
Appealselection.value = ''; //清空责任人 |
|
|
|
Reasonforappeal.value='',//清空申诉内容 |
|
|
|
(Reasonforappeal.value = ''), //清空申诉内容 |
|
|
|
console.log(state); |
|
|
|
console.log(state); |
|
|
|
console.log(val.row, '申诉当前点击的按钮'); |
|
|
|
console.log(val.row, '申诉当前点击的按钮'); |
|
|
|
if (state == 'edit') { |
|
|
|
if (state == 'edit') { |
|
|
@ -1507,12 +1524,12 @@ const appeal = (val, state) => { |
|
|
|
console.log(res.data.data.peopleEntityList.map(item => item.actualPersonId)); |
|
|
|
console.log(res.data.data.peopleEntityList.map(item => item.actualPersonId)); |
|
|
|
console.log(warehouseData.value, '仓库数据'); |
|
|
|
console.log(warehouseData.value, '仓库数据'); |
|
|
|
if (res.data.data.peopleEntityList) { |
|
|
|
if (res.data.data.peopleEntityList) { |
|
|
|
Appealselection.value= res.data.data.peopleEntityList.map(item => item.actualPersonId) |
|
|
|
Appealselection.value = res.data.data.peopleEntityList.map(item => item.actualPersonId); |
|
|
|
} |
|
|
|
} |
|
|
|
if (res.data.data.imagePath) { |
|
|
|
if (res.data.data.imagePath) { |
|
|
|
AppealAttachment.value.push({ |
|
|
|
AppealAttachment.value.push({ |
|
|
|
url: res.data.data.imagePath, |
|
|
|
url: res.data.data.imagePath, |
|
|
|
}) |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
dialogappeal.value = true; //展开申诉编辑 |
|
|
|
dialogappeal.value = true; //展开申诉编辑 |
|
|
|
}, 0); |
|
|
|
}, 0); |
|
|
@ -1603,14 +1620,16 @@ const Appealbutton = state => { |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(data, '处理好的值'); |
|
|
|
console.log(data, '处理好的值'); |
|
|
|
|
|
|
|
|
|
|
|
$_appealSubmit(data).then(res => { |
|
|
|
$_appealSubmit(data) |
|
|
|
|
|
|
|
.then(res => { |
|
|
|
if (res.data.code == 200) { |
|
|
|
if (res.data.code == 200) { |
|
|
|
ElMessage({ |
|
|
|
ElMessage({ |
|
|
|
message: res.data.msg, |
|
|
|
message: res.data.msg, |
|
|
|
type: 'success', |
|
|
|
type: 'success', |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}).finally(res=>{ |
|
|
|
}) |
|
|
|
|
|
|
|
.finally(res => { |
|
|
|
dialogappeal.value = false; //关闭申诉弹窗 |
|
|
|
dialogappeal.value = false; //关闭申诉弹窗 |
|
|
|
loadingappeal.value = false; //关闭加载效果 |
|
|
|
loadingappeal.value = false; //关闭加载效果 |
|
|
|
console.log(res, '功返回值'); |
|
|
|
console.log(res, '功返回值'); |
|
|
@ -1955,7 +1974,6 @@ const settlementclaim = val => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
// 获取申诉列表 |
|
|
|
// 获取申诉列表 |
|
|
|
const appealFn = val => { |
|
|
|
const appealFn = val => { |
|
|
|
|
|
|
|
|
|
|
|
details.loadingObj.list = true; //开启动画加载 |
|
|
|
details.loadingObj.list = true; //开启动画加载 |
|
|
|
AppealStatus.value = true; //开启申诉列表状态 |
|
|
|
AppealStatus.value = true; //开启申诉列表状态 |
|
|
|
TimeoutStatus.value = false; //关闭 超时状态 |
|
|
|
TimeoutStatus.value = false; //关闭 超时状态 |
|
|
@ -1975,7 +1993,10 @@ const appealFn = val => { |
|
|
|
console.log(res, '申诉列表返回值'); |
|
|
|
console.log(res, '申诉列表返回值'); |
|
|
|
|
|
|
|
|
|
|
|
if (res.data.data.records.length) { |
|
|
|
if (res.data.data.records.length) { |
|
|
|
details.data = res.data.data.records; |
|
|
|
// details.data = res.data.data.records; |
|
|
|
|
|
|
|
for (let i = 1; i < 100; i++) { |
|
|
|
|
|
|
|
details.data.push({}); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
details.data = [{}]; |
|
|
|
details.data = [{}]; |
|
|
|
} |
|
|
|
} |
|
|
@ -1985,7 +2006,6 @@ const appealFn = val => { |
|
|
|
|
|
|
|
|
|
|
|
// 申诉列表 |
|
|
|
// 申诉列表 |
|
|
|
const AppealTab = val => { |
|
|
|
const AppealTab = val => { |
|
|
|
|
|
|
|
|
|
|
|
if (val == 0) { |
|
|
|
if (val == 0) { |
|
|
|
AppealStatusT.value = false; //申诉列表关闭 |
|
|
|
AppealStatusT.value = false; //申诉列表关闭 |
|
|
|
Tableheaderswitching(columnList); //切换表头 |
|
|
|
Tableheaderswitching(columnList); //切换表头 |
|
|
@ -1999,7 +2019,6 @@ const AppealTab = val => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
IndexTable(data); |
|
|
|
IndexTable(data); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
AppealStatusT.value = true; //申诉列表开启 |
|
|
|
AppealStatusT.value = true; //申诉列表开启 |
|
|
|
console.log(val, '切换申诉列表'); |
|
|
|
console.log(val, '切换申诉列表'); |
|
|
|
data.workOrderStatus = ''; |
|
|
|
data.workOrderStatus = ''; |
|
|
@ -2043,6 +2062,30 @@ const ModifyAmountFn = () => { |
|
|
|
dialogModifyAmount.value = false; //关闭超时金额弹窗修改 |
|
|
|
dialogModifyAmount.value = false; //关闭超时金额弹窗修改 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
function getWinHight() { |
|
|
|
|
|
|
|
var windowHight = 0; |
|
|
|
|
|
|
|
if (document.body.clientHeight && document.documentElement.clientHeight) { |
|
|
|
|
|
|
|
windowHight = |
|
|
|
|
|
|
|
document.body.clientHeight < document.documentElement.clientHeight |
|
|
|
|
|
|
|
? document.body.clientHeight |
|
|
|
|
|
|
|
: document.documentElement.clientHeight; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
// windowHight=(document.body.clientHeight>document.documentElement.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// return windowHight; |
|
|
|
|
|
|
|
return document.documentElement.clientHeight; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const height =(val)=>{ |
|
|
|
|
|
|
|
console.log('执行了计算高度'); |
|
|
|
|
|
|
|
var bodyContent = document.querySelectorAll('.maboxhi'); |
|
|
|
|
|
|
|
const _height = getWinHight(); |
|
|
|
|
|
|
|
// 设置列表的高度 |
|
|
|
|
|
|
|
bodyContent.forEach(val => { |
|
|
|
|
|
|
|
val.style.height = _height - val.getBoundingClientRect().top - (val) + 'px'; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
// 查询超时记录 |
|
|
|
// 查询超时记录 |
|
|
|
const TimeoutHandling = val => { |
|
|
|
const TimeoutHandling = val => { |
|
|
|
timeoutList[3].checkarr = []; //异常类型名称 |
|
|
|
timeoutList[3].checkarr = []; //异常类型名称 |
|
|
@ -2144,6 +2187,18 @@ const tabChenge = val => { |
|
|
|
Tableheaderswitching(columnList); //表头切换 |
|
|
|
Tableheaderswitching(columnList); //表头切换 |
|
|
|
empty(); |
|
|
|
empty(); |
|
|
|
IndexTable(data); |
|
|
|
IndexTable(data); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('执行了计算高度'); |
|
|
|
|
|
|
|
var bodyContent = document.querySelectorAll('.maboxhi'); |
|
|
|
|
|
|
|
const _height = getWinHight(); |
|
|
|
|
|
|
|
// 设置列表的高度 |
|
|
|
|
|
|
|
bodyContent.forEach(val => { |
|
|
|
|
|
|
|
val.style.height = _height - val.getBoundingClientRect().top - (65+20) + 'px'; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (val == 7) { |
|
|
|
} else if (val == 7) { |
|
|
|
// 超时未处理 |
|
|
|
// 超时未处理 |
|
|
|
ProcessingPartyState.value = false; //关闭处理方 |
|
|
|
ProcessingPartyState.value = false; //关闭处理方 |
|
|
@ -2994,6 +3049,9 @@ const CompletedSubmission = () => { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: flex-end; |
|
|
|
align-items: flex-end; |
|
|
|
margin-bottom: 10px; |
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
|
|
position: fixed; |
|
|
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
|
|
right: 6px; |
|
|
|
} |
|
|
|
} |
|
|
|
.el-times { |
|
|
|
.el-times { |
|
|
|
:deep(.el-input__wrapper) { |
|
|
|
:deep(.el-input__wrapper) { |
|
|
@ -3287,7 +3345,4 @@ const CompletedSubmission = () => { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
:deep(#bodys){ |
|
|
|
|
|
|
|
height: auto !important; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |
|
|
|