see999 před 4 roky
rodič
revize
ac70a0f6b2

+ 3 - 3
config/dev.env.js Zobrazit soubor

@@ -6,9 +6,9 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  // BASE_API: '"http://localhost:9531"',
9
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9531"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 202 - 110
package-lock.json Zobrazit soubor

@@ -516,9 +516,9 @@
516 516
       "dev": true
517 517
     },
518 518
     "aws4": {
519
-      "version": "1.9.1",
520
-      "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.1.tgz",
521
-      "integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==",
519
+      "version": "1.11.0",
520
+      "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz",
521
+      "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==",
522 522
       "dev": true
523 523
     },
524 524
     "axios": {
@@ -3547,6 +3547,12 @@
3547 3547
         "minimalistic-crypto-utils": "^1.0.0"
3548 3548
       }
3549 3549
     },
3550
+    "emoji-regex": {
3551
+      "version": "7.0.3",
3552
+      "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
3553
+      "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
3554
+      "dev": true
3555
+    },
3550 3556
     "emojis-list": {
3551 3557
       "version": "2.1.0",
3552 3558
       "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz",
@@ -4745,7 +4751,8 @@
4745 4751
         "ansi-regex": {
4746 4752
           "version": "2.1.1",
4747 4753
           "bundled": true,
4748
-          "dev": true
4754
+          "dev": true,
4755
+          "optional": true
4749 4756
         },
4750 4757
         "aproba": {
4751 4758
           "version": "1.2.0",
@@ -4768,13 +4775,15 @@
4768 4775
         "balanced-match": {
4769 4776
           "version": "1.0.0",
4770 4777
           "bundled": true,
4771
-          "dev": true
4778
+          "dev": true,
4779
+          "optional": true
4772 4780
         },
4773 4781
         "brace-expansion": {
4774 4782
           "version": "1.1.11",
4775 4783
           "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
4776 4784
           "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
4777 4785
           "dev": true,
4786
+          "optional": true,
4778 4787
           "requires": {
4779 4788
             "balanced-match": "^1.0.0",
4780 4789
             "concat-map": "0.0.1"
@@ -4790,19 +4799,22 @@
4790 4799
         "code-point-at": {
4791 4800
           "version": "1.1.0",
4792 4801
           "bundled": true,
4793
-          "dev": true
4802
+          "dev": true,
4803
+          "optional": true
4794 4804
         },
4795 4805
         "concat-map": {
4796 4806
           "version": "0.0.1",
4797 4807
           "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
4798 4808
           "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
4799
-          "dev": true
4809
+          "dev": true,
4810
+          "optional": true
4800 4811
         },
4801 4812
         "console-control-strings": {
4802 4813
           "version": "1.1.0",
4803 4814
           "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
4804 4815
           "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
4805
-          "dev": true
4816
+          "dev": true,
4817
+          "optional": true
4806 4818
         },
4807 4819
         "core-util-is": {
4808 4820
           "version": "1.0.2",
@@ -4932,7 +4944,8 @@
4932 4944
         "inherits": {
4933 4945
           "version": "2.0.3",
4934 4946
           "bundled": true,
4935
-          "dev": true
4947
+          "dev": true,
4948
+          "optional": true
4936 4949
         },
4937 4950
         "ini": {
4938 4951
           "version": "1.3.5",
@@ -4946,6 +4959,7 @@
4946 4959
           "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
4947 4960
           "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
4948 4961
           "dev": true,
4962
+          "optional": true,
4949 4963
           "requires": {
4950 4964
             "number-is-nan": "^1.0.0"
4951 4965
           }
@@ -4962,6 +4976,7 @@
4962 4976
           "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
4963 4977
           "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
4964 4978
           "dev": true,
4979
+          "optional": true,
4965 4980
           "requires": {
4966 4981
             "brace-expansion": "^1.1.7"
4967 4982
           }
@@ -4969,13 +4984,15 @@
4969 4984
         "minimist": {
4970 4985
           "version": "0.0.8",
4971 4986
           "bundled": true,
4972
-          "dev": true
4987
+          "dev": true,
4988
+          "optional": true
4973 4989
         },
4974 4990
         "minipass": {
4975 4991
           "version": "2.3.5",
4976 4992
           "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz",
4977 4993
           "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==",
4978 4994
           "dev": true,
4995
+          "optional": true,
4979 4996
           "requires": {
4980 4997
             "safe-buffer": "^5.1.2",
4981 4998
             "yallist": "^3.0.0"
@@ -4996,6 +5013,7 @@
4996 5013
           "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
4997 5014
           "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
4998 5015
           "dev": true,
5016
+          "optional": true,
4999 5017
           "requires": {
5000 5018
             "minimist": "0.0.8"
5001 5019
           }
@@ -5083,7 +5101,8 @@
5083 5101
         "number-is-nan": {
5084 5102
           "version": "1.0.1",
5085 5103
           "bundled": true,
5086
-          "dev": true
5104
+          "dev": true,
5105
+          "optional": true
5087 5106
         },
5088 5107
         "object-assign": {
5089 5108
           "version": "4.1.1",
@@ -5097,6 +5116,7 @@
5097 5116
           "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
5098 5117
           "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
5099 5118
           "dev": true,
5119
+          "optional": true,
5100 5120
           "requires": {
5101 5121
             "wrappy": "1"
5102 5122
           }
@@ -5191,7 +5211,8 @@
5191 5211
         "safe-buffer": {
5192 5212
           "version": "5.1.2",
5193 5213
           "bundled": true,
5194
-          "dev": true
5214
+          "dev": true,
5215
+          "optional": true
5195 5216
         },
5196 5217
         "safer-buffer": {
5197 5218
           "version": "2.1.2",
@@ -5233,6 +5254,7 @@
5233 5254
           "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
5234 5255
           "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
5235 5256
           "dev": true,
5257
+          "optional": true,
5236 5258
           "requires": {
5237 5259
             "code-point-at": "^1.0.0",
5238 5260
             "is-fullwidth-code-point": "^1.0.0",
@@ -5254,6 +5276,7 @@
5254 5276
           "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
5255 5277
           "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
5256 5278
           "dev": true,
5279
+          "optional": true,
5257 5280
           "requires": {
5258 5281
             "ansi-regex": "^2.0.0"
5259 5282
           }
@@ -5301,13 +5324,15 @@
5301 5324
         "wrappy": {
5302 5325
           "version": "1.0.2",
5303 5326
           "bundled": true,
5304
-          "dev": true
5327
+          "dev": true,
5328
+          "optional": true
5305 5329
         },
5306 5330
         "yallist": {
5307 5331
           "version": "3.0.3",
5308 5332
           "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz",
5309 5333
           "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==",
5310
-          "dev": true
5334
+          "dev": true,
5335
+          "optional": true
5311 5336
         }
5312 5337
       }
5313 5338
     },
@@ -5526,9 +5551,9 @@
5526 5551
       }
5527 5552
     },
5528 5553
     "globule": {
5529
-      "version": "1.3.0",
5530
-      "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.0.tgz",
5531
-      "integrity": "sha512-YlD4kdMqRCQHrhVdonet4TdRtv1/sZKepvoxNT4Nrhrp5HI8XFfc8kFlGlBn2myBo80aGp8Eft259mbcUJhgSg==",
5554
+      "version": "1.3.2",
5555
+      "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.2.tgz",
5556
+      "integrity": "sha512-7IDTQTIu2xzXkT+6mlluidnWo+BypnbSoEVVQCGfzqnl5Ik8d3e1d4wycb8Rj9tWW+Z39uPWsdlquqiqPCd/pA==",
5532 5557
       "dev": true,
5533 5558
       "requires": {
5534 5559
         "glob": "~7.1.1",
@@ -5578,13 +5603,33 @@
5578 5603
       "dev": true
5579 5604
     },
5580 5605
     "har-validator": {
5581
-      "version": "5.1.3",
5582
-      "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
5583
-      "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
5606
+      "version": "5.1.5",
5607
+      "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
5608
+      "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
5584 5609
       "dev": true,
5585 5610
       "requires": {
5586
-        "ajv": "^6.5.5",
5611
+        "ajv": "^6.12.3",
5587 5612
         "har-schema": "^2.0.0"
5613
+      },
5614
+      "dependencies": {
5615
+        "ajv": {
5616
+          "version": "6.12.6",
5617
+          "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
5618
+          "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
5619
+          "dev": true,
5620
+          "requires": {
5621
+            "fast-deep-equal": "^3.1.1",
5622
+            "fast-json-stable-stringify": "^2.0.0",
5623
+            "json-schema-traverse": "^0.4.1",
5624
+            "uri-js": "^4.2.2"
5625
+          }
5626
+        },
5627
+        "fast-deep-equal": {
5628
+          "version": "3.1.3",
5629
+          "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
5630
+          "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
5631
+          "dev": true
5632
+        }
5588 5633
       }
5589 5634
     },
5590 5635
     "has": {
@@ -6160,9 +6205,9 @@
6160 6205
       "dev": true
6161 6206
     },
6162 6207
     "in-publish": {
6163
-      "version": "2.0.0",
6164
-      "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz",
6165
-      "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=",
6208
+      "version": "2.0.1",
6209
+      "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
6210
+      "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==",
6166 6211
       "dev": true
6167 6212
     },
6168 6213
     "indent-string": {
@@ -7785,9 +7830,9 @@
7785 7830
       }
7786 7831
     },
7787 7832
     "node-sass": {
7788
-      "version": "4.13.1",
7789
-      "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.13.1.tgz",
7790
-      "integrity": "sha512-TTWFx+ZhyDx1Biiez2nB0L3YrCZ/8oHagaDalbuBSlqXgUPsdkUSzJsVxeDO9LtPB49+Fh3WQl3slABo6AotNw==",
7833
+      "version": "4.14.1",
7834
+      "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz",
7835
+      "integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==",
7791 7836
       "dev": true,
7792 7837
       "requires": {
7793 7838
         "async-foreach": "^0.1.3",
@@ -7804,7 +7849,7 @@
7804 7849
         "node-gyp": "^3.8.0",
7805 7850
         "npmlog": "^4.0.0",
7806 7851
         "request": "^2.88.0",
7807
-        "sass-graph": "^2.2.4",
7852
+        "sass-graph": "2.2.5",
7808 7853
         "stdout-stream": "^1.4.0",
7809 7854
         "true-case-path": "^1.0.2"
7810 7855
       },
@@ -7845,9 +7890,9 @@
7845 7890
           }
7846 7891
         },
7847 7892
         "lodash": {
7848
-          "version": "4.17.15",
7849
-          "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
7850
-          "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
7893
+          "version": "4.17.21",
7894
+          "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
7895
+          "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
7851 7896
           "dev": true
7852 7897
         },
7853 7898
         "strip-ansi": {
@@ -11309,9 +11354,9 @@
11309 11354
       "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM="
11310 11355
     },
11311 11356
     "psl": {
11312
-      "version": "1.7.0",
11313
-      "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz",
11314
-      "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==",
11357
+      "version": "1.8.0",
11358
+      "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
11359
+      "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==",
11315 11360
       "dev": true
11316 11361
     },
11317 11362
     "public-encrypt": {
@@ -11825,9 +11870,9 @@
11825 11870
       }
11826 11871
     },
11827 11872
     "request": {
11828
-      "version": "2.88.0",
11829
-      "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz",
11830
-      "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==",
11873
+      "version": "2.88.2",
11874
+      "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
11875
+      "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
11831 11876
       "dev": true,
11832 11877
       "requires": {
11833 11878
         "aws-sign2": "~0.7.0",
@@ -11837,7 +11882,7 @@
11837 11882
         "extend": "~3.0.2",
11838 11883
         "forever-agent": "~0.6.1",
11839 11884
         "form-data": "~2.3.2",
11840
-        "har-validator": "~5.1.0",
11885
+        "har-validator": "~5.1.3",
11841 11886
         "http-signature": "~1.2.0",
11842 11887
         "is-typedarray": "~1.0.0",
11843 11888
         "isstream": "~0.1.2",
@@ -11847,7 +11892,7 @@
11847 11892
         "performance-now": "^2.1.0",
11848 11893
         "qs": "~6.5.2",
11849 11894
         "safe-buffer": "^5.1.2",
11850
-        "tough-cookie": "~2.4.3",
11895
+        "tough-cookie": "~2.5.0",
11851 11896
         "tunnel-agent": "^0.6.0",
11852 11897
         "uuid": "^3.3.2"
11853 11898
       }
@@ -12035,112 +12080,167 @@
12035 12080
       "dev": true
12036 12081
     },
12037 12082
     "sass-graph": {
12038
-      "version": "2.2.4",
12039
-      "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz",
12040
-      "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=",
12083
+      "version": "2.2.5",
12084
+      "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz",
12085
+      "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==",
12041 12086
       "dev": true,
12042 12087
       "requires": {
12043 12088
         "glob": "^7.0.0",
12044 12089
         "lodash": "^4.0.0",
12045 12090
         "scss-tokenizer": "^0.2.3",
12046
-        "yargs": "^7.0.0"
12091
+        "yargs": "^13.3.2"
12047 12092
       },
12048 12093
       "dependencies": {
12049 12094
         "ansi-regex": {
12050
-          "version": "2.1.1",
12051
-          "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
12052
-          "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
12095
+          "version": "4.1.0",
12096
+          "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
12097
+          "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
12053 12098
           "dev": true
12054 12099
         },
12100
+        "ansi-styles": {
12101
+          "version": "3.2.1",
12102
+          "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
12103
+          "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
12104
+          "dev": true,
12105
+          "requires": {
12106
+            "color-convert": "^1.9.0"
12107
+          }
12108
+        },
12055 12109
         "camelcase": {
12056
-          "version": "3.0.0",
12057
-          "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
12058
-          "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=",
12110
+          "version": "5.3.1",
12111
+          "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
12112
+          "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
12059 12113
           "dev": true
12060 12114
         },
12061 12115
         "cliui": {
12062
-          "version": "3.2.0",
12063
-          "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz",
12064
-          "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=",
12116
+          "version": "5.0.0",
12117
+          "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
12118
+          "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
12065 12119
           "dev": true,
12066 12120
           "requires": {
12067
-            "string-width": "^1.0.1",
12068
-            "strip-ansi": "^3.0.1",
12069
-            "wrap-ansi": "^2.0.0"
12121
+            "string-width": "^3.1.0",
12122
+            "strip-ansi": "^5.2.0",
12123
+            "wrap-ansi": "^5.1.0"
12070 12124
           }
12071 12125
         },
12072
-        "is-fullwidth-code-point": {
12073
-          "version": "1.0.0",
12074
-          "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
12075
-          "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
12126
+        "find-up": {
12127
+          "version": "3.0.0",
12128
+          "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
12129
+          "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
12076 12130
           "dev": true,
12077 12131
           "requires": {
12078
-            "number-is-nan": "^1.0.0"
12132
+            "locate-path": "^3.0.0"
12079 12133
           }
12080 12134
         },
12081
-        "os-locale": {
12082
-          "version": "1.4.0",
12083
-          "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
12084
-          "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=",
12135
+        "get-caller-file": {
12136
+          "version": "2.0.5",
12137
+          "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
12138
+          "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
12139
+          "dev": true
12140
+        },
12141
+        "locate-path": {
12142
+          "version": "3.0.0",
12143
+          "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
12144
+          "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
12085 12145
           "dev": true,
12086 12146
           "requires": {
12087
-            "lcid": "^1.0.0"
12147
+            "p-locate": "^3.0.0",
12148
+            "path-exists": "^3.0.0"
12149
+          }
12150
+        },
12151
+        "p-limit": {
12152
+          "version": "2.3.0",
12153
+          "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
12154
+          "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
12155
+          "dev": true,
12156
+          "requires": {
12157
+            "p-try": "^2.0.0"
12158
+          }
12159
+        },
12160
+        "p-locate": {
12161
+          "version": "3.0.0",
12162
+          "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
12163
+          "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
12164
+          "dev": true,
12165
+          "requires": {
12166
+            "p-limit": "^2.0.0"
12088 12167
           }
12089 12168
         },
12169
+        "p-try": {
12170
+          "version": "2.2.0",
12171
+          "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
12172
+          "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
12173
+          "dev": true
12174
+        },
12175
+        "require-main-filename": {
12176
+          "version": "2.0.0",
12177
+          "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
12178
+          "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
12179
+          "dev": true
12180
+        },
12090 12181
         "string-width": {
12091
-          "version": "1.0.2",
12092
-          "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
12093
-          "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
12182
+          "version": "3.1.0",
12183
+          "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
12184
+          "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
12094 12185
           "dev": true,
12095 12186
           "requires": {
12096
-            "code-point-at": "^1.0.0",
12097
-            "is-fullwidth-code-point": "^1.0.0",
12098
-            "strip-ansi": "^3.0.0"
12187
+            "emoji-regex": "^7.0.1",
12188
+            "is-fullwidth-code-point": "^2.0.0",
12189
+            "strip-ansi": "^5.1.0"
12099 12190
           }
12100 12191
         },
12101 12192
         "strip-ansi": {
12102
-          "version": "3.0.1",
12103
-          "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
12104
-          "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
12193
+          "version": "5.2.0",
12194
+          "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
12195
+          "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
12105 12196
           "dev": true,
12106 12197
           "requires": {
12107
-            "ansi-regex": "^2.0.0"
12198
+            "ansi-regex": "^4.1.0"
12108 12199
           }
12109 12200
         },
12110
-        "which-module": {
12111
-          "version": "1.0.0",
12112
-          "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz",
12113
-          "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=",
12201
+        "wrap-ansi": {
12202
+          "version": "5.1.0",
12203
+          "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
12204
+          "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
12205
+          "dev": true,
12206
+          "requires": {
12207
+            "ansi-styles": "^3.2.0",
12208
+            "string-width": "^3.0.0",
12209
+            "strip-ansi": "^5.0.0"
12210
+          }
12211
+        },
12212
+        "y18n": {
12213
+          "version": "4.0.1",
12214
+          "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz",
12215
+          "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==",
12114 12216
           "dev": true
12115 12217
         },
12116 12218
         "yargs": {
12117
-          "version": "7.1.0",
12118
-          "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz",
12119
-          "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=",
12219
+          "version": "13.3.2",
12220
+          "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz",
12221
+          "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
12120 12222
           "dev": true,
12121 12223
           "requires": {
12122
-            "camelcase": "^3.0.0",
12123
-            "cliui": "^3.2.0",
12124
-            "decamelize": "^1.1.1",
12125
-            "get-caller-file": "^1.0.1",
12126
-            "os-locale": "^1.4.0",
12127
-            "read-pkg-up": "^1.0.1",
12224
+            "cliui": "^5.0.0",
12225
+            "find-up": "^3.0.0",
12226
+            "get-caller-file": "^2.0.1",
12128 12227
             "require-directory": "^2.1.1",
12129
-            "require-main-filename": "^1.0.1",
12228
+            "require-main-filename": "^2.0.0",
12130 12229
             "set-blocking": "^2.0.0",
12131
-            "string-width": "^1.0.2",
12132
-            "which-module": "^1.0.0",
12133
-            "y18n": "^3.2.1",
12134
-            "yargs-parser": "^5.0.0"
12230
+            "string-width": "^3.0.0",
12231
+            "which-module": "^2.0.0",
12232
+            "y18n": "^4.0.0",
12233
+            "yargs-parser": "^13.1.2"
12135 12234
           }
12136 12235
         },
12137 12236
         "yargs-parser": {
12138
-          "version": "5.0.0",
12139
-          "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz",
12140
-          "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=",
12237
+          "version": "13.1.2",
12238
+          "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
12239
+          "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
12141 12240
           "dev": true,
12142 12241
           "requires": {
12143
-            "camelcase": "^3.0.0"
12242
+            "camelcase": "^5.0.0",
12243
+            "decamelize": "^1.2.0"
12144 12244
           }
12145 12245
         }
12146 12246
       }
@@ -13689,21 +13789,13 @@
13689 13789
       "dev": true
13690 13790
     },
13691 13791
     "tough-cookie": {
13692
-      "version": "2.4.3",
13693
-      "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",
13694
-      "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==",
13792
+      "version": "2.5.0",
13793
+      "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
13794
+      "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
13695 13795
       "dev": true,
13696 13796
       "requires": {
13697
-        "psl": "^1.1.24",
13698
-        "punycode": "^1.4.1"
13699
-      },
13700
-      "dependencies": {
13701
-        "punycode": {
13702
-          "version": "1.4.1",
13703
-          "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
13704
-          "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
13705
-          "dev": true
13706
-        }
13797
+        "psl": "^1.1.28",
13798
+        "punycode": "^2.1.1"
13707 13799
       }
13708 13800
     },
13709 13801
     "traverse": {

+ 1 - 1
package.json Zobrazit soubor

@@ -102,7 +102,7 @@
102 102
     "html-webpack-plugin": "2.30.1",
103 103
     "lint-staged": "7.2.0",
104 104
     "node-notifier": "5.1.2",
105
-    "node-sass": "^4.13.1",
105
+    "node-sass": "^4.14.1",
106 106
     "optimize-css-assets-webpack-plugin": "3.2.0",
107 107
     "ora": "1.3.0",
108 108
     "portfinder": "1.0.13",

binární
src/xt_pages/.DS_Store Zobrazit soubor


+ 1 - 2
src/xt_pages/data/components/addInspection.vue Zobrazit soubor

@@ -65,7 +65,7 @@
65 65
             <el-form>
66 66
                 <el-table :data="tableData" border  style="100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row ref="tab">
67 67
                     <el-table-column align="center" prop="name" label="分类" width="120">
68
-                        <template slot-scope="scope">{{getId(scope.row.cost_classify)}}</template>
68
+                        <template slot-scope="scope">{{getId(scope.row.statistical_classification)}}</template>
69 69
                     </el-table-column>
70 70
                     <el-table-column align="center" prop="name" label="组套明细" width="120">
71 71
                         <template slot-scope="scope">{{scope.row.project_name}}</template>
@@ -253,7 +253,6 @@ export default {
253 253
          console.log("33333",this.tableData)
254 254
       
255 255
          
256
-       
257 256
             const params = {
258 257
               id:this.form.project_detail,
259 258
               number:parseInt(this.form.number)

+ 1 - 1
src/xt_pages/data/specialDictionary.vue Zobrazit soubor

@@ -21,7 +21,7 @@
21 21
           <!--<manufacturer></manufacturer>-->
22 22
           <manufacturer></manufacturer>
23 23
         </el-tab-pane>
24
-        <el-tab-pane label="供应商" name="6">
24
+        <el-tab-pane label="经销商" name="6">
25 25
           <!--<supplier></supplier>-->
26 26
           <dealer></dealer>
27 27
         </el-tab-pane>

+ 1 - 0
src/xt_pages/dialysis/PatientBox.vue Zobrazit soubor

@@ -240,6 +240,7 @@ export default {
240 240
     },
241 241
     patientStateVal:Number
242 242
   },
243
+ 
243 244
   methods: {
244 245
     stateColor: function(schedual) {
245 246
       var state = this.computeState(schedual);

+ 5 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Zobrazit soubor

@@ -640,7 +640,10 @@
640 640
                             record.prescription &&
641 641
                             record.prescription.dialyzer_perfusion_apparatus
642 642
                               ? record.prescription.dialyzer_perfusion_apparatus
643
-                              : "/"
643
+                              : ""
644
+                          }}
645
+                          {{
646
+                            record.prescription && record.prescription.dialysis_dialyszers?record.prescription.dialysis_dialyszers:"/"
644 647
                           }}
645 648
                         </div>
646 649
                       </div>
@@ -650,7 +653,7 @@
650 653
                           class="under_line"
651 654
                           style="width: 70px;text-align: center"
652 655
                         >
653
-                          /
656
+                          {{record.prescription && record.prescription.dialysis_irrigation?record.prescription.dialysis_irrigation:"/"}}
654 657
                         </div>
655 658
                       </div>
656 659
                       <div class="inline_block" style="flex:1;">

+ 1 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Zobrazit soubor

@@ -1697,6 +1697,7 @@
1697 1697
 
1698 1698
 
1699 1699
           //获取最后一次血管通路
1700
+        //   console.log("最后一次血管通路",this.predialysis)
1700 1701
         //  if(this.predialysis!=null){
1701 1702
         //     if(this.lastAssessment!=null){
1702 1703
         //       var blood_id = 0

+ 3 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Zobrazit soubor

@@ -334,13 +334,14 @@
334 334
                   <div class="inline_block" style="flex:1;">
335 335
                     透析(滤)器:
336 336
                     <div class="under_line" style="width: 100px;text-align: center">
337
-                      {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
337
+                      {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
338
+                      {{prescription.dialysis_dialyszers?prescription.dialysis_dialyszers:"/"}}
338 339
                     </div>
339 340
                   </div>
340 341
                   <div class="inline_block" style="flex:1;">
341 342
                     灌流器:
342 343
                     <div class="under_line" style="width: 70px;text-align: center">
343
-                      /
344
+                     {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:'/'}}
344 345
                     </div>
345 346
                   </div>
346 347
                   <div class="inline_block" style="flex:1;">

+ 2 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue Zobrazit soubor

@@ -83,7 +83,7 @@
83 83
                     <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
84 84
                 </el-table-column>
85 85
                 <el-table-column align="center" prop="name" label="医生" width="80">
86
-                    <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
86
+                    <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
87 87
                 </el-table-column>
88 88
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
89 89
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
@@ -182,7 +182,7 @@
182 182
                       <div>{{ getRegister(form.register_type) }}</div>
183 183
                     </el-form-item>
184 184
                     <el-form-item label="医生:"  prop="doctor" :validate-event="is_Name" >
185
-                      <div>{{ getDoctor(form.admin_user_id) }}</div>
185
+                      <div>{{ getDoctor(form.doctor) }}</div>
186 186
                     </el-form-item>
187 187
                     <el-form-item label="科室:"  prop="department" :validate-event="is_Name">
188 188
                       <div>{{ getDepartMent(form.departments) }}</div>

+ 32 - 24
src/xt_pages/stock/Dialog/goodInfoDailog.vue Zobrazit soubor

@@ -54,15 +54,7 @@
54 54
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
55 55
             </el-form-item>
56 56
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
57
-              <!-- <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择" filterable>
58
-                <el-option
59
-                  v-for="(item,index) in form.manufacturers"
60
-                  :key="index"
61
-                  :label="item.manufacturer_name"
62
-                  :value="item.id">
63
-                </el-option>
64
-              </el-select> -->
65
-
57
+             
66 58
                <el-select v-model="form.manufacturer" style="width:100%;" filterable placeholder="请选择">
67 59
                   <el-option
68 60
                     v-for="(item,index) in form.manufacturers"
@@ -131,23 +123,26 @@
131 123
                 </el-option>
132 124
               </el-select>
133 125
             </el-form-item>
134
-            <!--<el-form-item label="代理商 : " prop="name" style="visibility: hidden;">-->
135
-            <!--<el-input style="width:160px;" v-model="form.agent" placeholder="" maxlength="30"></el-input>-->
136
-            <!--</el-form-item>-->
137
-
138
-
126
+          
139 127
             <el-form-item label="状态 : " prop="good_status">
140
-              <!--<el-radio-group v-model="form.good_status">-->
141
-              <!--<el-radio :label="1">停用</el-radio>-->
142
-              <!--<el-radio :label="2">收费</el-radio>-->
143
-              <!--</el-radio-group>-->
144
-
145 128
               <el-checkbox-group v-model="good_status">
146 129
                 <el-checkbox label="停用">停用</el-checkbox>
147 130
                 <el-checkbox label="收费">收费</el-checkbox>
148 131
               </el-checkbox-group>
149 132
             </el-form-item>
150 133
 
134
+           <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
135
+             
136
+               <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
137
+                  <el-option
138
+                    v-for="(item,index) in dealer"
139
+                    :key="index"
140
+                    :label="item.dealer_name"
141
+                    :value="item.id">
142
+                  </el-option>
143
+              </el-select>
144
+           </el-form-item>
145
+
151 146
 
152 147
             <el-form-item label="备注 : " prop="name" style="width:100%;">
153 148
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
@@ -227,9 +222,7 @@
227 222
           <el-form-item label="代理商:" prop="agent">
228 223
             <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
229 224
           </el-form-item>
230
-          <!--<el-form-item label="耗材编码:" prop="name">-->
231
-          <!--<el-input v-model="form.name" style="width:160px;" placeholder="" maxlength="30"></el-input>-->
232
-          <!--</el-form-item>-->
225
+         
233 226
           <el-form-item label="耗材编号:" prop="good_number">
234 227
             <el-input v-model="form.good_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
235 228
           </el-form-item>
@@ -250,7 +243,8 @@
250 243
 
251 244
 <script>
252 245
   import { getDictionaryDataConfig,getDataConfig } from '@/utils/data'
253
-  import { getManufacturerList } from "@/api/stock";
246
+  import { getManufacturerList,GetAllConfig } from "@/api/stock";
247
+
254 248
   export default {
255 249
     name: 'goodInfoDailog',
256 250
     data() {
@@ -332,7 +326,8 @@
332 326
             { required: true, message: '请输入库存警戒', trigger: 'blur' }
333 327
           ]
334 328
 
335
-        }
329
+        },
330
+        dealer:[]
336 331
       }
337 332
     },
338 333
     props: {
@@ -480,6 +475,17 @@
480 475
            console.log("列表2222222",manufacturerList)
481 476
            this.manufacturerList = manufacturerList
482 477
         })
478
+      },
479
+      GetAllConfig(){
480
+        GetAllConfig().then(response => {
481
+        if (response.data.state == 0) {
482
+          this.$message.error(response.data.msg);
483
+          return false;
484
+        } else {
485
+          this.dealer = response.data.data.dealer;
486
+          console.log("经销傻姑娘",this.dealer)
487
+        }
488
+       });
483 489
       }
484 490
     },
485 491
     watch: {
@@ -494,6 +500,8 @@
494 500
     },
495 501
     created(){
496 502
       this.getlist()
503
+      //获取所有经销商
504
+      this.GetAllConfig()
497 505
     }
498 506
   }
499 507
 

+ 1 - 1
src/xt_pages/stock/stockInOrder.vue Zobrazit soubor

@@ -1130,7 +1130,7 @@ export default {
1130 1130
       const ids = [];
1131 1131
       ids.push(this.WarehouseInfo.warehouse.id);
1132 1132
       const idStr = ids.join(",");
1133
-
1133
+     
1134 1134
       const params = {
1135 1135
         ids: idStr
1136 1136
       };

+ 479 - 10
src/xt_pages/stock/stockOutOrder.vue Zobrazit soubor

@@ -207,8 +207,8 @@
207 207
         </div>
208 208
 
209 209
         <div class="filter-container" style="margin-top: 10px">
210
-         <!-- <el-button size="small" icon="el-icon-edit" @click="editRecord" v-if="warehousingOutInfo.info.is_sys != 1">编辑</el-button>
211
-         <el-button size="small" icon="el-icon-delete" @click="deleteRecord" v-if="warehousingOutInfo.info.is_sys != 1">删除</el-button> -->
210
+         <el-button size="small" icon="el-icon-edit" @click="editRecord(warehousingOutInfo.info.id)" v-if="warehousingOutInfo.info.is_sys != 1">编辑</el-button>
211
+         <el-button size="small" icon="el-icon-delete" @click="deleteRecord" v-if="warehousingOutInfo.info.is_sys != 1">删除</el-button>
212 212
         </div>
213 213
 
214 214
 
@@ -369,7 +369,148 @@
369 369
 
370 370
 
371 371
   <!-- 编辑 -->
372
-  
372
+   <el-dialog
373
+      title="编辑出库单"
374
+      :visible.sync="editDialogVisible"
375
+      width="80%">
376
+      <span>
377
+
378
+        <div style="margin-bottom:10px">
379
+          <label class="title"><span class="name">出库时间</span> : </label>
380
+          <el-date-picker size="small" v-model="warehouse_out_time" prefix-icon="el-icon-date" :editable="false"
381
+                          style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
382
+                          value-format="yyyy-MM-dd"></el-date-picker>
383
+          <label class="title" style="margin-left:10px;"><span class="name">经 销 商</span> : </label>
384
+          <el-select size="small" v-model="form.dealer" clearable placeholder="请选择经销商" @change="changeDealer">
385
+            <el-option
386
+              v-for="(option, index) in dealer"
387
+              :key="index"
388
+              :label="option.dealer_name"
389
+              :value="option.id">
390
+            </el-option>
391
+          </el-select>
392
+          <label class="title" style="margin-left:10px;"><span class="name">厂商</span> : </label>
393
+
394
+          <el-select size="small" v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer">
395
+            <el-option
396
+              v-for="(option, index) in manufacturer"
397
+              :key="index"
398
+              :label="option.manufacturer_name"
399
+              :value="option.id">
400
+            </el-option>
401
+          </el-select>
402
+        </div>
403
+
404
+
405
+      <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
406
+        <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
407
+                  max-height="450" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
408
+        >
409
+
410
+          <el-table-column min-width="35" align="center">
411
+
412
+            <template slot="header" slot-scope="scope">
413
+              <span>耗材类型<span style="color: red">*</span></span>
414
+            </template>
415
+
416
+            <template slot-scope="scope">
417
+              <el-form-item style="padding-top: 15px">
418
+                <el-input placeholder="请输入商品类型" v-model="scope.row.good_type_id"
419
+                          :value="typeName(scope.row.good_type_id)"
420
+                          @focus="showDialog(scope.$index, scope.row)"></el-input>
421
+              </el-form-item>
422
+            </template>
423
+          </el-table-column>
424
+          
425
+          <el-table-column min-width="35" align="center">
426
+            <template slot="header" slot-scope="scope">
427
+              <span>规格名称<span style="color: red">*</span></span>
428
+            </template>
429
+            <template slot-scope="scope">
430
+
431
+              <el-form-item style="padding-top: 15px">
432
+                <el-input placeholder="请输入规格名称" v-model="scope.row.good_id"
433
+                          :value="specificationName(scope.row.good_id)"
434
+                          @focus="showDialog(scope.$index, scope.row)"></el-input>
435
+              </el-form-item>
436
+
437
+            </template>
438
+          </el-table-column>
439
+
440
+
441
+          <el-table-column min-width="23" align="center">
442
+            <template slot="header" slot-scope="scope">
443
+              <span>单价<span style="color: red">*</span></span>
444
+            </template>
445
+            <template slot-scope="scope">
446
+              <el-form-item :prop="'recordData.' + scope.$index + '.price'" :rules='tableRules.price'
447
+                            style="padding-top: 17px">
448
+                <el-input type="number" v-model="scope.row.price"></el-input>
449
+              </el-form-item>
450
+            </template>
451
+          </el-table-column>
452
+
453
+          <el-table-column min-width="23" align="center">
454
+            <template slot="header" slot-scope="scope">
455
+              <span>出库数量<span style="color: red">*</span></span>
456
+            </template>
457
+            <template slot-scope="scope">
458
+              <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
459
+                            style="padding-top: 17px">
460
+                <el-input type="number" v-model="scope.row.count"></el-input>
461
+              </el-form-item>
462
+            </template>
463
+          </el-table-column>
464
+
465
+          <el-table-column label="总价" min-width="20" align="center">
466
+            <template slot-scope="scope">
467
+              {{calculate(scope.row.price*scope.row.count)}}
468
+            </template>
469
+          </el-table-column>
470
+          <el-table-column label="备注" min-width="20" align="center">
471
+            <template slot-scope="scope">
472
+              <el-input v-model="scope.row.remark"></el-input>
473
+            </template>
474
+          </el-table-column>
475
+          <el-table-column label="操作" align="center" min-width="30">
476
+            <template slot-scope="scope">
477
+              <el-tooltip class="item" effect="dark" content="新增" placement="top">
478
+                <el-button
479
+                  size="mini"
480
+                  type="primary"
481
+                  icon="el-icon-circle-plus-outline"
482
+                  @click="handleEditOne(scope.$index, scope.row)">
483
+                </el-button>
484
+              </el-tooltip>
485
+              <el-tooltip class="item" effect="dark" content="删除" placement="top">
486
+                <el-button
487
+                  size="mini"
488
+                  type="danger"
489
+                  icon="el-icon-delete"
490
+                  @click="handleDeleteOne(scope.$index, scope.row)">
491
+                </el-button>
492
+              </el-tooltip>
493
+            </template>
494
+          </el-table-column>
495
+        </el-table>
496
+      </el-form>
497
+      </span>
498
+      <span slot="footer" class="dialog-footer">
499
+        <el-button @click="editDialogVisible = false">取 消</el-button>
500
+        <el-button type="primary" @click="submit">确 定</el-button>
501
+      </span>
502
+  </el-dialog>
503
+   
504
+
505
+   <stock-in-dialog
506
+        ref="dialog"
507
+        :propForm="propForm"
508
+        :visibility="isVisibility"
509
+        v-on:dialog-comfirm="comfirm"
510
+        v-on:dialog-cancle="cancle"
511
+      >
512
+   </stock-in-dialog>
513
+
373 514
   
374 515
   </div>
375 516
 </template>
@@ -384,13 +525,17 @@ import {
384 525
   getWarehouseOutList,
385 526
   getWarehouseOutInfo,
386 527
   getWarehouseOutUser,
387
-  GetOutStockTotalCount
528
+  GetOutStockTotalCount,
529
+  deleteWarehouseOutInfo,
530
+  GetAllGoodInfoByID,
531
+  editWarehouseoutInfo,
388 532
 } from "@/api/stock";
389 533
 import BreadCrumb from "../components/bread-crumb";
534
+import StockInDialog from './Dialog/stockInDialog'
390 535
 
391 536
 export default {
392 537
   name: "salesReturnOrder",
393
-  components: { BreadCrumb },
538
+  components: { StockInDialog, BreadCrumb},
394 539
   created() {
395 540
     var nowDate = new Date();
396 541
     var nowYear = nowDate.getFullYear();
@@ -416,8 +561,16 @@ export default {
416 561
     this.GetWarehouseOut();
417 562
    
418 563
     this.fetchAllAdminUsers();
564
+    
419 565
   },
420 566
   data() {
567
+     var checkGoodId = (rule, value, callback) => {
568
+      setTimeout(() => {
569
+        if (value == "" || value == 0) {
570
+          return callback(new Error("规格名称不能为空"));
571
+        }
572
+      }, 2000);
573
+    };
421 574
     return {
422 575
       searchKey: "",
423 576
       crumbs: [
@@ -453,7 +606,39 @@ export default {
453 606
       userList:[],
454 607
       type_name:'',
455 608
       specification_name:"",
456
-      stockCount:[]
609
+      stockCount:[],
610
+      editDialogVisible:false,
611
+      warehouse_out_time: '',
612
+      form: {
613
+          manufacturer: 0,
614
+          dealer: 0
615
+        },
616
+       warehouseInfoList: [],
617
+       tableRules: {
618
+        price: [{ required: true, message: "单价不能为空", trigger: "blur" }],
619
+        warehousing_count: [
620
+          { required: true, message: "数量不能为空", trigge: "blur" }
621
+        ],
622
+
623
+        good_id: [{ validator: checkGoodId, trigger: "blur" }]
624
+      },
625
+
626
+      recordInfo: {
627
+        recordData: [],
628
+        stock_in_code: "",
629
+        current_index: ""
630
+      },
631
+      propForm: {
632
+        goods:[],
633
+        goodType: [],
634
+        goodInfo: [],
635
+        goodUnit: [],
636
+        title: '入库',
637
+        manufacturer: 0,
638
+        dealer: 0
639
+      },
640
+      isVisibility: false,
641
+      good_type_id:""
457 642
     };
458 643
   },
459 644
   methods: {
@@ -593,6 +778,8 @@ export default {
593 778
           this.dealer = response.data.data.dealer;
594 779
           this.goodInfo = response.data.data.goodInfo
595 780
           this.goodType = response.data.data.goodType
781
+          this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
782
+          this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
596 783
         }
597 784
       });
598 785
     },
@@ -727,6 +914,7 @@ export default {
727 914
         const params = {
728 915
           'id': id
729 916
         }
917
+        console.log("#3333333",id)
730 918
       getWarehouseOutInfo(params).then(response => {
731 919
           if (response.data.state == 0) {
732 920
 
@@ -738,6 +926,8 @@ export default {
738 926
             }
739 927
 
740 928
             this.warehousingOutInfo.info = response.data.data.info
929
+
930
+            console.log("出库222222222",this.warehousingOutInfo)           
741 931
             // this.handleSpanTempArr()
742 932
           }
743 933
         })
@@ -817,11 +1007,38 @@ export default {
817 1007
         })
818 1008
       },
819 1009
 
820
-      editRecord(){
821 1010
      
822
-      },
823
-      deleteRecord(){
1011
+     deleteRecord: function() {
1012
+        const ids = []
1013
+        ids.push(this.warehousingOutInfo.info.id)
1014
+        const idStr = ids.join(',')
824 1015
 
1016
+        const params = {
1017
+          ids: idStr
1018
+        }
1019
+
1020
+        this.$confirm('确认删除出库单?', '删除出库单记录', {
1021
+          confirmButtonText: '确定',
1022
+          cancelButtonText: '取消',
1023
+          type: 'warning'
1024
+        }).then(() => {
1025
+          deleteWarehouseOut(params).then(response => {
1026
+            if (response.data.state == 0) {
1027
+              this.$message.error(response.data.msg)
1028
+              return false
1029
+            } else {
1030
+              this.$notify({
1031
+                title: '成功',
1032
+                message: '删除成功',
1033
+                type: 'success',
1034
+                duration: 2000
1035
+              })
1036
+
1037
+              this.$router.back(-1)
1038
+            }
1039
+          })
1040
+        }).catch(() => {
1041
+        })
825 1042
       },
826 1043
 
827 1044
       GetTotalCount(time){
@@ -851,7 +1068,259 @@ export default {
851 1068
      unique(arr) {
852 1069
         const res = new Map();
853 1070
         return arr.filter((arr) => !res.has(arr.patient_id) && res.set(arr.patient_id, 1));
854
-     }
1071
+     },
1072
+
1073
+    editRecord(id){
1074
+      this.warehouseOut= []
1075
+      this.recordInfo.recordData = []
1076
+      this.GetConfigInfo()
1077
+      this.GetOrderDetailTwo(id)
1078
+      this.good_type_id = id
1079
+    },
1080
+
1081
+     GetOrderDetailTwo(order_id) {
1082
+        const params = {
1083
+          'id': order_id
1084
+        }
1085
+        console.log("触发了222222",order_id)
1086
+        getWarehouseOutInfo(params).then(response => {
1087
+         if (response.data.state == 0) {
1088
+            this.$message.error(response.data.msg)
1089
+            return false
1090
+          } else {
1091
+
1092
+            for (let i = 0; i < response.data.data.list.length; i++) {
1093
+              response.data.data.list[i].price = response.data.data.list[i].price.toString()
1094
+              response.data.data.list[i].count = response.data.data.list[i].count.toString()
1095
+              this.recordInfo.recordData.push(response.data.data.list[i])
1096
+            }
1097
+            this.warehouseOut = response.data.data.info
1098
+            this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
1099
+            this.form.manufacturer = this.warehouseOut.manufacturer
1100
+            this.form.dealer = this.warehouseOut.dealer
1101
+            this.editDialogVisible = true
1102
+          }
1103
+
1104
+          if (this.recordInfo.recordData.length == 0) {
1105
+            const tempObj = {}
1106
+            tempObj['id'] = 0
1107
+            tempObj['good_type_id'] = 0
1108
+            tempObj['good_id'] = 0
1109
+            tempObj['count'] = ''
1110
+            tempObj['price'] = ''
1111
+            tempObj['remark'] = ''
1112
+            this.recordInfo.recordData.push(tempObj)
1113
+            this.editDialogVisible = true
1114
+          }
1115
+        })
1116
+      },
1117
+     getTime(val, temp) {
1118
+        if (val != 0) {
1119
+          return uParseTime(val, temp)
1120
+        } else {
1121
+          return ''
1122
+        }
1123
+     },
1124
+     changeManufacturer(val) {
1125
+        this.propForm.manufacturer = val
1126
+      },
1127
+       changeDealer(val) {
1128
+        this.propForm.dealer = val
1129
+     },
1130
+      typeName: function(good_type_id) {
1131
+        let name = "";
1132
+        for (let i = 0; i < this.goodType.length; i++) {
1133
+          if (this.goodType[i].id == good_type_id) {
1134
+            name = this.goodType[i].type_name;
1135
+          }
1136
+        }
1137
+        return name;
1138
+      },
1139
+     specificationName: function(good_info_id) {
1140
+        let name = "";
1141
+        for (let i = 0; i < this.goodInfo.length; i++) {
1142
+          if (this.goodInfo[i].id == good_info_id) {
1143
+            name = this.goodInfo[i].specification_name;
1144
+          }
1145
+        }
1146
+        return name;
1147
+     }, 
1148
+     handleEditOne(){
1149
+        const tempObj = {}
1150
+        tempObj['id'] = 0
1151
+        tempObj['good_type_id'] = 0
1152
+        tempObj['good_id'] = 0
1153
+        tempObj['count'] = ''
1154
+        tempObj['price'] = ''
1155
+        tempObj['remark'] = ''
1156
+        this.recordInfo.recordData.push(tempObj)
1157
+     },
1158
+     handleDeleteOne: function(index, row) {
1159
+        if (row.id == 0) {
1160
+          this.recordInfo.recordData.splice(index, 1)
1161
+        } else {
1162
+          const params = {
1163
+            id: row.id
1164
+          }
1165
+          this.$confirm('确认删除该出库耗材信息记录?', '删除出库耗材信息记录', {
1166
+            confirmButtonText: '确定',
1167
+            cancelButtonText: '取消',
1168
+            type: 'warning'
1169
+          }).then(() => {
1170
+            deleteWarehouseOutInfo(params).then(response => {
1171
+              if (response.data.state == 0) {
1172
+                this.$message.error(response.data.msg)
1173
+                return false
1174
+              } else {
1175
+                this.$message.success('删除成功')
1176
+
1177
+                this.recordInfo.recordData.splice(index, 1)
1178
+              }
1179
+            })
1180
+          }).catch(() => {
1181
+          })
1182
+        }
1183
+      },
1184
+      showDialog(index, row) {
1185
+        this.currentIndex = index;
1186
+        const loading = this.$loading({
1187
+          lock: true,
1188
+          text: "Loading",
1189
+          spinner: "el-icon-loading",
1190
+          background: "rgba(0, 0, 0, 0.7)"
1191
+        });
1192
+
1193
+        const params = {
1194
+          manufacturer_id: this.form.manufacturer,
1195
+          dealer_id: this.form.dealer
1196
+        };
1197
+        this.propForm.goods = []
1198
+
1199
+        GetAllGoodInfoByID(params).then(response => {
1200
+          if (response.data.state == 0) {
1201
+            this.$message.error(response.data.msg);
1202
+            return false;
1203
+          } else {
1204
+            if (response.data.data.goodInfo.length <= 0) {
1205
+              this.$message.error("该厂商或经销商没有物品信息");
1206
+              return;
1207
+            }
1208
+            this.$refs.dialog.show();
1209
+            for (let i = 0; i < response.data.data.goodInfo.length; i++) {
1210
+              this.propForm.goodType.push(
1211
+                response.data.data.goodInfo[i].type
1212
+              );
1213
+            }
1214
+            const obj = {};
1215
+            this.propForm.goodType = this.propForm.goodType.reduce(
1216
+              (cur, next) => {
1217
+                obj[next.id] ? "" : (obj[next.id] = true && cur.push(next));
1218
+                return cur;
1219
+              },
1220
+              []
1221
+            ); // 设置cur默认类型为数组,并且初始值为空的数组
1222
+          }
1223
+
1224
+          for (let i = 0; i < this.propForm.goodType.length; i++) {
1225
+            let goodInfo = [];
1226
+            let goodObj = {};
1227
+
1228
+            for (let a = 0; a < response.data.data.goodInfo.length; a++) {
1229
+              var respObj = response.data.data.goodInfo[a];
1230
+              respObj["isSelected"] = false;
1231
+              if (respObj.type.id == this.propForm.goodType[i].id) {
1232
+                goodInfo.push(respObj);
1233
+              }
1234
+            }
1235
+            const obj = {};
1236
+            goodInfo = goodInfo.reduce((cur, next) => {
1237
+              obj[next.id] ? "" : (obj[next.id] = true && cur.push(next));
1238
+              return cur;
1239
+            }, []); // 设置cur默认类型为数组,并且初始值为空的数组
1240
+
1241
+            this.$set(goodObj, this.propForm.goodType[i].id, goodInfo);
1242
+            this.propForm.goods.push(goodObj);
1243
+          }
1244
+          loading.close();
1245
+        });
1246
+      },
1247
+     
1248
+      comfirm: function(val) {
1249
+        this.$refs.dialog.hide();
1250
+        this.propForm.goodType = [];
1251
+        this.propForm.goods = [];
1252
+
1253
+        if (val.selectedGoodInfo.length > 0) {
1254
+          for (let i = val.selectedGoodInfo.length - 1; ; i--) {
1255
+            if (i == 0) {
1256
+              this.recordInfo.recordData[this.currentIndex].good_type_id =
1257
+                val.selectedGoodInfo[i].good_type_id;
1258
+              this.recordInfo.recordData[this.currentIndex].good_id =
1259
+                val.selectedGoodInfo[i].id;
1260
+              this.recordInfo.recordData[
1261
+                this.currentIndex
1262
+                ].price = val.selectedGoodInfo[i].buy_price.toString();
1263
+            } else {
1264
+              const tempForm = {};
1265
+              tempForm["id"] = 0;
1266
+              tempForm["good_type_id"] = val.selectedGoodInfo[i].good_type_id;
1267
+              tempForm["good_id"] = val.selectedGoodInfo[i].id;
1268
+              tempForm["count"] = "";
1269
+              tempForm["price"] = val.selectedGoodInfo[i].buy_price.toString();
1270
+              tempForm["remark"] = "";
1271
+              this.recordInfo.recordData.splice(
1272
+                this.currentIndex + 1,
1273
+                0,
1274
+                tempForm
1275
+              );
1276
+            }
1277
+          }
1278
+        }
1279
+        this.currentIndex = -1;
1280
+      },
1281
+      cancle: function() {
1282
+        this.$refs.dialog.hide()
1283
+        this.propForm.goods = [];
1284
+
1285
+        this.propForm.goodType = [];
1286
+      },
1287
+
1288
+      submit() {
1289
+        this.$refs['tableForm'].validate((valid) => {
1290
+          if (valid) {
1291
+            const array = this.recordInfo.recordData
1292
+            console.log("$arr3333333333",array)
1293
+            for (let i = 0; i < array.length; i++) {
1294
+              if (array[i].good_type_id == 0) {
1295
+                this.$message.error('商品类型不能为空')
1296
+                return
1297
+              }
1298
+              if (array[i].good_id == 0) {
1299
+                this.$message.error('规格名称不能为空')
1300
+                return
1301
+              }
1302
+            }
1303
+
1304
+            const params = {
1305
+              'stockOut': this.recordInfo.recordData
1306
+            }
1307
+            editWarehouseoutInfo(params, this.warehouse_out_time,this.good_type_id, 1, this.form.manufacturer, this.form.dealer).then(response => {
1308
+              if (response.data.state == 0) {
1309
+                this.$message.error(response.data.msg)
1310
+                return false
1311
+              } else {
1312
+                this.$message.success('保存成功')
1313
+                this.editDialogVisible = false
1314
+                this.warehousingOutInfo.info = []
1315
+                this.warehousingOutInfo.warehousingOutData = []
1316
+                this.GetOrderDetailOne(this.good_type_id)
1317
+              }
1318
+            })
1319
+          } else {
1320
+            return false
1321
+          }
1322
+        })
1323
+      }, 
855 1324
   }
856 1325
 };
857 1326
 </script>

+ 5 - 3
src/xt_pages/stock/stockOutOrderDetail.vue Zobrazit soubor

@@ -238,7 +238,8 @@
238 238
             this.handleSpanTempArr()
239 239
           }
240 240
         })
241
-      }, deleteRecord: function() {
241
+      },
242
+       deleteRecord: function() {
242 243
         const ids = []
243 244
         ids.push(this.warehousingOutInfo.info.id)
244 245
         const idStr = ids.join(',')
@@ -269,8 +270,9 @@
269 270
           })
270 271
         }).catch(() => {
271 272
         })
272
-      }, editRecord: function() {
273
-        this.$emit('edit-record')
273
+      },
274
+       editRecord: function() {
275
+         this.$emit('edit-record')
274 276
       },
275 277
       jump(row){
276 278
         this.$router.push({

+ 2 - 2
src/xt_pages/stock/stockOutOrderEdit.vue Zobrazit soubor

@@ -72,7 +72,7 @@
72 72
           <el-table-column min-width="35" align="center">
73 73
 
74 74
             <template slot="header" slot-scope="scope">
75
-              <span>商品类型<span style="color: red">*</span></span>
75
+              <span>耗材类型<span style="color: red">*</span></span>
76 76
             </template>
77 77
 
78 78
             <template slot-scope="scope">
@@ -333,7 +333,7 @@
333 333
           const params = {
334 334
             id: row.id
335 335
           }
336
-          this.$confirm('确认删除该出库商品信息记录?', '删除出库商品信息记录', {
336
+          this.$confirm('确认删除该出库耗材信息记录?', '删除出库耗材信息记录', {
337 337
             confirmButtonText: '确定',
338 338
             cancelButtonText: '取消',
339 339
             type: 'warning'

+ 32 - 7
src/xt_pages/workforce/appointment.vue Zobrazit soubor

@@ -126,6 +126,10 @@
126 126
 
127 127
        <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
128 128
             <el-form :model="form"  ref="form" label-width="90px" :rules="rules">
129
+                <el-form-item label="周次:">
130
+                   <el-radio v-model="form.lastweek" label="1">上周排班信息</el-radio>
131
+                   <el-radio v-model="form.lastweek" label="2">本周排班信息</el-radio>
132
+                </el-form-item>
129 133
                 <el-form-item label="复制到 : " required  prop="copyWeek">
130 134
                     <el-select v-model="form.copyWeek" placeholder="请选择">
131 135
                         <el-option
@@ -192,6 +196,7 @@
192 196
         end_time:"",
193 197
         export_type:0,
194 198
         form:{
199
+          lastweek:"1",
195 200
           copyWeek:"",
196 201
         },
197 202
         newVisible:false,
@@ -580,8 +585,7 @@
580 585
         return isShow
581 586
       },
582 587
        handleSuccess({ results, header }) {
583
-        console.log("results333333333333333333",results)
584
-        console.log("hearder2222222222222",header)
588
+       
585 589
         let headers = []
586 590
         for (let key in results[0]) {
587 591
           headers.push(key)
@@ -2625,6 +2629,27 @@
2625 2629
           return (new Date(time)).getTime() / 1000
2626 2630
         },
2627 2631
         submitAction(formName){
2632
+           
2633
+             var start_time = ""
2634
+             var end_time = ""
2635
+             console.log("this222",this.form.lastweek)
2636
+             //上周
2637
+             if(this.form.lastweek == "1"){
2638
+                let weekOfday = parseInt(moment().format('d')) 
2639
+                start_time =  this.getTimestamp(moment().subtract(weekOfday + 6, 'days').format('YYYY-MM-DD')) -28800
2640
+                end_time =  this.getTimestamp(moment().subtract(weekOfday, 'days').format('YYYY-MM-DD')) -28800
2641
+                console.log("start",start_time)
2642
+                console.log("end",end_time)
2643
+             }
2644
+            
2645
+            //本周
2646
+             if(this.form.lastweek == "2"){
2647
+                start_time = this.getTimestamp(this.weekDayArr[0])
2648
+                end_time = this.getTimestamp(this.weekDayArr[6])
2649
+                console.log("start",start_time)
2650
+                console.log("end",end_time)
2651
+             }
2652
+
2628 2653
             var label = ""
2629 2654
             for(let i=0;i<this.timeOptions.length;i++){
2630 2655
                if(this.form.copyWeek == this.timeOptions[i].value){
@@ -2634,15 +2659,15 @@
2634 2659
            var start = label.split('~')
2635 2660
            var copy_startime = this.getTimestamp(start[0])
2636 2661
            var copy_endtime = this.getTimestamp(start[1])
2637
-
2662
+         
2638 2663
             const params = {
2639
-              start_time:this.getTimestamp(this.weekDayArr[0]),
2640
-              end_time:this.getTimestamp(this.weekDayArr[6]),
2664
+              start_time:start_time,
2665
+              end_time:end_time,
2641 2666
               copy_startime:copy_startime,
2642 2667
               copy_endtime:copy_endtime,
2643 2668
             }
2644 2669
            console.log("parasm",params)
2645
-
2670
+           
2646 2671
            this.$refs[formName].validate(valid=>{
2647 2672
               if(valid){
2648 2673
                 copyPatientSchedule(params).then(response=>{
@@ -2686,7 +2711,7 @@
2686 2711
      let newNum = 0
2687 2712
      for(let i = 0; i < this.weekList.length; i++){
2688 2713
          if(this.weekNum + i + 1 <= 53){
2689
-             let num = this.weekNum + i + 1
2714
+             let num = this.weekNum + i 
2690 2715
             let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + num + ')'
2691 2716
              this.typeOptions.push({value:i,label:str})
2692 2717
             let stt = this.weekList[i][0] +"~"+this.weekList[i][6]

+ 6 - 3
src/xt_pages/workforce/components/nextTableWeeks.vue Zobrazit soubor

@@ -81,9 +81,10 @@
81 81
       </el-table-column>
82 82
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
83 83
         <template slot-scope="scope">
84
-          <span > {{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
84
+          <span v-if="org_id!=9987" > {{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
85 85
           {{scope.row.prescription.dialysis_dialyszers}}
86
-          <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
86
+         <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
87
+          <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
87 88
         </template>
88 89
       </el-table-column>
89 90
       <el-table-column label="抗凝剂" min-width="100" align="center">
@@ -205,7 +206,8 @@ export default {
205 206
         Sunday: []
206 207
       },
207 208
       scheduleData: [],
208
-      modeOptions: null
209
+      modeOptions: null,
210
+       org_id:0
209 211
     };
210 212
   },
211 213
   watch: {
@@ -419,6 +421,7 @@ export default {
419 421
       this.week_type = 7;
420 422
     }
421 423
     this.getNextScheduleWeekDay();
424
+    this.org_id = this.$store.getters.xt_user.org.id
422 425
   }
423 426
 };
424 427
 </script>

+ 10 - 5
src/xt_pages/workforce/components/scheduleUploadExcel/index.vue Zobrazit soubor

@@ -10,7 +10,7 @@
10 10
     <el-button type="primary" @click="handleUpload()">确 定</el-button>
11 11
   </span>
12 12
     </el-dialog>
13
-     <input id="excel-upload-input" ref="excel-upload-input" type="file"  accept=".xlsx,.xls,.xltx," @change="handleClick">
13
+     <input id="excel-upload-input" ref="excel-upload-input" type="file"  accept=".xlsx,.xls,.xltx," @change="handleClick" >
14 14
     <el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="msgTipVisible = true">点击导入
15 15
     </el-button>
16 16
   </div>
@@ -74,16 +74,17 @@
74 74
         document.getElementById('excel-upload-input').click()
75 75
       },
76 76
       handleClick(e) {
77
-        
77
+       
78 78
         const files = e.target.files
79 79
         const rawFile = files[0] // only use files[0]
80 80
         console.log("rawfiel",rawFile)
81 81
         if (!rawFile) 
82 82
         return
83 83
         this.upload(rawFile)
84
+
84 85
       },
85 86
       upload(rawFile) {
86
-        console.log("触发了吗")
87
+        
87 88
         this.$refs['excel-upload-input'].value = null // fix can't select the same excel
88 89
         console.log("3333",this.beforeUpload)
89 90
         if (!this.beforeUpload) {
@@ -104,6 +105,7 @@
104 105
           reader.onload = e => {
105 106
            
106 107
             const data = e.target.result
108
+            console.log("data22222",data)
107 109
             const fixedData = this.fixdata(data)
108 110
             const workbook = XLSX.read(btoa(fixedData), { type: 'base64' })
109 111
             const firstSheetName = workbook.SheetNames[0]
@@ -145,10 +147,13 @@
145 147
           headers.push(hdr)
146 148
         }
147 149
         return headers
150
+
151
+    
152
+
148 153
       },
149 154
       isExcel(file) {
150
-        console.log("file",file)
151
-        return /\.(xlsx|xls|csv)$/.test(file.name)
155
+        
156
+        return /\.(xlsx|xls|csv)$/.test(file.name)       
152 157
       }
153 158
     }
154 159
   }

+ 6 - 3
src/xt_pages/workforce/components/tableWeeks.vue Zobrazit soubor

@@ -81,9 +81,10 @@
81 81
       </el-table-column>
82 82
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
83 83
         <template slot-scope="scope">
84
-          {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
84
+          <span v-if="org_id!=9987">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
85 85
           {{scope.row.prescription.dialysis_dialyszers}}
86
-          <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{scope.row.prescription.dialysis_irrigation}}</span>
86
+          <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
87
+          <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
87 88
         </template>
88 89
       </el-table-column>
89 90
 
@@ -206,7 +207,8 @@ export default {
206 207
         Sunday: []
207 208
       },
208 209
       scheduleData: [],
209
-      modeOptions: null
210
+      modeOptions: null,
211
+      org_id:0
210 212
     };
211 213
   },
212 214
   watch: {
@@ -455,6 +457,7 @@ export default {
455 457
     // };
456 458
     this.getScheduleWeekDay();
457 459
     console.log("org2222222",this.$store.getters.xt_user.org.id)
460
+    this.org_id = this.$store.getters.xt_user.org.id
458 461
   }
459 462
 };
460 463
 </script>

+ 5 - 2
src/xt_pages/workforce/next_remind_print.vue Zobrazit soubor

@@ -59,9 +59,10 @@
59 59
                   {{modeOptions[main_collection.mode_id].name}}
60 60
                 </td>
61 61
                 <td :width="td_1_width">
62
-                  {{main_collection.prescription.dialyzer_perfusion_apparatus}}
62
+                  <span v-if="org_id!=9987">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
63 63
                   {{main_collection.prescription.dialysis_dialyszers}} 
64
-                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">/ {{main_collection.prescription.dialysis_irrigation}}</span>
64
+                  <span v-if="main_collection.prescription.dialysis_dialyszers!='' && main_collection.prescription.dialysis_irrigation!=''">/</span>
65
+                  <span v-if="main_collection.prescription.dialysis_irrigation!=''"> {{main_collection.prescription.dialysis_irrigation}}</span>
65 66
 
66 67
                 </td>
67 68
                 <td :width="td_1_width">
@@ -116,12 +117,14 @@
116 117
         currentDate:'',
117 118
         start_time:moment().week(moment().week() + 1).startOf('week').unix(),
118 119
         end_time:moment().week(moment().week() + 1).endOf('week').unix(),
120
+        org_id:0,
119 121
       }
120 122
     },
121 123
     components: {
122 124
       BreadCrumb
123 125
     },
124 126
     created() {
127
+     this.org_id = this.$store.getters.xt_user.org.id
125 128
      this.currentDate = this.getCurrentDate()
126 129
       this.modeOptions = this.$store.getters.treatment_mode
127 130
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit

+ 6 - 3
src/xt_pages/workforce/remind_print.vue Zobrazit soubor

@@ -59,9 +59,10 @@
59 59
                   {{modeOptions[main_collection.mode_id].name}}
60 60
                 </td>
61 61
                 <td :width="td_1_width">
62
-                  {{main_collection.prescription.dialyzer_perfusion_apparatus}}
62
+                  <span v-if="org_id!=9987">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
63 63
                   {{main_collection.prescription.dialysis_dialyszers}} 
64
-                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">/ {{main_collection.prescription.dialysis_irrigation}}</span>
64
+                  <span v-if="main_collection.prescription.dialysis_dialyszers!=''&& main_collection.prescription.dialysis_irrigation!='' ">/</span>
65
+                  <span v-if="main_collection.prescription.dialysis_irrigation!=''">{{main_collection.prescription.dialysis_irrigation}}</span>
65 66
 
66 67
                 </td>
67 68
                 <td :width="td_1_width">
@@ -113,13 +114,15 @@
113 114
         td_4_width: '45%',
114 115
         modeOptions: null,
115 116
         anticoagulants_confit:null,
116
-        currentDate:''
117
+        currentDate:'',
118
+        org_id:0
117 119
       }
118 120
     },
119 121
     components: {
120 122
       BreadCrumb
121 123
     },
122 124
     created() {
125
+     this.org_id = this.$store.getters.xt_user.org.id
123 126
      this.currentDate = this.getCurrentDate()
124 127
       this.modeOptions = this.$store.getters.treatment_mode
125 128
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit