diff --git a/src/views/canteen/canteenErpMaterial/index.vue b/src/views/canteen/canteenErpMaterial/index.vue
index 85a9201..5b8ea6f 100644
--- a/src/views/canteen/canteenErpMaterial/index.vue
+++ b/src/views/canteen/canteenErpMaterial/index.vue
@@ -39,26 +39,38 @@
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
@selection-change="selectionChangHandle"
- @sort-change="sortChangeHandle">
-
-
-
-
-
-
-
-
-
-
-
- 编辑
- 删除
-
-
-
-
-
+ @sort-change="sortChangeHandle"
+ >
+
+
+
+
+
+ {{ displayPrice(row.purchasePrice, "") }}
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
@@ -73,7 +85,6 @@ import { displayPrice } from "/@/utils/formatMoney"
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
-// 定义查询字典
// 定义变量内容
const formDialogRef = ref()
diff --git a/src/views/canteen/canteenInventoryRecords/form.vue b/src/views/canteen/canteenInventoryRecords/form.vue
index 45ee28b..69184d6 100644
--- a/src/views/canteen/canteenInventoryRecords/form.vue
+++ b/src/views/canteen/canteenInventoryRecords/form.vue
@@ -250,6 +250,7 @@ const tableFormItems = () =>
totalAmount: storePrice((Number(item.quantity || 0) * Number(item.realPrice || 0)).toFixed(2)),
stock: item.stock,
remark: item.remark,
+ orderType: baseForm.orderType,
}))
// 提交数据 成功返回 true 失败返回 false
diff --git a/src/views/canteen/canteenInventoryRecords/index.vue b/src/views/canteen/canteenInventoryRecords/index.vue
index 4bb325a..824693b 100644
--- a/src/views/canteen/canteenInventoryRecords/index.vue
+++ b/src/views/canteen/canteenInventoryRecords/index.vue
@@ -75,7 +75,9 @@
-
+
+ {{ supplierSelect?.find((item: any) => item.supplierId == row.supplierId)?.supplierName }}
+
{{ displayPrice(row.totalAmount) }}
@@ -116,6 +118,8 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
import { fetchList, delObjs } from "/@/api/canteen/canteenInventoryRecords"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { displayPrice } from "/@/utils/formatMoney"
+import { canteenSupplierSelect } from "/@/api/canteen/canteenSupplier"
+import { getSimpleUserAll } from "/@/api/admin/user"
const CtForm = defineAsyncComponent(() => import("./form.vue"))
@@ -130,6 +134,8 @@ const state: BasicTableProps = reactive({
},
pageList: fetchList,
})
+const supplierSelect = ref([])
+// const handleUserSelect = ref([])
const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state)
@@ -169,4 +175,21 @@ const handleDelete = async (ids: string[]) => {
useMessage().error(err.msg)
}
}
+
+onMounted(async () => {
+ // 获取经办人
+ try {
+ const { data } = await canteenSupplierSelect()
+ supplierSelect.value = data ? data : []
+ } catch (error) {
+ supplierSelect.value = []
+ }
+ // 获取货商
+ // try {
+ // const { data } = await getSimpleUserAll()
+ // handleUserSelect.value = data ?? []
+ // } catch (error) {
+ // handleUserSelect.value = []
+ // }
+})
diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue
index 4f092ee..19f3fe0 100644
--- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue
+++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue
@@ -389,6 +389,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: Number(unit?.purchasePrice || 0) * item.quantity,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
} else {
return {
@@ -399,6 +400,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
}
})
diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue
index ad4c040..f473aee 100644
--- a/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue
+++ b/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue
@@ -394,6 +394,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: Number(unit?.purchasePrice || 0) * item.quantity,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
} else {
return {
@@ -404,6 +405,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
}
})
diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue
index 4b1e110..325a250 100644
--- a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue
+++ b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue
@@ -420,6 +420,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: storePrice(Number(unitObj?.realPrice || 0) * item.quantity),
remark: item.remark,
unitId: unitObj.id,
+ orderType: baseDataForm.orderType,
}
} else {
return {
@@ -431,6 +432,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: item?.realPrice && item.quantity ? storePrice(Number(item.realPrice) * item.quantity) : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
}
})
diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue
index cb10af2..cee0aeb 100644
--- a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue
+++ b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue
@@ -314,6 +314,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: Number(unit?.purchasePrice || 0) * item.quantity,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
})
})
diff --git a/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue
index 4b0b3a5..0f8577c 100644
--- a/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue
+++ b/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue
@@ -435,6 +435,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: unit?.purchasePrice && item.quantity ? Number(unit.purchasePrice) * item.quantity : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
} else {
return {
@@ -445,6 +446,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
}
})
diff --git a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue
index 7f008f1..364473f 100644
--- a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue
+++ b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue
@@ -427,6 +427,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: unit?.purchasePrice && item.quantity ? Number(unit.purchasePrice) * item.quantity : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
} else {
return {
@@ -437,6 +438,7 @@ const cgPlanSpuItems = computed(() => {
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
remark: item.remark,
unitId: item.unitId,
+ orderType: baseDataForm.orderType,
}
}
})