Browse Source

订单自编号去重

dev-xx
马远东 1 year ago
parent
commit
cfe6c2bc5b
  1. 2
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  2. 16
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 77
      src/views/aftersales/aftersalesWorkOrderend.vue
  4. 18
      src/views/distribution/turndelivery/deliveryDiscuss.vue

2
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -927,7 +927,7 @@ const ConfirmForm = () => {
// waybillNumber: PackageInfo.value.map(item => item.waybillNumber).join(','), //
// orderCode: PackageInfo.value.map(item => item.orderCode).join(','), //
// });
DataSubmit.orderCode = PackageInfo.value.map(item => item.orderCode).join(','); //
DataSubmit.orderCode = [...new Set(PackageInfo.value.map(item => item.orderCode))].join(',');
//
Indexform.value.number = PackageInfo.value.length;
console.log(DataSubmit['packageEntityList'], '包件信息');

16
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -549,11 +549,14 @@ const HistoricalPackageList = ref([]); //历史包件数组
const HistorIndex = ref(0); //
const TotalClaimAmount = ref(0); //
const dialogReturn = ref(false); //
const ProcessingRecords =ref([]);//
const repulse = ref(false); //
const amplifyurl = ref(''); //
const amplifysrcList = ref([]); //
const RouteIndexs = ref(''); //
const UserPermissions = ref('');//
const warehouseInfo=ref('');//
const warehouseState=ref(false);//
const PackageInfo = ref([
//
{ packageCode: '', orderCode: '', waybillNumber: '', brandName: '' },
@ -621,7 +624,7 @@ function updateDictionary(targetArray, dictionaryType) {
console.log(UserPermissions.value, '当前角色权限');
});
warehouseInfo.value = localStorage.getItem('WarehouseName');
// TOKEN
@ -683,7 +686,7 @@ const ButtonPermissions = computed(() => {
end: UserPermissions.value != '仓库客服', //
repulse: UserPermissions.value != '仓库客服', //
ArbitrationCompleted: UserPermissions.value == '职能客服', //
edit: false, //
edit:UserPermissions.value == '仓库客服', //
};
case RouteIndexs.value == 4: //
return {
@ -832,6 +835,7 @@ const onLoad = () => {
$_getInfo({ id: $route.query.id }).then(res => {
console.log(res, '回显返回值参数');
Indexform.value = res.data.data;
Indexform.value['result'] = [];
Indexform.value['processor'] = [];
//
@ -869,10 +873,12 @@ const onLoad = () => {
res.data.data.processorVOList.forEach(item => {
if (item.typesOf == 2) {
//
ProcessingRecords.value.push(item.businessId)
Indexform.value.processor.push(item.businessId);
}
});
// let a=['','']
// let b=['']
companyProportion.value = 100 - sum;
// updateDictionary(columnList[2].checkarr, 'pc_work_order'); //
@ -905,6 +911,7 @@ const onLoad = () => {
//
Indexform.value.resultDescription = res.data.data.processingResultsVO.resultDescription;
});
};
onLoad(); //
//
@ -1481,9 +1488,10 @@ const EndJump = () => {
}
}
.foot_btn {
width: 100%;
position: fixed;
bottom: 0;
left: 42%;
left: 50%;
height: 40px;
display: flex;
align-items: center;

77
src/views/aftersales/aftersalesWorkOrderend.vue

@ -88,7 +88,7 @@
<el-input v-model="endFrom.processNumber" disabled placeholder="请输入钉钉流程号" />
</el-form-item> -->
<el-form-item label="处理方" class="el_lab">
<el-form-item label="处理方" class="el_lab" style="flex: 0 0 32.5%">
<el-select
v-model="endFrom.processor"
multiple
@ -107,60 +107,16 @@
/>
</el-select>
</el-form-item>
<el-form-item label="" class="el_lab"> </el-form-item>
<div class="el_dcl">
<!-- <div class="selector">
<div class="el-form-item">
<span class="el-form-item__label">处理方</span>
<el-select
v-model="endFrom.processor"
multiple
filterable
default-first-option
:reserve-keyword="false"
placeholder="请选择处理方"
@change="css"
>
<el-option
v-for="item in warehouseData"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
</div> -->
<!-- <div class="el_Transport">
<el-form-item label="运损发现节点">
<el-radio-group v-model="endFrom.transportloss" @change="TransportChange">
<el-radio v-for="item in TransportlossList" :label="item.label">{{
item.txt
}}</el-radio>
</el-radio-group>
</el-form-item>
</div> -->
</div>
<!-- <div class="selector">
<div class="el-form-item selector">
<span class="el-form-item__label">责任方</span>
<el-select
v-model="endFrom.duty"
multiple
filterable
default-first-option
:reserve-keyword="false"
placeholder="请选择责任方"
>
<el-option
v-for="item in warehouseData"
:key="item.value"
:label="item.label"
:value="item.value"
<el-form-item label="异常问题描述">
<el-input
v-model="endFrom.problemDescription"
type="textarea"
placeholder="请输入异常问题描述"
disabled
/>
</el-select>
</div>
</div> -->
<!-- :disabled="$route.query.index == '0'" -->
</el-form-item>
<el-tabs type="border-card" class="PackageInformation">
<el-tab-pane label="包件信息">
@ -483,20 +439,6 @@
/>
</el-form-item>
<!-- 备注信息 -->
<div class="notes">
<el-form-item label="异常问题描述">
<el-input
v-model="endFrom.problemDescription"
type="textarea"
:autosize="{ minRows: 3, maxRows: 4 }"
placeholder="请输入异常问题描述"
disabled
/>
<!-- :disabled="$route.query.index == '0'" -->
</el-form-item>
</div>
<!-- 图片 -->
<div class="Transport_damage_photos">
<span class="title">图片</span>
@ -856,6 +798,7 @@ const accountingID = ref(); //财务处理当id前值
const dialogImgList = ref(false); //
const amplifyurl = ref(''); //
const amplifysrcList = ref([]); //
const PackageInfo = ref([
//
{ packageCode: '', orderCode: '', waybillNumber: '' },

18
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -381,9 +381,18 @@
</template>
</el-table-column>
</template>
</template>
</el-table>
<div class="el-Cart-button-btn">
<!-- <div>
已选择:3
<span>合计:</span>
<div>
<span>订单总件数:22</span>
<span>在库件数:33</span>
</div>
</div> -->
<el-button type="primary" @click="SubmitCommercial"
><el-icon><Select /></el-icon>()</el-button
>
@ -843,6 +852,7 @@ const isZeroTable = ref([]); //零担表格
const comprehensive = ref(false); //,
const QuantityEntryStatus = ref(false); //
const TCzj = ref(); //
const statisticsList=ref([]);//
const inputValue = ref('number'); //
//
//
@ -1290,6 +1300,7 @@ const menuData = ref([
fixed: false,
sortable: true,
head: true,
statistics:true,//
},
{
prop: 'handQuantity',
@ -1301,6 +1312,7 @@ const menuData = ref([
fixed: false,
sortable: true,
head: true,
statistics:true,//
},
{
prop: 'completeSetName',
@ -1563,6 +1575,10 @@ const wrap = ref([
function onLoad() {
loading.value = true; //
}
statisticsList.value= menuData.value.filter(item=>item.statistics);//
console.log(statisticsList.value,'需要统计的字段');
const TabHeig = () => {
TabHeight.value = TabHeight.value.offsetHeight; //
console.log(TabHeight.value.offsetHeight, 'TabHeight.value.offsetHeight');
@ -2875,7 +2891,7 @@ const SubmitCommercial = () => {
}
.el-Cart-button-btn {
display: flex;
justify-content: flex-end;
justify-content: space-between;
margin-top: 18px;
}
}

Loading…
Cancel
Save