update 0727 docs

This commit is contained in:
lb 2023-07-27 15:58:44 +08:00
parent d35f0ba843
commit ce29b3ca9b
2 changed files with 36 additions and 28 deletions

View File

@ -7,10 +7,12 @@ import techBox from "@/components/noTemplateComponents/techBox";
export default function () { export default function () {
const tableProps = [ const tableProps = [
{ type: "index", label: "序号" }, { type: "index", label: "序号" },
{ prop: "code", label: "配方号" }, { width: 160, prop: "code", label: "配方号" },
{ prop: "name", label: "牌号" }, { prop: "name", label: "牌号" },
{ prop: "syncTime", label: "同步时间", filter: timeFilter }, { prop: "syncTime", label: "同步时间", filter: timeFilter },
{ prop: "techCode", label: "烧制曲线", subcomponent: techBox }, { width: 90, prop: "techCode", label: "烧制曲线", subcomponent: techBox },
{ prop: "upweight", label: "建议混料上限" },
{ prop: "downweight", label: "建议混料下限" },
// { prop: "externalCode", label: "版本号" }, // { prop: "externalCode", label: "版本号" },
// { prop: "specifications", label: "程序号" }, // { prop: "specifications", label: "程序号" },
// { prop: "unitDictValue", label: "砖型", filter: dictFilter("unit") }, // { prop: "unitDictValue", label: "砖型", filter: dictFilter("unit") },
@ -29,19 +31,19 @@ export default function () {
actionName: "to-bom-detail", actionName: "to-bom-detail",
emitFullData: true, emitFullData: true,
}, },
// { {
// prop: "operations", prop: "operations",
// name: "操作", name: "操作",
// fixed: "right", fixed: "right",
// width: 120, width: 120,
// subcomponent: TableOperaionComponent, subcomponent: TableOperaionComponent,
// options: [ options: [
// { name: "sync", label: "同步", icon: "refresh", emitFull: true, showOverlay: true } { name: "sync", label: "同步", icon: "refresh", emitFull: true, showOverlay: true }
// // { name: "copy", label: "复制", icon: "copy-document" }, // { name: "copy", label: "复制", icon: "copy-document" },
// // { name: "edit", label: "编辑", icon: "edit-outline" }, // { name: "edit", label: "编辑", icon: "edit-outline" },
// // { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:bom:delete" }, // { name: "delete", icon: "delete", label: "删除", emitFull: true, permission: "pms:bom:delete" },
// ], ],
// }, },
]; ];
const headFormFields = [ const headFormFields = [
@ -72,12 +74,12 @@ export default function () {
// permission: "pms:bom:save", // permission: "pms:bom:save",
// }, // },
// }, // },
// { {
// button: { button: {
// type: "plain", type: "warning",
// name: "同步", name: "批量同步",
// }, },
// }, },
]; ];
const dictList = JSON.parse(localStorage.getItem("dictList") || {}); const dictList = JSON.parse(localStorage.getItem("dictList") || {});
@ -267,7 +269,7 @@ export default function () {
subpage: "/pms/bomMaterial/page", subpage: "/pms/bomMaterial/page",
importUrl: "/pms/order/importExcelBom", // 导入的api importUrl: "/pms/order/importExcelBom", // 导入的api
templateUrl: "/importTemplates/bomImport.xlsx", templateUrl: "/importTemplates/bomImport.xlsx",
syncSingleUrl: "/pms/trans/bomSync" syncSingleUrl: "/pms/trans/bomSync",
}, },
}; };
} }

View File

@ -34,11 +34,16 @@
<el-col> <el-col>
<el-form-item label="工艺" prop="techId" :rules="rules.tech"> <el-form-item label="工艺" prop="techId" :rules="rules.tech">
<el-select v-model="dataForm.techId" filterable clearable> <el-select v-model="dataForm.techId" filterable clearable>
<el-option <el-option v-for="(tech, index) in techList" :key="tech.label" :label="tech.label" :value="tech.value">
v-for="(tech, index) in techList" <div style="display: flex; align-items: center">
:key="index" <span style="display: inline-block; width: 150px; overflow: hidden; text-overflow: ellipsis">
:label="tech.label" {{ tech.label }}
:value="tech.value"></el-option> </span>
<span style="display: inline-block; margin-left: 12px; font-size: 0.9em">
{{ tech.remark || "无" }}
</span>
</div>
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -71,7 +76,7 @@ export default {
rules: { rules: {
code: [], code: [],
name: [], name: [],
tech: [] tech: [],
// name: [{ required: true, message: "", trigger: "blur" }], // name: [{ required: true, message: "", trigger: "blur" }],
}, },
techList: [], techList: [],
@ -108,6 +113,7 @@ export default {
return { return {
label: item.code, label: item.code,
value: item.id, value: item.id,
remark: item.remark,
}; };
}); });
} }