Browse Source

4.6bug单修改

huangyw 3 years ago
parent
commit
12113bd4bd

+ 4 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -728,11 +728,11 @@
728 728
           >
729 729
           </DialysisPrintOrderFive>
730 730
 
731
-          <DialysisPrintOrderSix
731
+          <DialysisPrintOrderFortySix
732 732
             v-bind:childResponse="childResponse"
733 733
             v-if="org_template_info.template_id == 6"
734 734
           >
735
-          </DialysisPrintOrderSix>
735
+          </DialysisPrintOrderFortySix>
736 736
 
737 737
           <DialysisPrintOrderSeven
738 738
             v-bind:childResponse="childResponse"
@@ -982,9 +982,11 @@ import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
982 982
 import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThree";
983 983
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
984 984
 import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
985
+import DialysisPrintOrderFortySix from "./template/DialysisPrintOrderFortySix"
985 986
 export default {
986 987
   name: "dialysisPrintOrder",
987 988
   components: {
989
+    DialysisPrintOrderFortySix,
988 990
     DialysisPrintOrderFortyFive,
989 991
     DialysisPrintOrderFortyFour,
990 992
     DialysisPrintOrderFortyThree,

File diff suppressed because it is too large
+ 3728 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFortySix.vue


+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -357,7 +357,7 @@
357 357
                   </div>
358 358
                   <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
359 359
                     <div class="inline_block" style="flex:1;">
360
-                      透析(滤)器:
360
+                      <span>透析(滤)器:</span> 
361 361
                       <div class="under_line" style="width: 100px;text-align: center">
362 362
                         {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
363 363
                         {{prescription.dialysis_dialyszers?prescription.dialysis_dialyszers:"/"}}

+ 17 - 5
src/xt_pages/supply/components/addPurchaseOrder.vue View File

@@ -97,10 +97,10 @@
97 97
           :data="recordInfo.tableList"
98 98
           :class="signAndWeighBoxPatients"
99 99
           border
100
-          style="width: 100%"
100
+          style="width:100%"
101 101
           max-height="450"
102 102
         >
103
-          <el-table-column align="center" width="200px">
103
+          <el-table-column align="center" width="200">
104 104
             <template slot="header" slot-scope="scope">
105 105
               <span>商品<span style="color: red">*</span></span>
106 106
             </template>
@@ -111,7 +111,7 @@
111 111
               >
112 112
                 <el-select
113 113
                   v-model="scope.row.name"
114
-                  style="width: 160px"
114
+                  style="width: 160"
115 115
                   filterable
116 116
                   placeholder="请选择商品"
117 117
                   @change="changeName"
@@ -129,7 +129,7 @@
129 129
               </el-form-item>
130 130
             </template>
131 131
           </el-table-column>
132
-          <el-table-column align="center" width="150px">
132
+          <el-table-column align="center" width="150">
133 133
             <template slot="header" slot-scope="scope">
134 134
               <span>商品类别</span>
135 135
             </template>
@@ -143,7 +143,7 @@
143 143
               <div style="visibility: hidden">/</div>
144 144
             </template>
145 145
           </el-table-column>
146
-          <el-table-column label="规格&单位" align="center" width="200px">
146
+          <el-table-column label="规格&单位" align="center" width="200s">
147 147
             <template slot-scope="scope">
148 148
               <el-input
149 149
                 placeholder="规格&单位"
@@ -340,6 +340,7 @@
340 340
             style="width: 150px"
341 341
             v-model="discount_amount"
342 342
             placeholder="请输入优惠金额"
343
+            @input="count_discount"
343 344
           ></el-input
344 345
         ></span>
345 346
       </div>
@@ -827,6 +828,12 @@ export default {
827 828
       }
828 829
       this.total_price = total_price;
829 830
       return total_price.toFixed(2);
831
+    },
832
+     count_discount() {
833
+      this.rate_of_concession = (
834
+        this.discount_amount /
835
+        (this.total_price * 0.01)
836
+      ).toFixed(2);
830 837
     },
831 838
     checkPurchaseOrder(id, index) {
832 839
       this.$confirm("是否审核?", {
@@ -920,6 +927,11 @@ export default {
920 927
   transform: translateX(-50%);
921 928
   top: 30%;
922 929
 }
930
+
931
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
932
+width:10px;
933
+height:10px;
934
+}
923 935
 </style>
924 936
 
925 937
 <style>

+ 19 - 14
src/xt_pages/supply/components/addSupply.vue View File

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <el-dialog :title="title" :visible.sync="dialogVisible" width="35%">
2
+  <el-dialog :title="title" :visible.sync="dialogVisible" width="40%">
3 3
     <!-- :before-close="handleClose" 如需要可添加进上方 -->
4 4
     <div>
5 5
       <el-form
@@ -90,7 +90,7 @@
90 90
           max-height="450"
91 91
         >
92 92
           <!-- 联系人填写 -->
93
-          <el-table-column label="联系人" align="center" width="110px">
93
+          <el-table-column label="联系人" align="center" width="130">
94 94
             <template slot="header" slot-scope="scope">
95 95
               <span>联系人<span style="color: red">*</span></span>
96 96
             </template>
@@ -112,17 +112,17 @@
112 112
               >
113 113
                 <el-input
114 114
                   v-model="scope.row.name"
115
-                  style="width: 80px; margin-top: 3px"
115
+                  style="width: 100px; margin-top: 3px"
116 116
                 ></el-input>
117 117
               </el-form-item>
118 118
             </template>
119 119
           </el-table-column>
120 120
           <!-- 手机填写 -->
121
-          <el-table-column label="手机" align="center" width="100px">
121
+          <el-table-column label="手机" align="center" width="150">
122 122
             <template slot-scope="scope">
123 123
               <el-input
124 124
                 v-model="scope.row.phone"
125
-                style="width: 80px"
125
+                style="width: 120px"
126 126
               ></el-input>
127 127
               <div style="visibility: hidden">/</div>
128 128
             </template>
@@ -130,22 +130,22 @@
130 130
           <!-- id填写======================================================= -->
131 131
           <el-table-column label="id" v-if="false">
132 132
             <template slot-scope="scope">
133
-              <el-input v-model="scope.row.id" style="width: 80px"></el-input>
133
+              <el-input v-model="scope.row.id" style="width: 100px"></el-input>
134 134
               <div style="visibility: hidden">/</div>
135 135
             </template>
136 136
           </el-table-column>
137 137
           <!-- 联系地址填写 -->
138
-          <el-table-column label="联系地址" align="center" width="130px">
138
+          <el-table-column label="联系地址" align="center" width="150">
139 139
             <template slot-scope="scope">
140 140
               <el-input
141 141
                 v-model="scope.row.address"
142
-                style="width: 115px"
142
+                style="width: 120px"
143 143
               ></el-input>
144 144
               <div style="visibility: hidden">/</div>
145 145
             </template>
146 146
           </el-table-column>
147 147
           <!-- 首要联系人填写 -->
148
-          <el-table-column align="center" width="100px">
148
+          <el-table-column align="center" width="130px">
149 149
             <template slot="header" slot-scope="scope">
150 150
               <span>首要联系人<span style="color: red">*</span></span>
151 151
             </template>
@@ -154,8 +154,7 @@
154 154
                 <!-- :prop="'contacts.' + scope.$index + '.name'"  如需添加可在上方标签加入 -->
155 155
                 <el-select
156 156
                   v-model="scope.row.is_first"
157
-                  style="width: 90px"
158
-                  placeholder="请选择"
157
+                  style="width: 100px"
159 158
                   @change="changeName($event, scope)"
160 159
                 >
161 160
                   <el-option
@@ -173,7 +172,7 @@
173 172
           <el-table-column
174 173
             label="操作"
175 174
             align="center"
176
-            width="120px"
175
+            width="150px"
177 176
             fixed="right"
178 177
           >
179 178
             <template slot-scope="scope">
@@ -184,7 +183,6 @@
184 183
                 placement="top"
185 184
               >
186 185
                 <el-button
187
-                  class="tablebtn"
188 186
                   size="mini"
189 187
                   type="primary"
190 188
                   icon="el-icon-circle-plus-outline"
@@ -199,7 +197,6 @@
199 197
                 placement="top"
200 198
               >
201 199
                 <el-button
202
-                  class="tablebtn"
203 200
                   size="mini"
204 201
                   type="danger"
205 202
                   icon="el-icon-delete"
@@ -658,4 +655,12 @@ export default {
658 655
 /deep/ .el-form-item__error {
659 656
   // display: none !important;
660 657
 }
658
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
659
+  width: 10px;
660
+  height: 10px;
661
+}
662
+
663
+/deep/ .el-table__fixed-right{
664
+  bottom: 0 !important;
665
+}
661 666
 </style>

+ 3 - 2
src/xt_pages/supply/components/editGoodOrder.vue View File

@@ -12,7 +12,7 @@
12 12
           align-items: center;
13 13
         "
14 14
       >
15
-        <div>
15
+        <div style="display: flex;">
16 16
           <span style="color: red">*</span><span>供应商:</span>
17 17
           <el-select
18 18
             v-model="supplier_name"
@@ -58,7 +58,7 @@
58 58
         ></el-date-picker> -->
59 59
           <span>单据编码:{{ good_number }}</span>
60 60
         </div>
61
-        <div>
61
+        <div style="display: flex;" >
62 62
           <el-button size="small" type="primary" @click="updateGoodOrder"
63 63
             >保存</el-button
64 64
           >
@@ -265,6 +265,7 @@
265 265
           <el-table-column label="采购金额" align="center" width="120px">
266 266
             <template slot-scope="scope">
267 267
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
268
+              <div style="visibility: hidden">/</div>
268 269
             </template>
269 270
           </el-table-column>
270 271
           <el-table-column label="生产日期" align="center" width="200px">

+ 8 - 0
src/xt_pages/supply/components/editPurchaseOrder.vue View File

@@ -141,6 +141,7 @@
141 141
                 style="width: 120px"
142 142
                 :disabled="true"
143 143
               ></el-input>
144
+              <div style="visibility: hidden">/</div>
144 145
             </template>
145 146
           </el-table-column>
146 147
           <el-table-column label="规格&单位" align="center" width="200px">
@@ -150,6 +151,7 @@
150 151
                 style="width: 150px"
151 152
                 :disabled="true"
152 153
               ></el-input>
154
+              <div style="visibility: hidden">/</div>
153 155
             </template>
154 156
           </el-table-column>
155 157
           <el-table-column label="单位" align="center" width="120px">
@@ -187,6 +189,7 @@
187 189
                 style="width: 100px"
188 190
                 :disabled="true"
189 191
               ></el-input>
192
+              <div style="visibility: hidden">/</div>
190 193
             </template>
191 194
           </el-table-column>
192 195
           <el-table-column label="数量" align="center" width="180px">
@@ -216,12 +219,14 @@
216 219
                 :disabled="disabled"
217 220
                 placeholder="请输入采购单价"
218 221
               ></el-input>
222
+              <div style="visibility: hidden">/</div>
219 223
             </template>
220 224
           </el-table-column>
221 225
 
222 226
           <el-table-column label="采购金额" align="center" width="120px">
223 227
             <template slot-scope="scope">
224 228
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
229
+              <div style="visibility: hidden">/</div>
225 230
             </template>
226 231
           </el-table-column>
227 232
 
@@ -241,6 +246,7 @@
241 246
                 >
242 247
                 </el-option>
243 248
               </el-select>
249
+              <div style="visibility: hidden">/</div>
244 250
             </template>
245 251
           </el-table-column>
246 252
 
@@ -251,6 +257,7 @@
251 257
                 style="width: 160px"
252 258
                 :disabled="true"
253 259
               ></el-input>
260
+              <div style="visibility: hidden">/</div>
254 261
             </template>
255 262
           </el-table-column>
256 263
 
@@ -262,6 +269,7 @@
262 269
                 :disabled="disabled"
263 270
                 placeholder="请输入备注"
264 271
               ></el-input>
272
+              <div style="visibility: hidden">/</div>
265 273
             </template>
266 274
           </el-table-column>
267 275
 

+ 1 - 1
src/xt_pages/supply/components/editSupply.vue View File

@@ -918,7 +918,7 @@ background-color: #d0d3da;
918 918
 }
919 919
 .el-table__fixed-right{
920 920
   width:150px;
921
-  bottom: 20px;
921
+  /* bottom: 20px; */
922 922
   height: 100%;
923 923
 }
924 924
 </style>

+ 284 - 254
src/xt_pages/supply/purchaseOrderQuery.vue View File

@@ -3,49 +3,61 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
     </div>
6
-    <div class="app-container ">
7
-      <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
6
+    <div class="app-container">
7
+      <div
8
+        style="
9
+          justify-content: space-between;
10
+          margin: 0px 0 12px 0;
11
+          display: flex;
12
+          align-items: center;
13
+        "
14
+      >
8 15
         <div>
9
-        
10 16
           <el-date-picker
11 17
             size="small"
12 18
             v-model="start_time"
13 19
             prefix-icon="el-icon-date"
14 20
             :editable="false"
15
-            style="width: 196px;"
21
+            style="width: 196px"
16 22
             type="date"
17 23
             placeholder="选择日期时间"
18 24
             align="right"
19 25
             format="yyyy-MM-dd"
20 26
             value-format="yyyy-MM-dd"
21 27
             @change="startTimeChange"
22
-           ></el-date-picker>-
23
-            <el-date-picker
24
-              size="small"
25
-              v-model="end_time"
26
-              prefix-icon="el-icon-date"
27
-              :editable="false"
28
-              style="width: 196px;"
29
-              type="date"
30
-              placeholder="选择日期时间"
31
-              align="right"
32
-              format="yyyy-MM-dd"
33
-              value-format="yyyy-MM-dd"
34
-              @change="endTimeChange"
28
+          ></el-date-picker
29
+          >-
30
+          <el-date-picker
31
+            size="small"
32
+            v-model="end_time"
33
+            prefix-icon="el-icon-date"
34
+            :editable="false"
35
+            style="width: 196px"
36
+            type="date"
37
+            placeholder="选择日期时间"
38
+            align="right"
39
+            format="yyyy-MM-dd"
40
+            value-format="yyyy-MM-dd"
41
+            @change="endTimeChange"
35 42
           ></el-date-picker>
36 43
           <span>审核状态:</span>
37
-           <el-select v-model="check_id" style="width:140px;margin-right:10px;" placeholder="请选择"
38
-            @change="changeTypeName">
44
+          <el-select
45
+            v-model="check_id"
46
+            style="width: 140px; margin-right: 10px"
47
+            placeholder="请选择"
48
+            @change="changeTypeName"
49
+          >
39 50
             <el-option
40
-                v-for="item in checkList"
41
-                :key="item.id"
42
-                :label="item.name"
43
-                :value="item.id">
51
+              v-for="item in checkList"
52
+              :key="item.id"
53
+              :label="item.name"
54
+              :value="item.id"
55
+            >
44 56
             </el-option>
45 57
           </el-select>
46 58
           <el-input
47 59
             size="small"
48
-            style="width: 200px;margin-left:10px;"
60
+            style="width: 200px; margin-left: 10px"
49 61
             class="filter-item"
50 62
             v-model.trim="keywords"
51 63
             placeholder="订单编号或供应商名称"
@@ -64,12 +76,11 @@
64 76
         </div>
65 77
       </div>
66 78
 
67
-
68
-       <el-table
79
+      <el-table
69 80
         :row-style="{ color: '#303133' }"
70 81
         :header-cell-style="{
71 82
           backgroundColor: 'rgb(245, 247, 250)',
72
-          color: '#606266'
83
+          color: '#606266',
73 84
         }"
74 85
         :data="tableList"
75 86
         :class="signAndWeighBoxPatients"
@@ -77,98 +88,99 @@
77 88
       >
78 89
         <el-table-column label="订单日期" align="center">
79 90
           <template slot-scope="scope">
80
-            <span>{{getTimes(scope.row.document_date)}}</span>
81
-         </template>
91
+            <span>{{ getTimes(scope.row.document_date) }}</span>
92
+          </template>
82 93
         </el-table-column>
83 94
         <el-table-column label="订单编号" align="center">
84 95
           <template slot-scope="scope">
85
-            <span>{{scope.row.number}}</span>
96
+            <span>{{ scope.row.number }}</span>
86 97
           </template>
87 98
         </el-table-column>
88 99
         <el-table-column label="供应商" align="center">
89
-            <template slot-scope="scope">
90
-              <span>{{getName(scope.row.supplier_id)}}</span>
91
-            </template>
92
-         </el-table-column>
93
-        <el-table-column label="关联采购单号" align="center">
94 100
           <template slot-scope="scope">
95
-            <div style="width:100%;height:100%">
96
-              <tr class="annotation-rs cluster-rs" v-for="(item,index) in scope.row.orderOut" :key="index">
101
+            <span>{{ getName(scope.row.supplier_id) }}</span>
102
+          </template>
103
+        </el-table-column>
104
+        <el-table-column label="关联采购单号" align="center" width="150">
105
+          <template slot-scope="scope">
106
+            <div style="width: 100%; height: 100%">
107
+              <tr class="color" v-for="(item,index) in scope.row.orderOut" :key="index">
97 108
                  <td>{{item.good_number}}</td>
98 109
               </tr>
110
+
99 111
             </div>
100 112
           </template>
101 113
         </el-table-column>
102 114
         <el-table-column label="采购金额" align="center">
103 115
           <template slot-scope="scope">
104
-             <span v-if="getAllBuyPrice(scope.row.orderInfo)>0">{{getAllBuyPrice(scope.row.orderInfo)}}</span> 
116
+            <span v-if="getAllBuyPrice(scope.row.orderInfo) > 0">{{
117
+              getAllBuyPrice(scope.row.orderInfo)
118
+            }}</span>
119
+          </template>
120
+        </el-table-column>
121
+
122
+        <el-table-column label="数量" align="center">
123
+          <template slot-scope="scope">
124
+            {{ getAllCount(scope.row.orderInfo) }}
125
+          </template>
126
+        </el-table-column>
127
+        <el-table-column label="订单状态" align="center">
128
+          <template slot-scope="scope">
129
+            <span v-if="scope.row.is_warehouse == 1">全部入库</span>
130
+            <span v-if="scope.row.is_warehouse == 2">未入库</span>
131
+            <span v-if="scope.row.is_warehouse == 3">部分入库</span>
105 132
           </template>
106 133
         </el-table-column>
107 134
 
108
-       <el-table-column label="数量" align="center">
109
-         <template slot-scope="scope">
110
-           {{getAllCount(scope.row.orderInfo)}}
111
-         </template>
112
-       </el-table-column>
113
-       <el-table-column label="订单状态" align="center">
114
-         <template slot-scope="scope">
115
-           <span v-if="scope.row.is_warehouse == 1">全部入库</span>
116
-           <span v-if="scope.row.is_warehouse == 2">未入库</span>
117
-           <span v-if="scope.row.is_warehouse == 3">部分入库</span>
118
-         </template>
119
-       </el-table-column>
120
-     
121 135
         <el-table-column label="交货日期" align="center">
122
-         <template slot-scope="scope">
123
-           {{getTimes(scope.row.delivery_date)}}
124
-         </template>
125
-       </el-table-column>
126
-        
127
-    
128
-      <el-table-column label="制单人" align="center">
129
-         <template slot-scope="scope">
130
-          {{getDocName(scope.row.creater)}}
131
-         </template>
132
-       </el-table-column>
136
+          <template slot-scope="scope">
137
+            {{ getTimes(scope.row.delivery_date) }}
138
+          </template>
139
+        </el-table-column>
133 140
 
134
-      <el-table-column label="审核人" align="center">
135
-         <template slot-scope="scope">
136
-          {{getDocName(scope.row.checker)}}
137
-         </template>
138
-       </el-table-column>
141
+        <el-table-column label="制单人" align="center">
142
+          <template slot-scope="scope">
143
+            {{ getDocName(scope.row.creater) }}
144
+          </template>
145
+        </el-table-column>
139 146
 
140
-       <el-table-column label="操作" align="center" width="200px">
147
+        <el-table-column label="审核人" align="center">
141 148
           <template slot-scope="scope">
142
-              <el-button
143
-                icon="el-icon-edit-outline"
144
-                size="small"
145
-                type="primary"
146
-                @click="toClick(scope.row.id)"
149
+            {{ getDocName(scope.row.checker) }}
150
+          </template>
151
+        </el-table-column>
152
+
153
+        <el-table-column label="操作" align="center" width="200px">
154
+          <template slot-scope="scope">
155
+            <el-button
156
+              icon="el-icon-edit-outline"
157
+              size="small"
158
+              type="primary"
159
+              @click="toClick(scope.row.id)"
147 160
               >编辑
148
-              </el-button>
149
-              <el-button
150
-                icon="el-icon-delete"
151
-                size="small"
152
-                type="danger"
153
-                @click="toDelete(scope.row,scope.$index)"
161
+            </el-button>
162
+            <el-button
163
+              icon="el-icon-delete"
164
+              size="small"
165
+              type="danger"
166
+              @click="toDelete(scope.row, scope.$index)"
154 167
               >删除
155
-              </el-button>
168
+            </el-button>
156 169
           </template>
157 170
         </el-table-column>
158 171
       </el-table>
159 172
       <el-pagination
160 173
         @size-change="handleSizeChange"
161 174
         @current-change="handleCurrentChange"
162
-        :page-sizes="[10, 50, 100,200,500,1000]"
175
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
163 176
         :page-size="10"
164 177
         background
165 178
         align="right"
166
-        style="margin-top:20px;"
179
+        style="margin-top: 20px"
167 180
         layout="total, sizes, prev, pager, next, jumper"
168 181
         :total="total"
169 182
       >
170 183
       </el-pagination>
171
-
172 184
     </div>
173 185
   </div>
174 186
 </template>
@@ -176,216 +188,229 @@
176 188
 <script>
177 189
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
178 190
 
179
-import {getAllSupply,getAllPurchaseOrderList,deletePurchaseOrder} from "@/api/supply"
180
-import {uParseTime } from '@/utils/tools'
191
+import {
192
+  getAllSupply,
193
+  getAllPurchaseOrderList,
194
+  deletePurchaseOrder,
195
+} from "@/api/supply";
196
+import { uParseTime } from "@/utils/tools";
181 197
 export default {
182 198
   name: "stockIn",
183
-   components: {
184
-     
185
-   },
199
+  components: {},
186 200
   components: {
187
-    BreadCrumb
201
+    BreadCrumb,
188 202
   },
189 203
   data() {
190 204
     return {
205
+      isActive: false,
206
+      aa: ["111111", "22222"],
207
+      Color_txt: true,
191 208
       crumbs: [
192 209
         { path: false, name: "采购管理" },
193
-        { path: "/supply/query", name: "采购订单" }
210
+        { path: "/supply/query", name: "采购订单" },
194 211
       ],
195 212
       keywords: "",
196 213
       total: 0,
197 214
       multipleSelection: [],
198 215
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
199 216
       start_time: "",
200
-      end_time:"",
217
+      end_time: "",
201 218
       page: 1,
202 219
       limit: 10,
203 220
       goodType: [],
204 221
       goodInfo: [],
205
-      org_id:0,
206
-      types:[],
207
-      tableList:[{}],
208
-      type_name:"",
209
-      checkList:[
210
-        {id:0,name:"请选择"},
211
-        {id:1,name:"已审核"},
212
-        {id:2,name:"未审核"},
222
+      org_id: 0,
223
+      types: [],
224
+      tableList: [{}],
225
+      type_name: "",
226
+      checkList: [
227
+        { id: 0, name: "请选择" },
228
+        { id: 1, name: "已审核" },
229
+        { id: 2, name: "未审核" },
213 230
       ],
214
-      supplyList:[],
215
-      check_id:0,
216
-      doctorList:[],
231
+      supplyList: [],
232
+      check_id: 0,
233
+      doctorList: [],
217 234
     };
218 235
   },
219
-  methods:{
220
-     toAdd(){
221
-       this.$router.push({path:"/purchase/order/add"})
222
-     },
223
-     changeTypeName(){
224
-       this.getlist()
225
-     },
226
-     startTimeChange(){
227
-      this.getlist()
228
-     },
229
-     endTimeChange(){
230
-      this.getlist()
231
-     },
232
-     search(){
233
-      this.getlist()
234
-     },
235
-     handleSizeChange(val){
236
-       this.limit = val
237
-       this.getlist()
238
-     },
239
-     handleCurrentChange(val){
240
-       this.page = val
241
-       this.getlist()
242
-     },
243
-     getAllSupply(){
244
-       getAllSupply().then(response=>{
245
-         if(response.data.state == 1){
246
-            var supplyList = response.data.data.supplyList
247
-            this.doctorList = response.data.data.doctorList
248
-            for(let i=0;i<supplyList.length;i++){
249
-              this.supplyList.push(supplyList[i])
250
-            }
251
-         }
252
-       })
253
-     },
254
-     getTimes(time) {
255
-      if (time === '') {
256
-      return ''
236
+  methods: {
237
+    toAdd() {
238
+      this.$router.push({ path: "/purchase/order/add" });
239
+    },
240
+    changeTypeName() {
241
+      this.getlist();
242
+    },
243
+    startTimeChange() {
244
+      this.getlist();
245
+    },
246
+    endTimeChange() {
247
+      this.getlist();
248
+    },
249
+    search() {
250
+      this.getlist();
251
+    },
252
+    handleSizeChange(val) {
253
+      this.limit = val;
254
+      this.getlist();
255
+    },
256
+    handleCurrentChange(val) {
257
+      this.page = val;
258
+      this.getlist();
259
+    },
260
+    getAllSupply() {
261
+      getAllSupply().then((response) => {
262
+        if (response.data.state == 1) {
263
+          var supplyList = response.data.data.supplyList;
264
+          this.doctorList = response.data.data.doctorList;
265
+          for (let i = 0; i < supplyList.length; i++) {
266
+            this.supplyList.push(supplyList[i]);
267
+          }
268
+        }
269
+      });
270
+    },
271
+    getTimes(time) {
272
+      if (time === "") {
273
+        return "";
257 274
       }
258
-      return uParseTime(time, '{y}-{m}-{d}')
259
-     },
260
-     getlist(){
261
-        var params = {
262
-          check_id:this.check_id,
263
-          start_time:this.start_time,
264
-          end_time:this.end_time,
265
-          keyword:this.keywords,
266
-          page:this.page,
267
-          limit:this.limit,
275
+      return uParseTime(time, "{y}-{m}-{d}");
276
+    },
277
+    getlist() {
278
+      console.log("hhhhhh", this.end_time);
279
+      var params = {
280
+        check_id: this.check_id,
281
+        start_time: this.start_time,
282
+        end_time: this.end_time,
283
+        keyword: this.keywords,
284
+        page: this.page,
285
+        limit: this.limit,
286
+      };
287
+      console.log("params2332232332", params);
288
+      getAllPurchaseOrderList(params).then((response) => {
289
+        if (response.data.state == 1) {
290
+          var list = response.data.data.list;
291
+          this.tableList = list;
292
+          var total = response.data.data.total;
293
+          this.total = total;
268 294
         }
269
-       console.log("params2332232332",params)
270
-       getAllPurchaseOrderList(params).then(response=>{
271
-          if(response.data.state == 1){
272
-            var list = response.data.data.list 
273
-            this.tableList = list
274
-            var total = response.data.data.total
275
-            this.total = total
276
-          }
277
-       })
278
-     },
279
-     getName(id){
280
-       var name = ""
281
-       for(let i=0;i<this.supplyList.length;i++){
282
-         if(id == this.supplyList[i].id){
283
-           name = this.supplyList[i].supplier_name
284
-         }
285
-       }
286
-       return name
287
-     },
288
-     getDocName(id){
289
-      var user_name = ""
290
-      for(let i=0;i<this.doctorList.length;i++){
291
-        if(id == this.doctorList[i].admin_user_id){
292
-          user_name = this.doctorList[i].user_name
295
+      });
296
+    },
297
+    getName(id) {
298
+      var name = "";
299
+      for (let i = 0; i < this.supplyList.length; i++) {
300
+        if (id == this.supplyList[i].id) {
301
+          name = this.supplyList[i].supplier_name;
293 302
         }
294 303
       }
295
-      return user_name
296
-     },
297
-     getAllBuyPrice(arr){
298
-       var buy_price = 0
299
-       if(arr!=undefined && arr.length > 0){
300
-          for(let i=0;i<arr.length;i++){
301
-            buy_price += (arr[i].count * arr[i].price)
302
-          }
303
-       }
304
-       return buy_price.toFixed(2)
305
-     },
306
-     getAllCount(arr){
307
-       var count = 0
308
-        if(arr!=undefined && arr.length > 0){
309
-          for(let i=0;i<arr.length;i++){
310
-            count += parseInt(arr[i].count)
311
-          }
312
-       }
313
-       if(count == 0){
314
-         return ""
315
-       }
316
-       if(count > 0){
317
-         return count
318
-       }
319
-      
320
-     },
321
-     toClick(id){
322
-       this.$router.push({path:"/purchase/order/edit?id="+id})
323
-     },
324
-     toDelete(val,index){
325
-       if(val.is_check == 1){
326
-         this.$message.error("已审核单据,不能删除!")
327
-         return false
328
-       }
329
-       if(val.orderOut.length >0 ){
330
-         this.$message.error("已关联单据,不能删除!")
331
-         return false
332
-       }
333
-       this.$confirm('确认删除吗?', '删除', {
334
-          confirmButtonText: '确 定',
335
-          cancelButtonText: '取 消',
336
-          type: 'warning'
337
-        }).then(() => {
338
-            
339
-          deletePurchaseOrder(val.id).then(response => {
304
+      return name;
305
+    },
306
+    getDocName(id) {
307
+      var user_name = "";
308
+      for (let i = 0; i < this.doctorList.length; i++) {
309
+        if (id == this.doctorList[i].admin_user_id) {
310
+          user_name = this.doctorList[i].user_name;
311
+        }
312
+      }
313
+      return user_name;
314
+    },
315
+    getAllBuyPrice(arr) {
316
+      var buy_price = 0;
317
+      if (arr != undefined && arr.length > 0) {
318
+        for (let i = 0; i < arr.length; i++) {
319
+          buy_price += arr[i].count * arr[i].price;
320
+        }
321
+      }
322
+      return buy_price.toFixed(2);
323
+    },
324
+    getAllCount(arr) {
325
+      var count = 0;
326
+      if (arr != undefined && arr.length > 0) {
327
+        for (let i = 0; i < arr.length; i++) {
328
+          count += parseInt(arr[i].count);
329
+        }
330
+      }
331
+      if (count == 0) {
332
+        return "";
333
+      }
334
+      if (count > 0) {
335
+        return count;
336
+      }
337
+    },
338
+    toClick(id) {
339
+      this.$router.push({ path: "/purchase/order/edit?id=" + id });
340
+    },
341
+    toDelete(val, index) {
342
+      if (val.is_check == 1) {
343
+        this.$message.error("已审核单据,不能删除!");
344
+        return false;
345
+      }
346
+      if (val.orderOut.length > 0) {
347
+        this.$message.error("已关联单据,不能删除!");
348
+        return false;
349
+      }
350
+      this.$confirm("确认删除吗?", "删除", {
351
+        confirmButtonText: "确 定",
352
+        cancelButtonText: "取 消",
353
+        type: "warning",
354
+      })
355
+        .then(() => {
356
+          deletePurchaseOrder(val.id).then((response) => {
340 357
             if (response.data.state == 1) {
341
-                var msg = response.data.data.msg
342
-                this.tableList.splice(index, 1);
343
-                this.$message.success("删除成功")
358
+              var msg = response.data.data.msg;
359
+              this.tableList.splice(index, 1);
360
+              this.$message.success("删除成功");
344 361
             } else {
345
-                this.$message.error("删除失败")
362
+              this.$message.error("删除失败");
346 363
             }
347
-          })
364
+          });
348 365
         })
349
-        .catch(() => {
350
-        }) 
351
-      }
366
+        .catch(() => {});
367
+    },
368
+    // 动态改变表格样式
369
+    Color_Change() {
370
+      this.Color_txt = true;
371
+      console.log(this.Color_txt, "op");
372
+    },
373
+
374
+    Color_Changeleave() {
375
+      this.Color_txt = false;
376
+      console.log(this.Color_txt, "false");
377
+    },
352 378
   },
353 379
   created() {
354
-    var now = new Date(); //当前日期 
355
-    var nowMonth = now.getMonth(); //当前月 
356
-    var nowYear = now.getFullYear(); //当前年 
380
+    var now = new Date(); //当前日期
381
+    var nowMonth = now.getMonth(); //当前月
382
+    var nowYear = now.getFullYear(); //当前年
357 383
     //本月的开始时间
358
-    var monthStartDate = new Date(nowYear, nowMonth, 1); 
359
-    this.start_time = this.getTimes(monthStartDate) 
360
-    this.end_time = this.getTimes(new Date())
361
-    this.org_id =  this.$store.getters.xt_user.org_id
362
-    this.getAllSupply()
363
-    this.getlist()
384
+    var monthStartDate = new Date(nowYear, nowMonth, 1);
385
+    this.start_time = this.getTimes(monthStartDate);
386
+    this.end_time = this.getTimes(new Date());
387
+    this.org_id = this.$store.getters.xt_user.org_id;
388
+    this.getAllSupply();
389
+    this.getlist();
364 390
   },
365
- 
366 391
 };
367 392
 </script>
368 393
 <style lang="scss">
369
-  .cluster-rs {
394
+.cluster-rs {
395
+  text-align: center;
396
+}
397
+.annotation-rs {
398
+  width: 100%;
399
+  height: 100%;
400
+  border: none;
401
+  td {
402
+    width: 155px;
403
+    padding: 5px;
404
+    border-right: none;
370 405
     text-align: center;
406
+    vertical-align: middle;
371 407
   }
372
-  .annotation-rs{
373
-    width: 100%;
374
-    height: 100%;
375
-    border: none;
376
-    td{
377
-      width: 155px;
378
-      padding: 5px;
379
-      border-right: none;
380
-      text-align: center;
381
-      vertical-align: middle;
382
-    }
383
-  }
384
-  tr:last-child{
385
-    td{
386
-      border-bottom: none;
387
-    }
408
+}
409
+tr:last-child {
410
+  td {
411
+    border-bottom: none;
388 412
   }
413
+}
389 414
 </style>
390 415
 
391 416
 <style rel="stylesheet/css" lang="scss" scoped>
@@ -439,4 +464,9 @@ export default {
439 464
   background-color: #d0d3da;
440 465
 }
441 466
 
467
+.color {
468
+  background: none !important;
469
+  display: flex;
470
+  flex-direction: column;
471
+}
442 472
 </style>

+ 1 - 1
src/xt_pages/supply/supplyQuery.vue View File

@@ -181,7 +181,7 @@ export default {
181 181
       page: 1,
182 182
       limit: 10,
183 183
 
184
-      type_name: "请选择供应商类别",
184
+      type_name: "请选择",
185 185
       crumbs: [
186 186
         { path: false, name: "采购管理" },
187 187
         { path: "/supply/good/order/query", name: "供应商管理" },