Преглед изворни кода

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

csx пре 2 година
родитељ
комит
21fc5f96d1

+ 14 - 38
src/api/data.js Прегледај датотеку

@@ -10,7 +10,7 @@ export function createConfig(params) {
10 10
 }
11 11
 
12 12
 export function createChildConfig(params) {
13
-  console.log("parasms22222",params)
13
+  console.log('parasms22222', params)
14 14
   return request({
15 15
     url: '/api/createchildconfig',
16 16
     method: 'post',
@@ -138,26 +138,21 @@ export function getBaseDrugLibList(params) {
138 138
   })
139 139
 }
140 140
 
141
-
142
-
143
-
144
-export function createMedicineInsurancePercent(params,module) {
141
+export function createMedicineInsurancePercent(params, module) {
145 142
   return request({
146
-    url: '/api/medicineinsurancepercent/create?module='+module,
143
+    url: '/api/medicineinsurancepercent/create?module=' + module,
147 144
     method: 'post',
148 145
     data: params
149 146
   })
150 147
 }
151 148
 
152
-
153
-export function getMedicineInsurancePercent(type_id,module) {
149
+export function getMedicineInsurancePercent(type_id, module) {
154 150
   return request({
155
-    url: '/api/medicineinsurancepercent/get?type_id='+type_id+"&module="+module,
156
-    method: 'get',
151
+    url: '/api/medicineinsurancepercent/get?type_id=' + type_id + '&module=' + module,
152
+    method: 'get'
157 153
   })
158 154
 }
159 155
 
160
-
161 156
 export function createDrugUnitSafeguard(params) {
162 157
   return request({
163 158
     url: '/api/drugunitsafeguard/create',
@@ -174,8 +169,6 @@ export function deleteDurg(params) {
174 169
   })
175 170
 }
176 171
 
177
-
178
-
179 172
 export function createMZSick(params) {
180 173
   return request({
181 174
     url: '/api/mz/sick/create',
@@ -216,10 +209,6 @@ export function GetMZSick(params) {
216 209
   })
217 210
 }
218 211
 
219
-
220
-
221
-
222
-
223 212
 export function createAddition(params) {
224 213
   return request({
225 214
     url: '/api/addition/create',
@@ -260,10 +249,6 @@ export function GetAddition(params) {
260 249
   })
261 250
 }
262 251
 
263
-
264
-
265
-
266
-
267 252
 export function createDiagnose(params) {
268 253
   return request({
269 254
     url: '/api/diagnose/create',
@@ -304,28 +289,19 @@ export function GetDiagnose(params) {
304 289
   })
305 290
 }
306 291
 
307
-export function getAllDrugList(params){
308
-  
292
+export function getAllDrugList(params) {
309 293
   return request({
310
-    url:"/api/drug/getalldruglist",
311
-    method:"Get",
312
-    params:params
294
+    url: '/api/drug/getalldruglist',
295
+    method: 'Get',
296
+    params: params
313 297
   })
314 298
 }
315 299
 
316
-export function postSearchDrugList(keyword,params){
317
-  
300
+export function postSearchDrugList(keyword, storehouse_id, params) {
318 301
   return request({
319
-    url:"/api/drug/postsearchdruglist?keyword="+keyword,
320
-    method:"get",
321
-    params:params
302
+    url: '/api/drug/postsearchdruglist?keyword=' + keyword + '&storehouse_id=' + storehouse_id,
303
+    method: 'get',
304
+    params: params
322 305
   })
323 306
 }
324 307
 
325
-
326
-
327
-
328
-
329
-
330
-
331
-

+ 7 - 0
src/api/drug/drug_stock.js Прегледај датотеку

@@ -581,3 +581,10 @@ export function getDrugOutOrderPrint(params) {
581 581
     params: params
582 582
   })
583 583
 }
584
+
585
+export function GetAllConfigOne() {
586
+  return request({
587
+    url: '/api/drugstock/config/list',
588
+    method: 'get'
589
+  })
590
+}

+ 2 - 3
src/api/stock.js Прегледај датотеку

@@ -56,7 +56,6 @@ export function modifyManufacturer(params) {
56 56
   })
57 57
 }
58 58
 
59
-
60 59
 export function getManufacturerList(params) {
61 60
   return request({
62 61
     url: '/api/stock/manufacturer/list',
@@ -611,9 +610,9 @@ export function getWarehouseOrderInfoList(params) {
611 610
   })
612 611
 }
613 612
 
614
-export function postSearchGoodList(keyword, params) {
613
+export function postSearchGoodList(keyword, storehouse_id, params) {
615 614
   return request({
616
-    url: '/api/good/postsearchgoodlist?keyword=' + keyword,
615
+    url: '/api/good/postsearchgoodlist?keyword=' + keyword + '&storehouse_id=' + storehouse_id,
617 616
     method: 'Get',
618 617
     params: params
619 618
   })

+ 0 - 1
src/xt_pages/data/components/drugs.vue Прегледај датотеку

@@ -966,7 +966,6 @@
966 966
      },
967 967
 
968 968
       handleSuccessTwo({ results, header }) {
969
-         console.log("header22222",header)
970 969
         if (header != undefined && header.length > 0) {
971 970
 
972 971
           var isHasDrugName = header.includes('*药品名称');

+ 29 - 25
src/xt_pages/dialysis/dialysisPrintOrder.vue Прегледај датотеку

@@ -108,8 +108,9 @@
108 108
           org_template_info.template_id == 6 ||
109 109
           org_template_info.template_id == 10 ||
110 110
           org_template_info.template_id == 11 ||
111
-          org_template_info.template_id == 50 || 
112
-          org_template_info.template_id == 52
111
+          org_template_info.template_id == 50 ||
112
+          org_template_info.template_id == 52 ||
113
+          org_template_info.template_id == 53
113 114
         "
114 115
       >
115 116
         <el-button
@@ -646,7 +647,7 @@
646 647
           >打印</el-button
647 648
         >
648 649
       </template>
649
-       <template v-if="org_template_info.template_id == 49">
650
+      <template v-if="org_template_info.template_id == 49">
650 651
         <el-button
651 652
           :loading="loading"
652 653
           size="small"
@@ -676,16 +677,6 @@
676 677
           >打印</el-button
677 678
         >
678 679
       </template>
679
-      <template v-if="org_template_info.template_id == 53">
680
-        <el-button
681
-          :loading="loading"
682
-          size="small"
683
-          icon="el-icon-printer"
684
-          @click="printThisPage"
685
-          type="primary"
686
-          >打印</el-button
687
-        >
688
-      </template>
689 680
     </div>
690 681
     <div class="app-container" style="min-height: 0">
691 682
       <!--<div class="order-print-btn"-->
@@ -1048,13 +1039,13 @@
1048 1039
           >
1049 1040
           </DialysisPrintOrderFortySeven>
1050 1041
 
1051
-           <DialysisPrintOrderFortyEight
1042
+          <DialysisPrintOrderFortyEight
1052 1043
             v-bind:childResponse="childResponse"
1053 1044
             v-if="org_template_info.template_id == 48"
1054 1045
           >
1055 1046
           </DialysisPrintOrderFortyEight>
1056 1047
 
1057
-            <DialysisPrintOrderFortyNine
1048
+          <DialysisPrintOrderFortyNine
1058 1049
             v-bind:childResponse="childResponse"
1059 1050
             v-if="org_template_info.template_id == 49"
1060 1051
           >
@@ -1148,8 +1139,8 @@ import DialysisPrintOrderFortyEight from "./template/DialysisPrintOrderFortyEigh
1148 1139
 import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
1149 1140
 import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1150 1141
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1151
-import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo"
1152
-import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree"
1142
+import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
1143
+import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
1153 1144
 export default {
1154 1145
   name: "dialysisPrintOrder",
1155 1146
   components: {
@@ -1365,8 +1356,8 @@ export default {
1365 1356
       const style =
1366 1357
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1367 1358
       const style2 =
1368
-      // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1369
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;}.check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1359
+        // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1360
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1370 1361
       const style3 =
1371 1362
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1372 1363
       // const style3 =
@@ -1385,11 +1376,14 @@ export default {
1385 1376
         '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}@page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
1386 1377
       const style10 =
1387 1378
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1388
-      
1379
+
1389 1380
       // 三明曙光样式
1390 1381
       const style11 =
1391 1382
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1392
-      
1383
+      // 漳浦天福样式
1384
+      const style12 =
1385
+        '@media print {.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1386
+
1393 1387
       if (this.org_template_info.template_id == 1) {
1394 1388
         printJS({
1395 1389
           printable: "dialysis-print-box",
@@ -1434,8 +1428,7 @@ export default {
1434 1428
         this.org_template_info.template_id == 11 ||
1435 1429
         this.org_template_info.template_id == 49 ||
1436 1430
         this.org_template_info.template_id == 50 ||
1437
-        this.org_template_info.template_id == 51 ||
1438
-        this.org_template_info.template_id == 52
1431
+        this.org_template_info.template_id == 51
1439 1432
       ) {
1440 1433
         printJS({
1441 1434
           printable: "dialysis-print-box-1",
@@ -1719,11 +1712,22 @@ export default {
1719 1712
           style: style11,
1720 1713
           scanStyles: false,
1721 1714
         });
1722
-      } else if (this.org_template_info.template_id == 53) {
1715
+      } else if (
1716
+        this.org_template_info.template_id == 52
1717
+      ) {
1718
+        printJS({
1719
+          printable: "dialysis-print-box-1",
1720
+          type: "html",
1721
+          style: style2,
1722
+          scanStyles: false,
1723
+        });
1724
+      }else if (
1725
+        this.org_template_info.template_id == 53
1726
+      ) {
1723 1727
         printJS({
1724 1728
           printable: "dialysis-print-box",
1725 1729
           type: "html",
1726
-          style: style,
1730
+          style: style12,
1727 1731
           scanStyles: false,
1728 1732
         });
1729 1733
       }

Разлика између датотеке није приказан због своје велике величине
+ 369 - 1622
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


+ 5 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyTwo.vue Прегледај датотеку

@@ -49,15 +49,13 @@
49 49
           <div class="inline_block">
50 50
             病区:
51 51
             <div class="under_line" style="width: 50px;text-align: center;">
52
-              <span v-if="org_id == 10121">{{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}</span>
53
-              <span v-else>{{ "/" }}</span>
52
+              <span>{{patientInfo.DialysisSchedule.device_zone.name? patientInfo.DialysisSchedule.device_zone.name: ""}}</span>
54 53
             </div>
55 54
           </div>
56 55
           <div class="inline_block">
57 56
             床号:
58 57
             <div class="under_line" style="width: 50px;text-align: center;">
59
-              <span v-if="org_id == 10121">{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</span>
60
-              <span v-else>{{ "/" }}</span>
58
+              <span>{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</span>
61 59
             </div>
62 60
           </div>
63 61
           <div class="inline_block">
@@ -71,6 +69,9 @@
71 69
             <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
72 70
               {{ receiverTreatmentAccess.admission_number }}
73 71
             </div>
72
+            <div class="under_line" style="width: 70px;text-align: left" v-else-if="patientInfo.admission_number">
73
+              {{ patientInfo.admission_number }}
74
+            </div>
74 75
             <div class="under_line" style="width: 70px;text-align: left" v-else>
75 76
               {{ "/" }}
76 77
             </div>
@@ -1109,12 +1110,6 @@
1109 1110
                         </span>
1110 1111
                         <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
1111 1112
                       </div>
1112
-                      <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
1113
-                        <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
1114
-                          {{ getAdminUser(check == null ? 0 : check.modifier) }}
1115
-                        </span>
1116
-                        <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
1117
-                      </div>
1118 1113
                       <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.modifier && dialysisOrder.start_nurse != check.modifier">
1119 1114
                         <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
1120 1115
                           {{ getAdminUser(check == null ? 0 : check.modifier) }}

Разлика између датотеке није приказан због своје велике величине
+ 1257 - 563
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue


+ 3 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Прегледај датотеку

@@ -2012,6 +2012,9 @@ export default {
2012 2012
        if(arr[i] == "肝素4ml"){
2013 2013
           strname = "肝素4ml"
2014 2014
         }
2015
+       if(arr[i] == "肝素2ml"){
2016
+          strname = "肝素2ml"
2017
+        }
2015 2018
       }
2016 2019
       return strname
2017 2020
     },

+ 2 - 2
src/xt_pages/hospitalStation/components/chargeDialog.vue Прегледај датотеку

@@ -303,7 +303,7 @@
303 303
           }
304 304
           // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
305 305
 
306
-          this.form.pay_price = (parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000
306
+          this.form.pay_price = ((parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000).toFixed(2)
307 307
         },
308 308
         changedecimal() {
309 309
           // console.log("this.isshow前",this.isshow)
@@ -325,7 +325,7 @@
325 325
             }
326 326
             // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
327 327
             this.tmp_pay = this.form.pay_price
328
-            this.form.pay_price = (parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000
328
+            this.form.pay_price = ((parseFloat(this.form.private_price) * 10000 - parseFloat(this.form.tmp_decimal) * 10000) / 10000).toFixed(2)
329 329
           }
330 330
         },
331 331
         //查询用户当前的余额

+ 2 - 2
src/xt_pages/outpatientCharges/components/chargeDialog.vue Прегледај датотеку

@@ -220,7 +220,7 @@
220 220
         }
221 221
         // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
222 222
 
223
-        this.form.pay_price = (parseFloat(this.form.private_price)*10000 - parseFloat(this.form.tmp_decimal)*10000)/10000
223
+        this.form.pay_price = ((parseFloat(this.form.private_price)*10000 - parseFloat(this.form.tmp_decimal)*10000)/10000).toFixed(2)
224 224
       },
225 225
       changedecimal(){
226 226
         console.log("this.form.dec_way前",this.form.dec_way)
@@ -242,7 +242,7 @@
242 242
           }
243 243
           // this.form.private_price = parseFloat(this.form.tmp_decimal) + parseFloat(this.form.pay_price)
244 244
           this.tmp_pay = this.form.pay_price
245
-          this.form.pay_price = (parseFloat(this.form.private_price)*10000 - parseFloat(this.form.tmp_decimal)*10000)/10000
245
+          this.form.pay_price = ((parseFloat(this.form.private_price)*10000 - parseFloat(this.form.tmp_decimal)*10000)/10000).toFixed(2)
246 246
         }
247 247
       },
248 248
       //查询用户当前的余额

+ 1 - 1
src/xt_pages/stock/cancelStockOrderAdd.vue Прегледај датотеку

@@ -643,7 +643,7 @@ export default {
643 643
       if (keyword != undefined) {
644 644
         key = keyword
645 645
       }
646
-    postSearchGoodList(key).then(response => {
646
+    postSearchGoodList(key,this.storehouse_id).then(response => {
647 647
         if (response.data.state == 1) {
648 648
             var list = response.data.data.list
649 649
            

+ 1 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue Прегледај датотеку

@@ -643,7 +643,7 @@
643 643
         if (keyword != undefined) {
644 644
           key = keyword
645 645
         }
646
-        postSearchGoodList(key).then(response => {
646
+        postSearchGoodList(key,this.storehouse_id).then(response => {
647 647
           if (response.data.state == 1) {
648 648
            
649 649
              var list = response.data.data.list

+ 1 - 1
src/xt_pages/stock/drugs/cancelDrugStockOrderAdd.vue Прегледај датотеку

@@ -640,7 +640,7 @@ export default {
640 640
           key = keyword
641 641
         }
642 642
         let searchArray = [];
643
-        postSearchDrugList(key).then(response => {
643
+        postSearchDrugList(key,this.storehouse_id).then(response => {
644 644
           if (response.data.state == 1) {
645 645
             searchArray = response.data.data.list;
646 646
             

+ 1 - 1
src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue Прегледај датотеку

@@ -641,7 +641,7 @@
641 641
           key = keyword
642 642
         }
643 643
         let searchArray = [];
644
-        postSearchDrugList(key).then(response => {
644
+        postSearchDrugList(key,this.storehouse_id).then(response => {
645 645
           if (response.data.state == 1) {
646 646
             searchArray = response.data.data.list;
647 647
             

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Прегледај датотеку

@@ -829,7 +829,7 @@
829 829
           key = keyword
830 830
         }
831 831
         let searchArray = [];
832
-        postSearchDrugList(key).then(response => {
832
+        postSearchDrugList(key,this.storehouse_id).then(response => {
833 833
           if (response.data.state == 1) {
834 834
             searchArray = response.data.data.list;
835 835
             

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Прегледај датотеку

@@ -848,7 +848,7 @@ export default {
848 848
           key = keyword
849 849
         }
850 850
         let searchArray = [];
851
-        postSearchDrugList(key).then(response => {
851
+        postSearchDrugList(key,this.storehouse_id).then(response => {
852 852
           if (response.data.state == 1) {
853 853
              searchArray = response.data.data.list;
854 854
              var list = response.data.data.list

+ 6 - 5
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Прегледај датотеку

@@ -119,7 +119,7 @@
119 119
           </el-table-column>
120 120
 
121 121
 
122
-          <!-- <el-table-column width="150" align="center">
122
+          <el-table-column width="150" align="center">
123 123
             <template slot="header" slot-scope="scope">
124 124
               <span>剩余库存</span>
125 125
             </template>
@@ -138,7 +138,7 @@
138 138
                 </div>
139 139
               </el-form-item>
140 140
             </template>
141
-          </el-table-column> -->
141
+          </el-table-column>
142 142
           
143 143
           <el-table-column width="200" align="center">
144 144
             <template slot="header" slot-scope="scope">
@@ -152,6 +152,7 @@
152 152
               >
153 153
                 <div style="display:flex;">
154 154
                   <el-input
155
+                   @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_number,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
155 156
                     oninput="value=value.replace(/\D|^0/g,'')"
156 157
                     style="width:80px"
157 158
                     placeholder="请输入出库数量"
@@ -709,7 +710,7 @@ export default {
709 710
           key = keyword
710 711
         }
711 712
         let searchArray = [];
712
-        postSearchDrugList(key).then(response => {
713
+        postSearchDrugList(key,this.storehouse_id).then(response => {
713 714
           if (response.data.state == 1) {
714 715
             searchArray = response.data.data.list;
715 716
              var list = response.data.data.list
@@ -920,7 +921,7 @@ export default {
920 921
       return total
921 922
     },
922 923
     getSupplyCount(count,max_unit,min_number,index,total_count,max_unit_fisrt,min_unit_fisrt){
923
-     
924
+   
924 925
       var count_total = 0
925 926
       if(max_unit == max_unit_fisrt){
926 927
         count_total = count * min_number
@@ -929,7 +930,7 @@ export default {
929 930
       if(max_unit == min_unit_fisrt){
930 931
         count_total = count 
931 932
       }
932
-
933
+    
933 934
       if(count_total > total_count){
934 935
         this.$message.error("出库数量不能大于剩余库存")
935 936
         for(let i=0;i<this.recordInfo.recordData.length;i++){

+ 25 - 17
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Прегледај датотеку

@@ -126,7 +126,7 @@
126 126
                   </el-form-item>
127 127
               </template>
128 128
           </el-table-column> -->
129
-<!--          
129
+         
130 130
          <el-table-column width="150" align="center">
131 131
             <template slot="header" slot-scope="scope">
132 132
               <span>剩余库存</span>
@@ -146,7 +146,7 @@
146 146
                 </div>
147 147
               </el-form-item>
148 148
             </template>
149
-          </el-table-column> -->
149
+          </el-table-column> 
150 150
            <el-table-column width="200" align="center">
151 151
             <template slot="header" slot-scope="scope">
152 152
               <span>出库数量<span style="color: red">*</span></span>
@@ -165,7 +165,7 @@
165 165
                     placeholder="请输入出库数量"
166 166
                     type="number"
167 167
                     v-model="scope.row.count"
168
-
168
+                    @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_number,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
169 169
                   ></el-input>
170 170
                   <el-select v-model="scope.row.count_unit" filterable placeholder="请选择单位" style="width:80px" :disabled="unitShow">
171 171
                     <el-option
@@ -340,7 +340,7 @@
340 340
 <script>
341 341
   import { uParseTime } from '@/utils/tools'
342 342
 
343
-  import { deleteDrugWarehouseOutInfo, editDrugWarehouseoutInfo, getDrugWarehouseOutInfo,GetAllConfig,GetAllDrugInfoByID,getDrugBatchNumber } from '@/api/drug/drug_stock'
343
+  import { deleteDrugWarehouseOutInfo, editDrugWarehouseoutInfo, getDrugWarehouseOutInfo,GetAllConfigOne,GetAllDrugInfoByID,getDrugBatchNumber } from '@/api/drug/drug_stock'
344 344
   import BreadCrumb from '../../components/bread-crumb'
345 345
   import DrugsStockDialog from './drugsStockDialog/index'
346 346
   import {postSearchDrugList } from "@/api/data"
@@ -469,21 +469,21 @@
469 469
           spinner: "el-icon-loading",
470 470
           background: "rgba(0, 0, 0, 0.7)"
471 471
         });
472
-        GetAllConfig().then(response => {
472
+        GetAllConfigOne().then(response => {
473 473
           if (response.data.state == 0) {
474 474
             this.$message.error(response.data.msg);
475 475
             return false;
476 476
           } else {
477 477
             this.manufacturer = response.data.data.manufacturer;
478 478
             this.dealer = response.data.data.dealer;
479
-            for(let i = 0; i<  response.data.data.drugs.length;i++){
480
-              this.goodType.push(response.data.data.drugs[i])
481
-              if(response.data.data.drugs[i].drug_specs != null) {
482
-                for (let b = 0; b < response.data.data.drugs[i].drug_specs.length; b++) {
483
-                  this.goodInfo.push(response.data.data.drugs[i].drug_specs[b])
484
-                }
485
-              }
486
-            }
479
+            // for(let i = 0; i<  response.data.data.drugs.length;i++){
480
+            //   this.goodType.push(response.data.data.drugs[i])
481
+            //   if(response.data.data.drugs[i].drug_specs != null) {
482
+            //     for (let b = 0; b < response.data.data.drugs[i].drug_specs.length; b++) {
483
+            //       this.goodInfo.push(response.data.data.drugs[i].drug_specs[b])
484
+            //     }
485
+            //   }
486
+            // }
487 487
             this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
488 488
             this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
489 489
           }
@@ -752,11 +752,17 @@
752 752
             var manulist = response.data.data.manulist
753 753
             this.manufacturerList = manulist
754 754
             this.dealerList =  response.data.data.dealerList
755
+           
755 756
             for (let i = 0; i < response.data.data.list.length; i++) {
757
+
756 758
               response.data.data.list[i].drug_name = response.data.data.list[i].drug.drug_name,
757 759
               response.data.data.list[i].drug_type = response.data.data.list[i].drug.drug_type
758 760
               response.data.data.list[i].name = response.data.data.list[i].drug.dose + response.data.data.list[i].drug.dose_unit +"*"+response.data.data.list[i].drug.min_number+response.data.data.list[i].drug.min_unit + "/" + response.data.data.list[i].drug.max_unit
759
-              if(response.data.data.list[i].number == "0" || response.data.data.list[i].number == 0){
761
+              if(response.data.data.list[i].count%response.data.data.list[i].drug.min_number == 0){
762
+                 response.data.data.list[i].count = response.data.data.list[i].count/response.data.data.list[i].drug.min_number
763
+                 response.data.data.list[i].count_unit = response.data.data.list[i].drug.max_unit
764
+              }
765
+             if(response.data.data.list[i].number == "0" || response.data.data.list[i].number == 0){
760 766
                   response.data.data.list[i].number = ""
761 767
               }else{
762 768
                 response.data.data.list[i].number = response.data.data.list[i].number
@@ -786,6 +792,7 @@
786 792
               response.data.data.list[i].last_price = response.data.data.list[i].last_price
787 793
               this.recordInfo.recordData.push(response.data.data.list[i])
788 794
             }
795
+            console.log("我爱的我的2级大风32323232323",this.recordInfo.recordData)
789 796
              for(let j=0;j<this.recordInfo.recordData.length;j++){
790 797
                for(let i=0;i<manulist.length;i++){
791 798
                   if(this.recordInfo.recordData[j].manufacturer == manulist[i].id){
@@ -798,7 +805,7 @@
798 805
                  }
799 806
                }
800 807
               }
801
-
808
+            console.log("wode 23232323232322323",this.recordInfo.recordData)
802 809
             this.warehouseOut = response.data.data.info
803 810
             this.storehouse_id = response.data.data.info.storehouse_id
804 811
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
@@ -835,7 +842,8 @@
835 842
           key = keyword
836 843
         }
837 844
         let searchArray = [];
838
-        postSearchDrugList(key).then(response => {
845
+      
846
+        postSearchDrugList(key,this.storehouse_id).then(response => {
839 847
           if (response.data.state == 1) {
840 848
             searchArray = response.data.data.list;
841 849
 
@@ -995,7 +1003,7 @@
995 1003
     },
996 1004
     created() {
997 1005
       this.drugTypeList = getDictionaryDataConfig('system','drug_type')
998
-      this.GetConfigInfo()
1006
+      // this.GetConfigInfo()
999 1007
       this.propForm.goodUnit = this.$store.getters.good_unit
1000 1008
       const order_id = this.$route.query.id
1001 1009
       this.GetOrderDetail(order_id)

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue Прегледај датотеку

@@ -759,7 +759,7 @@
759 759
         if (keyword != undefined) {
760 760
           key = keyword
761 761
         }
762
-        postSearchGoodList(key).then(response => {
762
+        postSearchGoodList(key,this.storehouse_id).then(response => {
763 763
           if (response.data.state == 1) {
764 764
            
765 765
              var list = response.data.data.list

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue Прегледај датотеку

@@ -795,7 +795,7 @@ export default {
795 795
         if (keyword != undefined) {
796 796
           key = keyword
797 797
         }
798
-        postSearchGoodList(key).then(response => {
798
+        postSearchGoodList(key,this.storehouse_id).then(response => {
799 799
           if (response.data.state == 1) {
800 800
           
801 801
             var list = response.data.data.list

+ 4 - 3
src/xt_pages/stock/stockOutOrderAdd.vue Прегледај датотеку

@@ -127,7 +127,7 @@
127 127
             </template>
128 128
           </el-table-column>
129 129
           
130
-          <!-- <el-table-column  width="150" align="center">
130
+          <el-table-column  width="150" align="center">
131 131
             <template slot="header" slot-scope="scope">
132 132
               <span>剩余库存</span>
133 133
             </template>
@@ -145,7 +145,7 @@
145 145
               </el-form-item>
146 146
             </template>
147 147
           </el-table-column>
148
-       -->
148
+      
149 149
 
150 150
          <el-table-column  width="150" align="center">
151 151
             <template slot="header" slot-scope="scope">
@@ -158,6 +158,7 @@
158 158
                 style="padding-top: 17px"
159 159
               >
160 160
                 <el-input
161
+                 @input="getSupplyCount(scope.row.count,scope.row.stock_count,scope.$index)"
161 162
                  oninput="value=value.replace(/\D|^0/g,'')"
162 163
                   placeholder="请输入出库数量"
163 164
                   type="number"
@@ -732,7 +733,7 @@ export default {
732 733
         key = keyword
733 734
       }
734 735
 
735
-      postSearchGoodList(key).then(response => {
736
+      postSearchGoodList(key,this.storehouse_id).then(response => {
736 737
         if (response.data.state == 1) {
737 738
             var list = response.data.data.list
738 739
           

+ 4 - 4
src/xt_pages/stock/stockOutOrderEdit.vue Прегледај датотеку

@@ -161,7 +161,7 @@
161 161
             </template>
162 162
           </el-table-column>
163 163
 
164
-          <!-- <el-table-column  width="150" align="center">
164
+           <el-table-column  width="150" align="center">
165 165
             <template slot="header" slot-scope="scope">
166 166
               <span>剩余库存</span>
167 167
             </template>
@@ -178,7 +178,7 @@
178 178
                 ></el-input>
179 179
               </el-form-item>
180 180
             </template>
181
-          </el-table-column> -->
181
+          </el-table-column> 
182 182
 
183 183
           <el-table-column width="150" align="center">
184 184
             <template slot="header" slot-scope="scope">
@@ -187,7 +187,7 @@
187 187
             <template slot-scope="scope">
188 188
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
189 189
                             style="padding-top: 17px">
190
-                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"></el-input>
190
+                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"  @input="getSupplyCount(scope.row.count,scope.row.stock_count,scope.$index)"></el-input>
191 191
               </el-form-item>
192 192
             </template>
193 193
           </el-table-column>
@@ -729,7 +729,7 @@
729 729
         key = keyword
730 730
       }
731 731
 
732
-      postSearchGoodList(key).then(response => {
732
+      postSearchGoodList(key,this.storehouse_id).then(response => {
733 733
         if (response.data.state == 1) {
734 734
 
735 735
             var list = response.data.data.list

+ 12 - 9
src/xt_pages/stock/stockQuery.vue Прегледај датотеку

@@ -37,32 +37,35 @@
37 37
               :value="item.id">
38 38
             </el-option>
39 39
           </el-select> -->
40
-          <!-- <el-date-picker
40
+          <el-date-picker
41 41
             size="small"
42 42
             v-model="start_time"
43 43
             prefix-icon="el-icon-date"
44 44
             :editable="false"
45
-            style="width: 196px;"
45
+            style="width: 150px;"
46 46
             type="date"
47 47
             placeholder="选择日期时间"
48 48
             align="right"
49 49
             format="yyyy-MM-dd"
50 50
             value-format="yyyy-MM-dd"
51 51
             @change="startTimeChange"
52
-           ></el-date-picker>-
52
+            v-if="org_id == 3907 || org_id == 9671"
53
+           ></el-date-picker> 
54
+            <span v-if="org_id == 3907 || org_id == 9671">-</span> 
53 55
             <el-date-picker
54 56
               size="small"
55 57
               v-model="end_time"
56 58
               prefix-icon="el-icon-date"
57 59
               :editable="false"
58
-              style="width: 196px;"
60
+              style="width: 150px;"
59 61
               type="date"
60 62
               placeholder="选择日期时间"
61 63
               align="right"
62 64
               format="yyyy-MM-dd"
63 65
               value-format="yyyy-MM-dd"
64 66
               @change="endTimeChange"
65
-          ></el-date-picker> -->
67
+              v-if="org_id == 3907 || org_id == 9671"
68
+          ></el-date-picker>
66 69
           <!-- <el-input
67 70
             size="small"
68 71
             style="width: 200px;margin-left:10px;"
@@ -148,8 +151,8 @@
148 151
        </el-table-column>
149 152
        <el-table-column label="出库数量" align="center">
150 153
          <template slot-scope="scope">
151
-          <span v-if="org_id == 9675 || org_id == 3907 || org_id == 9583">{{ getAutoCount(scope.row.id) + getOutCount(scope.row.id) }}</span>
152
-          <span v-if="org_id!=9675 && org_id!=3907 && org_id!=9583">
154
+          <span v-if="org_id == 3907 || org_id == 9583">{{ getAutoCount(scope.row.id) + getOutCount(scope.row.id) }}</span>
155
+          <span v-if="org_id!=3907 && org_id!=9583">
153 156
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
154 157
               <td style="border-right: none; border-inline-end: none;text-align: center">
155 158
               {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id) - getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
@@ -161,7 +164,7 @@
161 164
 
162 165
         <el-table-column label="剩余库存量" align="center">
163 166
          <template slot-scope="scope">
164
-           <span v-if="org_id == 9675 || org_id == 3907 || org_id == 9583">
167
+           <span v-if="org_id == 3907 || org_id == 9583">
165 168
              {{
166 169
               getWareInfo(scope.row.xt_warehouse_info) -
167 170
               getAutoCount(scope.row.id) -
@@ -169,7 +172,7 @@
169 172
               getCancelCount(scope.row.id)
170 173
               }}
171 174
           </span>
172
-          <span v-if="org_id!=9675 && org_id!=3907 && org_id!=9583">
175
+          <span v-if="org_id!=3907 && org_id!=9583">
173 176
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
174 177
               <td style="border-right: none; border-inline-end: none;text-align: center">
175 178
                {{getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;&nbsp;