陈少旭 před 2 dny
rodič
revize
ec9ed73f32
1 změnil soubory, kde provedl 34 přidání a 2 odebrání
  1. 34 2
      src/xt_pages/Pharmacy/drugCode.vue

+ 34 - 2
src/xt_pages/Pharmacy/drugCode.vue Zobrazit soubor

46
         </div>
46
         </div>
47
       </div>
47
       </div>
48
 
48
 
49
+      <div>
50
+        <div>结算状态:
51
+          <el-select size="small" v-model="is_settle" placeholder="请选择" style="width:100px;" @change="changeSettle">
52
+            <el-option
53
+              v-for="item,index in settle_items"
54
+              :key="index"
55
+              :label="item.name"
56
+              :value="item.id">
57
+            </el-option>
58
+          </el-select>
59
+        </div>
60
+      </div>
61
+
49
       <div>
62
       <div>
50
         <el-button type="primary" @click="batchUpload()">批量上传</el-button>
63
         <el-button type="primary" @click="batchUpload()">批量上传</el-button>
51
         <el-button type="primary" @click="query()">查询</el-button>
64
         <el-button type="primary" @click="query()">查询</el-button>
103
         </template>
116
         </template>
104
       </el-table-column>
117
       </el-table-column>
105
 
118
 
119
+
120
+      <el-table-column align="center" prop="name" label="结算状态">
121
+        <template slot-scope="scope">
122
+          <div v-if="scope.row.pre.order_status == 2">已结算</div>
123
+          <div v-if="scope.row.pre.order_status != 2">未结算</div>
124
+        </template>
125
+      </el-table-column>
126
+
106
       <el-table-column align="center" prop="name" label="操作" width="200">
127
       <el-table-column align="center" prop="name" label="操作" width="200">
107
         <template slot-scope="scope">
128
         <template slot-scope="scope">
108
           <div>
129
           <div>
119
 
140
 
120
 
141
 
121
     </el-table>
142
     </el-table>
122
-    
143
+
123
     <el-pagination
144
     <el-pagination
124
       @size-change="handleSizeChange"
145
       @size-change="handleSizeChange"
125
       @current-change="handleCurrentChange"
146
       @current-change="handleCurrentChange"
126
       :page-size="10"
147
       :page-size="10"
127
       :page-sizes="[10, 20, 50, 100,500,1000,2000]"
148
       :page-sizes="[10, 20, 50, 100,500,1000,2000]"
128
       background
149
       background
150
+      layout="total, sizes, prev, pager, next, jumper"
129
       style="margin-top:20px;float: right"
151
       style="margin-top:20px;float: right"
130
       :total="total"
152
       :total="total"
131
     ></el-pagination>
153
     ></el-pagination>
176
       drugTypeList: [{id: 0, name: "全部"}],
198
       drugTypeList: [{id: 0, name: "全部"}],
177
       start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
199
       start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
178
       end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
200
       end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
179
-
201
+      is_settle:"0",
180
       tableData: [],
202
       tableData: [],
181
       change_type: "3",
203
       change_type: "3",
182
       selection: [],
204
       selection: [],
189
         {id: "1", name: '已上传'},
211
         {id: "1", name: '已上传'},
190
         {id: "2", name: '未上传'},
212
         {id: "2", name: '未上传'},
191
       ],
213
       ],
214
+      settle_items: [
215
+        {id: "0", name: '全部'},
216
+        {id: "2", name: '已结算'},
217
+        {id: "1", name: '未结算'},
218
+      ],
192
       patientList: [],
219
       patientList: [],
193
       drugList: [],
220
       drugList: [],
194
       dialogVisibleOne: false,
221
       dialogVisibleOne: false,
567
         page: this.page,
594
         page: this.page,
568
         limit: this.limit,
595
         limit: this.limit,
569
         is_sale: this.is_sale,
596
         is_sale: this.is_sale,
597
+        is_settle:this.is_settle,
570
 
598
 
571
       }
599
       }
572
       getHisDrugCodeQueryList(params).then(response => {
600
       getHisDrugCodeQueryList(params).then(response => {
582
           this.is_open = response.data.data.codeConfig.is_open
610
           this.is_open = response.data.data.codeConfig.is_open
583
         }
611
         }
584
       })
612
       })
613
+    },changeSettle(val){
614
+
615
+      this.is_settle = val
616
+      this.getlist()
585
     },
617
     },
586
     changeStock(val) {
618
     changeStock(val) {
587
       this.is_sale = val
619
       this.is_sale = val