Przeglądaj źródła

4.6bug单修改

huangyw 3 lat temu
rodzic
commit
12113bd4bd

+ 4 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Wyświetl plik

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

Plik diff jest za duży
+ 3728 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFortySix.vue


+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Wyświetl plik

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

+ 17 - 5
src/xt_pages/supply/components/addPurchaseOrder.vue Wyświetl plik

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

+ 19 - 14
src/xt_pages/supply/components/addSupply.vue Wyświetl plik

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

+ 3 - 2
src/xt_pages/supply/components/editGoodOrder.vue Wyświetl plik

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

+ 8 - 0
src/xt_pages/supply/components/editPurchaseOrder.vue Wyświetl plik

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

+ 1 - 1
src/xt_pages/supply/components/editSupply.vue Wyświetl plik

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

+ 284 - 254
src/xt_pages/supply/purchaseOrderQuery.vue Wyświetl plik

3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
     </div>
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
         <div>
15
         <div>
9
-        
10
           <el-date-picker
16
           <el-date-picker
11
             size="small"
17
             size="small"
12
             v-model="start_time"
18
             v-model="start_time"
13
             prefix-icon="el-icon-date"
19
             prefix-icon="el-icon-date"
14
             :editable="false"
20
             :editable="false"
15
-            style="width: 196px;"
21
+            style="width: 196px"
16
             type="date"
22
             type="date"
17
             placeholder="选择日期时间"
23
             placeholder="选择日期时间"
18
             align="right"
24
             align="right"
19
             format="yyyy-MM-dd"
25
             format="yyyy-MM-dd"
20
             value-format="yyyy-MM-dd"
26
             value-format="yyyy-MM-dd"
21
             @change="startTimeChange"
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
           ></el-date-picker>
42
           ></el-date-picker>
36
           <span>审核状态:</span>
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
             <el-option
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
             </el-option>
56
             </el-option>
45
           </el-select>
57
           </el-select>
46
           <el-input
58
           <el-input
47
             size="small"
59
             size="small"
48
-            style="width: 200px;margin-left:10px;"
60
+            style="width: 200px; margin-left: 10px"
49
             class="filter-item"
61
             class="filter-item"
50
             v-model.trim="keywords"
62
             v-model.trim="keywords"
51
             placeholder="订单编号或供应商名称"
63
             placeholder="订单编号或供应商名称"
64
         </div>
76
         </div>
65
       </div>
77
       </div>
66
 
78
 
67
-
68
-       <el-table
79
+      <el-table
69
         :row-style="{ color: '#303133' }"
80
         :row-style="{ color: '#303133' }"
70
         :header-cell-style="{
81
         :header-cell-style="{
71
           backgroundColor: 'rgb(245, 247, 250)',
82
           backgroundColor: 'rgb(245, 247, 250)',
72
-          color: '#606266'
83
+          color: '#606266',
73
         }"
84
         }"
74
         :data="tableList"
85
         :data="tableList"
75
         :class="signAndWeighBoxPatients"
86
         :class="signAndWeighBoxPatients"
77
       >
88
       >
78
         <el-table-column label="订单日期" align="center">
89
         <el-table-column label="订单日期" align="center">
79
           <template slot-scope="scope">
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
         </el-table-column>
93
         </el-table-column>
83
         <el-table-column label="订单编号" align="center">
94
         <el-table-column label="订单编号" align="center">
84
           <template slot-scope="scope">
95
           <template slot-scope="scope">
85
-            <span>{{scope.row.number}}</span>
96
+            <span>{{ scope.row.number }}</span>
86
           </template>
97
           </template>
87
         </el-table-column>
98
         </el-table-column>
88
         <el-table-column label="供应商" align="center">
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
           <template slot-scope="scope">
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
                  <td>{{item.good_number}}</td>
108
                  <td>{{item.good_number}}</td>
98
               </tr>
109
               </tr>
110
+
99
             </div>
111
             </div>
100
           </template>
112
           </template>
101
         </el-table-column>
113
         </el-table-column>
102
         <el-table-column label="采购金额" align="center">
114
         <el-table-column label="采购金额" align="center">
103
           <template slot-scope="scope">
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
           </template>
132
           </template>
106
         </el-table-column>
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
         <el-table-column label="交货日期" align="center">
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
           <template slot-scope="scope">
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
           </template>
169
           </template>
157
         </el-table-column>
170
         </el-table-column>
158
       </el-table>
171
       </el-table>
159
       <el-pagination
172
       <el-pagination
160
         @size-change="handleSizeChange"
173
         @size-change="handleSizeChange"
161
         @current-change="handleCurrentChange"
174
         @current-change="handleCurrentChange"
162
-        :page-sizes="[10, 50, 100,200,500,1000]"
175
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
163
         :page-size="10"
176
         :page-size="10"
164
         background
177
         background
165
         align="right"
178
         align="right"
166
-        style="margin-top:20px;"
179
+        style="margin-top: 20px"
167
         layout="total, sizes, prev, pager, next, jumper"
180
         layout="total, sizes, prev, pager, next, jumper"
168
         :total="total"
181
         :total="total"
169
       >
182
       >
170
       </el-pagination>
183
       </el-pagination>
171
-
172
     </div>
184
     </div>
173
   </div>
185
   </div>
174
 </template>
186
 </template>
176
 <script>
188
 <script>
177
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
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
 export default {
197
 export default {
182
   name: "stockIn",
198
   name: "stockIn",
183
-   components: {
184
-     
185
-   },
199
+  components: {},
186
   components: {
200
   components: {
187
-    BreadCrumb
201
+    BreadCrumb,
188
   },
202
   },
189
   data() {
203
   data() {
190
     return {
204
     return {
205
+      isActive: false,
206
+      aa: ["111111", "22222"],
207
+      Color_txt: true,
191
       crumbs: [
208
       crumbs: [
192
         { path: false, name: "采购管理" },
209
         { path: false, name: "采购管理" },
193
-        { path: "/supply/query", name: "采购订单" }
210
+        { path: "/supply/query", name: "采购订单" },
194
       ],
211
       ],
195
       keywords: "",
212
       keywords: "",
196
       total: 0,
213
       total: 0,
197
       multipleSelection: [],
214
       multipleSelection: [],
198
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
215
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
199
       start_time: "",
216
       start_time: "",
200
-      end_time:"",
217
+      end_time: "",
201
       page: 1,
218
       page: 1,
202
       limit: 10,
219
       limit: 10,
203
       goodType: [],
220
       goodType: [],
204
       goodInfo: [],
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
             if (response.data.state == 1) {
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
             } else {
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
   created() {
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
 </script>
392
 </script>
368
 <style lang="scss">
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
     text-align: center;
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
 </style>
414
 </style>
390
 
415
 
391
 <style rel="stylesheet/css" lang="scss" scoped>
416
 <style rel="stylesheet/css" lang="scss" scoped>
439
   background-color: #d0d3da;
464
   background-color: #d0d3da;
440
 }
465
 }
441
 
466
 
467
+.color {
468
+  background: none !important;
469
+  display: flex;
470
+  flex-direction: column;
471
+}
442
 </style>
472
 </style>

+ 1 - 1
src/xt_pages/supply/supplyQuery.vue Wyświetl plik

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