Browse Source

采购退货

wms3.0_pda
lijuncheng 12 months ago
parent
commit
b26247bb08
  1. 4
      mycomponents/detail/comDetailCard.vue
  2. 64
      pages.json
  3. 41
      pages/purchaseReturn/job/returnDetail.vue
  4. 3
      pages/putaway/record/putawayRecord.vue

4
mycomponents/detail/comDetailCard.vue

@ -68,8 +68,8 @@
default: true
},
locationTypeList: {
type: Object,
default: {}
type: Array,
default: []
},
},
watch: {

64
pages.json

@ -17,49 +17,7 @@
"enablePullDownRefresh": true
}
},
{
"path": "pages/mine/index",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": true
}
},
{
"path": "pages/mine/avatar/index",
"style": {
"navigationBarTitleText": "修改头像"
}
}, {
"path": "pages/mine/info/index",
"style": {
"navigationBarTitleText": "个人信息"
}
}, {
"path": "pages/mine/info/edit",
"style": {
"navigationBarTitleText": "编辑资料"
}
}, {
"path": "pages/mine/pwd/index",
"style": {
"navigationBarTitleText": "修改密码"
}
}, {
"path": "pages/mine/setting/index",
"style": {
"navigationBarTitleText": "应用设置"
}
}, {
"path": "pages/mine/help/index",
"style": {
"navigationBarTitleText": "常见问题"
}
}, {
"path": "pages/mine/about/index",
"style": {
"navigationBarTitleText": "关于我们"
}
},
{
"path": "pages/common/webview/index",
"style": {
@ -71,16 +29,6 @@
"navigationBarTitleText": "浏览文本"
}
},
{
"path": "pages/home/index",
"style": {
"navigationBarTitleText": "WMS仓库管理系统-移动端",
"titleNView": {
"autoBackButton": "true",
"buttons": [{}]
}
}
},
{
"path": "pages/login/index",
"style": {
@ -644,16 +592,6 @@
"buttons": [{}]
}
}
}, {
"path": "pages/query/number",
"style": {
"navigationBarTitleText": "按库位查询库存",
"enablePullDownRefresh": true,
"titleNView": {
"autoBackButton": "true",
"buttons": [{}]
}
}
}, {
"path": "pages/query/container",
"style": {

41
pages/purchaseReturn/job/returnDetail.vue

@ -92,9 +92,7 @@
jobContent: {}, //
subList: [], //subList
detailSource: [], //
toLocationInfo: {},
businessTypeInfo: {},
locationTypeList: [],
managementList: []
};
},
@ -316,17 +314,17 @@
var params =this.setParams()
console.log("提交参数", JSON.stringify(params));
// purchaseReturnJobsubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>退" + res.data, )
// } else {
// this.showErrorMessage(""+res.msg)
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
purchaseReturnJobsubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage(res.data)
} else {
this.showErrorMessage("提交失败["+res.msg+"]")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
},
@ -337,16 +335,11 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
// var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
// detail.packingNumber, detail.batch);
// detail.toPackingNumber = info.packingNumber;
// detail.toBatch = info.batch;
detail.singlePrice = detail.balance.singlePrice;
detail.amount = detail.balance.singlePrice * detail.handleQty;
detail.arriveDate = detail.balance.arriveDate;
detail.produceDate = detail.balance.produceDate;
detail.expireDate = detail.balance.expireDate;
detail.toPackingNumber = detail.packingNumber;
detail.toContainerNumber = detail.containerNumber;
detail.toBatch = detail.batch;
detail.toInventoryStatus = detail.inventoryStatus;
detail.toLocationCode = detail.toLocationCode;
subList.push(detail)
}
})
@ -423,12 +416,10 @@
showCommitSuccessMessage(number) {
this.$refs.comMessage.showSuccessMessage('提交成功<br>生成退货记录:' + number, res => {
setTimeout(() => {
uni.navigateTo({
url: './returnJob'
})
})
})
}
}
}

3
pages/putaway/record/putawayRecord.vue

@ -133,7 +133,7 @@
this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup();
} else {
this.$refs.comMessage.showBreakMessage(res.message);
this.showErrorMessage(res.message)
}
});
},
@ -189,7 +189,6 @@
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {
}
});
},

Loading…
Cancel
Save