فهرست منبع

fix: 销售订单发货单创建退货单出库详情接口增加参数,详情保持原样

liujt 9 ماه پیش
والد
کامیت
ce11491a85

+ 5 - 2
src/BIZComponents/outdetails.vue

@@ -609,8 +609,11 @@
           return { dictCode: item.id, dictValue: item.name };
         });
       },
-      async _getInfo(sourceBizNo, type, list = []) {
-        const dataArray = await getInfoBySourceBizNoAll(sourceBizNo);
+      async _getInfo(sourceBizNo, type, list = [], returnSourceType) {
+        const params = {
+          isCreateReturnOrder: 1,
+        }
+        const dataArray = await getInfoBySourceBizNoAll(sourceBizNo, returnSourceType === 3 ? params : {});
         let res = {};
 
         if (dataArray && dataArray.length > 0) {

+ 2 - 2
src/api/wms/index.js

@@ -167,9 +167,9 @@ export async function getInfoBySourceBizNoAPI(sourceBizNo) {
 }
 // 查询出入库详情
 //sourceBizNo
-export async function getInfoBySourceBizNoAll(sourceBizNo) {
+export async function getInfoBySourceBizNoAll(sourceBizNo, data = {}) {
   const res = await request.get(
-    `/wms/outintwo/getInfoBySourceBizNoAll/${sourceBizNo}`, {}
+    `/wms/outintwo/getInfoBySourceBizNoAll/${sourceBizNo}`, {params: data}
   );
   if (res.data.code == 0) {
     return res.data.data;

+ 1 - 1
src/views/saleManage/saleOrder/returnGoods/components/outboundDetailsDialog.vue

@@ -53,7 +53,7 @@ export default {
     async init(row = {},list=[]) {
         this.$nextTick(()=>{
           console.log(row)
-          this.$refs.outboundDetailsDialogRef._getInfo(row.sendNo,row.type,list)
+          this.$refs.outboundDetailsDialogRef._getInfo(row.sendNo,row.type,list, row.returnSourceType)
         })
     },