Explorar o código

事业部: 售价体系改为加工计费标准

lxf hai 1 ano
pai
achega
3ac87a3c75
Modificáronse 1 ficheiros con 11 adicións e 11 borrados
  1. 11 11
      src/views/group/subsidiary/business-division/index.vue

+ 11 - 11
src/views/group/subsidiary/business-division/index.vue

@@ -51,12 +51,12 @@ const sourceList = ref({
     pageNum: 1,
     pageSize: 10,
     name: "",
-    priceSystemId: "",
+    priceBillingStandardId: "",
     contactPerson: "",
   },
 });
 const loading = ref(false);
-const priceSystemList = ref([]);
+const priceBillingStandardList = ref([]);
 const searchConfig = computed(() => {
   return [
     {
@@ -66,9 +66,9 @@ const searchConfig = computed(() => {
     },
     {
       type: "select",
-      prop: "priceSystemId",
+      prop: "priceBillingStandardId",
       label: "售价体系",
-      data: priceSystemList.value,
+      data: priceBillingStandardList.value,
     },
     {
       type: "input",
@@ -89,11 +89,11 @@ const config = computed(() => {
     {
       attrs: {
         label: "售价体系",
-        prop: "priceSystemId",
+        prop: "priceBillingStandardId",
         width: 140,
       },
       render(val) {
-        return proxy.dictKeyValue(val, priceSystemList.value);
+        return proxy.dictKeyValue(val, priceBillingStandardList.value);
       },
     },
     {
@@ -233,9 +233,9 @@ const clickReset = () => {
   getList("", true);
 };
 const getPriceSystem = () => {
-  proxy.post("/priceSystem/page", { pageNum: 1, pageSize: 999 }).then((res) => {
-    if (res.rows && res.rows.length > 0) {
-      priceSystemList.value = res.rows.map((item) => {
+  proxy.post("/priceBillingStandard/list", {}).then((res) => {
+    if (res && res.length > 0) {
+      priceBillingStandardList.value = res.map((item) => {
         return {
           dictKey: item.id,
           dictValue: item.name,
@@ -334,10 +334,10 @@ const formConfig = computed(() => {
     },
     {
       type: "select",
-      prop: "priceSystemId",
+      prop: "priceBillingStandardId",
       label: "售价体系",
       itemWidth: 50,
-      data: priceSystemList.value,
+      data: priceBillingStandardList.value,
     },
     {
       type: "select",