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)" @click="view(slotProps.scope)"
>查看</el-button >查看</el-button
> >
<!-- 处理结果确定和完结确定 -->
<el-button
v-if="TabPermissions == '2' || TabPermissions == '6'"
@click="DetermineStorage(slotProps.scope)"
>确定</el-button
>
<!-- AppealStatusT申诉列表状态 --> <!-- AppealStatusT申诉列表状态 -->
<el-button v-if="AppealStatusT">待添加</el-button> <el-button v-if="AppealStatusT">待添加</el-button>
<!-- <el-button @click="ViewEvent(slotProps.scope)">编辑</el-button> --> <!-- <el-button @click="ViewEvent(slotProps.scope)">编辑</el-button> -->
@ -2239,6 +2245,41 @@ const fellSuccess = (response, uploadFile) => {
KFfeel.value = response.data.link; 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 = () => { const BatchReturn = () => {
BatchFrom.value.businessDepartment = []; BatchFrom.value.businessDepartment = [];

70
src/views/aftersales/aftersalesWorkOrderend.vue

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

Loading…
Cancel
Save