|
@@ -5,8 +5,8 @@
|
|
|
<TreeFilter
|
|
|
ref="LjTreeRef"
|
|
|
id="mtrltypeid"
|
|
|
+ title="物料分类"
|
|
|
label="mtrltype"
|
|
|
- :searchable="false"
|
|
|
:expand-on-click-node="true"
|
|
|
:request-api="gMtrltypeList"
|
|
|
@change="changeTreeFilter"
|
|
@@ -116,7 +116,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
- <ImportPrice ref="ImportPriceRef" />
|
|
|
+ <ImportPrice ref="ImportPriceRef" @closed="toGetPriceList" />
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="baseinfo_mtrldeflist">
|
|
@@ -135,11 +135,12 @@ import { traverseNode } from "@/utils/index";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { getCurrentRecords } from "@/utils/index";
|
|
|
import ImportPrice from "./components/ImportPrice.vue";
|
|
|
+import TreeFilter from "@/components/TreeFilter/index.vue";
|
|
|
|
|
|
const dwname = "web_mtrldeflist";
|
|
|
const mainData = ref({});
|
|
|
const mtrltype = ref({});
|
|
|
-const initParams = ref({ mtrltypeids: undefined as Number[] });
|
|
|
+// const initParams = ref({ mtrltypeids: undefined as Number[] });
|
|
|
const tableProps = {
|
|
|
height: "auto",
|
|
|
editConfig: { trigger: "click", mode: "cell" }
|
|
@@ -173,7 +174,8 @@ const {
|
|
|
priceListEnum,
|
|
|
priceListFormVisiable,
|
|
|
priceListFormParams,
|
|
|
- priceListVisiable
|
|
|
+ priceListVisiable,
|
|
|
+ initParams
|
|
|
} = useHooks(t);
|
|
|
const { gMtrltypeList } = useHooks_mtrltype(t);
|
|
|
const { CheckPower, CheckOption, buttonNew, buttonDefault } = useAuthButtons(t);
|
|
@@ -418,4 +420,8 @@ const tableEvents = {
|
|
|
"cell-dblclick": handleDBlClickTable
|
|
|
// "cell-click": handleClickTable
|
|
|
};
|
|
|
+
|
|
|
+const toGetPriceList = () => {
|
|
|
+ VxeTableRef.value.refresh();
|
|
|
+};
|
|
|
</script>
|