qb 1 year ago
parent
commit
32abda8f5d
  1. 5
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 28
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  3. 132
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  4. 2
      vite.config.js

5
src/views/aftersales/aftersalesWorkOrder.vue

@ -1366,7 +1366,7 @@ const ButtonPermissions = computed(() => {
batchReject: UserPermissions.value == '职能客服', //
assignment: UserPermissions.value == '客服经理', //
applyArbitration: UserPermissions.value == '仓库客服', //
batchFinish: UserPermissions.value == '职能客服', //
batchFinish: UserPermissions.value != '仓库客服', //
appeal: false, //
};
case 1: //
@ -1390,7 +1390,7 @@ const ButtonPermissions = computed(() => {
case 3: //
return {
add: false, //
batchReject: UserPermissions.value == '仓库客服', //
batchReject: UserPermissions.value == '职能客服', //
assignment: UserPermissions.value == '客服经理', //
applyArbitration: false, //
batchFinish: false, //
@ -1737,6 +1737,7 @@ 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,//
},
});
return;

28
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -185,7 +185,6 @@
clearable
@change="DeliveryTrainnumber"
/>
</el-form-item>
<el-form-item
@ -273,8 +272,6 @@
<el-input v-model="Indexform.processNumber" placeholder="请输入钉钉流程号" />
</el-form-item> -->
<!-- 必填 -->
<el-form-item label="异常问题描述">
<el-input v-model="Indexform.problemDescription" placeholder="请输入异常问题" clearable />
@ -653,7 +650,6 @@ const ImgSuccess = (response, uploadFile) => {
console.log(response);
console.log(Indexform.value['packList'], '图片列表');
amplifysrcList.value.push(response.data.link);
}
};
@ -745,7 +741,7 @@ const DiscoveringNodesChange = val => {
function DeliveryTrainnumber() {
let data = {
trainNumber: Indexform.value.trainNumber,
taskTime:Indexform.value.deliveryTime
taskTime: Indexform.value.deliveryTime,
};
data.current = 1; //
data.size = 999; //
@ -848,7 +844,20 @@ const ConfirmForm = () => {
});
}
}
if (SelectType.value == 1 && DataSubmit['decreaseImageEntityList'].length < 2) {
ElMessage({
message: '货损至少提供2张图片附件',
type: 'warning',
});
return;
}
if (SelectType.value == 3 && !DataSubmit['decreaseImageEntityList'].length) {
ElMessage({
message: '窜货必须提供图片附件',
type: 'warning',
});
return;
}
console.log(DataSubmit['decreaseImageEntityList'], '处理好的图片');
//
if (Indexform.value.deliveryDriver) {
@ -1027,12 +1036,12 @@ const ConfirmForm = () => {
});
};
//
const changeDeliveryDriver=(val)=>{
const changeDeliveryDriver = val => {
console.log(val);
console.log(DeliveryDriver.value, '司机信息');
Indexform.value.trainNumber = DeliveryDriver.value.find(res => res.id == val).trainNumber; //
Indexform.value.deliveryTime = DeliveryDriver.value.find(res => res.id == val).taskTime; //
}
};
//
const ShortageTtems = val => {
ShortageList.value = []; //
@ -1157,7 +1166,7 @@ const ChangePackageInfo = (val, index) => {
HistoricalPackageList.value = res.data.data;
PackageInfo.value[index].state = true; //
}
})
});
}
// packageCode; //
// //
@ -1447,7 +1456,6 @@ const ViewPackageDetails = val => {
.el-tabs__content {
padding: 0;
}
}
.foot_btn {
position: fixed;

132
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -446,12 +446,12 @@
</div>
<div class="foot_btn">
<el-button type="primary" @click="addireply">回复</el-button>
<el-button type="primary" @click="addingRecord">处理结果</el-button>
<el-button type="primary" @click="EndJump">完结 </el-button>
<el-button type="primary" @click="BatchReturn">打回 </el-button>
<el-button type="primary" @click="CustomerServiceCompleted">客服仲裁完结 </el-button>
<el-button type="primary" @click="EditInformation">信息编辑</el-button>
<el-button type="primary" v-if="ButtonPermissions.reply" @click="addireply">回复</el-button>
<el-button type="primary" v-if="ButtonPermissions.ProcessingResults" @click="addingRecord">处理结果</el-button>
<el-button type="primary" v-if="ButtonPermissions.end" @click="EndJump">完结 </el-button>
<el-button type="primary" v-if="ButtonPermissions.repulse" @click="BatchReturn">打回 </el-button>
<el-button type="primary" v-if="ButtonPermissions.ArbitrationCompleted" @click="CustomerServiceCompleted">客服仲裁完结 </el-button>
<el-button type="primary" v-if="ButtonPermissions.edit" @click="EditInformation">信息编辑</el-button>
</div>
</el-card>
<!-- 批量打回弹窗 -->
@ -495,14 +495,12 @@
</template>
<script setup>
import { ElMessage } from 'element-plus';
import { ElMessageBox } from 'element-plus';
import { useRouter, useRoute } from 'vue-router';
import { getDictionaryBiz } from '@/api/system/dict'; //
import { getDetailWarehouse, getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse'; //
import {AddressClosed} from '@/utils/util'
import { AddressClosed } from '@/utils/util';
import {
$_getList,
$_submit,
@ -522,7 +520,7 @@ const Indexform = ref({
packList: [],
decreaseImageEntityList: [], //
}); //
const dialogImgList=ref(false)
const dialogImgList = ref(false);
const IndexException = ref([]); //
const DiscoveringNodes = ref([]); //
const ProcessingResults = ref([]); //
@ -554,6 +552,8 @@ const dialogReturn = ref(false); //打回弹窗
const repulse = ref(false); //
const amplifyurl = ref(''); //
const amplifysrcList = ref([]); //
const RouteIndexs = ref(''); //
const UserPermissions = ref('');//
const PackageInfo = ref([
//
{ packageCode: '', orderCode: '', waybillNumber: '', brandName: '' },
@ -606,6 +606,24 @@ function updateDictionary(targetArray, dictionaryType) {
});
});
}
//
getDictionaryBiz('after_sales_visits').then(res => {
console.log(res, '角色字典');
const matchingItem = res.data.data.find(
item => item.dictValue == JSON.parse(localStorage.getItem('TWMS-userInfo')).content.role_name
);
if (matchingItem) {
UserPermissions.value = matchingItem.dictValue;
} else {
UserPermissions.value = '仓库客服';
}
console.log(UserPermissions.value, '当前角色权限');
});
// TOKEN
const headers = computed(() => {
return { 'Blade-Auth': 'Bearer ' + getToken() };
@ -627,6 +645,94 @@ const ImgSuccess = (response, uploadFile) => {
console.log(Indexform.value['packList'], '图片列表');
}
};
//
const ButtonPermissions = computed(() => {
// TabPermissions
switch (RouteIndexs.value !='null') {
case RouteIndexs.value == 0: //
return {
reply: true, //()
ProcessingResults: UserPermissions.value == '仓库客服', //
end: UserPermissions.value == '职能客服', //
repulse: UserPermissions.value == '客服经理', //
ArbitrationCompleted: UserPermissions.value == '职能客服', //
edit: UserPermissions.value != '仓库客服', //
};
case RouteIndexs.value == 1: //
return {
reply: false, //
ProcessingResults: false, //
end: false, //
repulse: false, //
ArbitrationCompleted: false, //
edit: false, //
};
case RouteIndexs.value == 2: //
return {
reply: false, //
ProcessingResults: false, //
end: UserPermissions.value == '职能客服', //
repulse: UserPermissions.value == '客服经理', //
ArbitrationCompleted: UserPermissions.value == '职能客服', //
edit: false, //
};
case RouteIndexs.value == 3: //
return {
reply: UserPermissions.value == '仓库客服', //
ProcessingResults: UserPermissions.value == '仓库客服', //
end: UserPermissions.value == '职能客服', //
repulse: UserPermissions.value == '职能客服', //
ArbitrationCompleted: UserPermissions.value == '职能客服', //
edit: false, //
};
case RouteIndexs.value == 4: //
return {
reply: false, //
ProcessingResults: false, //
end: false, //
repulse: false, //
ArbitrationCompleted: false, //
edit: false, //
};
case RouteIndexs.value == 5: //
return {
reply: false, //
ProcessingResults: false, //
end: false, //
repulse: false, //
ArbitrationCompleted: UserPermissions.value == '职能客服', //
edit: false, //
};
case RouteIndexs.value == 6: //
return {
reply: false, //
ProcessingResults: false, //
end: false, //
repulse: false, //
ArbitrationCompleted: false, //
edit: false, //
};
case RouteIndexs.value == 7: //
return {
reply: false, //
ProcessingResults: false, //
end: false, //
repulse: false, //
ArbitrationCompleted: false, //
edit: false, //
};
//
default:
return {
reply: false, //
ProcessingResults: false, //
end: false, //
repulse: false, //
ArbitrationCompleted: false, //
edit: false, //
};
}
});
//
const beforeAvatarUpload = rawFile => {
@ -712,6 +818,10 @@ const ResponsiblePartychange = (val, index) => {
});
};
const onLoad = () => {
if($route.query.RouteIndexs!='null'){
RouteIndexs.value = $route.query.RouteIndexs;//
}
console.log($route.query.id, '页面初始化');
routerState.value = $route.query.routerState;
updateDictionary(IndexException.value, 'pc_work_order'); //
@ -1096,7 +1206,6 @@ const addingRecord = () => {
};
//
const CustomerServiceCompleted = () => {
$router.push({
path: '/aftersales/aftersalesWorkOrdermodify',
query: {
@ -1109,7 +1218,6 @@ const CustomerServiceCompleted = () => {
index: '1',
},
});
};
//
const EditInformation = () => {

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.122:9777',
target: 'http://192.168.6.148:9777',
// target: 'http://192.168.6.116:8777',
// tjj
// sst

Loading…
Cancel
Save