Browse Source

修改配送参数传递

xiaochengxu
qb 1 year ago
parent
commit
0d122b5b5e
  1. 22
      pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan.vue
  2. 20
      pagesHome/pages/LoadingScan/LoadingScan.vue
  3. 32
      pagesHome/pages/signinScan/signinScan.vue
  4. 22
      unpackage/dist/dev/mp-weixin/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan.js
  5. 19
      unpackage/dist/dev/mp-weixin/pagesHome/pages/LoadingScan/LoadingScan.js
  6. 30
      unpackage/dist/dev/mp-weixin/pagesHome/pages/signinScan/signinScan.js
  7. 5
      unpackage/dist/dev/mp-weixin/project.config.json

22
pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan.vue

@ -301,13 +301,31 @@
}
}
function goCustomerOrdersDetails(item) {
const data = {
isstock: item.isstock,
consignee: item.consignee,
isload: item.isload,
ordNub: item.ordNub,
reservationNum: item.reservationNum,
signNub: item.signNub,
id: item.id
}
uni.navigateTo({
url: '/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails?item=' + JSON.stringify(item) + '&id=' + details.id
url: '/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails?item=' + JSON.stringify(data) + '&id=' + details.id
})
}
function goCustomerTrayDetails(item) {
const data = {
isstock: item.isstock,
consignee: item.consignee,
isload: item.isload,
ordNub: item.ordNub,
reservationNum: item.reservationNum,
signNub: item.signNub,
id: item.id
}
uni.navigateTo({
url: '/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails?item=' + JSON.stringify(item) + '&id=' + details.id
url: '/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails?item=' + JSON.stringify(data) + '&id=' + details.id
})
}
function goLoadingDetails(item) {

20
pagesHome/pages/LoadingScan/LoadingScan.vue

@ -361,6 +361,22 @@
* 跳转装车页面
*/
async function goselscan(item : any) {
const jumpData = {
type_name: item.type_name,
deliStatus_name: item.deliStatus_name,
vehicleName: item.vehicleName,
driverName: item.driverName,
loadingTeamName: item.loadingTeamName,
isstock: item.isstock,
customersNumber: item.customersNumber,
orderNumber: item.orderNumber,
loadCusNub: item.loadCusNub,
loadOrdNub: item.loadOrdNub,
signNub: item.signNub,
signNubSr: item.signNubSr,
id: item.id
}
let data = {
deliveryId: item.id
}
@ -368,7 +384,7 @@
if (res.data.length == 1) {
uni.setStorageSync('checkvehicle', res.data[0])
uni.navigateTo({
url: '/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=' + item.id + '&item=' + JSON.stringify(item)
url: '/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=' + item.id + '&item=' + JSON.stringify(jumpData)
})
return
}
@ -403,7 +419,7 @@
tiplists.value.setdetails({ isshow: false })
uni.setStorageSync('checkvehicle', res.data[deta.checklist[0]])
uni.navigateTo({
url: '/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=' + item.id + '&item=' + JSON.stringify(item)
url: '/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=' + item.id + '&item=' + JSON.stringify(jumpData)
})
},
cancel: (details) => {

32
pagesHome/pages/signinScan/signinScan.vue

@ -241,15 +241,41 @@
details.show = false
console.log(details.datatime);
}
function gocustomersign(item : { id : string }) {
function gocustomersign(item) {
const data = {
type_name: item.type_name,
deliStatus_name: item.deliStatus_name,
vehicleName: item.vehicleName,
driverName: item.driverName,
loadingTeamName: item.loadingTeamName,
isstock: item.isstock,
customersNumber: item.customersNumber,
orderNumber: item.orderNumber,
id: item.id
}
uni.navigateTo({
url: '/pagesHome/pages/CustomerSign/CustomerSign?item=' + JSON.stringify(item)
url: '/pagesHome/pages/CustomerSign/CustomerSign?item=' + JSON.stringify(data)
})
}
function goSignDetailScan(item) {
console.log('item :>> ', item);
const data = {
type_name: item.type_name,
deliStatus_name: item.deliStatus_name,
vehicleName: item.vehicleName,
driverName: item.driverName,
loadingTeamName: item.loadingTeamName,
isstock: item.isstock,
customersNumber: item.customersNumber,
orderNumber: item.orderNumber,
loadCusNub: item.loadCusNub,
loadOrdNub: item.loadOrdNub,
signNub: item.signNub,
signNubSr: item.signNubSr,
id: item.id
}
uni.navigateTo({
url: '/pagesHome/pages/SignDetailScan/SignDetailScan?item=' + JSON.stringify(item)
url: '/pagesHome/pages/SignDetailScan/SignDetailScan?item=' + JSON.stringify(data)
})
}
function cleartime() {

22
unpackage/dist/dev/mp-weixin/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan.js vendored

@ -109,13 +109,31 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
}
}
function goCustomerOrdersDetails(item) {
const data = {
isstock: item.isstock,
consignee: item.consignee,
isload: item.isload,
ordNub: item.ordNub,
reservationNum: item.reservationNum,
signNub: item.signNub,
id: item.id
};
common_vendor.index.navigateTo({
url: "/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails?item=" + JSON.stringify(item) + "&id=" + details.id
url: "/pagesHome/pages/CustomerOrdersDetails/CustomerOrdersDetails?item=" + JSON.stringify(data) + "&id=" + details.id
});
}
function goCustomerTrayDetails(item) {
const data = {
isstock: item.isstock,
consignee: item.consignee,
isload: item.isload,
ordNub: item.ordNub,
reservationNum: item.reservationNum,
signNub: item.signNub,
id: item.id
};
common_vendor.index.navigateTo({
url: "/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails?item=" + JSON.stringify(item) + "&id=" + details.id
url: "/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails?item=" + JSON.stringify(data) + "&id=" + details.id
});
}
const { authbuts, items, datalist } = common_vendor.toRefs(details);

19
unpackage/dist/dev/mp-weixin/pagesHome/pages/LoadingScan/LoadingScan.js vendored

@ -212,6 +212,21 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
return null;
}
async function goselscan(item) {
const jumpData = {
type_name: item.type_name,
deliStatus_name: item.deliStatus_name,
vehicleName: item.vehicleName,
driverName: item.driverName,
loadingTeamName: item.loadingTeamName,
isstock: item.isstock,
customersNumber: item.customersNumber,
orderNumber: item.orderNumber,
loadCusNub: item.loadCusNub,
loadOrdNub: item.loadOrdNub,
signNub: item.signNub,
signNubSr: item.signNubSr,
id: item.id
};
let data = {
deliveryId: item.id
};
@ -219,7 +234,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
if (res.data.length == 1) {
common_vendor.index.setStorageSync("checkvehicle", res.data[0]);
common_vendor.index.navigateTo({
url: "/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=" + item.id + "&item=" + JSON.stringify(item)
url: "/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=" + item.id + "&item=" + JSON.stringify(jumpData)
});
return;
}
@ -254,7 +269,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
tiplists.value.setdetails({ isshow: false });
common_vendor.index.setStorageSync("checkvehicle", res.data[deta.checklist[0]]);
common_vendor.index.navigateTo({
url: "/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=" + item.id + "&item=" + JSON.stringify(item)
url: "/pagesHome/pages/DeliveryCustomerScan/DeliveryCustomerScan?id=" + item.id + "&item=" + JSON.stringify(jumpData)
});
},
cancel: (details2) => {

30
unpackage/dist/dev/mp-weixin/pagesHome/pages/signinScan/signinScan.js vendored

@ -121,14 +121,40 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
details.show = value;
}
function gocustomersign(item) {
const data = {
type_name: item.type_name,
deliStatus_name: item.deliStatus_name,
vehicleName: item.vehicleName,
driverName: item.driverName,
loadingTeamName: item.loadingTeamName,
isstock: item.isstock,
customersNumber: item.customersNumber,
orderNumber: item.orderNumber,
id: item.id
};
common_vendor.index.navigateTo({
url: "/pagesHome/pages/CustomerSign/CustomerSign?item=" + JSON.stringify(item)
url: "/pagesHome/pages/CustomerSign/CustomerSign?item=" + JSON.stringify(data)
});
}
function goSignDetailScan(item) {
console.log("item :>> ", item);
const data = {
type_name: item.type_name,
deliStatus_name: item.deliStatus_name,
vehicleName: item.vehicleName,
driverName: item.driverName,
loadingTeamName: item.loadingTeamName,
isstock: item.isstock,
customersNumber: item.customersNumber,
orderNumber: item.orderNumber,
loadCusNub: item.loadCusNub,
loadOrdNub: item.loadOrdNub,
signNub: item.signNub,
signNubSr: item.signNubSr,
id: item.id
};
common_vendor.index.navigateTo({
url: "/pagesHome/pages/SignDetailScan/SignDetailScan?item=" + JSON.stringify(item)
url: "/pagesHome/pages/SignDetailScan/SignDetailScan?item=" + JSON.stringify(data)
});
}
function cleartime() {

5
unpackage/dist/dev/mp-weixin/project.config.json vendored

@ -13,12 +13,13 @@
"bigPackageSizeSupport": true,
"ignoreDevUnusedFiles": false,
"lazyCodeLoading": "requiredComponents",
"enhance": true,
"packNpmRelationList": [],
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enhance": true
}
},
"compileType": "miniprogram",
"libVersion": "3.1.2",

Loading…
Cancel
Save