瀏覽代碼

提交相关代码

Lijy 10 月之前
父節點
當前提交
ef3a683d9b

+ 3 - 3
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/business/index.vue

@@ -405,10 +405,10 @@ function changeBatch(flag: boolean = true) {
 function editProduct(row: any) {
   post(BUSIESS_INFO, { id: row.id }).then(({ data }) => {
     const list = (data.businessItemProducts || []).map((item: any) => {
-      const { id, productName, productId, productCode, unit, unitName, typeName, type, price, inventory, orderProductDetail, num, discount, sealPrice, totalPrice, quantity } = item
+      const { id, productName, productId, productCode, unit, unitName, typeName, productType, type, price, inventory, orderProductDetail, num, discount, sellingPrice, sealPrice, totalPrice, quantity } = item
       return {
-        id, productId: productId, productName, productCode, unit, unitName, typeName, type, price, inventory,
-        num, discount, sealPrice, totalPrice, quantity
+        id, productId: productId, productName, productCode, unitName: unit, typeName: productType, type, price, inventory,
+        num, discount, sealPrice, totalPrice, quantity, sellingPrice
       }
     })
     productTableListValue.value = list

+ 2 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/customer/component/relatedOrders.vue

@@ -57,8 +57,9 @@ import { GenerateForm } from '@zmjs/form-design';
 import { get, post } from '@/utils/request';
 import router from '@/router';
 import RelatedProducts from '@/components/relatedProducts/relatedProducts.vue'
-import { GETGENERATEFOEM, GETTABLELIST, URL_OEDERUPDATE } from '@/pages/order/api';
+import { GETGENERATEFOEM, URL_OEDERUPDATE } from '@/pages/order/api';
 import { formatDate } from '@/utils/times';
+import { GETTABLELIST } from '@/pages/product/api';
 
 const emits = defineEmits(['refreshData']);
 const globalPopup = inject<GlobalPopup>('globalPopup')