Browse Source

Merge branch 'dev' of http://47.108.105.48:3000/java_project/logpm_page into dev

pre-production
pref_mail@163.com 1 year ago
parent
commit
bd4e829ff5
  1. 2
      src/api/aftersales/aftersalesWorkOrder.js
  2. 47
      src/option/aftersales/vueTvemp.js
  3. 18
      src/router/views/index.js
  4. 462
      src/views/aftersales/aftersalesWorkOrder.vue
  5. 2398
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  6. 2802
      src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue
  7. 1967
      src/views/aftersales/aftersalesWorkOrderInfoTemp.vue
  8. 75
      src/views/aftersales/aftersalesWorkOrderend.vue
  9. 852
      src/views/aftersales/aftersalesWorkOrdermodify.vue
  10. 10
      src/views/basicdata/driverArtery/basicdataDriverArtery.vue
  11. 2
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue
  12. 2
      vite.config.js

2
src/api/aftersales/aftersalesWorkOrder.js

@ -382,7 +382,7 @@ export const $_updateWorkOrderStatus = (data) => {
data data
}) })
} }
// 完结结果确定 // 处理结果完结结果确定
export const $_updateManagerConfirmed = (data) => { export const $_updateManagerConfirmed = (data) => {
return request({ return request({
url: '/api/logpm-aftersales/aftersalesWorkOrder/updateManagerConfirmed', url: '/api/logpm-aftersales/aftersalesWorkOrder/updateManagerConfirmed',

47
src/option/aftersales/vueTvemp.js

@ -125,8 +125,8 @@ export const columnList = [
head: false, head: false,
}, },
{ {
prop: 'trainNumber', prop: 'customerServiceName',
label: '车次号', label: '归属客服名称',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
@ -136,17 +136,6 @@ export const columnList = [
head: false, head: false,
}, },
{
prop: 'vehicleRoute',
label: '车辆线路',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{ {
prop: 'deliverGoodsTime', prop: 'deliverGoodsTime',
label: '送货时间', label: '送货时间',
@ -204,10 +193,21 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
}, },
{
prop: 'trainNumber',
label: '车次号',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{ {
prop: 'customerServiceName', prop: 'vehicleRoute',
label: '归属客服名称', label: '车辆线路',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
@ -216,6 +216,9 @@ export const columnList = [
sortable: true, sortable: true,
head: false, head: false,
}, },
{ {
prop: 'overTime', prop: 'overTime',
label: '完结时间', label: '完结时间',
@ -811,18 +814,6 @@ export const timeoutList = [
}, },
{
prop: 'workOrderId',
label: '异常工单ID',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{ {
prop: 'money', prop: 'money',
label: '金额', label: '金额',
@ -905,7 +896,7 @@ export const timeoutList = [
label: '操作', label: '操作',
type: 6, type: 6,
values: '', values: '',
width: '220', width: '120',
checkarr: [], checkarr: [],
fixed: 'right', fixed: 'right',
sortable: false, sortable: false,

18
src/router/views/index.js

@ -1282,6 +1282,24 @@ export default [
], ],
}, },
{
path: '/aftersales/aftersalesWorkOrderInfoEnxt',
component: Layout,
redirect: '/aftersales/aftersalesWorkOrderInfoEnxt',
children: [
{
meta: {
i18n: 'dict',
keepAlive: false,
},
path: '/aftersales/aftersalesWorkOrderInfoEnxt',
name: '编辑重构',
component: () => import('@/views/aftersales/aftersalesWorkOrderInfoEnxt.vue'),
},
],
},
{ {
path: '/aftersales/aftersalesWorkOrderend', path: '/aftersales/aftersalesWorkOrderend',
component: Layout, component: Layout,

462
src/views/aftersales/aftersalesWorkOrder.vue

@ -83,8 +83,6 @@
<div class="avue-crud__header"> <div class="avue-crud__header">
<!-- 头部左侧按钮模块 --> <!-- 头部左侧按钮模块 -->
<div class="avue-crud__left"> <div class="avue-crud__left">
<!-- v-if="ButtonPermissions.add" -->
<!-- v-if="PermissionButton.workAdd" -->
<el-button v-if="ButtonPermissions.add" type="primary" @click="AddInfo"> <el-button v-if="ButtonPermissions.add" type="primary" @click="AddInfo">
<el-icon><Plus /></el-icon> </el-button <el-icon><Plus /></el-icon> </el-button
> >
@ -92,42 +90,59 @@
<el-icon><Delete /></el-icon></el-button <el-icon><Delete /></el-icon></el-button
> --> > -->
<!-- v-if="ButtonPermissions.batchReject" -->
<!-- v-if="PermissionButton.batch_return" -->
<el-button <el-button
v-if="ButtonPermissions.batchReject" v-if="ButtonPermissions.batchReject"
type="primary" type="primary"
@click="BatchReturn" @click="BatchReturn"
>批量打回</el-button >批量打回</el-button
> >
<!-- v-if="ButtonPermissions.assignment" --> <!-- 仓库客服批量确定 -->
<!-- v-if="PermissionButton.assign" --> <el-button
<el-button type="primary" @click="assign">工单指派</el-button> v-if="ButtonPermissions.Batchdetermination"
type="primary"
@click="ResultConfirmation"
>批量确定</el-button
>
<!-- 总部客服批量确定 -->
<!-- <el-button
v-if="ButtonPermissions.ManagerConfirmed"
@click="DetermineStorage"
>批量确定</el-button
> -->
<el-button type="primary" v-if="ButtonPermissions.assignment" @click="assign"
>工单指派</el-button
>
<!-- v-if="ButtonPermissions.applyArbitration" -->
<!-- v-if="PermissionButton.apply_arbitration" -->
<el-button <el-button
v-if="ButtonPermissions.applyArbitration" v-if="ButtonPermissions.applyArbitration"
type="primary" type="primary"
@click="arbitrate" @click="arbitrate"
>客服介入</el-button >客服介入</el-button
> >
<el-button type="primary" @click="DingTalk">钉钉号填写</el-button> <el-button
type="primary"
v-if="ButtonPermissions.DingTalkNumber"
@click="DingTalk"
>钉钉号填写</el-button
>
<!-- v-if="ButtonPermissions.batchFinish" --> <el-button
<!-- v-if="PermissionButton.batch_completion" --> v-if="ButtonPermissions.batchFinish"
<el-button ButtonPermissions.batchFinish type="primary" @click="Batchcompletion" type="primary"
@click="Batchcompletion"
>批量完结</el-button >批量完结</el-button
> >
<el-button <!-- <el-button
ButtonPermissions.batchFinish ButtonPermissions.batchFinish
type="primary" type="primary"
v-if="AppealStatusT"
@click="Batchdeletionappeals" @click="Batchdeletionappeals"
>批量删除</el-button >批量删除</el-button
> > -->
<!-- v-if="ButtonPermissions.appeal" -->
<!-- v-if="PermissionButton.representations" -->
<el-button v-if="ButtonPermissions.appeal" type="primary" @click="appeal" <el-button v-if="ButtonPermissions.appeal" type="primary" @click="appeal"
>申诉</el-button >申诉</el-button
> >
@ -177,26 +192,28 @@
<div class="ElBtnClass"> <div class="ElBtnClass">
<div> <div>
<!-- <el-button @click="addingRecord(slotProps.scope)">新增记录</el-button> --> <!-- <el-button @click="addingRecord(slotProps.scope)">新增记录</el-button> -->
<el-button <el-button @click="view(slotProps.scope)">查看</el-button>
v-if=" <!-- v-if="
(!AppealStatusT && TabPermissions != '8') || (!AppealStatusT && TabPermissions != '8') || (AppealStatusT && UserPermissions !== '仓库客服' && slotProps.scope.row.typesOf != '2')
(AppealStatusT && " -->
UserPermissions !== '仓库客服' &&
slotProps.scope.row.typesOf != '2')
"
@click="view(slotProps.scope)"
>查看</el-button
>
<!-- 处理结果确定和处理完毕 --> <!-- 处理结果确定和处理完毕 -->
<!-- 总部客服确定 -->
<!-- <el-button
v-if="TabPermissions == '2' && UserPermissions == '总部客服经理'"
@click="ResultConfirmation(slotProps.scope)"
>确定</el-button
> -->
<!-- 仓库客服确定 -->
<el-button <el-button
v-if=" v-if="
TabPermissions == '1' || TabPermissions == '2' ( TabPermissions == '2' || TabPermissions == '1' ) && slotProps.scope.row.workOrderStatus == '21' && (UserPermissions == '仓库客服' || UserPermissions == '总部客服经理')"
"
@click="DetermineStorage(slotProps.scope)"
@click="ResultConfirmation(slotProps.scope)"
>确定</el-button >确定</el-button
> >
<!-- 仓库客服的缺点
<!-- 仓库客服的缺确定
<el-button <el-button
v-if=" v-if="
TabPermissions == '1' && slotProps.scope.row.workOrderStatus != '30' TabPermissions == '1' && slotProps.scope.row.workOrderStatus != '30'
@ -204,8 +221,6 @@
@click="DetermineStorage(slotProps.scope)" @click="DetermineStorage(slotProps.scope)"
>确定</el-button >确定</el-button
> --> > -->
<el-button <el-button
v-if=" v-if="
TabPermissions == '6' && TabPermissions == '6' &&
@ -233,14 +248,26 @@
>编辑</el-button >编辑</el-button
> >
<!-- 处理完毕 处理结果编辑 --> <!-- 处理完毕 处理结果编辑 -->
<el-button <el-button
v-if="TabPermissions == '2' && UserPermissions == '仓库客服'" v-if="
TabPermissions == '2' &&
UserPermissions == '仓库客服' &&
slotProps.scope.row.workOrderStatus == '21'
"
@click="ProcessedResultediting(slotProps.scope)" @click="ProcessedResultediting(slotProps.scope)"
>编辑</el-button >编辑</el-button
> >
<!-- 完结信息编辑 -->
<!-- <el-button
v-if="
TabPermissions == '6' &&
UserPermissions != '仓库客服' &&
slotProps.scope.row.typesOfName == '待处理'
"
@click="CompletedEditing(slotProps.scope)"
>编辑</el-button
> -->
<!-- 理赔金额确定 --> <!-- 理赔金额确定 -->
<el-button <el-button
@ -280,13 +307,13 @@
<!-- <el-button v-if="ClaimStatus" @click="appeal(slotProps.scope)" <!-- <el-button v-if="ClaimStatus" @click="appeal(slotProps.scope)"
>申诉</el-button >申诉</el-button
> --> > -->
</div>
<el-button <el-button
v-if="TabPermissions == 7" v-if="TabPermissions == '7' && UserPermissions != '仓库客服'"
@click="BtnModifyAmount(slotProps.scope)" @click="BtnModifyAmount(slotProps.scope)"
>修改金额</el-button >修改金额</el-button
> >
</div> </div>
</div>
</template> </template>
</template> </template>
</tablecmt> </tablecmt>
@ -713,6 +740,23 @@ console.log(accessControl, '权限按钮');
// arbitration_completed;// // arbitration_completed;//
// information_editing;// // information_editing;//
console.log(accessControl.workAdd, '新增按钮权限'); console.log(accessControl.workAdd, '新增按钮权限');
// const PermissionButton = computed(() => {
// return {
// workAdd: accessControl.workAdd, //
// batch_return: accessControl.batch_return, //
// assign: accessControl.assign, //
// apply_arbitration: accessControl.apply_arbitration, //
// batch_completion: accessControl.batch_completion, //
// representations: accessControl.representations, //
// reply: accessControl.reply, //
// processing_completed: accessControl.processing_completed, //
// work_order_completion: accessControl.work_order_completion, //
// repulse: accessControl.repulse, //
// arbitration_completed: accessControl.arbitration_completed, //
// information_editing: accessControl.information_editing, //
// };
// });
const PermissionButton = computed(() => { const PermissionButton = computed(() => {
return { return {
workAdd: accessControl.workAdd, // workAdd: accessControl.workAdd, //
@ -729,6 +773,7 @@ const PermissionButton = computed(() => {
information_editing: accessControl.information_editing, // information_editing: accessControl.information_editing, //
}; };
}); });
const DingTalkfilling = ref({}); // const DingTalkfilling = ref({}); //
const dialogDingTalk = ref(false); // const dialogDingTalk = ref(false); //
const tabValue = ref(0); // const tabValue = ref(0); //
@ -1012,75 +1057,109 @@ const ButtonPermissions = computed(() => {
switch (TabPermissions.value) { switch (TabPermissions.value) {
case 0: // case 0: //
return { return {
add: UserPermissions.value == '仓库客服', // // add: true, //
batchReject: UserPermissions.value == '职能客服', // // batchReject: true, //
assignment: UserPermissions.value == '客服经理', // // assignment: true, //
applyArbitration: UserPermissions.value == '仓库客服', // // applyArbitration:true, //
batchFinish: UserPermissions.value == '职能客服' || UserPermissions.value == '客服经理', // // DingTalkNumber:true,//
// batchFinish:true, //
// appeal: true, //
add:true, //
batchReject: UserPermissions.value != '仓库客服', //
assignment: UserPermissions.value == '总部客服经理', //
applyArbitration: UserPermissions.value == '仓库客服', //
DingTalkNumber: UserPermissions.value == '总部客服经理', //
batchFinish: UserPermissions.value != '仓库客服', //
appeal: false, // appeal: false, //
ManagerConfirmed:false,//
}; };
case 1: // case 1: //
return { return {
add: false, // add: false, //
batchReject: UserPermissions.value == '职能客服' || UserPermissions.value == '客服经理', // batchReject: UserPermissions.value == '职能客服' || UserPermissions.value == '客服经理', //
assignment: false, // assignment: false, //
applyArbitration: UserPermissions.value == '仓库客服', // applyArbitration: UserPermissions.value == '仓库客服', //
batchFinish: UserPermissions.value != '仓库客服', // batchFinish: UserPermissions.value != '仓库客服', //
Batchdetermination: UserPermissions.value != '仓库客服', //
appeal: false, // appeal: false, //
ManagerConfirmed:false,//
}; };
case 2: // case 2: //
return { return {
add: false, // add: false, //
batchReject: false, // batchReject: false, //
assignment: false, // assignment: false, //
applyArbitration: false, // applyArbitration: false, //
batchFinish: false, // batchFinish: false, //
appeal: UserPermissions.value == '仓库客服' && AppealStatusT.value, // appeal: UserPermissions.value == '仓库客服' && AppealStatusT.value, //
Batchdetermination: UserPermissions.value == '仓库客服', //
ManagerConfirmed:UserPermissions.value == '总部客服经理',//
}; };
case 3: // case 3: //
return { return {
add: false, // add: false, //
batchReject: UserPermissions.value == '职能客服', // batchReject: UserPermissions.value == '总部客服', //
assignment: UserPermissions.value == '客服经理', // assignment: UserPermissions.value == '总部客服经理', //
applyArbitration: false, // applyArbitration: UserPermissions.value == '仓库客服', //
batchFinish: false, // batchFinish:UserPermissions.value != '仓库客服' , //
appeal: false, // appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
}; };
case 4: // case 4: //
return { return {
add: false, // add: false, //
batchReject: false, // batchReject: false, //
assignment: false, // assignment: false, //
applyArbitration: false, // applyArbitration: false, //
batchFinish: false, // batchFinish: false, //
appeal: false, // appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
}; };
case 5: // case 5: //
return { return {
add: false, // add: false, //
batchReject: false, // batchReject: false, //
assignment: false, // assignment: false, //
applyArbitration: false, // applyArbitration: false, //
batchFinish: false, // batchFinish: false, //
appeal: false, // appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
}; };
case 6: // case 6: //
return { return {
add: false, // add: false, //
batchReject: false, // batchReject: false, //
assignment: false, // assignment: false, //
applyArbitration: false, // applyArbitration: false, //
batchFinish: false, // batchFinish: false, //
appeal: true, // appeal: UserPermissions.value == '仓库客服', //
Batchdetermination: false, //
ManagerConfirmed:false,//
}; };
case 7: // case 7: //
return { return {
add: false, // add: false, //
batchReject: false, // batchReject: false, //
assignment: false, // assignment: false, //
applyArbitration: false, // applyArbitration: false, //
batchFinish: false, // batchFinish: false, //
appeal: false, // appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
};
case 8: //
return {
add: false, //
batchReject: false, //
assignment: false, //
applyArbitration: true, //
batchFinish: false, //
appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
}; };
// //
default: default:
@ -1091,6 +1170,8 @@ const ButtonPermissions = computed(() => {
applyArbitration: false, applyArbitration: false,
batchFinish: false, batchFinish: false,
appeal: false, appeal: false,
Batchdetermination: false, //
ManagerConfirmed:false,//
}; };
} }
}); });
@ -1412,6 +1493,7 @@ const InformationViewing = val => {
RouteIndexs: TabPermissions.value, // RouteIndexs: TabPermissions.value, //
Routstate: 'appeal', // Routstate: 'appeal', //
AppealReview: val.row.typesOf == '0' ? 'true' : 'false', // AppealReview: val.row.typesOf == '0' ? 'true' : 'false', //
workOrderStatus: val.row.workOrderStatus, //
}, },
}); });
return; return;
@ -1437,6 +1519,23 @@ const InformationViewing = val => {
}); });
return; return;
} }
if (TabPermissions.value == 7) {
console.log('当前在超时未处理未出');
$router.push({
path: '/aftersales/aftersalesWorkOrderInfo',
query: {
id: val.row.workOrderId,
appealID: val.row.id, //
name: val.row.workOrderNumber + '-信息查看',
warehouseId: val.row.warehouseId,
workOrderNumber: val.row.workOrderNumber, //
businessId: val.row.businessId,
RouteIndexs: TabPermissions.value, //
workOrderStatus: val.row.workOrderStatus, //
},
});
return
}
$router.push({ $router.push({
path: '/aftersales/aftersalesWorkOrderInfo', path: '/aftersales/aftersalesWorkOrderInfo',
query: { query: {
@ -1447,6 +1546,7 @@ const InformationViewing = val => {
businessId: val.row.businessId, businessId: val.row.businessId,
ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2 ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2
RouteIndexs: TabPermissions.value, // RouteIndexs: TabPermissions.value, //
workOrderStatus: val.row.workOrderStatus, //
}, },
}); });
}; };
@ -1466,16 +1566,15 @@ const view = val => {
workOrderNumber: val.row.workOrderNumber, // workOrderNumber: val.row.workOrderNumber, //
businessId: val.row.businessId, businessId: val.row.businessId,
ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2 ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2
RouteIndexs: TabPermissions.value, // RouteIndexs: TabPermissions.value, //
Routstate: 'appeal', // Routstate: 'appeal', //
AppealReview: val.row.typesOf == '0' ? 'true' : 'false', // AppealReview: val.row.typesOf == '0' ? 'true' : 'false', //
workOrderStatus: val.row.workOrderStatus, //
}, },
}); });
return; return;
} }
// //
if (TabPermissions.value == 4) { if (TabPermissions.value == 4) {
$router.push({ $router.push({
@ -1497,6 +1596,29 @@ const view = val => {
}); });
return; return;
} }
if (TabPermissions.value == 7) {
console.log('当前在超时未处理未出');
$router.push({
path: '/aftersales/aftersalesWorkOrderInfo',
query: {
id: val.row.workOrderId,
appealID: val.row.id, //
name: val.row.workOrderNumber + '-信息查看',
warehouseId: val.row.warehouseId,
workOrderNumber: val.row.workOrderNumber, //
businessId: val.row.businessId,
RouteIndexs: TabPermissions.value, //
workOrderStatus: val.row.workOrderStatus, //
},
});
return
}
$router.push({ $router.push({
// AppealStatusT // AppealStatusT
@ -1751,7 +1873,7 @@ const Resultediting = val => {
}, },
}); });
}; };
const ProcessedResultediting=(val)=>{ const ProcessedResultediting = val => {
console.log(val, '参数'); console.log(val, '参数');
// return // return
$router.push({ $router.push({
@ -1769,7 +1891,27 @@ console.log(val,'参数');
index: '1', index: '1',
}, },
}); });
} };
//
const CompletedEditing = val => {
console.log(val);
$router.push({
path: '/aftersales/aftersalesWorkOrdermodify',
query: {
id: val.row.workOrderId,
name: val.row.workOrderNumber + '-完结编辑',
businessId: val.row.businessId,
warehouseId: val.row.warehouseId,
workOrderNumber: val.row.workOrderNumber,
RouterState: 'Kfend',
CompletedEditing: 'true', //
Appealeditor: 'appeal', //
Processed: 'true',
index: '1',
},
});
};
// //
const Appealbutton = state => { const Appealbutton = state => {
if (UserPermissions.value == '仓库客服') { if (UserPermissions.value == '仓库客服') {
@ -1866,8 +2008,8 @@ const inputsc = (index, row) => {
processRowProperty(index, row, details); processRowProperty(index, row, details);
details.query[row.prop] = index; details.query[row.prop] = index;
// tabChenge( TabPermissions.value,details.query) // tabChenge( TabPermissions.value,details.query)
DataRendering(TabPermissions.value,details.query) DataRendering(TabPermissions.value, details.query);
return return;
console.log('没有执行'); console.log('没有执行');
if (TabPermissions.value == '4') { if (TabPermissions.value == '4') {
// //
@ -1887,7 +2029,7 @@ const inputsc = (index, row) => {
} }
if (TabPermissions.value == '7') { if (TabPermissions.value == '7') {
TimeoutHandling(details.query); // TimeoutHandling(details.query); //
return return;
} }
IndexTable(details.query); // IndexTable(details.query); //
@ -1922,9 +2064,8 @@ const inputsc = (index, row) => {
}; };
// //
const searchChange = () => { const searchChange = () => {
DataRendering(TabPermissions.value, details.query);
DataRendering(TabPermissions.value,details.query) return;
return
if (ClaimStatus.value) { if (ClaimStatus.value) {
// //
@ -1996,8 +2137,8 @@ const selectsc = (index, row) => {
console.log(details, '下拉的参数'); console.log(details, '下拉的参数');
details.query.workOrderStatus = TabPermissions.value; details.query.workOrderStatus = TabPermissions.value;
DataRendering(TabPermissions.value,details.query) DataRendering(TabPermissions.value, details.query);
return return;
if (TimeoutStatus.value) { if (TimeoutStatus.value) {
// //
@ -2045,8 +2186,8 @@ const selectionChange = list => {
/** 页码改变执行的回调 */ /** 页码改变执行的回调 */
const currentChange = val => { const currentChange = val => {
page.value.currentPage = val; page.value.currentPage = val;
DataRendering(TabPermissions.value,details.query) DataRendering(TabPermissions.value, details.query);
return return;
// //
if (TimeoutStatus.value) { if (TimeoutStatus.value) {
TimeoutHandling(details.query); TimeoutHandling(details.query);
@ -2075,8 +2216,8 @@ const currentChange = val => {
// //
const sizeChange = val => { const sizeChange = val => {
page.value.pageSize = val; page.value.pageSize = val;
DataRendering(TabPermissions.value,details.query) DataRendering(TabPermissions.value, details.query);
return return;
// //
if (TimeoutStatus.value) { if (TimeoutStatus.value) {
TimeoutHandling(details.query); TimeoutHandling(details.query);
@ -2277,11 +2418,12 @@ function AppealListFn(val) {
// //
const BtnModifyAmount = val => { const BtnModifyAmount = val => {
console.log(val, '超时金额修改'); console.log(val, '超时金额修改');
dialogModifyAmount.value = true; // dialogModifyAmount.value = true; //
fromamount.value.title = val.row.workOrderNumber; // fromamount.value.title = val.row.workOrderNumber; //
fromamount.value.ytimeout = val.row.money; // fromamount.value.ytimeout = val.row.money; //
fromamount.value.id = val.row.lawoId; //id fromamount.value.id = val.row.id; //id
}; };
// //
const ModifyAmountFn = () => { const ModifyAmountFn = () => {
@ -2300,6 +2442,8 @@ const ModifyAmountFn = () => {
}); });
} }
dialogModifyAmount.value = false; // dialogModifyAmount.value = false; //
}).catch(res=>{
dialogModifyAmount.value = false; //
}); });
}; };
function getWinHight() { function getWinHight() {
@ -2459,9 +2603,7 @@ const DataRendering =(val,input)=>{
} }
} }
console.log('执行完毕'); console.log('执行完毕');
} };
// //
@ -2476,8 +2618,8 @@ const tabChenge = async (val, input) => {
...input, // ...input, //
}; };
await empty(); await empty();
DataRendering(TabPermissions.value,input) DataRendering(TabPermissions.value, input);
return return;
if (val == 0) { if (val == 0) {
ProcessingPartyState.value = false; // ProcessingPartyState.value = false; //
ArbitrationStatus.value = true; // ArbitrationStatus.value = true; //
@ -2791,14 +2933,52 @@ const fellSuccess = (response, uploadFile) => {
}; };
// //
const DetermineStorage = val => { const DetermineStorage = val => {
let data = { let data = {
assignList: [], assignList: [],
}; };
let ConfirmStatus = false; //
if (!val.row) {
//
console.log('当前点击的批量确定');
if (!details.selectionList.length) {
ElMessage({
message: '请勾选要处理的数据数据',
type: 'warning',
});
return;
} else {
ConfirmStatus = true; //
data['assignList'] = details.selectionList.map(item => item.id);
console.log(data['assignList'], '批量确定处理好的参数');
}
} else {
let ID = {}; let ID = {};
ID = val.row.id; ID = val.row.id;
data['assignList'].push(ID); data['assignList'].push(ID);
}
if (ConfirmStatus) {
//
let state = details.selectionList.every(item => item.workOrderStatus == '40');
if (!state) {
ElMessage({
message: '批量确认中状态只能为待审核',
type: 'warning',
});
return;
}
}else{
if(val.workOrderStatus != '40'){
ElMessage({
message: '状态错误,已经确认过',
type: 'warning',
});
return
}
}
details.loadingObj.list = true; // details.loadingObj.list = true; //
if (UserPermissions.value == '总部客服经理' && TabPermissions.value == '1') {
// //
$_updateManagerConfirmed(data) $_updateManagerConfirmed(data)
.then(res => { .then(res => {
@ -2812,18 +2992,64 @@ const DetermineStorage = val => {
tabChenge(TabPermissions.value); tabChenge(TabPermissions.value);
}) })
.catch(res => { .catch(res => {
console.log(res,'错误信息');
}).finally(res=>{
details.loadingObj.list = false; // details.loadingObj.list = false; //
}); })
// //
console.log(data, '处理好的值'); console.log(data, '处理好的值');
};
//
const ResultConfirmation = (val) => {
if(UserPermissions.value == '仓库客服'){ //
let data = {
assignList: [],
};
let ConfirmStatus = false; //
if (!val.row) {
//
console.log('当前点击的批量确定');
if (!details.selectionList.length) {
ElMessage({
message: '请勾选要处理的数据数据',
type: 'warning',
});
return; return;
} else {
ConfirmStatus = true; //
data['assignList'] = details.selectionList.map(item => item.id);
console.log(data['assignList'], '批量确定处理好的参数');
}
} else {
let ID = {};
ID = val.row.id;
data['assignList'].push(ID);
} }
// //
if (
TabPermissions.value == '2' && UserPermissions.value == '仓库客服' && val.row.workOrderStatus != '30' if (ConfirmStatus) {
) { //
// let state = details.selectionList.every(item => item.workOrderStatus == '21');
if (!state) {
ElMessage({
message: '批量确认中有状态不符合的必须为处理结果已提交',
type: 'warning',
});
return;
}
}else{
if(val.workOrderStatus == '30'){
ElMessage({
message: '状态错误,已经确认过',
type: 'warning',
});
return
}
}
details.loadingObj.list = true; //
console.log(data, '处理好的数据'); console.log(data, '处理好的数据');
$_updateWorkOrderStatus(data) $_updateWorkOrderStatus(data)
.then(res => { .then(res => {
@ -2839,9 +3065,73 @@ const DetermineStorage = val => {
.catch(res => { .catch(res => {
details.loadingObj.list = false; // details.loadingObj.list = false; //
}); });
} }else{
let data = {
assignList: [],
}; };
let ConfirmStatus = false; //
if (!val.row) {
//
console.log('当前点击的批量确定');
if (!details.selectionList.length) {
ElMessage({
message: '请勾选要处理的数据数据',
type: 'warning',
});
return;
} else {
ConfirmStatus = true; //
data['assignList'] = details.selectionList.map(item => item.id);
console.log(data['assignList'], '批量确定处理好的参数');
}
} else {
let ID = {};
ID = val.row.id;
data['assignList'].push(ID);
}
if (ConfirmStatus) {
//
let state = details.selectionList.every(item => item.workOrderStatus == '40');
if (!state) {
ElMessage({
message: '批量确认中状态只能为待审核',
type: 'warning',
});
return;
}
}else{
if(val.workOrderStatus != '40'){
ElMessage({
message: '状态错误,已经确认过',
type: 'warning',
});
return
}
}
details.loadingObj.list = true; //
//
$_updateManagerConfirmed(data)
.then(res => {
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
console.log(res, '处理完毕确定');
tabChenge(TabPermissions.value);
})
.catch(res => {
console.log(res,'错误信息');
}).finally(res=>{
details.loadingObj.list = false; //
})
//
console.log(data, '处理好的值');
}
};
// //
const BatchReturn = () => { const BatchReturn = () => {
BatchFrom.value.businessDepartment = []; BatchFrom.value.businessDepartment = [];

2398
src/views/aftersales/aftersalesWorkOrderInfo.vue

File diff suppressed because it is too large Load Diff

2802
src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue

File diff suppressed because it is too large Load Diff

1967
src/views/aftersales/aftersalesWorkOrderInfoTemp.vue

File diff suppressed because it is too large Load Diff

75
src/views/aftersales/aftersalesWorkOrderend.vue

@ -1,5 +1,7 @@
<template> <template>
<el-card class="box-card"> <el-card class="box-card"
v-loading="Pageloading"
element-loading-text="Loading...">
<!-- <template #header> <!-- <template #header>
<div class="card-header"> <div class="card-header">
<span>{{ <span>{{
@ -449,7 +451,7 @@
}}</b></span }}</b></span
> >
<span> <span>
<el-icon><Coin /></el-icon>:<b>{{ TotalamountReceived }}</b></span <el-icon><Coin /></el-icon>:<b>{{ TotalamountReceived }}</b></span
> >
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -580,7 +582,7 @@
> --> > -->
<el-button <el-button
v-if="$route.query.index == '0'" v-if="$route.query.workOrderStatus == '10' && UserPermissions.value != '仓库客服' "
type="primary" type="primary"
class="button" class="button"
@click="CustomerServiceCompleted" @click="CustomerServiceCompleted"
@ -631,10 +633,33 @@
> >
<!-- {time: '2021-08-06 16:00:00',content:'内容4',name:'营业部名称'}, --> <!-- {time: '2021-08-06 16:00:00',content:'内容4',name:'营业部名称'}, -->
<el-card> <el-card>
<div class="header-top">
<div class="e_ico"> <div class="e_ico">
<el-icon><User /></el-icon>: <el-icon><User /></el-icon>:
<h4>{{ item.username }}{{ item.name }}</h4> <h4>{{ item.username }}{{ item.name }}</h4>
</div> </div>
<el-tag
:class="{
identifyingC1: item.difference == '1',
identifyingC2: item.difference == '2',
identifyingC3: item.difference == '3',
'mx-1': true,
}"
effect="dark"
>{{
item.difference == '1'
? ' 调查记录'
: item.difference == '2'
? '指定记录'
: item.difference == '3'
? '操作记录'
: ''
}}
</el-tag>
</div>
<div class="e_ico"> <div class="e_ico">
<el-icon><ChatRound /></el-icon>:<span> {{ item.content }}</span> <el-icon><ChatRound /></el-icon>:<span> {{ item.content }}</span>
</div> </div>
@ -663,31 +688,11 @@
</span> </span>
</a> </a>
</div> </div>
<div class="identifying">
<div class="e_ico"> <div class="e_ico">
<el-icon><Timer /></el-icon>: <el-icon><Timer /></el-icon>:
<p>{{ item.time }}</p> <p>{{ item.time }}</p>
</div> </div>
<div class="identifying">
<el-tag
:class="{
identifyingC1: item.difference == '1',
identifyingC2: item.difference == '2',
identifyingC3: item.difference == '3',
'mx-1': true,
}"
effect="dark"
>{{
item.difference == '1'
? ' 调查记录'
: item.difference == '2'
? '指定记录'
: item.difference == '3'
? '操作记录'
: ''
}}
</el-tag>
<div <div
class="tag" class="tag"
v-if=" v-if="
@ -901,6 +906,7 @@ const amplifyurl = ref(''); //当前点击的图片
const amplifysrcList = ref([]); // const amplifysrcList = ref([]); //
const Replycopy = ref([]); // const Replycopy = ref([]); //
const Mydata = ref(); // const Mydata = ref(); //
const Pageloading=ref(false);//load
const PackageInfo = ref([ const PackageInfo = ref([
// //
{ packageCode: '', orderCode: '', waybillNumber: '' }, { packageCode: '', orderCode: '', waybillNumber: '' },
@ -1873,7 +1879,7 @@ const submit = () => {
console.log(data, '处理好的值'); console.log(data, '处理好的值');
// //
Pageloading.value = true;//
$_addCompletionEnd(data) $_addCompletionEnd(data)
.then(res => { .then(res => {
console.log(res, '完结成功返回值'); console.log(res, '完结成功返回值');
@ -1888,6 +1894,7 @@ const submit = () => {
} }
}) })
.catch(res => { .catch(res => {
Pageloading.value = false;//
console.log(res, '提交失败'); console.log(res, '提交失败');
}); });
} else { } else {
@ -1972,7 +1979,7 @@ const submit = () => {
data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId; //ID data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId; //ID
console.log(data, '处理好的数据'); console.log(data, '处理好的数据');
Pageloading.value = true;//
$_addProcessingResults(data) $_addProcessingResults(data)
.then(res => { .then(res => {
console.log(res, '提交后的参数'); console.log(res, '提交后的参数');
@ -1986,7 +1993,9 @@ const submit = () => {
AddressClosed('/aftersales/aftersalesWorkOrderend'); // AddressClosed('/aftersales/aftersalesWorkOrderend'); //
} }
}) })
.catch(res => {}); .catch(res => {
Pageloading.value = false;//
});
} }
}; };
// //
@ -2580,6 +2589,14 @@ const CustomerServiceCompleted = () => {
cursor: pointer; cursor: pointer;
} }
} }
.header-top {
display: flex;
align-items: center;
justify-content: space-between;
:deep(.el-tag){
width: 70px;
}
}
} }
.inputMax { .inputMax {
position: absolute; position: absolute;
@ -2741,6 +2758,10 @@ const CustomerServiceCompleted = () => {
.identifying { .identifying {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
.el-tag{
width: 70px;
}
} }
.identifyingC1 { .identifyingC1 {
background-color: #409eff; background-color: #409eff;

852
src/views/aftersales/aftersalesWorkOrdermodify.vue

File diff suppressed because it is too large Load Diff

10
src/views/basicdata/driverArtery/basicdataDriverArtery.vue

@ -46,7 +46,7 @@
<!-- </el-button>--> <!-- </el-button>-->
<el-dialog title="物料导入" append-to-body v-model="excelBox" width="555px"> <el-dialog title="司机导入" append-to-body v-model="excelBox" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"> <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
<template #excelTemplate> <template #excelTemplate>
<el-button type="primary" @click="handleTemplate"> <el-button type="primary" @click="handleTemplate">
@ -102,7 +102,7 @@ export default {
res: 'data', res: 'data',
}, },
tip: '请上传 .xls,.xlsx 标准格式文件', tip: '请上传 .xls,.xlsx 标准格式文件',
action: '/api/logpm-basicdata/driverArtery/mport-stockArticle', action: '/api/logpm-basicdata/driverArtery/import-stockArticle',
}, },
{ {
label: '模板下载', label: '模板下载',
@ -790,7 +790,7 @@ export default {
}); });
}, },
handleExport() { handleExport() {
let downloadUrl = `/api/logpm-b1asicdata/driverArtery/export-basicdataDriverArteryMb?${ let downloadUrl = `/api/logpm-basicdata/driverArtery/export-basicdataDriverArtery?${
this.website.tokenHeader this.website.tokenHeader
}=${getToken()}`; }=${getToken()}`;
const {} = this.query; const {} = this.query;
@ -811,9 +811,9 @@ export default {
handleTemplate() { handleTemplate() {
console.log('下载模板!!!'); console.log('下载模板!!!');
exportBlob( exportBlob(
`/api/logpm/basicdata/driverArtery/export-basicdataDriverArteryMb?${this.website.tokenHeader}=${getToken()}` `/api/logpm-basicdata/driverArtery/export-basicdataDriverArteryMb?${this.website.tokenHeader}=${getToken()}`
).then(res => { ).then(res => {
downloadXls(res.data, '物料数据模板.xlsx'); downloadXls(res.data, '司机信息导入模板.xlsx');
}); });
}, },
beforeOpen(done, type) { beforeOpen(done, type) {

2
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -4095,7 +4095,7 @@ export default {
} }
if(!this.StackingPhoto.length){ if(!this.StackingPhoto.length){
ElMessage({ ElMessage({
message: '至少上传一张码照片', message: '至少上传一张码照片',
type: 'warning', type: 'warning',
}) })
return return

2
vite.config.js

@ -25,7 +25,7 @@ export default ({ mode, command }) => {
// target: 'http://192.168.6.122:8777', // target: 'http://192.168.6.122:8777',
// target: 'http://192.168.10.25:13000', // target: 'http://192.168.10.25:13000',
// target: 'http://192.168.10.25:2888', // target: 'http://192.168.10.25:2888',
target: 'http://192.168.6.163:9777',//CYZ target: 'http://192.168.6.169:9777',//CYZ
// target: 'http://192.168.10.57:13000', // target: 'http://192.168.10.57:13000',
// target: 'http://192.168.10.200:13000', // target: 'http://192.168.10.200:13000',
// target: 'http://192.168.10.29:13000', // target: 'http://192.168.10.29:13000',

Loading…
Cancel
Save