Browse Source

自提管理新增订单自编号字段

pre-production
马远东 1 year ago
parent
commit
e253f24820
  1. 191
      src/views/aftersales/aftersalesWorkOrderend.vue
  2. 10
      src/views/distribution/inventory/distrilbutionBillLadingList.vue

191
src/views/aftersales/aftersalesWorkOrderend.vue

@ -118,16 +118,16 @@
:disabled="$route.query.index == '0'"
</el-form-item> -->
<el-form-item label="调查经过">
<el-input
disabled
v-model="endFrom.investigationProcess"
placeholder="请输入调查经过"
clearable
:rows="2"
type="textarea"
/>
</el-form-item>
<el-form-item label="调查经过">
<el-input
disabled
v-model="endFrom.investigationProcess"
placeholder="请输入调查经过"
clearable
:rows="2"
type="textarea"
/>
</el-form-item>
<el-tabs type="border-card" class="PackageInformation">
<el-tab-pane label="包件信息">
@ -286,29 +286,31 @@
</el-tab-pane>
</el-tabs>
<!-- 完善信息 -->
<div class="Improveinformation">
<div class="Improveinformation">
<div class="selector">
<div class="el-form-item selector">
<span class="el-form-item__label">处理结果</span>
<el-select
v-model="endFrom.result"
multiple
filterable
default-first-option
:reserve-keyword="false"
placeholder="请选择处理结果"
@change="changeProcessingResults"
:disabled="$route.query.index == '0' || $route.query.index == '2'"
>
<el-option
v-for="item in ProcessingResults"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
</el-select>
<el-tabs type="border-card" style="width: 100%">
<el-tab-pane label="处理结果">
<el-select
v-model="endFrom.result"
multiple
filterable
default-first-option
:reserve-keyword="false"
placeholder="请选择处理结果"
@change="changeProcessingResults"
:disabled="$route.query.index == '0' || $route.query.index == '2'"
>
<el-option
v-for="item in ProcessingResults"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
/>
</el-select>
</el-tab-pane>
</el-tabs>
</div>
</div>
@ -327,29 +329,24 @@
<div class="Paymentname" @click="PaymentSelection(item)">
{{ item.payment ? item.text : '支付方式' }}
</div>
<div>
<el-date-picker
v-model="item.compensationTime"
type="datetime"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD HH:mm:ss"
:disabled="$route.query.index == '0' || $route.query.index == '2'"
placeholder="支付时间"
:clearable="false"
/>
</div>
</div>
</div>
<div class="el_tool">
<span>总金额:{{ TotalClaimAmount }}</span>
</div>
<el-divider>
<span class="ZFname">理赔支付时间</span>
</el-divider>
<div class="lptime">
<!-- <span class="name">理赔支付时间</span> -->
<el-date-picker
v-model="endFrom.compensationTime"
type="datetime"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD HH:mm:ss"
:disabled="$route.query.index == '0' || $route.query.index == '2'"
placeholder="请选择运理赔支付时间"
/>
<span>总金额:{{ TotalClaimAmount }}</span>
</div>
</div>
<!-- 处理结果说明 -->
<el-form-item label="处理结果说明" class="el_resj">
@ -435,27 +432,27 @@
</el-tab-pane>
</el-tabs>
<!-- 仲裁原因 -->
<div class="arbitrate" v-if="routerState == 'end'">
<el-tabs type="border-card" class="demo-tabs">
<el-tab-pane>
<template #label>
<span class="custom-tabs-label">
<el-icon><calendar /></el-icon>
<span>仲裁原因</span>
</span>
</template>
<!-- 仲裁原因 -->
<div class="arbitrate" v-if="routerState == 'end'">
<el-tabs type="border-card" class="demo-tabs">
<el-tab-pane>
<template #label>
<span class="custom-tabs-label">
<el-icon><calendar /></el-icon>
<span>仲裁原因</span>
</span>
</template>
<el-input
v-model="endFrom.arbitrate"
type="textarea"
:autosize="{ minRows: 5, maxRows: 4 }"
placeholder="请输入仲裁原因"
/>
</el-tab-pane>
</el-tabs>
</div>
<el-input
v-model="endFrom.arbitrate"
type="textarea"
:autosize="{ minRows: 5, maxRows: 4 }"
placeholder="请输入仲裁原因"
/>
</el-tab-pane>
</el-tabs>
</div>
<!-- 处理记录 -->
<div class="ProcessingRecords" v-if="routerState == 'end'">
<el-tabs type="border-card" class="demo-tabs">
@ -541,10 +538,8 @@
<source :src="videoUrl" type="video/mp4" />
</video>
</el-dialog>
</div>
<div class="el_sub" v-if="$route.query.index != '0'">
<el-button type="primary" class="button" @click="submit">提交</el-button>
</div>
@ -805,7 +800,7 @@ const msgTop = ref(0); //聊天框吸顶距离
const scrollContainer = ref(null); //
const KFfeel = ref([]); //
const MessageResponsibility = ref([]); //
const separateMessageResponsibility=ref([]);//
const separateMessageResponsibility = ref([]); //
const Msgtextarea = ref(''); //
const msgState = ref(0); //
const Msgloading = ref(false); //
@ -853,9 +848,9 @@ const VideoPreviewStatus = ref(false); //视频预览状态
const warehouseData = ref([]); //
const MessageContent = ref([]);
const CompensationParty = ref([
{ name: '', state: 0, num: null, reason: '', cld: 1, }, //
{ name: '', state: 0, num: null, reason: '', cld: 1 }, //
// explains: ''
{ name: '', state: 1, num: null, reason: '', cld: 1, }, //
{ name: '', state: 1, num: null, reason: '', cld: 1 }, //
// explains: ''
]); ///
const ProcessingList = ref([]); //
@ -991,7 +986,6 @@ const onLoad = () => {
routerState.value = $route.query.RouterState; //
console.log(routerState.value, '当前状态');
$_getInfo({ id: $route.query.id }).then(res => {
console.log(res, '回显返回值参数');
endFrom.value = res.data.data;
endFrom.value.result = [];
@ -1029,8 +1023,8 @@ const onLoad = () => {
res.data.data.processorVOList.forEach(item => {
if (item.typesOf == 2) {
//
endFrom.value.processor.push(item.businessId);
MessageResponsibility.value.push(item.businessId)
endFrom.value.processor.push(item.businessId);
MessageResponsibility.value.push(item.businessId);
}
});
console.log(endFrom.value.processor, ' endFrom.value.processor');
@ -1041,16 +1035,14 @@ const onLoad = () => {
res => res.dictKey == endFrom.value.workOrderType
).dictValue; //
});
//
getDictionaryBiz('pc_discovery_node').then(res => {
console.log(res, '发现环节');
TransportlossList.value = res.data.data;
console.log(TransportlossList.value, '处理好的发现环节');
});
//
let sum = 0;
FangAddList.value.forEach(item => {
@ -1130,11 +1122,9 @@ const onLoad = () => {
details.recorddata = res.data.data.surveyRecordEntities;
});
getDictionaryBiz('result_handling').then(res => {
console.log(res, '处理结果');
ProcessingResults.value = res.data.data;
});
console.log(res, '处理结果');
ProcessingResults.value = res.data.data;
});
}
//
@ -1240,9 +1230,7 @@ onLoad();
onMounted(() => {
msgHight.value = window.innerHeight * 0.76;
console.log(msgHight.value, '处理好的页面高度');
msgTop.value = window.innerHeight * 0.1;
//
setTimeout(() => {
const container = scrollContainer.value;
@ -1254,10 +1242,17 @@ onMounted(() => {
const changeProcessingResults = val => {
//
ProcessingList.value = ProcessingList.value.filter(item => val.includes(item.state - 1));
//
val.forEach(num => {
let newItem = { input: 0, min: 0, max: 9999999999999, state: num + 1, payment: '', text: '' };
let newItem = {
input: 0,
min: 0,
max: 9999999999999,
state: num + 1,
payment: '',
text: '',
compensationTime: '',
};
// numnewItemname
switch (num) {
case '1':
@ -1369,7 +1364,7 @@ const AddCompensation = () => {
som++;
}
});
CompensationParty.value.push({ name: '', state: 0, num: 0, reason: '', cld: som, });
CompensationParty.value.push({ name: '', state: 0, num: 0, reason: '', cld: som });
// explains: ''
};
//
@ -1380,7 +1375,7 @@ const AddPayee = () => {
som++;
}
});
CompensationParty.value.push({ name: '', state: 1, num: 0, reason: '', cld: som, });
CompensationParty.value.push({ name: '', state: 1, num: 0, reason: '', cld: som });
// explains: ''
};
//
@ -1720,7 +1715,7 @@ const submit = () => {
? paymentMethodMatch.dictValue
: '未知支付方式',
resultName: item.name, //
compensationTime: item.compensationTime, //
};
} else {
return null;
@ -1728,7 +1723,7 @@ const submit = () => {
})
.filter(item => item !== null);
data.aftersalesProcessingResultsDTO.processingMoneyEntityList =
data['processingMoneyEntityList'];
data['processingMoneyEntityList'];
console.log('走到了这一步');
data.aftersalesProcessingResultsDTO.workOrderId = $route.query.id; //ID
data.aftersalesProcessingResultsDTO['resultType'] = ProcessingList.value
@ -1891,7 +1886,7 @@ const ViewPackageDetails = val => {
position: relative;
padding: 26px;
box-sizing: border-box;
margin-top: 20px;
margin-top: 46px;
color: #606266;
display: flex;
flex-direction: column;
@ -1911,10 +1906,9 @@ const ViewPackageDetails = val => {
justify-content: space-between;
.name {
display: flex;
margin-right: 5%;
margin-bottom: 20px;
height: 30px;
width: 45%;
width: 46%;
span {
display: block;
width: 30%;
@ -2005,7 +1999,7 @@ const ViewPackageDetails = val => {
height: 300px !important;
}
.Improveinformation {
margin-top: 20px;
margin-top: 32px;
width: 100%;
:deep(.custom-tabs-label) {
display: flex;
@ -2060,7 +2054,8 @@ const ViewPackageDetails = val => {
font-size: 14px;
padding: 10px;
cursor: pointer;
width: 100px;
width: 190px;
margin: 0 4px;
}
.Paymentname:hover {
border: 1px solid #172e60;
@ -2350,7 +2345,7 @@ const ViewPackageDetails = val => {
width: 100%;
}
}
.el-endtabs{
.el-endtabs {
margin-top: 26px;
}
</style>

10
src/views/distribution/inventory/distrilbutionBillLadingList.vue

@ -271,6 +271,16 @@ export default {
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'serviceNumber',
label: '服务号',

Loading…
Cancel
Save