diff --git a/src/option/aftersales/vueTvemp.js b/src/option/aftersales/vueTvemp.js index f600ff19..2ba92f21 100644 --- a/src/option/aftersales/vueTvemp.js +++ b/src/option/aftersales/vueTvemp.js @@ -19,7 +19,7 @@ export const columnList = [ label: '异常类型', type: 3, values: '', - width: '110', + width: '140', checkarr: [], fixed: false, sortable: true, @@ -30,7 +30,7 @@ export const columnList = [ label: '发现节点', type: 3, values: '', - width: '110', + width: '140', checkarr: [], fixed: false, sortable: true, @@ -41,23 +41,23 @@ export const columnList = [ label: '异常工单号', type: 13, values: '', - width: '120', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + head: false, + }, + { + prop: 'packageCode', + label: '包条码', + type: 2, + values: '', + width: '150', checkarr: [], fixed: false, sortable: true, head: false, }, - // { - // prop: 'packageCode', - // label: '包条码', - // type: 2, - // values: '', - // width: '150', - // checkarr: [], - // fixed: false, - // sortable: true, - // head: false, - // }, { prop: 'waybillNumber', label: '运单号', diff --git a/src/router/views/index.js b/src/router/views/index.js index 74f545e3..14fa626b 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -1436,7 +1436,23 @@ export default [ }, ], }, - + { + path: '/aftersales/aftersalesWorkOrderTemp', + component: Layout, + redirect: '/aftersales/aftersalesWorkOrderTemp', + children: [ + { + meta: { + i18n: 'dict', + keepAlive: true, + }, + path: '/aftersales/aftersalesWorkOrderTemp', + name: '工单模板', + component: () => import('@/views/aftersales/aftersalesWorkOrderTemp.vue'), + }, + ], + }, + { path: '/aftersales/aftersalesWorkOrderInfo', component: Layout, diff --git a/src/views/aftersales/aftersalesWorkOrder.vue b/src/views/aftersales/aftersalesWorkOrder.vue index 64bf9867..7b0a6070 100644 --- a/src/views/aftersales/aftersalesWorkOrder.vue +++ b/src/views/aftersales/aftersalesWorkOrder.vue @@ -396,7 +396,7 @@ @size-change="sizeChange" @current-change="currentChange" :current-page="page.currentPage" - :page-sizes="[30, 50, 80, 120]" + :page-sizes="page.pageSizesList" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="page.total" @@ -1257,16 +1257,16 @@ const AppealeditorState = ref(false); //申诉是否为编辑状态(默认否) const AppealStatusT = ref(false); //是否为申诉列表 const loadingCustomer = ref(false); //客服介入弹窗加载 const TabList = ref([ - { name: 0, label: '全部', state: true, request: true, DataList: [], total: '' }, - { name: 8, label: '待回复', state: false, request: true, DataList: [], total: '' }, - { name: 3, label: '待处理(新建)', state: true, request: true, DataList: [], total: '' }, - { name: 1, label: '处理中', state: true, request: true, DataList: [], total: '' }, - { name: 4, label: '理赔金额未出', state: true, request: true, DataList: [], total: '' }, - { name: 2, label: '处理完毕', state: true, request: true, DataList: [], total: '' }, - { name: 5, label: '客服介入', state: true, request: true, DataList: [], total: '' }, - { name: 9, label: '待审核', state: true, request: true, DataList: [], total: '' }, - { name: 6, label: '完结', state: true, request: true, DataList: [], total: '' }, - { name: 7, label: '超时未处理', state: true, request: true, DataList: [], total: '' }, + { name: 0, label: '全部', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50,}, + { name: 8, label: '待回复', state: false, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, + { name: 3, label: '待处理(新建)', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, + { name: 1, label: '处理中', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, + { name: 4, label: '理赔金额未出', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, + { name: 2, label: '处理完毕', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, + { name: 5, label: '客服介入', state: true, request: true, DataList: [], total: 0 ,currentPage: 1,pageSize: 50,}, + { name: 9, label: '待审核', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, + { name: 6, label: '完结', state: true, request: true, DataList: [], total: 0 ,currentPage: 1,pageSize: 50,}, + { name: 7, label: '超时未处理', state: true, request: true, DataList: [], total: 0,currentPage: 1,pageSize: 50, }, ]); //标签栏 const DeliveryDriver = ref([]); @@ -1766,6 +1766,9 @@ const Statusprocessing = val => { }; // 页面初始化数据 const IndexTable = (val, Refresh) => { + console.log(page.value,'page.value'); + console.log('初始化接口'); + console.log( !TabList.value.find(res => res.name == TabPermissions.value).request, Refresh, @@ -1849,6 +1852,7 @@ const IndexTable = (val, Refresh) => { TabList.value.find(res => res.name == TabPermissions.value).DataList = res.data.data.records; TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total; + TabList.value.find(res => res.name == TabPermissions.value).currentPage = res.data.data.current; TabList.value.find(res => res.name == TabPermissions.value).request = false; console.log(TabList.value, '当前存储的值'); details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList; @@ -1856,7 +1860,8 @@ const IndexTable = (val, Refresh) => { console.log(TabList.value, 'TabList.value===>'); } else { TabList.value.find(res => res.name == TabPermissions.value).DataList = []; - TabList.value.find(res => res.name == TabPermissions.value).total = 0; + TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total; + TabList.value.find(res => res.name == TabPermissions.value).currentPage = res.data.data.current; TabList.value.find(res => res.name == TabPermissions.value).request = true; // details.data = res.data.data.records; details.data = res.data.data.records; @@ -2830,7 +2835,12 @@ const selectionChange = list => { /** 页码改变执行的回调 */ const currentChange = async val => { + // let _row= TabList.value.find(res=>res.name==val) + // page.value.pageSize= _row.pageSize + // page.value.currentPage= _row.currentPage TabList.value.find(res => res.name == TabPermissions.value).request = true; + let _row= TabList.value.find(res=>res.name==TabPermissions.value) + _row.currentPage = val page.value.currentPage = val; await DataRendering(TabPermissions.value, details.query, true); TabList.value.find(res => res.name == TabPermissions.value).request = false; @@ -3304,6 +3314,14 @@ const DataRendering = (val, input, Refresh) => { // 标签栏触发 const tabChenge = async (val, input, Refresh = false) => { + console.log(TabList.value, 'TabList.value'); + console.log(val, 'val'); + let _row= TabList.value.find(res=>res.name==val) + page.value.pageSize= _row.pageSize + page.value.currentPage= _row.currentPage + page.value.total= _row.total + console.log(_row,'当前点击的菜单'); + TabPermissions.value = val; //记录当前点击的菜单 if (val != 6) { diff --git a/src/views/aftersales/aftersalesWorkOrderAdd.vue b/src/views/aftersales/aftersalesWorkOrderAdd.vue index 9fb464c1..1afbefeb 100644 --- a/src/views/aftersales/aftersalesWorkOrderAdd.vue +++ b/src/views/aftersales/aftersalesWorkOrderAdd.vue @@ -1177,9 +1177,6 @@ const beforeAvatarUpload = async rawFile => { if (rawFile.type !== 'image/png' && rawFile.type !== 'image/jpeg') { ElMessage.error('只能上传格式为PNG/JPG的图片!'); return false; - } else if (rawFile.size / 1024 / 1024 > 3) { - ElMessage.error('图片大小不能大于3MB!'); - return false; } const res = await compressImageBlob(rawFile); return res; diff --git a/src/views/aftersales/aftersalesWorkOrderInfo.vue b/src/views/aftersales/aftersalesWorkOrderInfo.vue index ed708daf..ad5a8260 100644 --- a/src/views/aftersales/aftersalesWorkOrderInfo.vue +++ b/src/views/aftersales/aftersalesWorkOrderInfo.vue @@ -1368,7 +1368,7 @@ const isRepulse = () => { // 处理结果打回 const Resultreturned = () => { - if (UserPermissions.value == '总部客服') { + if (UserPermissions.value == '总部客服' || UserPermissions.value == '总部客服经理') { if (workOrderStatus == '30') { return true; } diff --git a/src/views/aftersales/aftersalesWorkOrderTemp.vue b/src/views/aftersales/aftersalesWorkOrderTemp.vue new file mode 100644 index 00000000..009d8e67 --- /dev/null +++ b/src/views/aftersales/aftersalesWorkOrderTemp.vue @@ -0,0 +1,721 @@ + + + + + + + + + + + 搜 索 + 清 空 + + + + + + + + + + + + + + + + + + + 创建工单 + Excel导出 + Excel超时导出 + 默认指派 + 批量打回 + 批量确定 + 批量审核 + 工单指派 + 客服介入 + 钉钉号填写 + 批量完结 + 批量完结审核 + 财务入账 + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + +