Browse Source

修复搜索

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
4eef0da98b
  1. 109
      src/views/distribution/signfor/distributionSignforedt.vue

109
src/views/distribution/signfor/distributionSignforedt.vue

@ -480,7 +480,7 @@
:size="ElButtonS[0].size"
:icon="ElButtonS[0].icon"
@click="DeleteEvent(props.row)"
></el-button
></el-button
>
</div>
<span v-if="item.type == 6">{{
@ -598,6 +598,8 @@
:placeholder="'请输入' + props.row.firsts + '数量'"
v-model="props.row.zeroQuantity"
:disabled="props.row.checkbox"
:min="0"
:max="props.row.maxQuantity"
/>
</span>
<span v-if="item.type == 4">{{
@ -1734,46 +1736,57 @@ const ZcSelectChange = (select, val) => {
};
//
const ConfirmSubmission = () => {
TcData.value = TcTemp.value; //
TcZcInput.value.num = TcTemp.value.length; //
let data = JSON.parse(JSON.stringify(TcData.value));
//
TcTemp.value.forEach(item => {
if (item.conditions == 3) {
//
let DataInfo = {
...TcZcInput.value, //
};
DataInfo.reservationId = RouterReservationId.value; //ID
DataInfo.deliveryId = RouterId.value; //ID
DataInfo.addvalueType = 1; //
DataInfo.packageEntityList = data; //
console.log(DataInfo, '最后要提交的值');
if (item.zeroQuantity) {
console.log(item.firsts + '没有输入数量');
}
}
});
//
// addvalueDetailId
if (addvalueDetailId.value) {
//
DataInfo.addvalueDetailId = addvalueDetailId.value; //ID
$_updateSignAddValuePackage(DataInfo).then(res => {
console.log(res, '返回成功的值');
TcData.value = []; //
TcTemp.value = []; //
ConfirmationInformation.value = false; //
dialogBatchDelete.value = false; //
});
} else {
//
$_saveSignAddValuePackage(DataInfo).then(res => {
console.log(res, '提交之后返回的值');
TcData.value = []; //
TcTemp.value = []; //
ConfirmationInformation.value = false; //
dialogBatchDelete.value = false; //
});
}
// TcData.value = TcTemp.value; //
// TcZcInput.value.num = TcTemp.value.length; //
// let data = JSON.parse(JSON.stringify(TcData.value));
// let DataInfo = {
// ...TcZcInput.value, //
// };
// DataInfo.reservationId = RouterReservationId.value; //ID
// DataInfo.deliveryId = RouterId.value; //ID
// DataInfo.addvalueType = 1; //
// DataInfo.packageEntityList = data; //
// console.log(DataInfo, '');
// //
// // addvalueDetailId
// if (addvalueDetailId.value) {
// //
// DataInfo.addvalueDetailId = addvalueDetailId.value; //ID
// $_updateSignAddValuePackage(DataInfo).then(res => {
// console.log(res, '');
// TcData.value = []; //
// TcTemp.value = []; //
// ConfirmationInformation.value = false; //
// dialogBatchDelete.value = false; //
// });
// } else {
// //
// $_saveSignAddValuePackage(DataInfo).then(res => {
// console.log(res, '');
// TcData.value = []; //
// TcTemp.value = []; //
// ConfirmationInformation.value = false; //
// dialogBatchDelete.value = false; //
// });
// }
};
//
const TCancellation = () => {
TcZcInput.value = {}; //
ConfirmationInformation.value = fasle; //
ConfirmationInformation.value = false; //
console.log(TcZcInput.value, '表单数据');
};
//
@ -1790,7 +1803,7 @@ const searchHide = () => {
const serviceSearch = val => {
console.log('增值服务搜索');
ValueAddedFunction({
reservationId: '1723897534330003457',
reservationId: RouterReservationId.value,
...TcSoInput.value,
});
};
@ -1891,23 +1904,23 @@ const valueAddedServices = val => {
}).then(res => {
editLoading.value = false; //
console.log(res, '增值服务上楼的返回值');
if (res.data) {
if (res.data.data) {
if (res.data.data.addvalueDetailId) {
addvalueDetailId.value = res.data.data.addvalueDetailId;
console.log('当前不是第一次,为新增操作');
}
}
res.data.data.packageEntityList.forEach(item => {
item.checkbox = true;
console.log(item);
});
const packageList = res.data.data ? res.data.data.packageEntityList : [];
dataAdded.value = packageList;
TabTitle.value[0].value = res.data.data?.distance ?? '暂无数据'; //
TabTitle.value[1].value = res.data.data?.fee ?? '暂无数据'; //
TabTitle.value[2].value = res.data.data?.floolNum ?? '暂无数据'; //
TabTitle.value[3].value = packageList.length ? packageList.length : '暂无数据'; //
res.data.data.packageEntityList.forEach(item => {
item.checkbox = true;
console.log(item);
});
const packageList = res.data.data ? res.data.data.packageEntityList : [];
dataAdded.value = packageList;
TabTitle.value[0].value = res.data.data?.distance ?? '暂无数据'; //
TabTitle.value[1].value = res.data.data?.fee ?? '暂无数据'; //
TabTitle.value[2].value = res.data.data?.floolNum ?? '暂无数据'; //
TabTitle.value[3].value = packageList.length ? packageList.length : '暂无数据'; //
}
});
};
const ServiceChange = val => {

Loading…
Cancel
Save