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 default: true
}, },
locationTypeList: { locationTypeList: {
type: Object, type: Array,
default: {} default: []
}, },
}, },
watch: { watch: {

64
pages.json

@ -17,49 +17,7 @@
"enablePullDownRefresh": true "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", "path": "pages/common/webview/index",
"style": { "style": {
@ -71,16 +29,6 @@
"navigationBarTitleText": "浏览文本" "navigationBarTitleText": "浏览文本"
} }
}, },
{
"path": "pages/home/index",
"style": {
"navigationBarTitleText": "WMS仓库管理系统-移动端",
"titleNView": {
"autoBackButton": "true",
"buttons": [{}]
}
}
},
{ {
"path": "pages/login/index", "path": "pages/login/index",
"style": { "style": {
@ -644,16 +592,6 @@
"buttons": [{}] "buttons": [{}]
} }
} }
}, {
"path": "pages/query/number",
"style": {
"navigationBarTitleText": "按库位查询库存",
"enablePullDownRefresh": true,
"titleNView": {
"autoBackButton": "true",
"buttons": [{}]
}
}
}, { }, {
"path": "pages/query/container", "path": "pages/query/container",
"style": { "style": {

41
pages/purchaseReturn/job/returnDetail.vue

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

3
pages/putaway/record/putawayRecord.vue

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

Loading…
Cancel
Save