update 基本完成物料表
This commit is contained in:
@@ -81,11 +81,11 @@ export default function () {
|
||||
rules: { required: true, message: "not empty", trigger: "blur" },
|
||||
elparams: { placeholder: "请输入物料编码" },
|
||||
},
|
||||
{ input: true, label: "规格", prop: "description", elparams: { placeholder: "规格" } },
|
||||
{ input: true, label: "规格", prop: "specifications", elparams: { placeholder: "规格" } },
|
||||
],
|
||||
[
|
||||
{
|
||||
select: true,
|
||||
cascader: true,
|
||||
label: "父级物料",
|
||||
prop: "parentId",
|
||||
// TODO: 待解决:DialogWithMenu 中设置default只在初始化的时候有效,一旦清空过就无效了
|
||||
@@ -93,7 +93,14 @@ export default function () {
|
||||
// rules: { required: true, message: "not empty", trigger: "blur" },
|
||||
options: [{ id: '0', name: '无' }], // 手动注入额外选项,用到的场景不多...
|
||||
fetchData: () => this.$http.get('/pms/material/page', { params: { page: 1, limit: 999, key: '' } }),
|
||||
elparams: { placeholder: "请选择父级物料" },
|
||||
elparams: { placeholder: "请选择父级物料", filterable: true, clearable: true },
|
||||
// fetchTreeData: () => {
|
||||
// // TODO:前提是工厂里总的设备类型数不会超过 999
|
||||
// return this.$http.get('/pms/material/tree', {
|
||||
// params: { rootId: '0' }
|
||||
// })
|
||||
// },
|
||||
// elparams: { placeholder: "请选择父级物料", 'show-all-levels': false, props: { checkStrictly: true } },
|
||||
},
|
||||
{
|
||||
select: true,
|
||||
|
||||
Reference in New Issue
Block a user