Browse Source

一件签收判断

dev-xx
马远东 1 year ago
parent
commit
ae6c697027
  1. 84
      src/views/aftersales/aftersalesWorkOrderend.vue
  2. 7
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue

84
src/views/aftersales/aftersalesWorkOrderend.vue

@ -1619,11 +1619,87 @@ const PaymentConfirmation = val => {
console.log(ProcessingList.value, '选择好的支付列表');
};
//
//
const DetermineStorage=()=>{
$_updateWorkOrderStatus().then(res=>{
console.log(res,'确定提交存储');
})
console.log($route.query.id, '异常ID');
console.log(ProcessingList.value, 'ProcessingList12312');
let data = {
aftersalesProcessingResultsDTO: {
},
processingMoneyEntityList: [], //
assignList:[{}]
};
let a={}
a=$route.query.id
data['assignList'].push(a)
data.id = $route.query.id;
data.aftersalesProcessingResultsDTO['workOrderId'] = $route.query.id; //ID
let sum = 0; //
for (let i = 0; i < ProcessingList.value.length; i++) {
console.log(ProcessingList.value[i].input);
sum = computeNumber(sum, '+', ProcessingList.value[i].input).result;
}
data.aftersalesProcessingResultsDTO.money = sum; //
// data['compensationMethod'] = Paymentmethod.value.filter(
// item => item.dictKey == endFrom.value.compensationMethod
// )[0].dictValue; //
// data['compensationMethod'] = endFrom.value.compensationMethod.join(','); //
// console.log(data['compensationMethod']);
console.log(Paymentmethod.value, 'Paymentmethod.value');
data.aftersalesProcessingResultsDTO['compensationMethod'] = ProcessingList.value
.map(item => item.text)
.join(',');
data['processingMoneyEntityList'] = ProcessingList.value
.map(item => {
console.log(item);
let match = ProcessingResults.value.find(element => element.dictValue == item.name);
if (match) {
let paymentMethodMatch = Paymentmethod.value.find(
paymentMethod => paymentMethod.dictKey == item.payment
);
return {
resultType: match.dictKey, //key
money: item.input, //
typesOf: 1, //
compensationMethod: paymentMethodMatch ? paymentMethodMatch.dictKey : '未知支付方式',
compensationMethodName: paymentMethodMatch
? paymentMethodMatch.dictValue
: '未知支付方式',
resultName: item.name, //
compensationTime: item.compensationTime, //
};
} else {
return null;
}
})
.filter(item => item !== null);
data.aftersalesProcessingResultsDTO.processingMoneyEntityList =
data['processingMoneyEntityList'];
console.log('走到了这一步');
data.aftersalesProcessingResultsDTO.workOrderId = $route.query.id; //ID
data.aftersalesProcessingResultsDTO['resultType'] = ProcessingList.value
.map(item => item.name)
.join(','); //
let imgLink = ''; //
//
// if (endFrom.value['packageImage'].length) {
// imgLink = endFrom.value['packageImage'].map(item => item.response.data.link).join(','); //
// }
if (videoUrl.value && imgLink) {
data.aftersalesProcessingResultsDTO['annex'] = videoUrl.value + ',' + imgLink;
} else {
data.aftersalesProcessingResultsDTO['annex'] = imgLink;
}
console.log(data, '处理好的数据');
delete data.aftersalesProcessingResultsDTO.id; //ID
data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId; //ID
console.log(data, '处理好的数据');
// $_updateWorkOrderStatus(data).then(res=>{
// console.log(res,'');
// })
}
//

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

@ -3815,6 +3815,13 @@ export default {
},
//
handleSignone(row) {
if(row.isHaveAbnormalPackage == 2){
ElMessage({
message: '存在异常,请先进行审核',
type: 'warning',
});
return
}
//
this.DoorstepPhoto = [];
this.StackingPhoto = [];

Loading…
Cancel
Save