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. 520
      src/views/aftersales/aftersalesWorkOrder.vue
  5. 3058
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  6. 2802
      src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue
  7. 2717
      src/views/aftersales/aftersalesWorkOrderInfoTemp.vue
  8. 87
      src/views/aftersales/aftersalesWorkOrderend.vue
  9. 1138
      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
})
}
// 完结结果确定
// 处理结果完结结果确定
export const $_updateManagerConfirmed = (data) => {
return request({
url: '/api/logpm-aftersales/aftersalesWorkOrder/updateManagerConfirmed',

47
src/option/aftersales/vueTvemp.js

@ -125,8 +125,8 @@ export const columnList = [
head: false,
},
{
prop: 'trainNumber',
label: '车次号',
prop: 'customerServiceName',
label: '归属客服名称',
type: 2,
values: '',
width: '150',
@ -136,17 +136,6 @@ export const columnList = [
head: false,
},
{
prop: 'vehicleRoute',
label: '车辆线路',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'deliverGoodsTime',
label: '送货时间',
@ -204,10 +193,21 @@ export const columnList = [
sortable: true,
head: false,
},
{
prop: 'trainNumber',
label: '车次号',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'customerServiceName',
label: '归属客服名称',
prop: 'vehicleRoute',
label: '车辆线路',
type: 2,
values: '',
width: '150',
@ -216,6 +216,9 @@ export const columnList = [
sortable: true,
head: false,
},
{
prop: 'overTime',
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',
label: '金额',
@ -905,7 +896,7 @@ export const timeoutList = [
label: '操作',
type: 6,
values: '',
width: '220',
width: '120',
checkarr: [],
fixed: 'right',
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',
component: Layout,

520
src/views/aftersales/aftersalesWorkOrder.vue

@ -83,8 +83,6 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left">
<!-- v-if="ButtonPermissions.add" -->
<!-- v-if="PermissionButton.workAdd" -->
<el-button v-if="ButtonPermissions.add" type="primary" @click="AddInfo">
<el-icon><Plus /></el-icon> </el-button
>
@ -92,42 +90,59 @@
<el-icon><Delete /></el-icon></el-button
> -->
<!-- v-if="ButtonPermissions.batchReject" -->
<!-- v-if="PermissionButton.batch_return" -->
<el-button
v-if="ButtonPermissions.batchReject"
type="primary"
@click="BatchReturn"
>批量打回</el-button
>
<!-- v-if="ButtonPermissions.assignment" -->
<!-- v-if="PermissionButton.assign" -->
<el-button type="primary" @click="assign">工单指派</el-button>
<!-- 仓库客服批量确定 -->
<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
v-if="ButtonPermissions.applyArbitration"
type="primary"
@click="arbitrate"
>客服介入</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" -->
<!-- v-if="PermissionButton.batch_completion" -->
<el-button ButtonPermissions.batchFinish type="primary" @click="Batchcompletion"
<el-button
v-if="ButtonPermissions.batchFinish"
type="primary"
@click="Batchcompletion"
>批量完结</el-button
>
<el-button
<!-- <el-button
ButtonPermissions.batchFinish
type="primary"
v-if="AppealStatusT"
@click="Batchdeletionappeals"
>批量删除</el-button
>
<!-- v-if="ButtonPermissions.appeal" -->
<!-- v-if="PermissionButton.representations" -->
> -->
<el-button v-if="ButtonPermissions.appeal" type="primary" @click="appeal"
>申诉</el-button
>
@ -177,26 +192,28 @@
<div class="ElBtnClass">
<div>
<!-- <el-button @click="addingRecord(slotProps.scope)">新增记录</el-button> -->
<el-button
v-if="
(!AppealStatusT && TabPermissions != '8') ||
(AppealStatusT &&
UserPermissions !== '仓库客服' &&
slotProps.scope.row.typesOf != '2')
"
@click="view(slotProps.scope)"
>查看</el-button
>
<el-button @click="view(slotProps.scope)">查看</el-button>
<!-- v-if="
(!AppealStatusT && TabPermissions != '8') || (AppealStatusT && UserPermissions !== '仓库客服' && slotProps.scope.row.typesOf != '2')
" -->
<!-- 处理结果确定和处理完毕 -->
<!-- 总部客服确定 -->
<!-- <el-button
v-if="TabPermissions == '2' && UserPermissions == '总部客服经理'"
@click="ResultConfirmation(slotProps.scope)"
>确定</el-button
> -->
<!-- 仓库客服确定 -->
<el-button
v-if="
TabPermissions == '1' || TabPermissions == '2'
"
@click="DetermineStorage(slotProps.scope)"
( TabPermissions == '2' || TabPermissions == '1' ) && slotProps.scope.row.workOrderStatus == '21' && (UserPermissions == '仓库客服' || UserPermissions == '总部客服经理')"
@click="ResultConfirmation(slotProps.scope)"
>确定</el-button
>
<!-- 仓库客服的缺点
<!-- 仓库客服的缺确定
<el-button
v-if="
TabPermissions == '1' && slotProps.scope.row.workOrderStatus != '30'
@ -204,8 +221,6 @@
@click="DetermineStorage(slotProps.scope)"
>确定</el-button
> -->
<el-button
v-if="
TabPermissions == '6' &&
@ -233,14 +248,26 @@
>编辑</el-button
>
<!-- 处理完毕 处理结果编辑 -->
<!-- 处理完毕 处理结果编辑 -->
<el-button
v-if="TabPermissions == '2' && UserPermissions == '仓库客服'"
v-if="
TabPermissions == '2' &&
UserPermissions == '仓库客服' &&
slotProps.scope.row.workOrderStatus == '21'
"
@click="ProcessedResultediting(slotProps.scope)"
>编辑</el-button
>
<!-- 完结信息编辑 -->
<!-- <el-button
v-if="
TabPermissions == '6' &&
UserPermissions != '仓库客服' &&
slotProps.scope.row.typesOfName == '待处理'
"
@click="CompletedEditing(slotProps.scope)"
>编辑</el-button
> -->
<!-- 理赔金额确定 -->
<el-button
@ -280,12 +307,12 @@
<!-- <el-button v-if="ClaimStatus" @click="appeal(slotProps.scope)"
>申诉</el-button
> -->
<el-button
v-if="TabPermissions == '7' && UserPermissions != '仓库客服'"
@click="BtnModifyAmount(slotProps.scope)"
>修改金额</el-button
>
</div>
<el-button
v-if="TabPermissions == 7"
@click="BtnModifyAmount(slotProps.scope)"
>修改金额</el-button
>
</div>
</template>
</template>
@ -713,6 +740,23 @@ console.log(accessControl, '权限按钮');
// arbitration_completed;//
// information_editing;//
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(() => {
return {
workAdd: accessControl.workAdd, //
@ -729,6 +773,7 @@ const PermissionButton = computed(() => {
information_editing: accessControl.information_editing, //
};
});
const DingTalkfilling = ref({}); //
const dialogDingTalk = ref(false); //
const tabValue = ref(0); //
@ -1012,75 +1057,109 @@ const ButtonPermissions = computed(() => {
switch (TabPermissions.value) {
case 0: //
return {
add: UserPermissions.value == '仓库客服', //
batchReject: UserPermissions.value == '职能客服', //
assignment: UserPermissions.value == '客服经理', //
applyArbitration: UserPermissions.value == '仓库客服', //
batchFinish: UserPermissions.value == '职能客服' || UserPermissions.value == '客服经理', //
// add: true, //
// batchReject: true, //
// assignment: true, //
// applyArbitration:true, //
// 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, //
ManagerConfirmed:false,//
};
case 1: //
return {
add: false, //
batchReject: UserPermissions.value == '职能客服' || UserPermissions.value == '客服经理', //
assignment: false, //
applyArbitration: UserPermissions.value == '仓库客服', //
applyArbitration: UserPermissions.value == '仓库客服', //
batchFinish: UserPermissions.value != '仓库客服', //
Batchdetermination: UserPermissions.value != '仓库客服', //
appeal: false, //
ManagerConfirmed:false,//
};
case 2: //
return {
add: false, //
batchReject: false, //
assignment: false, //
applyArbitration: false, //
applyArbitration: false, //
batchFinish: false, //
appeal: UserPermissions.value == '仓库客服' && AppealStatusT.value, //
Batchdetermination: UserPermissions.value == '仓库客服', //
ManagerConfirmed:UserPermissions.value == '总部客服经理',//
};
case 3: //
return {
add: false, //
batchReject: UserPermissions.value == '职能客服', //
assignment: UserPermissions.value == '客服经理', //
applyArbitration: false, //
batchFinish: false, //
batchReject: UserPermissions.value == '总部客服', //
assignment: UserPermissions.value == '总部客服经理', //
applyArbitration: UserPermissions.value == '仓库客服', //
batchFinish:UserPermissions.value != '仓库客服' , //
appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
};
case 4: //
return {
add: false, //
batchReject: false, //
assignment: false, //
applyArbitration: false, //
applyArbitration: false, //
batchFinish: false, //
appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
};
case 5: //
return {
add: false, //
batchReject: false, //
assignment: false, //
applyArbitration: false, //
applyArbitration: false, //
batchFinish: false, //
appeal: false, //
Batchdetermination: false, //
ManagerConfirmed:false,//
};
case 6: //
return {
add: false, //
batchReject: false, //
assignment: false, //
applyArbitration: false, //
applyArbitration: false, //
batchFinish: false, //
appeal: true, //
appeal: UserPermissions.value == '仓库客服', //
Batchdetermination: false, //
ManagerConfirmed:false,//
};
case 7: //
return {
add: false, //
batchReject: false, //
assignment: false, //
applyArbitration: false, //
applyArbitration: false, //
batchFinish: 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:
@ -1091,6 +1170,8 @@ const ButtonPermissions = computed(() => {
applyArbitration: false,
batchFinish: false,
appeal: false,
Batchdetermination: false, //
ManagerConfirmed:false,//
};
}
});
@ -1137,7 +1218,7 @@ const TransportLossNode = ref([
]);
const Statusprocessing = val => {
console.log(columnList[10],'22212as');
console.log(columnList[10], '22212as');
val.forEach(item => {
console.log(item, 'item');
// null
@ -1198,7 +1279,7 @@ const Statusprocessing = val => {
item.workOrderStatusNameS = columnList[10].checkarr[9].label; //
} else if (item.workOrderStatus == 100) {
item.workOrderStatusNameS = columnList[10].checkarr[10].label; //
}else if (item.workOrderStatus == 110) {
} else if (item.workOrderStatus == 110) {
item.workOrderStatusNameS = columnList[10].checkarr[11].label; //
}
});
@ -1268,9 +1349,9 @@ const IndexTable = val => {
};
//
const Tableheaderswitching = val => {
const Tableheaderswitching = val => {
publicColumnList.value = val; //
details.columnList = val;//
details.columnList = val; //
};
//
@ -1412,6 +1493,7 @@ const InformationViewing = val => {
RouteIndexs: TabPermissions.value, //
Routstate: 'appeal', //
AppealReview: val.row.typesOf == '0' ? 'true' : 'false', //
workOrderStatus: val.row.workOrderStatus, //
},
});
return;
@ -1437,6 +1519,23 @@ const InformationViewing = val => {
});
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({
path: '/aftersales/aftersalesWorkOrderInfo',
query: {
@ -1447,6 +1546,7 @@ const InformationViewing = val => {
businessId: val.row.businessId,
ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2
RouteIndexs: TabPermissions.value, //
workOrderStatus: val.row.workOrderStatus, //
},
});
};
@ -1466,16 +1566,15 @@ const view = val => {
workOrderNumber: val.row.workOrderNumber, //
businessId: val.row.businessId,
ProcessType: TabPermissions.value == 2 ? '2' : TabPermissions.value == 3 ? '1' : '', // 1 2
RouteIndexs: TabPermissions.value, //
RouteIndexs: TabPermissions.value, //
Routstate: 'appeal', //
AppealReview: val.row.typesOf == '0' ? 'true' : 'false', //
workOrderStatus: val.row.workOrderStatus, //
},
});
return;
}
//
if (TabPermissions.value == 4) {
$router.push({
@ -1497,6 +1596,29 @@ const view = val => {
});
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({
// AppealStatusT
@ -1751,8 +1873,8 @@ const Resultediting = val => {
},
});
};
const ProcessedResultediting=(val)=>{
console.log(val,'参数');
const ProcessedResultediting = val => {
console.log(val, '参数');
// return
$router.push({
path: '/aftersales/aftersalesWorkOrdermodify',
@ -1765,11 +1887,31 @@ console.log(val,'参数');
workOrderNumber: val.row.workOrderNumber,
RouterState: 'Kfend',
Processingresults: true, //
Processed:'true',
Processed: 'true',
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 => {
if (UserPermissions.value == '仓库客服') {
@ -1866,8 +2008,8 @@ const inputsc = (index, row) => {
processRowProperty(index, row, details);
details.query[row.prop] = index;
// tabChenge( TabPermissions.value,details.query)
DataRendering(TabPermissions.value,details.query)
return
DataRendering(TabPermissions.value, details.query);
return;
console.log('没有执行');
if (TabPermissions.value == '4') {
//
@ -1887,7 +2029,7 @@ const inputsc = (index, row) => {
}
if (TabPermissions.value == '7') {
TimeoutHandling(details.query); //
return
return;
}
IndexTable(details.query); //
@ -1922,9 +2064,8 @@ const inputsc = (index, row) => {
};
//
const searchChange = () => {
DataRendering(TabPermissions.value,details.query)
return
DataRendering(TabPermissions.value, details.query);
return;
if (ClaimStatus.value) {
//
@ -1949,12 +2090,12 @@ const emptyvalues = data => {
//
const empty = () => {
//
//
for (let key in details.query) {
if (key !== 'workOrderStatus') {
delete details.query[key];
if (key !== 'workOrderStatus') {
delete details.query[key];
}
}
}
// let dataList = [columnList, recordList, Claimsfield, AppealList, timeoutList];
details.columnList.forEach(item => {
item.values = '';
@ -1996,8 +2137,8 @@ const selectsc = (index, row) => {
console.log(details, '下拉的参数');
details.query.workOrderStatus = TabPermissions.value;
DataRendering(TabPermissions.value,details.query)
return
DataRendering(TabPermissions.value, details.query);
return;
if (TimeoutStatus.value) {
//
@ -2045,8 +2186,8 @@ const selectionChange = list => {
/** 页码改变执行的回调 */
const currentChange = val => {
page.value.currentPage = val;
DataRendering(TabPermissions.value,details.query)
return
DataRendering(TabPermissions.value, details.query);
return;
//
if (TimeoutStatus.value) {
TimeoutHandling(details.query);
@ -2075,8 +2216,8 @@ const currentChange = val => {
//
const sizeChange = val => {
page.value.pageSize = val;
DataRendering(TabPermissions.value,details.query)
return
DataRendering(TabPermissions.value, details.query);
return;
//
if (TimeoutStatus.value) {
TimeoutHandling(details.query);
@ -2277,11 +2418,12 @@ function AppealListFn(val) {
//
const BtnModifyAmount = val => {
console.log(val, '超时金额修改');
dialogModifyAmount.value = true; //
fromamount.value.title = val.row.workOrderNumber; //
fromamount.value.ytimeout = val.row.money; //
fromamount.value.id = val.row.lawoId; //id
fromamount.value.id = val.row.id; //id
};
//
const ModifyAmountFn = () => {
@ -2300,6 +2442,8 @@ const ModifyAmountFn = () => {
});
}
dialogModifyAmount.value = false; //
}).catch(res=>{
dialogModifyAmount.value = false; //
});
};
function getWinHight() {
@ -2346,11 +2490,11 @@ const TimeoutHandling = val => {
};
//
const DataRendering =(val,input)=>{
const DataRendering = (val, input) => {
// val:
//input:
console.log('执行了公共函数');
if(val !=6){
if (val != 6) {
AppealStatusT.value = false; //
}
console.log(val, '触发了标签栏');
@ -2421,12 +2565,12 @@ const DataRendering =(val,input)=>{
ArbitrationStatus.value = false; //
Tableheaderswitching(columnList); //
IndexTable(data);
} else if(val == 6 && AppealStatusT.value){
} else if (val == 6 && AppealStatusT.value) {
console.log('申诉列表');
data.workOrderStatus = null;
details.query.workOrderStatus = null;
AppealListFn(data); //
} else if (val == 6) {
} else if (val == 6) {
//
ProcessingPartyState.value = false; //
data.workOrderStatus = 80;
@ -2459,16 +2603,14 @@ const DataRendering =(val,input)=>{
}
}
console.log('执行完毕');
}
};
//
const tabChenge = async (val, input) => {
TabPermissions.value = val; //
if(val !=6){
if (val != 6) {
AppealStatusT.value = false; //
}
console.log(val, '触发了标签栏');
@ -2476,8 +2618,8 @@ const tabChenge = async (val, input) => {
...input, //
};
await empty();
DataRendering(TabPermissions.value,input)
return
DataRendering(TabPermissions.value, input);
return;
if (val == 0) {
ProcessingPartyState.value = false; //
ArbitrationStatus.value = true; //
@ -2541,12 +2683,12 @@ const tabChenge = async (val, input) => {
ArbitrationStatus.value = false; //
Tableheaderswitching(columnList); //
IndexTable(data);
} else if(val == 6 && AppealStatusT.value){
} else if (val == 6 && AppealStatusT.value) {
console.log('申诉列表');
data.workOrderStatus = null;
details.query.workOrderStatus = null;
AppealListFn(data); //
} else if (val == 6) {
} else if (val == 6) {
//
ProcessingPartyState.value = false; //
data.workOrderStatus = 80;
@ -2791,14 +2933,52 @@ const fellSuccess = (response, uploadFile) => {
};
//
const DetermineStorage = val => {
let data = {
assignList: [],
};
let ID = {};
ID = val.row.id;
data['assignList'].push(ID);
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; //
if (UserPermissions.value == '总部客服经理' && TabPermissions.value == '1') {
//
$_updateManagerConfirmed(data)
.then(res => {
@ -2812,36 +2992,146 @@ const DetermineStorage = val => {
tabChenge(TabPermissions.value);
})
.catch(res => {
console.log(res,'错误信息');
}).finally(res=>{
details.loadingObj.list = false; //
});
})
//
console.log(data, '处理好的值');
};
//
return;
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;
} 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'
) {
//
console.log(data, '处理好的数据');
$_updateWorkOrderStatus(data)
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, '处理好的数据');
$_updateWorkOrderStatus(data)
.then(res => {
console.log(res, '确定提交存储');
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
tabChenge(TabPermissions.value);
})
.catch(res => {
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 => {
console.log(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 = () => {
BatchFrom.value.businessDepartment = [];

3058
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

2717
src/views/aftersales/aftersalesWorkOrderInfoTemp.vue

File diff suppressed because it is too large Load Diff

87
src/views/aftersales/aftersalesWorkOrderend.vue

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

1138
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-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">
<template #excelTemplate>
<el-button type="primary" @click="handleTemplate">
@ -102,7 +102,7 @@ export default {
res: 'data',
},
tip: '请上传 .xls,.xlsx 标准格式文件',
action: '/api/logpm-basicdata/driverArtery/mport-stockArticle',
action: '/api/logpm-basicdata/driverArtery/import-stockArticle',
},
{
label: '模板下载',
@ -790,7 +790,7 @@ export default {
});
},
handleExport() {
let downloadUrl = `/api/logpm-b1asicdata/driverArtery/export-basicdataDriverArteryMb?${
let downloadUrl = `/api/logpm-basicdata/driverArtery/export-basicdataDriverArtery?${
this.website.tokenHeader
}=${getToken()}`;
const {} = this.query;
@ -811,9 +811,9 @@ export default {
handleTemplate() {
console.log('下载模板!!!');
exportBlob(
`/api/logpm/basicdata/driverArtery/export-basicdataDriverArteryMb?${this.website.tokenHeader}=${getToken()}`
`/api/logpm-basicdata/driverArtery/export-basicdataDriverArteryMb?${this.website.tokenHeader}=${getToken()}`
).then(res => {
downloadXls(res.data, '物料数据模板.xlsx');
downloadXls(res.data, '司机信息导入模板.xlsx');
});
},
beforeOpen(done, type) {

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

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

2
vite.config.js

@ -25,7 +25,7 @@ export default ({ mode, command }) => {
// target: 'http://192.168.6.122:8777',
// target: 'http://192.168.10.25:13000',
// 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.200:13000',
// target: 'http://192.168.10.29:13000',

Loading…
Cancel
Save