Ver código fonte

Merge branch 'master' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

csx 4 anos atrás
pai
commit
38f9281eac

+ 7 - 5
src/xt_pages/dialysis/components/consumables.vue Ver arquivo

21
                       format="yyyy-MM-dd"
21
                       format="yyyy-MM-dd"
22
                       value-format="yyyy-MM-dd"
22
                       value-format="yyyy-MM-dd"
23
                       placeholder="选择日期时间" align="right"></el-date-picker>
23
                       placeholder="选择日期时间" align="right"></el-date-picker>
24
-      <!--<el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"-->
25
-                <!--class="filter-item"/>-->
26
-      <!--<el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>-->
24
+      <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
25
+                class="filter-item" v-model="query.keywords"/>
26
+      <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
27
     </div>
27
     </div>
28
     <div class="cell clearfix" style="justify-content: space-between;">
28
     <div class="cell clearfix" style="justify-content: space-between;">
29
       <div style="display:flex;">
29
       <div style="display:flex;">
109
           partition_id:0,
109
           partition_id:0,
110
           page:1,
110
           page:1,
111
           limit:10,
111
           limit:10,
112
+          keywords:"",
112
         },
113
         },
113
         schedulType: 0,
114
         schedulType: 0,
114
         schedulArr: [
115
         schedulArr: [
117
           { value: 2, label: '下午' },
118
           { value: 2, label: '下午' },
118
           { value: 3, label: '晚上' }
119
           { value: 3, label: '晚上' }
119
         ],
120
         ],
120
-        selected_date: new Date(),
121
+        selected_date: "",
121
         partitionArr: [],
122
         partitionArr: [],
122
         partitionType: 0,
123
         partitionType: 0,
123
         tableData: [{
124
         tableData: [{
307
         this.GetDialysisgoods()
308
         this.GetDialysisgoods()
308
       },
309
       },
309
       search() {
310
       search() {
310
-
311
+        this.query.page = 1
312
+        this.GetDialysisgoods()
311
       }
313
       }
312
     }
314
     }
313
   }
315
   }

+ 7 - 8
src/xt_pages/dialysis/components/consumablesDialog.vue Ver arquivo

102
           } else {
102
           } else {
103
             this.tableData = []
103
             this.tableData = []
104
             for (let i = 0; i < response.data.data.stock_out.length; i++) {
104
             for (let i = 0; i < response.data.data.stock_out.length; i++) {
105
-              let obj = {
106
-                good_name: response.data.data.stock_out[i].specification_name,
107
-                good_type_name: response.data.data.stock_out[i].type.type_name,
108
-                count:this.calCount(response.data.data.stock_out[i].query_warehouseout_info)
105
+              if(this.calCount(response.data.data.stock_out[i].query_warehouseout_info) > 0) {
106
+                let obj = {
107
+                  good_name: response.data.data.stock_out[i].specification_name,
108
+                  good_type_name: response.data.data.stock_out[i].type.type_name,
109
+                  count: this.calCount(response.data.data.stock_out[i].query_warehouseout_info)
110
+                }
111
+                this.tableData.push(obj)
109
               }
112
               }
110
-              this.tableData.push(obj)
111
             }
113
             }
112
-
113
           }
114
           }
114
-
115
-
116
         })
115
         })
117
       },
116
       },
118
 
117
 

+ 7 - 6
src/xt_pages/dialysis/consumables_print.vue Ver arquivo

96
           } else {
96
           } else {
97
             this.tableData = []
97
             this.tableData = []
98
             for (let i = 0; i < response.data.data.stock_out.length; i++) {
98
             for (let i = 0; i < response.data.data.stock_out.length; i++) {
99
-              let obj = {
100
-                good_name: response.data.data.stock_out[i].specification_name,
101
-                good_type_name: response.data.data.stock_out[i].type.type_name,
102
-                count:this.calCount(response.data.data.stock_out[i].query_warehouseout_info)
99
+              if (this.calCount(response.data.data.stock_out[i].query_warehouseout_info) > 0) {
100
+                let obj = {
101
+                  good_name: response.data.data.stock_out[i].specification_name,
102
+                  good_type_name: response.data.data.stock_out[i].type.type_name,
103
+                  count: this.calCount(response.data.data.stock_out[i].query_warehouseout_info)
104
+                }
105
+                this.tableData.push(obj)
103
               }
106
               }
104
-              this.tableData.push(obj)
105
             }
107
             }
106
 
108
 
107
           }
109
           }
108
 
110
 
109
-
110
         })
111
         })
111
       },
112
       },
112
         printAction: function() {
113
         printAction: function() {

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue Ver arquivo

443
                 this.$message.error(response.data.msg)
443
                 this.$message.error(response.data.msg)
444
                 return false
444
                 return false
445
               } else {
445
               } else {
446
-                this.$message.success('退货成功')
446
+                this.$message.success('保存成功')
447
                 this.$router.back(-1)
447
                 this.$router.back(-1)
448
               }
448
               }
449
             })
449
             })