Commit e779fe70 authored by tanjunxin's avatar tanjunxin

Merge branch 'dev' of http://git.local.topsunit.com/mes/mes-pda into dev

parents b754af96 7487ca84
...@@ -82,7 +82,7 @@ const install = (Vue, vm) => { ...@@ -82,7 +82,7 @@ const install = (Vue, vm) => {
//生产领料 //生产领料
pdaSapissuecreate: (params = {}) => vm.$u.post(config.adminPath + '/apiPda/issue/pdaissuecreate', params), pdaSapissuecreate: (params = {}) => vm.$u.post(config.adminPath + '/apiPda/issue/pdaissuecreate', params),
// 生产退料 // 生产退料
pdaMaterialReturnNum: (params = {}) => vm.$u.post(config.adminPath + '/apiPad/materialReturn/pdaMaterialReturnNum', params), pdaMaterialReturnNum: (params = {}) => vm.$u.post(config.adminPath + '/apiPad/materialReturn/pdaMaterialReturnNum', params, {'content-type': 'application/json;charset=UTF-8'}),
// 完工入库 // 完工入库
pdaFindPackageLinkInfo: (params = {}) => vm.$u.post(config.adminPath + '/apiPda/search/findPackageLinkInfo', params), pdaFindPackageLinkInfo: (params = {}) => vm.$u.post(config.adminPath + '/apiPda/search/findPackageLinkInfo', params),
// 调拨料回传mes // 调拨料回传mes
......
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
ele.backNum = ele.quantityIssued ele.backNum = ele.quantityIssued
ele.issueCode = num ele.issueCode = num
ele.issueType = ele.materialType ele.issueType = ele.materialType
ele.returnNum = ele.quantityIssued
}); });
this.$u.api.mesApi this.$u.api.mesApi
.pdaMaterialReturnNum(arr) .pdaMaterialReturnNum(arr)
...@@ -209,7 +210,7 @@ export default { ...@@ -209,7 +210,7 @@ export default {
this.$u.toast('提交成功'); this.$u.toast('提交成功');
setTimeout(() => { setTimeout(() => {
this.goBack() this.goBack()
}, 1000); }, 3000);
}else{ }else{
this.$u.toast(res.msg); this.$u.toast(res.msg);
} }
......
...@@ -89,14 +89,16 @@ class Request { ...@@ -89,14 +89,16 @@ class Request {
} }
// 设置公共参数 // 设置公共参数
if (Object.prototype.toString.call(options.data) != '[object Array]') { if (Object.prototype.toString.call(options.data) != '[object Array]') {
console.log('设置参数vuex_user_factory', options.data)
options.data = { options.data = {
...options.data, ...options.data,
werks: store.state.vuex_user_factory werks: store.state.vuex_user_factory
} }
} }
} else if (options.url.indexOf('apiPda') > -1) { } else if (options.url.indexOf('apiPda') > -1) {
options.header = { options.header = {
...options.header, ...options.header,
'content-type': 'application/json;charset=UTF-8', 'content-type': 'application/json;charset=UTF-8',
...@@ -121,7 +123,7 @@ class Request { ...@@ -121,7 +123,7 @@ class Request {
}) })
this.config.timer = null; this.config.timer = null;
}, this.config.loadingTime); }, this.config.loadingTime);
} }
console.log('请求参数', options) console.log('请求参数', options)
uni.request(options); uni.request(options);
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment