zhangjingyuan 3 лет назад
Родитель
Сommit
425d2290d6

+ 5 - 3
src/views/component/fenzhuangweizhi.vue

@@ -18,7 +18,7 @@
         <div class="top-title">库存可视化</div>
         <div class="query-content">
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
-            <el-form-item label="仓库名称:">
+            <el-form-item label="仓库区域:">
               <el-select
                 v-model="formInline.cang_ku_ming_chen_value"
                 placeholder="请选择样品"
@@ -32,7 +32,7 @@
                 ></el-option>
               </el-select>
             </el-form-item>
-            <el-form-item style="margin-left: 50px" label="区域名称:">
+            <el-form-item style="margin-left: 50px" label="货架名称:">
               <el-select
                 v-model="formInline.qu_yu_value"
                 placeholder="请选择区域名称"
@@ -322,7 +322,7 @@ export default {
     },
     loadQueryData() {
       //查询选择仓库数据查询
-      var sqlString = "select distinct cang_ku_ming_chen from t_ck ";
+      var sqlString = "select distinct cang_ku_ming_chen from t_ck ORDER BY cang_ku_ming_chen DESC";
       var this_ = this;
       curdPost("sql", sqlString).then((response) => {
         this_.cangkuOption = response.variables.data;
@@ -331,6 +331,8 @@ export default {
             this_.cangkuOption.splice(index, 1);
           }
         });
+        this_.cangkuOption[0] = this_.cangkuOption.splice(1,1,this_.cangkuOption[0])[0];
+        this_.cangkuOption[3] = this_.cangkuOption.splice(4,1,this_.cangkuOption[3])[0];
       });
     },
     onSubmits() {

+ 5 - 3
src/views/component/weiZhiChangGui.vue

@@ -12,7 +12,7 @@
         <div class="top-title">库存可视化</div>
         <div class="query-content">
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
-            <el-form-item label="仓库名称:">
+            <el-form-item label="仓库区域:">
               <el-select
                 v-model="formInline.cang_ku_ming_chen_value"
                 placeholder="请选择样品"
@@ -26,7 +26,7 @@
                 ></el-option>
               </el-select>
             </el-form-item>
-            <el-form-item style="margin-left: 50px" label="区域名称:">
+            <el-form-item style="margin-left: 50px" label="货架名称:">
               <el-select
                 v-model="formInline.qu_yu_value"
                 placeholder="请选择区域名称"
@@ -301,7 +301,7 @@ export default {
     },
     async loadQueryData() {
       //查询选择仓库数据查询
-      var sqlString = "select distinct cang_ku_ming_chen from t_ck ";
+      var sqlString = "select distinct cang_ku_ming_chen from t_ck ORDER BY cang_ku_ming_chen DESC";
       var this_ = this;
       await curdPost("sql", sqlString).then((response) => {
         this_.cangkuOption = response.variables.data;
@@ -310,6 +310,8 @@ export default {
             this_.cangkuOption.splice(index, 1);
           }
         });
+        this_.cangkuOption[0] = this_.cangkuOption.splice(1,1,this_.cangkuOption[0])[0];
+        this_.cangkuOption[3] = this_.cangkuOption.splice(4,1,this_.cangkuOption[3])[0];
       });
     },
     onSubmits() {

+ 5 - 3
src/views/component/wuliaoPosition.vue

@@ -15,7 +15,7 @@
         <div class="top-title">库存可视化</div>
         <div class="query-content">
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
-            <el-form-item label="仓库名称:">
+            <el-form-item label="仓库区域:">
               <el-select
                 v-model="formInline.cang_ku_ming_chen_value"
                 placeholder="请选择样品"
@@ -29,7 +29,7 @@
                 ></el-option>
               </el-select>
             </el-form-item>
-            <el-form-item style="margin-left: 50px" label="区域名称:">
+            <el-form-item style="margin-left: 50px" label="货架名称: ">
               <el-select
                 v-model="formInline.qu_yu_value"
                 placeholder="请选择区域名称"
@@ -281,7 +281,7 @@ export default {
     },
     loadQueryData() {
       //查询选择仓库数据查询
-      var sqlString = "select distinct cang_ku_ming_chen from t_ck ";
+      var sqlString = "select distinct cang_ku_ming_chen from t_ck ORDER BY cang_ku_ming_chen DESC";
       var this_ = this;
       curdPost("sql", sqlString).then((response) => {
         this_.cangkuOption = response.variables.data;
@@ -290,6 +290,8 @@ export default {
             this_.cangkuOption.splice(index, 1);
           }
         });
+        this_.cangkuOption[0] = this_.cangkuOption.splice(1,1,this_.cangkuOption[0])[0];
+        this_.cangkuOption[3] = this_.cangkuOption.splice(4,1,this_.cangkuOption[3])[0];
       });
     },
     onSubmits() {

+ 5 - 3
src/views/warehouse/cangku.vue

@@ -6,7 +6,7 @@
         <div class="top-title">库存可视化</div>
         <div class="query-content">
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
-            <el-form-item label="仓库名称:">
+            <el-form-item label="仓库区域:">
               <el-select
                 v-model="formInline.cang_ku_ming_chen_value"
                 placeholder="请选择样品"
@@ -20,7 +20,7 @@
                 ></el-option>
               </el-select>
             </el-form-item>
-            <el-form-item style="margin-left: 50px" label="区域名称:">
+            <el-form-item style="margin-left: 50px" label="货架名称:">
               <el-select
                 v-model="formInline.qu_yu_value"
                 placeholder="请选择区域名称"
@@ -278,7 +278,7 @@ export default {
     },
     loadQueryData() {
       //查询选择仓库数据查询
-      var sqlString = "select distinct cang_ku_ming_chen from t_ck ";
+      var sqlString = "select distinct cang_ku_ming_chen from t_ck ORDER BY cang_ku_ming_chen DESC";
       var this_ = this;
       curdPost("sql", sqlString).then((response) => {
         this_.cangkuOption = response.variables.data;
@@ -287,6 +287,8 @@ export default {
             this_.cangkuOption.splice(index, 1);
           }
         });
+        this_.cangkuOption[0] = this_.cangkuOption.splice(1,1,this_.cangkuOption[0])[0];
+        this_.cangkuOption[3] = this_.cangkuOption.splice(4,1,this_.cangkuOption[3])[0];
       });
     },
     onSubmits() {