|
|
@@ -16,14 +16,18 @@ Page({
|
|
|
label: "装箱明细",
|
|
|
icon: "icon-tabcaozuojilu1",
|
|
|
model: "#Binding"
|
|
|
- }]
|
|
|
+ }, {
|
|
|
+ label: "附件",
|
|
|
+ icon: "icon-tabfujian1",
|
|
|
+ model: "#Yl_Attachment"
|
|
|
+ }, ]
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
|
sa_logisticsid: options.id
|
|
|
});
|
|
|
this.getDetail(true);
|
|
|
- getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
|
|
|
+ getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
|
|
|
},
|
|
|
/* 获取详情 */
|
|
|
getDetail(init = false, show = true) {
|
|
|
@@ -63,7 +67,7 @@ Page({
|
|
|
value: data.address
|
|
|
}, {
|
|
|
label: "快递公司",
|
|
|
- value: data.logiscomp_enterprisename
|
|
|
+ value: data.logiscomp_enterprisename || data.logiscompname
|
|
|
}, {
|
|
|
label: "快递单号",
|
|
|
value: data.logisticno
|
|
|
@@ -131,6 +135,38 @@ Page({
|
|
|
},
|
|
|
/* 确认收货 */
|
|
|
receiving() {
|
|
|
+ if (['HY', 'hy'].includes(wx.getStorageSync('userMsg').siteid)) {
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "system.attachment.Attachment",
|
|
|
+ "method": "queryFileLink",
|
|
|
+ "content": {
|
|
|
+ "nocache": true,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 0,
|
|
|
+ "ownertable": "sa_logistics",
|
|
|
+ "ownerid": this.data.detail.sa_logisticsid
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log("附件", res)
|
|
|
+ if (res.code != 1) return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ if (res.total == 0) {
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '当前单据未上传纸质回签单附件,不可确认收货',
|
|
|
+ showCancel: false
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.handleReceiving()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.handleReceiving()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleReceiving() {
|
|
|
let that = this;
|
|
|
wx.showModal({
|
|
|
cancelText: getApp().globalData.Language.getMapText('取消'),
|