Преглед на файлове

修改文件位置 && 增加购卡选择流量池表单验证

吴sir преди 3 месеца
родител
ревизия
5891048181

+ 1 - 1
src/mixins/index.js

@@ -6,4 +6,4 @@ export function Getdictionary(params) {
     return dictionaryDeleteAll({ typeKey: params }).then((res) => {
         return res.data; // 将响应数据返回
     });
-}
+}

+ 0 - 0
src/views/tariffManagement/customer/NewCustomerForm.vue → src/views/customer/NewCustomerForm.vue


+ 93 - 0
src/views/customer/config.js

@@ -0,0 +1,93 @@
+
+
+// 客户搜索字段
+export const UserSearchForm = [
+    {
+      type: "input",
+      label: "客户名称",
+      field: "name",
+      value: "", // 双向绑定的值
+    },
+    {
+      type: "input",
+      label: "客户账号",
+      field: "username",
+      value: "", // 双向绑定的值
+    },
+    {
+      type: "select",
+      label: "客户状态",
+      field: "state",
+      options: [], // 默认空,后面会通过字典加载
+      dict: "userType",
+      value: "", // 双向绑定的值
+      width: "200",
+    },
+    {
+      type: "range-picker",
+      label: "创建时间",
+      field: "createdAt",
+      value: [], // 双向绑定的值
+      width: "300",
+      Custom: 'mode="month"', // 自定义值
+    },
+  ];
+  
+  export const UserColumns = [
+    {
+      title: window.$t("customer.id"),
+      dataIndex: "id",
+      align: "center",
+      ellipsis: true,
+    },
+    {
+      title: window.$t("customer.customerName"),
+      dataIndex: "name",
+      align: "center",
+      ellipsis: true,
+    },
+    {
+      title: window.$t("customer.userAdmin"),
+      dataIndex: "username",
+      align: "center",
+      minWidth: "200",
+    },
+    {
+      title: window.$t("customer.cardNum"),
+      dataIndex: "simCount",
+      align: "center",
+      minWidth: "200",
+    },
+    {
+      title: window.$t("customer.customerStatus"),
+      slotName: "state",
+      align: "center",
+      ellipsis: true,
+    },
+    { title: "app_key  ", dataIndex: "appKey", align: "center", ellipsis: true },
+    {
+      title: "app_secret",
+      dataIndex: "appSecret",
+      align: "center",
+      ellipsis: true,
+    },
+    {
+      title: window.$t("customer.startTime"),
+      dataIndex: "createdAt",
+      align: "center",
+      ellipsis: true,
+    },
+    {
+      title: window.$t("customer.updateTime"),
+      dataIndex: "updatedAt",
+      align: "center",
+      ellipsis: true,
+    },
+    {
+      title: window.$t("global.common.operations"),
+      slotName: "operation",
+      align: "center",
+      ellipsis: true,
+      fixed: "right",
+    },
+  ];

+ 1 - 1
src/views/tariffManagement/customer/index.vue → src/views/customer/index.vue

@@ -43,7 +43,7 @@ import { Message } from '@arco-design/web-vue';
 import { useI18n } from 'vue-i18n';
 import NewCustomerForm from './NewCustomerForm.vue';
 import { getMessUserList, deleteMessUser } from '@/api/customer.js';
-import {UserSearchForm,UserColumns} from '../config'
+import {UserSearchForm,UserColumns} from './config'
 import Search from '@/components/Search/index.vue'
 const { t } = useI18n();
 

+ 1 - 1
src/views/order/BuyCard/Card.vue

@@ -33,7 +33,7 @@
                     </template>
                 </a-radio-group>
             </a-form-item>
-            <a-form-item :label="$t('lotCard.FlowPool')" v-if="formState.isTrafficPool == 1">
+            <a-form-item :label="$t('lotCard.FlowPool')" v-if="formState.isTrafficPool == 1" field="poolId">
                 <a-select v-model="formState.poolId" :style="{ width: '380px' }" :placeholder="$t('form.datapoolForm.pleaseSelect')+$t('lotCard.FlowPool')">
                     <a-option v-for="item of FlowPool" :value="item.id" :label="item.label" />
                 </a-select>

+ 0 - 91
src/views/tariffManagement/config.js

@@ -189,97 +189,6 @@ export const trafficSearchFrom = [
   },
 ];
 
-// 客户搜索字段
-export const UserSearchForm = [
-  {
-    type: "input",
-    label: "客户名称",
-    field: "name",
-    value: "", // 双向绑定的值
-  },
-  {
-    type: "input",
-    label: "客户账号",
-    field: "username",
-    value: "", // 双向绑定的值
-  },
-  {
-    type: "select",
-    label: "客户状态",
-    field: "state",
-    options: [], // 默认空,后面会通过字典加载
-    dict: "userType",
-    value: "", // 双向绑定的值
-    width: "200",
-  },
-  {
-    type: "range-picker",
-    label: "创建时间",
-    field: "createdAt",
-    value: [], // 双向绑定的值
-    width: "300",
-    Custom: 'mode="month"', // 自定义值
-  },
-];
-
-export const UserColumns = [
-  {
-    title: window.$t("customer.id"),
-    dataIndex: "id",
-    align: "center",
-    ellipsis: true,
-  },
-  {
-    title: window.$t("customer.customerName"),
-    dataIndex: "name",
-    align: "center",
-    ellipsis: true,
-  },
-  {
-    title: window.$t("customer.userAdmin"),
-    dataIndex: "username",
-    align: "center",
-    minWidth: "200",
-  },
-  {
-    title: window.$t("customer.cardNum"),
-    dataIndex: "simCount",
-    align: "center",
-    minWidth: "200",
-  },
-  {
-    title: window.$t("customer.customerStatus"),
-    slotName: "state",
-    align: "center",
-    ellipsis: true,
-  },
-  { title: "app_key  ", dataIndex: "appKey", align: "center", ellipsis: true },
-  {
-    title: "app_secret",
-    dataIndex: "appSecret",
-    align: "center",
-    ellipsis: true,
-  },
-  {
-    title: window.$t("customer.startTime"),
-    dataIndex: "createdAt",
-    align: "center",
-    ellipsis: true,
-  },
-  {
-    title: window.$t("customer.updateTime"),
-    dataIndex: "updatedAt",
-    align: "center",
-    ellipsis: true,
-  },
-  {
-    title: window.$t("global.common.operations"),
-    slotName: "operation",
-    align: "center",
-    ellipsis: true,
-    fixed: "right",
-  },
-];
 
 export const SetMealSearchForm = [
   {

+ 1 - 0
src/views/tariffManagement/index.vue

@@ -146,6 +146,7 @@ const {
 
 const addDetaile = ref(null)
 
+
 const intData = async (item) => {
   if (item) {
     searchForm.value = item