|
@@ -44,7 +44,7 @@ export default function useColumns() {
|
|
|
attr: {}
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "materialCode", title: "物料编码" },
|
|
|
+ item: { key: "materialCode", title: "物料编码", width: 150, },
|
|
|
attr: {}
|
|
|
},
|
|
|
{
|
|
@@ -52,15 +52,15 @@ export default function useColumns() {
|
|
|
attr: {}
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "qty", title: "可用量" },
|
|
|
+ item: { key: "qty", title: "可用量", width: 120, },
|
|
|
attr: {}
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "usedQty", title: "已用量" },
|
|
|
+ item: { key: "usedQty", title: "已用量", width: 120, },
|
|
|
attr: {}
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "reservedQty", title: "预留数量" },
|
|
|
+ item: { key: "reservedQty", title: "预留数量", width: 120, },
|
|
|
attr: {}
|
|
|
},
|
|
|
{
|
|
@@ -69,5 +69,72 @@ export default function useColumns() {
|
|
|
},
|
|
|
];
|
|
|
|
|
|
- return { SearchColumns, TableColumns }
|
|
|
+ const FormColumns = [
|
|
|
+ {
|
|
|
+ item: { key: "source", title: "单据来源" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "puCode", title: "集采编号" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "createTime", title: "创建时间" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "customerName", title: "客户" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "materialCode", title: "物料编码" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "materialName", title: "物料" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "usedQty", title: "已用量" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "reservedQty", title: "预留数量" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ readonly: true,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "qty", title: "可用量" },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ type: "number",
|
|
|
+ min: "0",
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+
|
|
|
+ return { SearchColumns, TableColumns, FormColumns }
|
|
|
}
|