qb 1 year ago
parent
commit
58b941d61c
  1. 7
      src/permission.js
  2. 15
      src/utils/util.js
  3. 25
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  4. 83
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  5. 135
      src/views/aftersales/aftersalesWorkOrderend.vue
  6. 66
      src/views/aftersales/aftersalesWorkOrdermodify.vue
  7. 4841
      src/views/distribution/reservation/reservationAddFrom.vue

7
src/permission.js

@ -6,6 +6,13 @@ import 'nprogress/nprogress.css'; // progress bar style
NProgress.configure({ showSpinner: false }); NProgress.configure({ showSpinner: false });
const lockPage = '/lock'; //锁屏页 const lockPage = '/lock'; //锁屏页
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// console.log('to',to)
// console.log('from',from)
// console.log('next',next)
//keep-alive BUG matched超过两层就不能缓存
if(to.matched && to.matched.length>2){
to.matched.splice(1,to.matched.length -2)
}
const meta = to.meta || {}; const meta = to.meta || {};
const isMenu = meta.menu === undefined ? to.query.menu : meta.menu; const isMenu = meta.menu === undefined ? to.query.menu : meta.menu;
store.commit('SET_IS_MENU', isMenu === undefined); store.commit('SET_IS_MENU', isMenu === undefined);

15
src/utils/util.js

@ -1,6 +1,7 @@
import { validatenull } from './validate'; import { validatenull } from './validate';
import sha256 from 'crypto-js/sha256'; import sha256 from 'crypto-js/sha256';
import Base64 from 'crypto-js/enc-base64'; import Base64 from 'crypto-js/enc-base64';
import store from '@/store/index';
//表单序列化 //表单序列化
export const serialize = data => { export const serialize = data => {
let list = []; let list = [];
@ -334,6 +335,18 @@ export const getTopUrl = () => {
return window.location.href.split('/#/')[0]; return window.location.href.split('/#/')[0];
}; };
/**
* @param {string} value 要移除的地址
*/
export function AddressClosed(url){
console.log(url, store);
const index = store.getters.tagList.findIndex((item) => item.path == url);
if (index != -1) {
store.getters.tagList.splice(index, 1);
}
}
/** /**
* 获取url参数 * 获取url参数
* @param name 参数名 * @param name 参数名
@ -609,3 +622,5 @@ export function debounce(func, delay) {
}, delay); }, delay);
})(); })();
} }

25
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -454,8 +454,16 @@
<el-icon><Plus /></el-icon> <el-icon><Plus /></el-icon>
</el-upload> </el-upload>
<el-dialog v-model="dialogVisible"> <el-dialog v-model="dialogImgList" width="30%">
<img w-full :src="dialogImageUrl" alt="图片" /> <el-image
:src="amplifyurl"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
:preview-src-list="amplifysrcList"
:initial-index="4"
fit="cover"
/>
</el-dialog> </el-dialog>
</div> </div>
@ -587,6 +595,9 @@ const dialogHistoricalPackage = ref(false); //历史包件弹窗
const HistoricalPackageList = ref([]); // const HistoricalPackageList = ref([]); //
const HistorIndex = ref(0); // const HistorIndex = ref(0); //
const NumberPackages = ref(0); // const NumberPackages = ref(0); //
const dialogImgList = ref(false); //
const amplifyurl = ref(''); //
const amplifysrcList = ref([]); //
const PackageInfo = ref([ const PackageInfo = ref([
// //
{ packageCode: '', orderCode: '', waybillNumber: '', brandName: '' }, { packageCode: '', orderCode: '', waybillNumber: '', brandName: '' },
@ -640,11 +651,9 @@ const doubledCount = computed(() => {
const ImgSuccess = (response, uploadFile) => { const ImgSuccess = (response, uploadFile) => {
if (response.success === true) { if (response.success === true) {
console.log(response); console.log(response);
// Indexform.value['packList'].push({
// name: response.data.originalName,
// url: response.data.link,
// });
console.log(Indexform.value['packList'], '图片列表'); console.log(Indexform.value['packList'], '图片列表');
amplifysrcList.value.push(response.data.link);
} }
}; };
@ -663,10 +672,14 @@ const beforeAvatarUpload = rawFile => {
// //
const pictureList = val => { const pictureList = val => {
console.log(val, '图片列表'); console.log(val, '图片列表');
dialogImgList.value=true;
console.log(val, '图片列表');
amplifyurl.value=val.url;
}; };
// //
const ImgListRemove = val => { const ImgListRemove = val => {
console.log(val, '移除图片'); console.log(val, '移除图片');
amplifysrcList.value = amplifysrcList.value.filter(item => item !== val.response.data.link);
}; };
// //
const handle = () => { const handle = () => {

83
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -38,7 +38,7 @@
</div> </div>
<div class="maxBox"> <div class="maxBox">
<span class="title">品牌:</span> <span class="title">品牌:</span>
<el-input disabled v-model="item.brandName" placeholder="请输入品牌" clearable /> <el-input disabled v-model="item.brandName" placeholder="请输入品牌" clearable />
</div> </div>
</div> </div>
</div> </div>
@ -388,7 +388,6 @@
<el-input <el-input
v-model="item.responsibilityRatio" v-model="item.responsibilityRatio"
placeholder="请输入占比 " placeholder="请输入占比 "
clearable
:rows="2" :rows="2"
disabled disabled
/> />
@ -433,9 +432,17 @@
<el-icon><Plus /></el-icon> <el-icon><Plus /></el-icon>
</el-upload> </el-upload>
<!-- <el-dialog v-model="dialogVisible"> <el-dialog v-model="dialogImgList" width="30%">
<img w-full :src="dialogImageUrl" alt="图片" /> <el-image
</el-dialog> --> :src="amplifyurl"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
:preview-src-list="amplifysrcList"
:initial-index="4"
fit="cover"
/>
</el-dialog>
</div> </div>
<div class="foot_btn"> <div class="foot_btn">
@ -488,11 +495,14 @@
</template> </template>
<script setup> <script setup>
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import { ElMessageBox } from 'element-plus'; import { ElMessageBox } from 'element-plus';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { getDictionaryBiz } from '@/api/system/dict'; // import { getDictionaryBiz } from '@/api/system/dict'; //
import { getDetailWarehouse, getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse'; // import { getDetailWarehouse, getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse'; //
import {AddressClosed} from '@/utils/util'
import { import {
$_getList, $_getList,
$_submit, $_submit,
@ -504,6 +514,7 @@ import {
$_batchReturn, $_batchReturn,
} from '@/api/aftersales/aftersalesWorkOrder'; } from '@/api/aftersales/aftersalesWorkOrder';
import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue'; import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
const $router = useRouter(); const $router = useRouter();
const $route = useRoute(); const $route = useRoute();
@ -511,6 +522,7 @@ const Indexform = ref({
packList: [], packList: [],
decreaseImageEntityList: [], // decreaseImageEntityList: [], //
}); // }); //
const dialogImgList=ref(false)
const IndexException = ref([]); // const IndexException = ref([]); //
const DiscoveringNodes = ref([]); // const DiscoveringNodes = ref([]); //
const ProcessingResults = ref([]); // const ProcessingResults = ref([]); //
@ -540,9 +552,11 @@ const HistorIndex = ref(0); //历史包件索引
const TotalClaimAmount = ref(0); // const TotalClaimAmount = ref(0); //
const dialogReturn = ref(false); // const dialogReturn = ref(false); //
const repulse = ref(false); // const repulse = ref(false); //
const amplifyurl= ref('');//
const amplifysrcList = ref([]);//
const PackageInfo = ref([ const PackageInfo = ref([
// //
{ packageCode: '', orderCode: '', waybillNumber: '',brandName:'' }, { packageCode: '', orderCode: '', waybillNumber: '', brandName: '' },
]); ]);
// //
const FangAddList = ref([ const FangAddList = ref([
@ -627,7 +641,9 @@ const beforeAvatarUpload = rawFile => {
}; };
// //
const pictureList = val => { const pictureList = val => {
dialogImgList.value=true;
console.log(val, '图片列表'); console.log(val, '图片列表');
amplifyurl.value=val.url;
}; };
// //
const ImgListRemove = val => { const ImgListRemove = val => {
@ -710,14 +726,15 @@ const onLoad = () => {
Indexform.value['processor'] = []; Indexform.value['processor'] = [];
// //
Indexform.value.packList = res.data.data.decreaseImageVOList.map(res => { Indexform.value.packList = res.data.data.decreaseImageVOList.map(res => {
amplifysrcList.value.push(res.imagePath);
return { return {
name: res.imageName, name: res.imageName,
url: res.imagePath, url: res.imagePath,
}; };
}); });
// //
PackageInfo.value = res.data.data.abnormalPackageVOList PackageInfo.value = res.data.data.abnormalPackageVOList;
console.log(res.data.data.abnormalPackageVOList,'包件信息'); console.log(res.data.data.abnormalPackageVOList, '包件信息');
// //
FangAddList.value = res.data.data.processorVOList FangAddList.value = res.data.data.processorVOList
.filter(item => item.typesOf == '1') .filter(item => item.typesOf == '1')
@ -726,12 +743,16 @@ const onLoad = () => {
businessName: res.businessId, businessName: res.businessId,
}; };
}); });
//
let sum = 0;
res.data.data.personResponsibleVOS.forEach(item => {
sum = Number(item.responsibilityRatio) + sum;
});
FangAddList.value = res.data.data.personResponsibleVOS.map(res => { FangAddList.value = res.data.data.personResponsibleVOS.map(res => {
return { return {
businessName: res.businessId, //ID businessName: res.businessId, //ID
personResponsibleName: res.personResponsibleName, // personResponsibleName: res.personResponsibleName, //
responsibilityRatio: res.responsibilityRatio, // responsibilityRatio: res.responsibilityRatio + '%', //
description: res.description, // description: res.description, //
}; };
}); });
@ -742,11 +763,6 @@ const onLoad = () => {
} }
}); });
//
let sum = 0;
FangAddList.value.forEach(item => {
sum = Number(item.responsibilityRatio) + sum;
});
companyProportion.value = 100 - sum; companyProportion.value = 100 - sum;
// updateDictionary(columnList[2].checkarr, 'pc_work_order'); // // updateDictionary(columnList[2].checkarr, 'pc_work_order'); //
@ -756,19 +772,21 @@ const onLoad = () => {
ProcessingResults.value = res.data.data; ProcessingResults.value = res.data.data;
}); });
// //
if(res.data.data.processingResultsVO.processingMoneyEntityList){ if (res.data.data.processingResultsVO.processingMoneyEntityList) {
ProcessingList.value = res.data.data.processingResultsVO.processingMoneyEntityList.map(item => { ProcessingList.value = res.data.data.processingResultsVO.processingMoneyEntityList.map(
Indexform.value.result.push(item.resultType); item => {
return { Indexform.value.result.push(item.resultType);
input: item.money, return {
min: 0, input: item.money,
max: 9999999999999999999999999999, min: 0,
state: item.resultType, max: 9999999999999999999999999999,
payment: item.compensationMethod, state: item.resultType,
name: item.resultTypeName, payment: item.compensationMethod,
text: item.compensationMethodName, name: item.resultTypeName,
}; text: item.compensationMethodName,
}); };
}
);
} }
// //
TotalClaimAmount.value = res.data.data.processingResultsVO.money; TotalClaimAmount.value = res.data.data.processingResultsVO.money;
@ -850,7 +868,6 @@ const TopChange = val => {
} }
}; };
// //
const BatchReturn = () => { const BatchReturn = () => {
BatchFrom.value.businessDepartment = []; BatchFrom.value.businessDepartment = [];
@ -1079,6 +1096,7 @@ const addingRecord = () => {
}; };
// //
const CustomerServiceCompleted = () => { const CustomerServiceCompleted = () => {
$router.push({ $router.push({
path: '/aftersales/aftersalesWorkOrdermodify', path: '/aftersales/aftersalesWorkOrdermodify',
query: { query: {
@ -1091,6 +1109,7 @@ const CustomerServiceCompleted = () => {
index: '1', index: '1',
}, },
}); });
}; };
// //
const EditInformation = () => { const EditInformation = () => {
@ -1103,7 +1122,7 @@ const EditInformation = () => {
warehouseId: $route.query.warehouseId, warehouseId: $route.query.warehouseId,
workOrderNumber: $route.query.workOrderNumber, workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Infoedit', RouterState: 'Infoedit',
ProcessType:$route.query.ProcessType, // 1 2 ProcessType: $route.query.ProcessType, // 1 2
}, },
}); });
}; };
@ -1454,4 +1473,8 @@ const EndJump = () => {
height: 30px !important; height: 30px !important;
} }
} }
:deep(.el-image){
width: 100% !important;
height: 300px !important;
}
</style> </style>

135
src/views/aftersales/aftersalesWorkOrderend.vue

@ -515,9 +515,17 @@
<el-icon><Plus /></el-icon> <el-icon><Plus /></el-icon>
</el-upload> </el-upload>
<!-- <el-dialog v-model="dialogVisible"> <el-dialog v-model="dialogImgList" width="30%">
<img w-full :src="dialogImageUrl" alt="Preview Image" /> <el-image
</el-dialog> --> :src="amplifyurl"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
:preview-src-list="amplifysrcList"
:initial-index="4"
fit="cover"
/>
</el-dialog>
</div> </div>
<!-- 视频 --> <!-- 视频 -->
@ -774,31 +782,23 @@
</template> </template>
</el-dialog> </el-dialog>
<!-- 财务处理弹窗 --> <!-- 财务处理弹窗 -->
<!-- 弹出框 --> <!-- 弹出框 -->
<el-dialog <el-dialog v-model="accountingLodading" title="财务是否处理" width="30%">
v-model="accountingLodading" <div class="cw_load">
title="财务是否处理" <el-radio-group v-model="accountingValue" class="ml-4">
width="30%" <el-radio label="1" size="large">已处理</el-radio>
> <el-radio label="2" size="large">未处理</el-radio>
<div class='cw_load'> </el-radio-group>
<el-radio-group v-model="accountingValue" class="ml-4"> </div>
<el-radio label="1" size="large">已处理</el-radio> <template #footer>
<el-radio label="2" size="large">未处理</el-radio> <span class="dialog-footer">
</el-radio-group> <el-button @click="accountingLodading = false">取消</el-button>
</div> <el-button type="primary" @click="accountingFn"> 确定 </el-button>
<template #footer> </span>
<span class="dialog-footer"> </template>
<el-button @click="accountingLodading = false">取消</el-button> </el-dialog>
<el-button type="primary" @click="accountingFn">
确定
</el-button>
</span>
</template>
</el-dialog>
</el-card> </el-card>
</template> </template>
@ -823,7 +823,7 @@ import { columnList, recordList } from '@/option/aftersales/vueTvemp.js';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { getDictionaryBiz } from '@/api/system/dict'; import { getDictionaryBiz } from '@/api/system/dict';
import { computeNumber, isNumer } from '@/utils/util'; import { computeNumber, isNumer, AddressClosed } from '@/utils/util';
const ZFdialog = ref(false); // const ZFdialog = ref(false); //
const $route = useRoute(); const $route = useRoute();
const $router = useRouter(); const $router = useRouter();
@ -849,9 +849,12 @@ const HistoricalPackageList = ref([]); //历史包件数组
const dialogHistoricalPackage = ref(false); // const dialogHistoricalPackage = ref(false); //
const HistoricalPackageinput = ref(''); // const HistoricalPackageinput = ref(''); //
const UserPermissions = ref(''); // const UserPermissions = ref(''); //
const accountingLodading=ref(false);// const accountingLodading = ref(false); //
const accountingValue=ref('');// const accountingValue = ref(''); //
const accountingID=ref();//id const accountingID = ref(); //id
const dialogImgList = ref(false); //
const amplifyurl = ref(''); //
const amplifysrcList = ref([]); //
const PackageInfo = ref([ const PackageInfo = ref([
// //
{ packageCode: '', orderCode: '', waybillNumber: '' }, { packageCode: '', orderCode: '', waybillNumber: '' },
@ -1027,6 +1030,7 @@ const onLoad = () => {
endFrom.value.packageImage = []; endFrom.value.packageImage = [];
// //
res.data.data.decreaseImageVOList.forEach(res => { res.data.data.decreaseImageVOList.forEach(res => {
amplifysrcList.value.push(res.imagePath);
endFrom.value['packageImage'].push({ endFrom.value['packageImage'].push({
name: res.imageName, name: res.imageName,
url: res.imagePath, url: res.imagePath,
@ -1103,7 +1107,6 @@ const onLoad = () => {
payment: item.compensationMethod, payment: item.compensationMethod,
name: item.resultTypeName, name: item.resultTypeName,
text: item.compensationMethodName, text: item.compensationMethodName,
}; };
} }
); );
@ -1130,7 +1133,7 @@ const onLoad = () => {
reason: item.reasonReceivingPayment, // reason: item.reasonReceivingPayment, //
explains: item.explains, // explains: item.explains, //
cld: index + 1, cld: index + 1,
id:item.id id: item.id,
}); });
}); });
} }
@ -1145,9 +1148,8 @@ const onLoad = () => {
reason: item.reason, // reason: item.reason, //
explains: item.explains, // explains: item.explains, //
cld: index + 1, cld: index + 1,
id:item.id, id: item.id,
accounting:item.accounting?item.accounting:'' accounting: item.accounting ? item.accounting : '',
}); });
}); });
} }
@ -1235,10 +1237,10 @@ const Chathistory = () => {
filetype = Fileidentifier(item.pictureUrl); filetype = Fileidentifier(item.pictureUrl);
} }
if (res.data.data.processorVOList) { if (res.data.data.processorVOList) {
if (res.data.data.processorVOList.length) { if (res.data.data.processorVOList.length) {
msgState.value = res.data.data.processorVOList[0].processingStatus; // msgState.value = res.data.data.processorVOList[0].processingStatus; //
}
} }
}
MessageContent.value.push({ MessageContent.value.push({
time: item.createTime, // time: item.createTime, //
content: item.content, // content: item.content, //
@ -1252,7 +1254,6 @@ const Chathistory = () => {
}); });
console.log(MessageContent.value, '处理好的聊天记录'); console.log(MessageContent.value, '处理好的聊天记录');
// //
setTimeout(() => { setTimeout(() => {
const container = scrollContainer.value; const container = scrollContainer.value;
@ -1373,6 +1374,8 @@ const beforeAvatarUpload = rawFile => {
}; };
// //
const pictureList = val => { const pictureList = val => {
dialogImgList.value = true;
amplifyurl.value = val.url;
console.log(val, '图片列表'); console.log(val, '图片列表');
}; };
@ -1449,29 +1452,29 @@ const ProportionInput = val => {
}; };
// //
const accountingBtn=(item)=>{ const accountingBtn = item => {
accountingLodading.value=true;// accountingLodading.value = true; //
accountingID.value=item.id accountingID.value = item.id;
console.log(accountingID.value,'当前财务处理的ID'); console.log(accountingID.value, '当前财务处理的ID');
} };
const accountingFn=()=>{ const accountingFn = () => {
let data={ let data = {
id:accountingID.value, id: accountingID.value,
accounting:accountingValue.value accounting: accountingValue.value,
} };
console.log(data,'处理好的值'); console.log(data, '处理好的值');
$_accounting(data).then(res=>{ $_accounting(data).then(res => {
console.log(res,'财务处理'); console.log(res, '财务处理');
accountingLodading.value=false;// accountingLodading.value = false; //
if(res.data.code){ if (res.data.code) {
ElMessage({ ElMessage({
message: res.data.msg, message: res.data.msg,
type: 'success', type: 'success',
}) });
} }
onLoad() onLoad();
}) });
} };
// //
const amountMoney = () => { const amountMoney = () => {
@ -1679,7 +1682,6 @@ const submit = () => {
console.log(data, '处理好的值'); console.log(data, '处理好的值');
$_addCompletionEnd(data).then(res => { $_addCompletionEnd(data).then(res => {
$router.push('/aftersales/aftersalesWorkOrder');
console.log(res, '完结成功返回值'); console.log(res, '完结成功返回值');
if (res.data.code == 200) { if (res.data.code == 200) {
ElMessage({ ElMessage({
@ -1687,6 +1689,8 @@ const submit = () => {
message: res.data.msg, message: res.data.msg,
type: 'success', type: 'success',
}); });
$router.push('/aftersales/aftersalesWorkOrder');
AddressClosed('/aftersales/aftersalesWorkOrderend'); //
} }
}); });
} else { } else {
@ -1766,13 +1770,14 @@ const submit = () => {
console.log(data, '处理好的数据'); console.log(data, '处理好的数据');
$_addProcessingResults(data).then(res => { $_addProcessingResults(data).then(res => {
console.log(res, '提交后的参数'); console.log(res, '提交后的参数');
$router.push('/aftersales/aftersalesWorkOrder'); if (res.data.code == 200) {
if (res.code == 200) {
ElMessage({ ElMessage({
showClose: true, showClose: true,
message: res.data.msg, message: res.data.msg,
type: 'success', type: 'success',
}); });
$router.push('/aftersales/aftersalesWorkOrder');
AddressClosed('/aftersales/aftersalesWorkOrderend'); //
} }
}); });
} }
@ -2347,7 +2352,7 @@ const ViewPackageDetails = val => {
.el_lab { .el_lab {
margin-right: 10px !important; margin-right: 10px !important;
} }
.cw_load{ .cw_load {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;

66
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -532,8 +532,16 @@
<el-icon><Plus /></el-icon> <el-icon><Plus /></el-icon>
</el-upload> </el-upload>
<el-dialog v-model="dialogVisible"> <el-dialog v-model="dialogImgList" width="30%">
<img w-full :src="dialogImageUrl" alt="图片" /> <el-image
:src="amplifyurl"
:zoom-rate="1.2"
:max-scale="7"
:min-scale="0.2"
:preview-src-list="amplifysrcList"
:initial-index="4"
fit="cover"
/>
</el-dialog> </el-dialog>
</div> </div>
@ -660,6 +668,7 @@ import {
$_shippingInformation, $_shippingInformation,
} from '@/api/aftersales/aftersalesWorkOrder'; } from '@/api/aftersales/aftersalesWorkOrder';
import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue'; import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue';
import { AddressClosed } from '@/utils/util';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { computeNumber, isNumer } from '@/utils/util'; import { computeNumber, isNumer } from '@/utils/util';
import error from '@/error'; import error from '@/error';
@ -720,6 +729,9 @@ const UncompletionRecipientEntityListData = ref([]); //收款取消的
const UncompletionRecordEntitiesDat = ref([]); // const UncompletionRecordEntitiesDat = ref([]); //
const CompletionInformation = ref([]); // const CompletionInformation = ref([]); //
const formData = ref({}); // const formData = ref({}); //
const dialogImgList = ref(false); //
const amplifyurl = ref(''); //
const amplifysrcList = ref([]); //
// ref // ref
// //
@ -796,7 +808,11 @@ const doubledCount = computed(() => {
// //
const ImgSuccess = (response, uploadFile) => { const ImgSuccess = (response, uploadFile) => {
console.log(Indexform.value['packageImage'], '图片列表'); console.log(response,'上传成功');
if(response.code==200){
amplifysrcList.value.push(response.data.link);
}
}; };
// //
@ -812,11 +828,14 @@ const beforeAvatarUpload = rawFile => {
}; };
// //
const pictureList = val => { const pictureList = val => {
dialogImgList.value=true;
console.log(val, '图片列表'); console.log(val, '图片列表');
amplifyurl.value=val.url;
}; };
// //
const ImgListRemove = val => { const ImgListRemove = val => {
unDecreaseImageEntityList.value.push(val); // unDecreaseImageEntityList.value.push(val); //
amplifysrcList.value = amplifysrcList.value.filter(item => item !== val.url);
console.log(val, '移除图片'); console.log(val, '移除图片');
}; };
// //
@ -874,6 +893,7 @@ const onLoad = () => {
Indexform.value.packageImage = []; Indexform.value.packageImage = [];
// //
res.data.data.decreaseImageVOList.forEach(res => { res.data.data.decreaseImageVOList.forEach(res => {
amplifysrcList.value.push(res.imagePath);
Indexform.value['packageImage'].push({ Indexform.value['packageImage'].push({
name: res.imageName, name: res.imageName,
url: res.imagePath, url: res.imagePath,
@ -1459,17 +1479,17 @@ const ConfirmForm = () => {
DataSubmit['processorEntityList'].push({ DataSubmit['processorEntityList'].push({
businessName: warehouseData.value.find(obj => obj.value == item).label, // businessName: warehouseData.value.find(obj => obj.value == item).label, //
businessId: warehouseData.value.find(obj => obj.value == item).value, //ID businessId: warehouseData.value.find(obj => obj.value == item).value, //ID
workOrderId: $route.query.id=='/'?'':$route.query.id, //ID workOrderId: $route.query.id == '/' ? '' : $route.query.id, //ID
conditions: 1, // 1 2 3 conditions: 1, // 1 2 3
typesOf: 2, //1 2 typesOf: 2, //1 2
warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, //ID warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, //ID
processingStatus: $route.query.ProcessType=='/'?'':$route.query.ProcessType, // 1 2 processingStatus: $route.query.ProcessType == '/' ? '' : $route.query.ProcessType, // 1 2
}); });
}); });
// //
DataSubmit.surveyRecordDTO = { DataSubmit.surveyRecordDTO = {
content: Indexform.value.investigationProcess, //' content: Indexform.value.investigationProcess, //'
workOrderId: $route.query.id =='/'?'':$route.query.id, //ID workOrderId: $route.query.id == '/' ? '' : $route.query.id, //ID
// pictureUrl: KFfeel.value.join(','), // // pictureUrl: KFfeel.value.join(','), //
}; };
} }
@ -1548,7 +1568,7 @@ const ConfirmForm = () => {
money: Number(item.num), // money: Number(item.num), //
reasonArbitration: item.reason, // reasonArbitration: item.reason, //
workOrderId: $route.query.id, // workOrderId: $route.query.id, //
warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // ID warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // ID
}); });
} else { } else {
DataSubmit['completionRecipientEntities'].push({ DataSubmit['completionRecipientEntities'].push({
@ -1564,7 +1584,7 @@ const ConfirmForm = () => {
.join(',') .join(',')
) )
.join(','), .join(','),
warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // ID warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // ID
workOrderId: $route.query.id, // workOrderId: $route.query.id, //
}); });
} }
@ -1610,17 +1630,20 @@ const ConfirmForm = () => {
message: res.data.msg, message: res.data.msg,
type: 'success', type: 'success',
}); });
$router.push({ if (res.data.code == 200) {
path: '/aftersales/aftersalesWorkOrderInfo', $router.push({
query: { path: '/aftersales/aftersalesWorkOrderInfo',
id: $route.query.id, query: {
name: $route.query.workOrderNumber + '-信息查看', id: $route.query.id,
warehouseId: $route.query.warehouseId, name: $route.query.workOrderNumber + '-信息查看',
workOrderNumber: $route.query.workOrderNumber, // warehouseId: $route.query.warehouseId,
businessId: $route.query.businessId, workOrderNumber: $route.query.workOrderNumber, //
ProcessType: $route.query.ProcessType, businessId: $route.query.businessId,
}, ProcessType: $route.query.ProcessType,
}); },
});
AddressClosed('/aftersales/aftersalesWorkOrdermodify');
}
}) })
.catch(error => { .catch(error => {
ElMessage({ ElMessage({
@ -1719,6 +1742,7 @@ const Arbitrationcompleted = () => {
}); });
if (res.data.code == 200) { if (res.data.code == 200) {
$router.push('/aftersales/aftersalesWorkOrder'); // $router.push('/aftersales/aftersalesWorkOrder'); //
AddressClosed('/aftersales/aftersalesWorkOrdermodify');
} }
}); });
}; };
@ -2024,11 +2048,11 @@ const ViewPackageDetails = val => {
width: 80%; width: 80%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.el_zb{ .el_zb {
width: 140px; width: 140px;
margin-right: 50px; margin-right: 50px;
text-align: right; text-align: right;
:deep(.el-input){ :deep(.el-input) {
margin-left: 10px; margin-left: 10px;
text-align: right; text-align: right;
} }

4841
src/views/distribution/reservation/reservationAddFrom.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save