Browse Source

修复没有仓库报错问题

dev-xx
马远东 1 year ago
parent
commit
186b1896c9
  1. 5
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 8
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  3. 4
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  4. 14
      src/views/aftersales/aftersalesWorkOrderend.vue
  5. 4
      src/views/aftersales/customerService.vue
  6. 102
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue

5
src/views/aftersales/aftersalesWorkOrder.vue

@ -1358,7 +1358,10 @@ const Tableheaderswitching = val => {
const OnLoad = () => {
//
userInfo.value = JSON.parse(localStorage.getItem('TWMS-userInfo')); //
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
if(localStorage.getItem('my_data')){
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
}
currentUser.value = Mydata.value.id;
//
screenHeight.value = window.innerHeight;

8
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -774,8 +774,12 @@ const onLoad = () => {
// DeliveryTrainnumber(); //
console.log($route.query.id, '页面初始化');
routerState.value = $route.query.routerState;
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
console.log(Mydata.value, '记录本地登录');
if(localStorage.getItem('my_data')){
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
console.log(Mydata.value, '记录本地登录');
}
updateDictionary(IndexException.value, 'pc_work_order'); //
updateDictionary(DiscoveringNodes.value, 'pc_discovery_node'); //
handle(); //

4
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -1217,7 +1217,9 @@ const handle = () => {
const onLoad = () => {
pageState.value = true; //
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
if(localStorage.getItem('my_data')){
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
}
getDictionaryBiz('after_sales_visits').then(res => {
const matchingItem = res.data.data.find(
item => item.dictValue == JSON.parse(localStorage.getItem('TWMS-userInfo')).content.role_name

14
src/views/aftersales/aftersalesWorkOrderend.vue

@ -1073,7 +1073,9 @@ const TransportChange = val => {
//
const onLoad = () => {
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
if(localStorage.getItem('my_data')){
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
}
//
getDictionaryBiz('after_sales_visits').then(res => {
console.log(res, '角色字典');
@ -1148,11 +1150,15 @@ const onLoad = () => {
});
console.log(JSON.parse(localStorage.getItem('my_data')).id);
if (UserPermissions.value == '仓库客服') {
MessageResponsibility.value.push(JSON.parse(localStorage.getItem('my_data')).id);
MessageResponsibility.value = [...new Set(MessageResponsibility.value)]; //
MessageResponsibility.value = MessageResponsibility.value.filter(
if(localStorage.getItem('my_data')){
MessageResponsibility.value.push(JSON.parse(localStorage.getItem('my_data')).id);
MessageResponsibility.value = MessageResponsibility.value.filter(
item => item !== JSON.parse(localStorage.getItem('my_data')).id
); //
}
MessageResponsibility.value = [...new Set(MessageResponsibility.value)]; //
}
console.log(endFrom.value.processor, ' endFrom.value.processor');

4
src/views/aftersales/customerService.vue

@ -150,7 +150,9 @@ const FKList = () => {
const onLoad = () => {
ListRow.value = JSON.parse($route.query.row);
console.log();
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
if(localStorage.getItem('my_data')){
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //
}
currentUser.value = Mydata.value.id;
console.log(ListRow.value, '路由参数');
FKList();

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

@ -168,10 +168,10 @@
text
icon="el-icon-view"
@click="viewAbnormalLoading(slotProps.scope.row)"
v-if="slotProps.scope.row.isHaveAbnormalPackage == '2'"
>异常审核
</el-text>
<!-- v-if="slotProps.scope.row.isHaveAbnormalPackage == '2'" -->
<el-text
type="primary"
@ -762,6 +762,79 @@
</span>
</el-dialog>
<el-dialog
title="异常装车包件列表"
v-model="abnormalBox"
width="50%"
:before-close="beforeClose"
append-to-body
>
<el-table
ref="table"
v-loading="Abnormalloading"
@selection-change="selectionChange"
:data="wrapdata"
:height="height"
style="width: 100%"
:border="option.border"
>
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column>
<template v-for="(item, index) in wrapoption.column">
<!-- table字段 -->
<el-table-column
v-if="item.hide !== true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index"
>
<!-- :align="center"-->
</el-table-column>
</template>
<el-table-column fixed="right" label="操作" width="100">
<template #default="scope">
<el-button
v-if="scope.row.auditingStatus === 1 || scope.row.auditingStatusName === '待审核'"
@click="auditing(scope.row)"
type="text"
size="small"
> </el-button
>
<!-- <el-button type="text" size="small">编辑</el-button>-->
</template>
</el-table-column>
</el-table>
<div style="width: 100%">
<el-button type="primary" @click="fastAuditing" style="margin-left: 40%">一键审批</el-button>
<el-button type="primary" @click="this.abnormalBox = false">关闭</el-button>
</div>
<!-- <div class="avue-crud__pagination" style="width: 100%">-->
<!-- &lt;!&ndash; 分页模块 &ndash;&gt;-->
<!-- <el-pagination-->
<!-- background-->
<!-- @size-change="wsizeChange"-->
<!-- @current-change="wcurrentChange"-->
<!-- :current-page="wpage.currentPage"-->
<!-- :page-sizes="[30, 50, 80, 120]"-->
<!-- :page-size="wpage.pageSize"-->
<!-- layout="total, sizes, prev, pager, next, jumper"-->
<!-- :total="wpage.total"-->
<!-- >-->
<!-- &lt;!&ndash; :align="center"&ndash;&gt;-->
<!-- </el-pagination>-->
<!-- </div>-->
<!-- 表单按钮 -->
<!-- <template #footer>-->
<!-- <span v-if="!view" class="dialog-footer">-->
<!-- <el-button type="primary" icon="el-icon-circle-check" @click="handleSubmit"> </el-button>-->
<!-- <el-button icon="el-icon-circle-close" @click="box = false"> </el-button>-->
<!-- </span>-->
<!-- </template>-->
</el-dialog>
</basic-container>
</template>
@ -825,7 +898,8 @@ export default {
dialogVisibleF: false,
deliveryId: null,
Routid: null,
abnormalBox: false,//
Abnormalloading: false, //
TCloading: false, //
TcForm: {}, //
//
@ -3570,6 +3644,28 @@ export default {
},
},
methods: {
//
AbnormalreviewFn(row) {
loadingAbnormalPackageListDetail(row.id).then(res => {
this.wrapdata = res.data.data;
console.log('res------------->', res.data.data);
});
},
viewAbnormalLoading(scope) {
const { row } = scope;
console.log(scope, '异常审核');
this.abnormalReview = row;
// this.title = '';
// this.view = true;
this.abnormalBox = true;
console.log('异常装车审核------------->', row);
this.AbnormalreviewFn(this.abnormalReview);
},
async setTableHeight() {
await this.$nextTick();
const tableNode = document.querySelectorAll('.tableNode');

Loading…
Cancel
Save