|
@@ -48,9 +48,7 @@ const formOption = reactive({
|
|
|
text: "name",
|
|
|
value: "id",
|
|
|
},
|
|
|
- pickerOption: {
|
|
|
- columns: [],
|
|
|
- },
|
|
|
+ data: [],
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -88,18 +86,16 @@ const formConfig = reactive([
|
|
|
text: "name",
|
|
|
value: "id",
|
|
|
},
|
|
|
- pickerOption: {
|
|
|
- columns: [],
|
|
|
- },
|
|
|
+ data: [],
|
|
|
},
|
|
|
]);
|
|
|
const onClickLeft = () => history.back();
|
|
|
const getDict = async () => {
|
|
|
await proxy.post("/warehouse/page", { pageNum: 1, pageSize: 9999 }).then((res) => {
|
|
|
- formConfig[0].pickerOption.columns = res.data.rows;
|
|
|
+ formConfig[0].data = res.data.rows;
|
|
|
});
|
|
|
await proxy.post("/productInfo/page", { pageNum: 1, pageSize: 9999, definition: "" }).then((res) => {
|
|
|
- formOption.btnConfig.listConfig[0].pickerOption.columns = res.data.rows;
|
|
|
+ formOption.btnConfig.listConfig[0].data = res.data.rows;
|
|
|
});
|
|
|
};
|
|
|
onMounted(async () => {
|
|
@@ -109,7 +105,6 @@ onMounted(async () => {
|
|
|
const getDetails = (id) => {
|
|
|
proxy.post("/stockJournal/detail", { id }).then((res) => {
|
|
|
formData.data = res.data;
|
|
|
- formDom.value.formDataInit(true);
|
|
|
});
|
|
|
};
|
|
|
const onSubmit = () => {
|