|
@@ -37,11 +37,10 @@
|
|
|
<script setup>
|
|
|
import { ref, getCurrentInstance } from "vue";
|
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
|
-import reportTemplate from "@/components/ReportView/reportTemplate.vue";
|
|
|
import ProcessGoal from "./processGoal.vue";
|
|
|
import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
|
// 传入一个url,后面不带/
|
|
|
-const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
|
+const { form, data, option, search, page, Methords, Utils } =
|
|
|
useCrud({
|
|
|
src: "/api/v1/categoryTarget",
|
|
|
});
|
|
@@ -71,6 +70,7 @@ option.value = Object.assign(option.value, {
|
|
|
label: "产品类型",
|
|
|
prop: "prodtCategory",
|
|
|
type: "select",
|
|
|
+ search: "true",
|
|
|
dicUrl:
|
|
|
dictDataUtil.request_url +
|
|
|
dictDataUtil.EXPAND_FIELD_TABLE.prodt_category,
|
|
@@ -78,31 +78,57 @@ option.value = Object.assign(option.value, {
|
|
|
label: "dictLabel",
|
|
|
value: "dictValue",
|
|
|
},
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请选择产品类型",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
label: "年份",
|
|
|
prop: "year",
|
|
|
+ type: "year",
|
|
|
+ format: "YYYY",
|
|
|
+ search: "true",
|
|
|
+ valueFormat: "YYYY",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请选择年份",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
label: "成品率(%)",
|
|
|
prop: "yield",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "请填写成品率",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
label: "是否显示",
|
|
|
prop: "isShow",
|
|
|
+ search: "true",
|
|
|
type: "radio", //类型为单选框
|
|
|
addDisplay: false,
|
|
|
dicData: [
|
|
|
{
|
|
|
label: "否",
|
|
|
- value: false,
|
|
|
+ value: "0",
|
|
|
},
|
|
|
{
|
|
|
label: "是",
|
|
|
- value: true,
|
|
|
+ value: "1",
|
|
|
},
|
|
|
],
|
|
|
- value: true,
|
|
|
+ value: "1",
|
|
|
},
|
|
|
],
|
|
|
});
|