Browse Source

完善接口

master
guoxing 12 months ago
parent
commit
c0c6cd4bb5
  1. 8
      yxt-as-ui/src/api/storage/deliveryNotice.js
  2. 33
      yxt-as-ui/src/api/storage/receivingGoods.js
  3. 2
      yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue
  4. 8
      yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue
  5. 2
      yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsInfo.vue
  6. 2
      yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue

8
yxt-as-ui/src/api/storage/deliveryNotice.js

@ -25,7 +25,7 @@ export default {
// 收货初始化
getInitDetails: function(data) {
return request({
url: '/wms/apiadmin/inventory/WmsReceiptBill/getInitDetails?sourcesid=' + data,
url: '/wms/apiadmin/inventory/WmsReceiptBill/getInitDetails?sourceSid=' + data,
method: 'get'
});
},
@ -58,9 +58,11 @@ export default {
// 选择供应商
choiceSupplier: function(params) {
return request({
url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo',
url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo?orgsid=' + params,
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},

33
yxt-as-ui/src/api/storage/receivingGoods.js

@ -8,16 +8,17 @@ export default {
url: '/wms/apiadmin/inventory/WmsReceiptBill/listPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 初始化
init: function(data) {
return request({
url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit',
method: 'get',
data: data
url: '/wms/apiadmin/inventory/WmsReceiptBill/getDetailsInit?sourceSid=' + data,
method: 'get'
});
},
@ -28,7 +29,9 @@ export default {
url: '/wms/apiadmin/inventory/WmsReceiptBill/saveOrUpdate',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
});
},
@ -38,7 +41,9 @@ export default {
url: '/wms/apiadmin/inventory/WmsReceiptBill/confirm',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
});
},
@ -49,7 +54,9 @@ export default {
url: '/wms/apiadmin/WmsShelfBill/saveOrUpdate',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
});
},
@ -60,16 +67,20 @@ export default {
url: '/yxtbase/apiadmin/base/basegoodssku/getGoodsListPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
headers: {
'Content-Type': 'application/json'
}
})
},
// 选择供应商
choiceSupplier: function(params) {
choiceSupplier: function(params) {
return request({
url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo',
url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo?orgsid=' + params,
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},

2
yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue

@ -249,7 +249,7 @@
var params = {
orgSid: window.sessionStorage.getItem('orgSid'),
}
req.choiceSupplier(params).then((res) => {
req.choiceSupplier(window.sessionStorage.getItem('orgSid')).then((res) => {
if (res.success) {
this.supplierNameList = res.data

8
yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue

@ -779,10 +779,10 @@
this.getWarehouseList()
console.log("showEdit", this.isUpdata);
var params = {
sid: row.sid
sourcesid: row.sid
}
req.init(params)
req.init( row.sid)
.then(resp => {
if (resp.success) {
this.formobj = resp.data
@ -810,9 +810,9 @@
},
getsupplierLust() {
var params = {
createOrgSid: window.sessionStorage.getItem('orgSid'),
orgSid: window.sessionStorage.getItem('orgSid'),
}
req.choiceSupplier(params).then((res) => {
req.choiceSupplier(window.sessionStorage.getItem('orgSid')).then((res) => {
if (res.success) {
this.supplierList = res.data

2
yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsInfo.vue

@ -173,7 +173,7 @@
var params = {
sid: row.sid
}
req.init(params)
req.init(row.sid)
.then(resp => {
if (resp.success) {
this.formobj = resp.data

2
yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue

@ -227,7 +227,7 @@
sid: row.sid
}
req.init(params)
req.init(row.sid)
.then(resp => {
if (resp.success) {
this.formobj = resp.data

Loading…
Cancel
Save