Browse Source

fix: 设备管理选择型号bug

pangqijun 3 months ago
parent
commit
844a04a24d
3 changed files with 4 additions and 15 deletions
  1. 1 1
      src/api/finance/ordergoods.js
  2. 2 13
      src/views/facility/facility.vue
  3. 1 1
      src/views/finance/order.vue

+ 1 - 1
src/api/finance/ordergoods.js

@@ -2,7 +2,7 @@ import request from '@/router/axios';
 
 
 export const getList = (current, size, params) => {
 export const getList = (current, size, params) => {
   return request({
   return request({
-    url: '/api/finance/ordergoods/list',
+    url: '/api/finance/ordergoods/page',
     method: 'get',
     method: 'get',
     params: {
     params: {
       ...params,
       ...params,

+ 2 - 13
src/views/facility/facility.vue

@@ -119,23 +119,12 @@
                 trigger: "blur"
                 trigger: "blur"
               }]
               }]
             },
             },
-            {
-              label: "设备型号",
-              prop: "facilityType",
-              editDisplay: false,
-              addDisplay: false,
-              rules: [{
-                required: true,
-                message: "请输入设备型号",
-                trigger: "blur"
-              }]
-            },
             {
             {
               label: "设备型号",
               label: "设备型号",
               prop: "facilityType",
               prop: "facilityType",
               type: "select",
               type: "select",
-              all:true,
-              hide: true,
+              // all:true,
+              // hide: true,
               dicUrl: "/api/facility/facilitymodel/list?current=1&size=100",
               dicUrl: "/api/facility/facilitymodel/list?current=1&size=100",
               dicFormatter: function (res) {
               dicFormatter: function (res) {
                 return res.data.records;
                 return res.data.records;

+ 1 - 1
src/views/finance/order.vue

@@ -37,7 +37,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-  import {getList, getDetail, add, update, remove, refund} from "@/api/finance/order";
+  import {getList, getDetail, add, update, remove, refund} from "@/api/finance/ordergoods";
   import {mapGetters} from "vuex";
   import {mapGetters} from "vuex";
 
 
   export default {
   export default {