diff --git a/src/api/canteen/canteenProductionTemplate.ts b/src/api/canteen/canteenProductionTemplate.ts
index 294cef6..a31cb18 100644
--- a/src/api/canteen/canteenProductionTemplate.ts
+++ b/src/api/canteen/canteenProductionTemplate.ts
@@ -8,6 +8,14 @@ export function fetchList(query?: Object) {
})
}
+export function fetchGetSelectTemplatePage(query?: Object) {
+ return request({
+ url: '/canteen/canteenProductionTemplate/getSelectTemplatePage',
+ method: 'get',
+ params: query
+ })
+}
+
export function addObj(obj?: Object) {
return request({
url: '/canteen/canteenProductionTemplate',
diff --git a/src/views/canteen/canteenProductionRecord/form.vue b/src/views/canteen/canteenProductionRecord/form.vue
index a65c81f..b974ceb 100644
--- a/src/views/canteen/canteenProductionRecord/form.vue
+++ b/src/views/canteen/canteenProductionRecord/form.vue
@@ -1,134 +1,359 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择生产模板
+
+ 已选{{ selectedTemplates.length }}个模板
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.lossRate }}%
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+ 取 消
+ 确 定
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 搜索
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
{ templateQuery.size = val; templateQuery.current = 1; searchTemplate() }"
+ @current-change="val => { templateQuery.current = val; searchTemplate() }"
+ />
+
-
-
-
-
-
+
+
+
-
\ No newline at end of file
+})
+
diff --git a/src/views/canteen/canteenProductionTemplate/form.vue b/src/views/canteen/canteenProductionTemplate/form.vue
index 077f05d..d539947 100644
--- a/src/views/canteen/canteenProductionTemplate/form.vue
+++ b/src/views/canteen/canteenProductionTemplate/form.vue
@@ -29,14 +29,14 @@
选择食材
-
+
-
@@ -45,9 +45,9 @@
- {
const submitForm = async () => {
if (!formRef.value) return
-
+
await formRef.value.validate(async (valid) => {
if (valid) {
loading.value = true
@@ -397,4 +397,4 @@ const submitForm = async () => {
defineExpose({
openDialog
})
-
\ No newline at end of file
+
diff --git a/src/views/canteen/canteenProductionTemplate/index.vue b/src/views/canteen/canteenProductionTemplate/index.vue
index e275292..ac02694 100644
--- a/src/views/canteen/canteenProductionTemplate/index.vue
+++ b/src/views/canteen/canteenProductionTemplate/index.vue
@@ -36,8 +36,8 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
{
useMessage().error(err.msg);
}
};
-
\ No newline at end of file
+