|
@@ -105,27 +105,10 @@ option.value = Object.assign(option.value, {
|
|
|
searchLabelWidth: 110,
|
|
|
column: [
|
|
|
{
|
|
|
- label: "辅料类型",
|
|
|
- prop: "accessoriesType",
|
|
|
- search: true,
|
|
|
- type: "select",
|
|
|
- dicData: dicts.accessories_type,
|
|
|
- props: {
|
|
|
- label: "dictLabel",
|
|
|
- value: "dictValue",
|
|
|
- },
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "辅料类型不能为空",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
label: "物料编码",
|
|
|
prop: "materialCode",
|
|
|
clearable: false,
|
|
|
+ search: true,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -138,7 +121,7 @@ option.value = Object.assign(option.value, {
|
|
|
startCreat();
|
|
|
},
|
|
|
change: ({ value, column }) => {
|
|
|
- if (value != form.value.materialCode) {
|
|
|
+ if (value && value != form.value.materialCode) {
|
|
|
repeatObj.value.showCreate = true;
|
|
|
startCreat();
|
|
|
}
|
|
@@ -149,8 +132,33 @@ option.value = Object.assign(option.value, {
|
|
|
prop: "materialName",
|
|
|
addDisplay: false,
|
|
|
editDisplay: false,
|
|
|
+ search: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "物料规格",
|
|
|
+ prop: "spec",
|
|
|
+ addDisplay: false,
|
|
|
+ editDisplay: false,
|
|
|
+ search: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "辅料类型",
|
|
|
+ prop: "accessoriesType",
|
|
|
+ search: true,
|
|
|
+ type: "select",
|
|
|
+ dicData: dicts.accessories_type,
|
|
|
+ props: {
|
|
|
+ label: "dictLabel",
|
|
|
+ value: "dictValue",
|
|
|
+ },
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "辅料类型不能为空",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
- { label: "物料规格", prop: "spec", addDisplay: false, editDisplay: false },
|
|
|
],
|
|
|
});
|
|
|
onMounted(() => {
|