|
|
@@ -171,27 +171,27 @@ export default function () { |
|
|
|
rules: { required: true, message: "必填项不能为空", trigger: "blur" }, |
|
|
|
elparams: { placeholder: "请选择物料", filterable: true }, |
|
|
|
options: [], |
|
|
|
// fetchData: () => this.$http.get('/pms/material/page', { params: { limit: 999, page: 1 } }) |
|
|
|
fetchData: () => new Promise((resolve) => { |
|
|
|
setTimeout(() => { |
|
|
|
resolve({ |
|
|
|
data: { |
|
|
|
code: 0, |
|
|
|
data: { |
|
|
|
total: 0, |
|
|
|
list: |
|
|
|
[ |
|
|
|
{ id: 10001, name: 'mock物料1' }, |
|
|
|
{ id: 10002, name: 'mock物料2' }, |
|
|
|
{ id: 10003, name: 'mock物料3' }, |
|
|
|
{ id: 10004, name: 'mock物料4' }, |
|
|
|
{ id: 10005, name: 'mock物料5' }, |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, 800) |
|
|
|
}) |
|
|
|
fetchData: () => this.$http.get('/pms/material/page', { params: { limit: 999, page: 1 } }) |
|
|
|
// fetchData: () => new Promise((resolve) => { |
|
|
|
// setTimeout(() => { |
|
|
|
// resolve({ |
|
|
|
// data: { |
|
|
|
// code: 0, |
|
|
|
// data: { |
|
|
|
// total: 0, |
|
|
|
// list: |
|
|
|
// [ |
|
|
|
// { id: 10001, name: 'mock物料1' }, |
|
|
|
// { id: 10002, name: 'mock物料2' }, |
|
|
|
// { id: 10003, name: 'mock物料3' }, |
|
|
|
// { id: 10004, name: 'mock物料4' }, |
|
|
|
// { id: 10005, name: 'mock物料5' }, |
|
|
|
// ] |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }, 800) |
|
|
|
// }) |
|
|
|
}, |
|
|
|
{ |
|
|
|
input: true, |
|
|
|