Browse Source

修复已知bug

dev-xx
马远东 4 months ago
parent
commit
fed87d7b72
  1. 44
      src/option/aftersales/vueTvemp.js
  2. 4
      src/views/aftersales/aftersalesWorkOrder.vue
  3. 144
      src/views/aftersales/aftersalesWorkOrderTemp.vue
  4. 55
      src/views/distribution/inventory/distrilbutionBillLadingView.vue

44
src/option/aftersales/vueTvemp.js

@ -1,3 +1,5 @@
import { isShallow } from "vue";
/**
*全部列表
*/
@ -1561,7 +1563,7 @@ export const columnList4 = [
},
{
prop: 'workOrderTypeName',
prop: 'workOrderTypeNameS',
label: '异常类型',
type: 3,
values: '',
@ -1574,7 +1576,7 @@ export const columnList4 = [
// {
{
prop: 'resultTypeName',
prop: 'resultType',
label: '处理结果名称',
type: 1,
values: '',
@ -1586,7 +1588,7 @@ export const columnList4 = [
},
{
prop: 'discoveryNodeName',
prop: 'discoveryNodeNameS',
label: '发现环节',
type: 3,
values: '',
@ -1618,31 +1620,20 @@ export const columnList4 = [
sortable: true,
head: false,
},
{
prop: 'indemnitor',
label: '赔款方',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'reason',
label: '判责原因',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
// {
// prop: 'indemnitor',
// label: '赔款方',
// type: 1,
// values: '',
// width: '130',
// checkarr: [],
// fixed: false,
// sortable: true,
// head: false,
// },
{
prop: 'money',
label: '金额',
label: '理赔金额',
type: 1,
values: '',
width: '100',
@ -1650,6 +1641,7 @@ export const columnList4 = [
fixed: false,
sortable: true,
head: false,
isshowSummary: true,//开启统计
},
// {

4
src/views/aftersales/aftersalesWorkOrder.vue

@ -98,13 +98,13 @@
<el-icon><Plus /></el-icon> </el-button
>
<!-- <el-button
<el-button
v-if="ButtonPermissions.export_Report"
type="primary"
@click="exportReport"
>
<el-icon><Download /></el-icon>EXCEL</el-button
> -->
>
<el-button
v-if="ButtonPermissions.Timed_outexport"

144
src/views/aftersales/aftersalesWorkOrderTemp.vue

@ -59,8 +59,12 @@
<el-button type="primary" icon="FolderChecked" v-if="ButtonPermissions.ManagerConfirmed"
>完结批量审核</el-button
>
<el-button type="primary" icon="Select" v-if="ButtonPermissions.Batchdetermination"
>批量确定</el-button
<el-button
@click="ResultConfirmed"
type="primary"
icon="Select"
v-if="ButtonPermissions.Batchdetermination"
>批量处理结果提交</el-button
>
<el-button type="primary" icon="Stamp" v-if="ButtonPermissions.Result_review"
>结果批量审核</el-button
@ -131,27 +135,29 @@
<template v-if="slotProps.scope.column.label === '操作'">
<el-text @click="ViewDetails(slotProps.scope.row)">查看</el-text>
<el-text
@click="WorkOrderAppeal(slotProps.scope.row)"
v-if="
PermissionButton.Work_order_appeal &&
slotProps.scope.row.canRepresentations &&
slotProps.scope.row.workOrderStatus != 100
"
v-if="PermissionButton.Work_order_appeal(slotProps.scope.row)"
>申诉</el-text
>
<el-text
v-if="PermissionButton.Process_submission_button"
@click="ResultConfirmed(slotProps.scope.row)"
>处理提交</el-text
>
<el-text
@click="CancelWorkOrderAppeal(slotProps.scope.row)"
v-if="PermissionButton.Cancel_appeal_button && slotProps.scope.row.typesOf == '0'"
v-if="PermissionButton.Cancel_appeal_button(slotProps.scope.row)"
>取消申诉</el-text
>
<el-text
v-if="PermissionButton.Appeal_editor_button && slotProps.scope.row.typesOf == '0'"
v-if="PermissionButton.Appeal_editor_button(slotProps.scope.row)"
@click="WorkOrderAppeal(slotProps.scope.row, 'edit')"
>编辑</el-text
>
<el-text
v-if="PermissionButton.Delete_appeal_button && slotProps.scope.row.typesOf == '3'"
v-if="PermissionButton.Delete_appeal_button(slotProps.scope.row)"
@click="Deleteappealrecords(slotProps.scope.row, 'edit')"
>删除记录</el-text
>
@ -421,13 +427,15 @@ const TabList = ref([
* @description 申诉按钮的逻辑
* @returns {boolean} 是否显示申诉按钮
*/
const WorkOrderAppealButton = () => {
const WorkOrderAppealButton = () => row => {
//
if (UserPermissions.value == Useridentity.Warehouse_customer_service) {
//
if (TabPermissions.value == 6) {
//
return true;
if (row.canRepresentations && row.workOrderStatus != 100) {
return true;
}
}
}
//
@ -437,13 +445,15 @@ const WorkOrderAppealButton = () => {
* @description 取消申诉按钮的逻辑
* @returns {boolean} 是否显示申诉按钮
*/
const CancelAppealButton = () => {
const CancelAppealButton = () => row => {
//
if (UserPermissions.value == Useridentity.Warehouse_customer_service) {
//
if (TabPermissions.value == 10) {
//
return true;
if (row.typesOf == '0') {
//
return true;
}
}
}
return false;
@ -452,13 +462,14 @@ const CancelAppealButton = () => {
* @description 编辑申诉按钮的逻辑
* @returns {boolean} 是否显示申诉编辑按钮
*/
const AppealEditorButton = () => {
const AppealEditorButton = () => row => {
//
if (UserPermissions.value == Useridentity.Warehouse_customer_service) {
//
if (TabPermissions.value == 10) {
//
return true;
if (row.typesOf == '0') {
return true;
}
}
}
return false;
@ -467,27 +478,44 @@ const AppealEditorButton = () => {
* @description 编辑申诉按钮的逻辑
* @returns {boolean} 是否显示申诉删除按钮
*/
const Deleteappealbutton = () => {
const Deleteappealbutton = () => row => {
//
if (UserPermissions.value == Useridentity.Warehouse_customer_service) {
//
if (TabPermissions.value == 10) {
//
return true;
if (row.typesOf == '3') {
return true;
}
}
}
//
return false;
};
/**
* @description 处理金额提交按钮的逻辑
* @returns {boolean} 是否显示理赔金额未出处理提交按钮
*/
const ProcessSubmission = () => {
//
if (TabPermissions.value == 4) {
//
return true;
}
//
return false;
};
/**
* @description 操作栏按钮权限
* @returns {boolean} 是否显示相关按钮
*/
const PermissionButton = computed(row => ({
const PermissionButton = computed(() => ({
Work_order_appeal: WorkOrderAppealButton(),
Cancel_appeal_button: CancelAppealButton(),
Appeal_editor_button: AppealEditorButton(),
Delete_appeal_button: Deleteappealbutton(),
Process_submission_button: ProcessSubmission(),
}));
const ButtonPermissions = computed(() => {
// TabPermissions
@ -568,7 +596,7 @@ const ButtonPermissions = computed(() => {
applyArbitration: false, //
batchFinish: false, //
DingTalkNumber: false, //
Batchdetermination: UserPermissions.value == Useridentity.Warehouse_customer_service, //
Batchdetermination: true, //
ManagerConfirmed: false, //
ArbitrationDetermination: false, //
Financial_accounting: false, //
@ -775,7 +803,7 @@ const {
watch(
() => $route.path,
(newPath, oldPath) => {
if ($useStore.state.isRefresh.refreshObj.aftersalesWorkOrder) {
if ($useStore.state.isRefresh.refreshObj.aftersalesWorkOrderTemp) {
TabPermissions.value = $useStore.state.Customer.Customerobj;
tabValue.value = $useStore.state.Customer.Customerobj; //
if ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].includes(TabPermissions.value)) {
@ -784,7 +812,7 @@ watch(
PublicDataRequest(TabPermissions.value); //
$useStore.commit('Customer_Menu', 0); //
}
$useStore.commit('EDIT_REFRESHITEM', { title: 'aftersalesWorkOrder', status: false }); //
$useStore.commit('EDIT_REFRESHITEM', { title: 'aftersalesWorkOrderTemp', status: false }); //
}
}
);
@ -1142,7 +1170,7 @@ const updatePageDetails = (pageSize, currentPage) => {
details.page.pageSize = pageSize;
details.page.currentPage = currentPage;
};
const MatchCurrentMenu = (ID =TabPermissions.value) => {
const MatchCurrentMenu = (ID = TabPermissions.value) => {
return TabList.value.find(res => res.name == ID);
};
//
@ -1724,6 +1752,25 @@ const ViewDetails6 = row => {
};
$router.push({ path: workOrderInfoPath_end, query: { ...queryParams } });
};
/**
* @description: [申诉列表]常工单号跳转到详情信息页面
* @param {Object} row - 当前行数据
* @return {void}
*/
const ViewDetails10 = row => {
console.log(row, '【申诉列表】当前行数据');
const workOrderInfoPath_end = '/aftersales/aftersalesWorkOrderend'; //
const queryParams = {
id: row.workOrderId, //ID
workOrderId: row.id, //ID
name: `${row.workOrderNumber}-申诉`,
typesOf: row.typesOf,
workOrderNumber: row.workOrderNumber, //
RouteIndexs: TabPermissions.value, //
workOrderStatus: row.workOrderStatus, //
};
$router.push({ path: workOrderInfoPath_end, query: { ...queryParams } });
};
//
const ViewDetailsRow = row => {
console.log(row, '异常工单号点击查看详情当前行数据');
@ -1755,7 +1802,9 @@ const ViewDetailsRow = row => {
case 9:
ViewDetails9(row);
break;
case 10:
ViewDetails10(row);
break;
default:
break;
}
@ -1796,10 +1845,53 @@ const ViewDetails = row => {
case 9:
ViewDetails9(row);
break;
case 10:
ViewDetails10(row);
break;
default:
break;
}
};
//
const ResultConfirmed = async row => {
console.log(row);
try {
let _submit = {
assignList: [],
};
if (row.lawoId) {
//
_submit.assignList.push(row.lawoId);
} else {
//
if (!details.selectionList.length) {
ElMessage.warning('请勾选要处理的数据');
return;
}
_submit.assignList = details.selectionList.map(item => item.lawoId);
}
ElMessageBox.confirm(`是否确认${row.lawoId ? '提交' : '批量提交'}处理结果?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(async () => {
let _res = await $_updateWorkOrderStatus(_submit);
const { code, msg } = _res.data;
if (code == 200) {
console.log(_res, '理赔金额未出处理结果确定');
ElMessage.success(msg);
let _Obj = MatchCurrentMenu();
_Obj.request = true;
PublicDataRequest(TabPermissions.value);
}
})
.catch(() => {});
} catch (e) {
console.log(e);
} finally {
}
};
</script>
<style scoped lang="scss">

55
src/views/distribution/inventory/distrilbutionBillLadingView.vue

@ -177,7 +177,13 @@
@selectCheck="selectsc"
@selection="selectionChange"
>
<template #default="slotProps"> </template>
<template #default="slotProps">
<el-text
v-if="slotProps.scope.row.stockStatus == '备货完成'"
@click="handleInventoryQRCode(slotProps.scope.row)"
>查看二维码</el-text
>
</template>
</tablecmt>
<div class="avue-crud__pagination" style="width: 100%">
<!-- 分页模块 -->
@ -213,7 +219,7 @@
<el-button @click="dialogVisible = false"> </el-button>
</span>
</el-dialog> -->
<MyPrint :html="html" v-model="dialogVisible" type="titlePrint"></MyPrint>
<MyPrint :html="html" v-model="dialogVisible" :isShowExport="false" type="titlePrint"></MyPrint>
</template>
<script>
@ -235,7 +241,7 @@ import { ElMessage, ElMessageBox } from 'element-plus';
import { getLodop } from '@/utils/LodopFuncs.js';
import { getPrintTemplate } from '@/api/basicdata/basicdataGoodsAllocation';
import { showInventoryPackgeCode } from '@/api/distribution/distributionStockList';
import option from '@/option/basic/basicPdarecords';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
@ -246,10 +252,10 @@ import { downloadXls, hanleTextLineFeed, setNodeHeight } from '@/utils/util';
import { exportBlob } from '@/api/common';
import { dateNow } from '@/utils/date';
import print from '@/utils/print';
import error from '@/error';
export default {
data() {
return {
materialQRCode: '',
allselectionList: [], //
columnListarrs: {
@ -610,6 +616,17 @@ export default {
sortable: true,
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '220',
checkarr: [],
fixed: 'right',
sortable: true,
head: false,
},
],
wrapoption: [
{
@ -1530,6 +1547,28 @@ export default {
});
});
},
async handleInventoryQRCode(row) {
console.log(row, 'row');
try {
this.pageLoading = true;
this.materialQRCode = row;
console.log('row------------>', row);
this.html = '';
const res = await showInventoryPackgeCode(this.$route.query.id, row.stockListId);
const { code, data } = res.data;
if (code !== 200) return;
// this.orderPackageCode = res.data
console.log(res.data);
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml);
this.dialogVisible = true;
} catch (error) {
console.log('error :>> ', error);
} finally {
this.pageLoading = false;
}
},
//
Inventoryexport() {
let downloadUrl = `/logpm-distribution/distributionDeliveryDetails/billOrderInventoryExcel?${
@ -1621,15 +1660,15 @@ export default {
type: 'warning',
})
.then(() => {
let orderStatusName= this.selectionList.every(obj => obj.orderStatusName === '已签收');
if(orderStatusName){
let orderStatusName = this.selectionList.every(obj => obj.orderStatusName === '已签收');
if (orderStatusName) {
ElMessage({
message: '该订单已签收',
type: 'warning',
});
return
return;
}
this.loading = true;
this.loading = true;
let data = {
id: this.$route.query.id,
packageIds: this.selectionList.map(item => item.id).join(','),

Loading…
Cancel
Save