ソースを参照

fix(组合商品库存添加):更换无数据权限商品接口

snow 1 年間 前
コミット
a92daa2fbd

+ 1 - 1
src/views/sellOut/combinedAdd/components/productModal.vue

@@ -559,7 +559,7 @@ export default {
       item.company_name = this.select === '5' ? this.sinput : '' // 部门
       item.cat_id =
         item.cat_id.length > 0 ? item.cat_id[item.cat_id.length - 1] : ''
-      const res = await asyncRequest.list({
+      const res = await asyncRequest.copy_list({
         ...item,
         supplierNo: Array.isArray(this.supplierNo) ? this.supplierNo[0] : '',
         needRela: true,

+ 3 - 3
src/views/sellOut/combinedRemove/components/productModal.vue

@@ -559,13 +559,13 @@ export default {
       item.company_name = this.select === '5' ? this.sinput : '' // 部门
       item.cat_id =
         item.cat_id.length > 0 ? item.cat_id[item.cat_id.length - 1] : ''
-      const res = await asyncRequest.list({
+      const res = await asyncRequest.copy_list({
         ...item,
         supplierNo: Array.isArray(this.supplierNo) ? this.supplierNo[0] : '',
         needRela: true,
+        is_combind: '1',
         is_stock: '1',
-        status: '1',
-        is_combind: '1'
+        status: '1'
       })
 
       if (res && res.code === 0 && res.data) {