Browse Source

Merge branch 'pre-production'

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
26a8132da1
  1. 27
      src/components/tablecmt/tablecmt.vue
  2. 10
      src/views/aftersales/aftersalesWorkOrder.vue
  3. 4
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  4. 10
      src/views/aftersales/aftersalesWorkOrdermodify.vue
  5. 18
      src/views/distribution/reservation/reservationAddFrom.vue

27
src/components/tablecmt/tablecmt.vue

@ -171,13 +171,13 @@
</el-table-column>
</el-table>
<!-- 勾选合计行 -->
<div class="selection-total-row" v-if="shownm && isHaveSelection">
<!-- <div class="selection-total-row" v-show="shownm && isHaveSelection">
<span>勾选合计:</span>
<span v-for="item in selectCount">
<span style="margin: 0 5px">{{ item.label + ':' }}</span>
<el-text type="success">{{ item.value }}</el-text>
</span>
</div>
</div> -->
</div>
</template>
@ -479,16 +479,16 @@ function timechange(value, column: TableColumnType) {
}
const handleSelectionChange = (param: TableDataType[]) => {
//
selectCount.value.forEach(item => {
item.value = 0;
});
// selectCount.value.forEach(item => {
// item.value = 0;
// });
selectarr.value = param;
selectarr.value.forEach(val => {
selectCount.value.forEach(
item => (item.value = computeNumber(item.value, '+', Number(val[item.prop] || 0)).result)
);
});
// selectarr.value = param;
// selectarr.value.forEach(val => {
// selectCount.value.forEach(
// item => (item.value = computeNumber(item.value, '+', Number(val[item.prop] || 0)).result)
// );
// });
emit('selection', param);
};
function inputclear(value, column: TableColumnType) {
@ -502,7 +502,7 @@ function timeclear(value, column: TableColumnType) {
}
function handleDelete(index: number, row: TableDataType) {}
const getSummaries = (param: any) => {
selectCount.value = [];
const _arr = [];
const { columns, data } = param;
let newarr = [];
let tji = 0;
@ -518,7 +518,7 @@ const getSummaries = (param: any) => {
tji = computeNumber(tji, '+', Number(ite[props.columnList[index]?.prop] || 0)).result;
}
newarr[index] = tji;
selectCount.value.push({
_arr.push({
label: props.columnList[index]?.label,
value: 0,
prop: props.columnList[index]?.prop,
@ -528,6 +528,7 @@ const getSummaries = (param: any) => {
newarr[index] = null;
}
});
// selectCount.value = _arr;
// console.log(columns)
return newarr;
};

10
src/views/aftersales/aftersalesWorkOrder.vue

@ -1561,11 +1561,11 @@ const IndexTable = val => {
res.data.data.records.forEach(item => {
console.log(item, 'item');
// null
for (const property in item) {
if (item[property] == null) {
item[property] = '/';
}
}
// for (const property in item) {
// if (item[property] == null) {
// item[property] = '/';
// }
// }
//
if (item.workOrderType == 1) {
item.workOrderTypeNameS = columnList[2].checkarr[0].label; //

4
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -1102,6 +1102,10 @@ const Statistics = () => {
//
const ChangePackageInfo = (val, index) => {
if(!val){
return
//
}
PackageInfo.value[index].orderCode = ''; //
PackageInfo.value[index].waybillNumber = ''; //
PackageInfo.value[index].orderId = ''; //

10
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -1460,17 +1460,17 @@ const ConfirmForm = () => {
DataSubmit['processorEntityList'].push({
businessName: warehouseData.value.find(obj => obj.value == item).label, //
businessId: warehouseData.value.find(obj => obj.value == item).value, //ID
workOrderId: $route.query.id, //ID
workOrderId: $route.query.id=='/'?'':$route.query.id, //ID
conditions: 1, // 1 2 3
typesOf: 2, //1 2
warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, //ID
processingStatus: $route.query.ProcessType, // 1 2
processingStatus: $route.query.ProcessType=='/'?'':$route.query.ProcessType, // 1 2
});
});
//
DataSubmit.surveyRecordDTO = {
content: Indexform.value.investigationProcess, //'
workOrderId: $route.query.id, //ID
workOrderId: $route.query.id =='/'?'':$route.query.id, //ID
// pictureUrl: KFfeel.value.join(','), //
};
}
@ -1549,7 +1549,7 @@ const ConfirmForm = () => {
money: Number(item.num), //
reasonArbitration: item.reason, //
workOrderId: $route.query.id, //
warehouseId: $route.query.warehouseId, // ID
warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // ID
});
} else {
DataSubmit['completionRecipientEntities'].push({
@ -1565,7 +1565,7 @@ const ConfirmForm = () => {
.join(',')
)
.join(','),
warehouseId: $route.query.warehouseId, // ID
warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // ID
workOrderId: $route.query.id, //
});
}

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

@ -715,6 +715,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -726,6 +727,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -737,6 +739,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -935,6 +938,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
{
@ -945,6 +949,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
/* {
@ -975,6 +980,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
@ -1017,6 +1023,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1037,6 +1044,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
{
@ -1077,7 +1085,7 @@ export default {
label: '序号',
type: 0,
values: '',
width: '50',
width: '55',
checkarr: [],
fixed: false,
sortable: true,
@ -1235,6 +1243,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1246,6 +1255,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1497,6 +1507,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
{
@ -1507,6 +1518,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
/* {
@ -1537,6 +1549,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
{
@ -1548,6 +1561,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
@ -1599,6 +1613,7 @@ export default {
width: '130',
checkarr: [],
fixed: false,
isshowSummary: true,
sortable: true,
},
{
@ -1808,6 +1823,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{

Loading…
Cancel
Save