Browse Source

修改完结和处理结果确定按钮

dev-xx
马远东 1 year ago
parent
commit
3c2d18561d
  1. 41
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 70
      src/views/aftersales/aftersalesWorkOrderend.vue

41
src/views/aftersales/aftersalesWorkOrder.vue

@ -171,6 +171,12 @@
@click="view(slotProps.scope)"
>查看</el-button
>
<!-- 处理结果确定和完结确定 -->
<el-button
v-if="TabPermissions == '2' || TabPermissions == '6'"
@click="DetermineStorage(slotProps.scope)"
>确定</el-button
>
<!-- AppealStatusT申诉列表状态 -->
<el-button v-if="AppealStatusT">待添加</el-button>
<!-- <el-button @click="ViewEvent(slotProps.scope)">编辑</el-button> -->
@ -2239,6 +2245,41 @@ const fellSuccess = (response, uploadFile) => {
KFfeel.value = response.data.link;
}
};
//
const DetermineStorage = (val) => {
let data = {
assignList: [],
};
let ID = {};
ID = val.row.id;
data['assignList'].push(ID);
if (routerState.value == 'end') {
$_updateManagerConfirmed(data).then(res => {
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
console.log(res, '完结确定');
});
//
console.log(data, '处理好的值');
} else {
console.log(data, '处理好的数据');
$_updateWorkOrderStatus(data).then(res => {
console.log(res, '确定提交存储');
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
});
}
};
//
const BatchReturn = () => {
BatchFrom.value.businessDepartment = [];

70
src/views/aftersales/aftersalesWorkOrderend.vue

@ -571,13 +571,13 @@
>提交</el-button
>
<el-button
<!-- <el-button
@click="DetermineStorage"
v-if="$route.query.index != '0'"
type="primary"
class="button"
>确定</el-button
>
> -->
<el-button
v-if="$route.query.index == '0'"
@ -1733,39 +1733,39 @@ const PaymentConfirmation = val => {
};
//
const DetermineStorage = () => {
let data = {
assignList: [],
};
let a = {};
a = $route.query.id;
data['assignList'].push(a);
if (routerState.value == 'end') {
$_updateManagerConfirmed(data).then(res => {
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
console.log(res, '完结确定');
});
//
console.log(data, '处理好的值');
} else {
console.log(a);
console.log(data, '处理好的数据');
$_updateWorkOrderStatus(data).then(res => {
console.log(res, '确定提交存储');
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
});
}
};
// const DetermineStorage = () => {
// let data = {
// assignList: [],
// };
// let a = {};
// a = $route.query.id;
// data['assignList'].push(a);
// if (routerState.value == 'end') {
// $_updateManagerConfirmed(data).then(res => {
// if (res.data.code == 200) {
// ElMessage({
// message: res.data.msg,
// type: 'success',
// });
// }
// console.log(res, '');
// });
// //
// console.log(data, '');
// } else {
// console.log(a);
// console.log(data, '');
// $_updateWorkOrderStatus(data).then(res => {
// console.log(res, '');
// if (res.data.code == 200) {
// ElMessage({
// message: res.data.msg,
// type: 'success',
// });
// }
// });
// }
// };
//
const submit = () => {

Loading…
Cancel
Save