Ver Fonte

客户管理

XF--LRQYEJOKYDS\Administrator há 4 anos atrás
pai
commit
8e06347041

+ 53 - 0
Yijia-SaaS/yijia-ui/src/api/customer/manage.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户管理列表
+export function listManage(query) {
+  return request({
+    url: '/station/manage/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户管理详细
+export function getManage(id) {
+  return request({
+    url: '/station/manage/' + id,
+    method: 'get'
+  })
+}
+
+// 新增客户管理
+export function addManage(data) {
+  return request({
+    url: '/station/manage',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户管理
+export function updateManage(data) {
+  return request({
+    url: '/station/manage',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户管理
+export function delManage(id) {
+  return request({
+    url: '/station/manage/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出客户管理
+export function exportManage(query) {
+  return request({
+    url: '/station/manage/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
Yijia-SaaS/yijia-ui/src/api/customer/setting.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询客户优惠等级设置列表
+export function listSetting(query) {
+  return request({
+    url: '/customer/setting/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询客户优惠等级设置详细
+export function getSetting(id) {
+  return request({
+    url: '/customer/setting/' + id,
+    method: 'get'
+  })
+}
+
+// 新增客户优惠等级设置
+export function addSetting(data) {
+  return request({
+    url: '/customer/setting',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改客户优惠等级设置
+export function updateSetting(data) {
+  return request({
+    url: '/customer/setting',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除客户优惠等级设置
+export function delSetting(id) {
+  return request({
+    url: '/customer/setting/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出客户优惠等级设置
+export function exportSetting(query) {
+  return request({
+    url: '/customer/setting/export',
+    method: 'get',
+    params: query
+  })
+}

+ 18 - 1
Yijia-SaaS/yijia-ui/src/views/customer/setting/index.vue

@@ -56,7 +56,7 @@
       </div>
     </el-dialog>
 
-    <el-form ref="ruleForm" :model="ruleForm" inline="true" label-width="110px">
+    <el-form ref="ruleForm" :model="ruleForm" :inline="true" label-width="100px" >
       <el-row>
         <el-col :span="6">
           <el-form-item label="汽油消费"  prop="gasoilConsume">
@@ -93,6 +93,15 @@
           </el-form-item>
         </el-col>
       </el-row>
+      <el-row v-show="false">
+        <el-col :span="6">
+          <el-form-item label="id"  prop="id">
+            <el-input size="small" v-model="ruleForm.id" />
+          </el-form-item>
+        </el-col>
+        <el-col :span="6">
+        </el-col>
+      </el-row>
     </el-form>
     <div slot="footer" class="dialog-footer">
       <el-button type="primary" @click="submitForm">保存</el-button>
@@ -248,6 +257,7 @@ export default {
   created() {
     this.getList();
     this.getList2();
+    this.getList3();
   },
   methods: {
     /** 查询客户优惠等级设置列表 */
@@ -270,6 +280,13 @@ export default {
 
       });
     },
+    getList3() {
+      this.selectParams.gradeType="2";
+      this.loading = true;
+      listSetting(this.selectParams).then(response => {
+        this.ruleForm  = response.rows;
+      });
+    },
     // 取消按钮
     cancel() {
       this.open = false;