Explorar o código

Squashed commit of the following:

commit 89d77a00750aca7bd7af5c796a06bc897162493a
Author: liucf <liucf@zjlantone.com>
Date:   Wed Jul 24 11:26:55 2019 +0800

    详情页新增提示信息,input组件number类型限制不能输入非数字

commit 6ad0e3b0182feb60a14d406b54de47bad0a57c5f
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 23 18:19:16 2019 +0800

    Squashed commit of the following:

    commit 4a52e161620cb9827b0b30431cd752bc2b6dbf44
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 17:08:16 2019 +0800

        数据处理

    commit 0f282a4005150b8b4234df99de1521fba5ec55e8
    Merge: 6fc7207 a1ac90c
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 15:47:37 2019 +0800

        Merge branch 'dev' into byll

        # Conflicts:
        #	config/index.js
        #	src/common/MultiLineInput.vue
        #	src/components/Symptom.vue
        #	src/components/TabPage.vue
        #	src/store.js
        #	src/utils/tools.js

    commit 6fc720795865ba16ff3c9cd9cd8a2d1b0dbda978
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 15:24:38 2019 +0800

        数字键盘弹起输入问题解决

    commit 89f2791e4b36c0ee671c8dc87285b7c82cf35cfd
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 10:27:55 2019 +0800

        类型修改

    commit 55594b6e10078c5aff8ed95cd938c0fa07fb0125
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 10:20:19 2019 +0800

        type类型改变

    commit e9eeb458968371f579c6b61c7693438b99d18443
    Merge: ada4e4e 1248f0c
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:49:52 2019 +0800

        Merge branch 'dev' into byll

    commit ada4e4e7216614e111914fc4a787609722b665cf
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:39:22 2019 +0800

        模块配置

    commit 1fe1910a2a54e5ece7a2b3ea8162cd9c7827059b
    Merge: 7ef08db 3a8f52d
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:39:19 2019 +0800

        Merge branch 'dev' into byll

    commit 7ef08db55a456528a93b2ca8bb204b67a83daa80
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:38:09 2019 +0800

        图片上传数据结构修改

    # Conflicts:
    #	src/common/MultiLineInput.vue
    #	src/components/AddContent.vue
    #	src/utils/tools.js

commit 64d0a8760ae12b885445ae4600b8069a2775fc9d
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 23 17:53:37 2019 +0800

    新增带输入框选项组件
    Squashed commit of the following:

    commit 0f282a4005150b8b4234df99de1521fba5ec55e8
    Merge: 6fc7207 a1ac90c
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 15:47:37 2019 +0800

        Merge branch 'dev' into byll

        # Conflicts:
        #	config/index.js
        #	src/common/MultiLineInput.vue
        #	src/components/Symptom.vue
        #	src/components/TabPage.vue
        #	src/store.js
        #	src/utils/tools.js

    commit 6fc720795865ba16ff3c9cd9cd8a2d1b0dbda978
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 15:24:38 2019 +0800

        数字键盘弹起输入问题解决

    commit 89f2791e4b36c0ee671c8dc87285b7c82cf35cfd
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 10:27:55 2019 +0800

        类型修改

    commit 55594b6e10078c5aff8ed95cd938c0fa07fb0125
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 10:20:19 2019 +0800

        type类型改变

    commit e9eeb458968371f579c6b61c7693438b99d18443
    Merge: ada4e4e 1248f0c
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:49:52 2019 +0800

        Merge branch 'dev' into byll

    commit ada4e4e7216614e111914fc4a787609722b665cf
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:39:22 2019 +0800

        模块配置

    commit 1fe1910a2a54e5ece7a2b3ea8162cd9c7827059b
    Merge: 7ef08db 3a8f52d
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:39:19 2019 +0800

        Merge branch 'dev' into byll

    commit 7ef08db55a456528a93b2ca8bb204b67a83daa80
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:38:09 2019 +0800

        图片上传数据结构修改

commit a1ac90cb6f56c268156fe4161da59978b80ed5e8
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 23 15:24:04 2019 +0800

    type配置抽离,诊疗和其他史模块页新增单选多选

commit c161fd692a8c1ccf9c3a315875a3df58d1c1395f
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 23 10:35:18 2019 +0800

    合并byll分支
    Squashed commit of the following:

    commit 89f2791e4b36c0ee671c8dc87285b7c82cf35cfd
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 10:27:55 2019 +0800

        类型修改

    commit 55594b6e10078c5aff8ed95cd938c0fa07fb0125
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 23 10:20:19 2019 +0800

        type类型改变

    commit e9eeb458968371f579c6b61c7693438b99d18443
    Merge: ada4e4e 1248f0c
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:49:52 2019 +0800

        Merge branch 'dev' into byll

    commit ada4e4e7216614e111914fc4a787609722b665cf
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:39:22 2019 +0800

        模块配置

    commit 1fe1910a2a54e5ece7a2b3ea8162cd9c7827059b
    Merge: 7ef08db 3a8f52d
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:39:19 2019 +0800

        Merge branch 'dev' into byll

    commit 7ef08db55a456528a93b2ca8bb204b67a83daa80
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:38:09 2019 +0800

        图片上传数据结构修改

    # Conflicts:
    #	src/common/MultiLineInput.vue
    #	src/components/TabPage.vue

commit 0545a51ad2097f06a87f4157dbfce26879ac8fb1
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 23 10:32:08 2019 +0800

    配置

commit b1680dd16c8f7b61a11fad0cc1c19d63317851da
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 22 17:00:11 2019 +0800

    Squashed commit of the following:

    commit e9eeb458968371f579c6b61c7693438b99d18443
    Merge: ada4e4e 1248f0c
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:49:52 2019 +0800

        Merge branch 'dev' into byll

    commit ada4e4e7216614e111914fc4a787609722b665cf
    Author: Luolei <16657115156@163.com>
    Date:   Mon Jul 22 15:39:22 2019 +0800

        模块配置

    commit 1fe1910a2a54e5ece7a2b3ea8162cd9c7827059b
    Merge: 7ef08db 3a8f52d
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:39:19 2019 +0800

        Merge branch 'dev' into byll

    commit 7ef08db55a456528a93b2ca8bb204b67a83daa80
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:38:09 2019 +0800

        图片上传数据结构修改

commit 1248f0c33c19d69b001bbfb1c574c3b8f02a21f6
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 22 14:40:24 2019 +0800

    input背景透明,兼容支付宝扫一扫

commit 1cd0e62c900da2b1f0e6981d36d33d4a61b19166
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 22 14:25:46 2019 +0800

    foot层级

commit 11298d5cc2ce2710234b24f7d77e06a79a10f23b
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 22 11:51:23 2019 +0800

    细节优化

commit e97b925baf94405ad472dea79bc5a76d4bc9cea8
Author: liucf <liucf@zjlantone.com>
Date:   Thu Jul 18 17:07:34 2019 +0800

    合并byll分支
    Squashed commit of the following:

    commit 1fe1910a2a54e5ece7a2b3ea8162cd9c7827059b
    Merge: 7ef08db 3a8f52d
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:39:19 2019 +0800

        Merge branch 'dev' into byll

    commit 7ef08db55a456528a93b2ca8bb204b67a83daa80
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 18 16:38:09 2019 +0800

        图片上传数据结构修改

commit 3a8f52dee4a2b79471621f2c199bd6a1a6ffa8ad
Author: liucf <liucf@zjlantone.com>
Date:   Thu Jul 18 16:26:26 2019 +0800

    校验是否已填入参修改

commit 3de69e6ac450b25501d82efe5798fe568c061370
Author: liucf <liucf@zjlantone.com>
Date:   Thu Jul 18 14:44:04 2019 +0800

    多选带输入及互斥功能完成

commit 3f646b797ded0a98fec3ba8ea9dec8dfb475903f
Author: liucf <liucf@zjlantone.com>
Date:   Wed Jul 17 17:54:14 2019 +0800

    多选带输入框

commit 63952d0a2ccec97543bc85b5e42d5dd65c509c3f
Author: Luolei <16657115156@163.com>
Date:   Tue Jul 16 11:14:08 2019 +0800

    保存预览

commit 3ef5b31d31dae0ce9ad9b98fb6a1d5edf213cc03
Merge: 6479869 71b2343
Author: Luolei <16657115156@163.com>
Date:   Mon Jul 15 10:04:36 2019 +0800

    Merge branch 'dev' into byll

commit 6479869fcad0f77e01c4e6c3f4cb3daa6bb87193
Author: Luolei <16657115156@163.com>
Date:   Mon Jul 15 09:34:11 2019 +0800

    数据处理

commit 71b2343c350895333e8ca41cb4e816581febf0a1
Author: liucf <liucf@zjlantone.com>
Date:   Fri Jul 12 17:35:46 2019 +0800

    单选带输入框
    Squashed commit of the following:

    commit 5bd71c3bc78864981c754befd7191968348efe92
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Jul 12 09:57:23 2019 +0800

        配置项

    commit f951842a2e9c38782ad1d203bb0371229eee8615
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 11 17:22:45 2019 +0800

        text文本

    commit bc0334d2f9433b08466fad4a052abf8c3e68a4f9
    Merge: a76ca62 6cf8212
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 11 17:03:13 2019 +0800

        Merge branch 'dev' into byll

    commit a76ca621c03cd43366a3b4d94920110cc953fded
    Author: Luolei <16657115156@163.com>
    Date:   Thu Jul 11 16:34:13 2019 +0800

        搜索,完成提示弹窗

    commit d4c321a248ca8460a3d5212ce6574e2193bb6e7b
    Merge: f0cc127 bf08847
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 10 16:01:07 2019 +0800

        Merge branch 'byll' of http://192.168.2.236:10080/zhouna/preliminary into byll

    commit f0cc127f19d77f83b7350f8ac47b6b0902eaf8a4
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 10 16:01:00 2019 +0800

        多列填写组件优化

    commit bf08847a4f5104bdcd0c4facbdd619724f4c3060
    Author: liucf <liucf@zjlantone.com>
    Date:   Wed Jul 10 15:36:17 2019 +0800

        合并development分支

    commit 7b4d2b7b39905403b1d2291a82a5cc534a096dc9
    Merge: 39113f2 528de93
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 9 19:32:53 2019 +0800

        Merge branch 'development' into byll

    commit 39113f251e86e6a2fd2f32ac158a916d8731a1a8
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 9 19:20:36 2019 +0800

        README.md

    commit cbdf8d48f24b5bb3cb0779c024e9889377730190
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 9 19:13:20 2019 +0800

        环境切换

    commit 528de93f2e75bf3746f4c3ea6b77db95cd6284bf
    Author: liucf <liucf@zjlantone.com>
    Date:   Mon Jul 8 20:32:12 2019 +0800

        多选数据处理及诊疗

    commit ef957e1efb30367dc50ed54ebd75d006c2095d59
    Author: liucf <liucf@zjlantone.com>
    Date:   Mon Jul 8 14:34:17 2019 +0800

        test build

    commit 379f8dd0adbc97944ab2fdc49bbccd2e319b19fe
    Author: liucf <liucf@zjlantone.com>
    Date:   Sat Jul 6 17:38:52 2019 +0800

        合并dev
        Squashed commit of the following:

        commit 6c1978b3cf95d01b6979fc8d2e558db73ea6699c
        Merge: 2817f6f 29702b2
        Author: Luolei <16657115156@163.com>
        Date:   Sat Jul 6 13:51:22 2019 +0800

            Merge branch 'development' into dev

        commit 2817f6fe89bbc72b5b85f996b054ae959a6d715c
        Author: Luolei <16657115156@163.com>
        Date:   Sat Jul 6 13:26:30 2019 +0800

            改回配置

        commit 99fd5c92c83ff78da644fceb2e73d9646d63eaad
        Author: Luolei <16657115156@163.com>
        Date:   Fri Jul 5 17:10:57 2019 +0800

            多列填写,预览

        commit 54aa3aad2d6163449bff54abd5fbee53f8010941
        Merge: 9b50ae5 ea78834
        Author: Luolei <16657115156@163.com>
        Date:   Wed Jul 3 20:22:00 2019 +0800

            Merge remote-tracking branch 'remotes/origin/development' into dev

        commit 9b50ae5cf4fb61577133d0ff0f0470f86c3da87d
        Author: Luolei <16657115156@163.com>
        Date:   Wed Jul 3 19:43:27 2019 +0800

            新增文本域组件

        commit c49d6a90ceb0a9f4166b1bb787c8b36171d6db41
        Author: Luolei <16657115156@163.com>
        Date:   Wed Jul 3 09:56:18 2019 +0800

            添加补充内容页面

        commit db3d558cc2e8292c65bb8e460a206c40b44e4f75
        Author: liucf <liucf@zjlantone.com>
        Date:   Tue Jul 2 11:38:56 2019 +0800

            Squashed commit of the following:

            commit abb05f77689576a0834513d2a21f5f05b321e495
            Author: liucf <liucf@zjlantone.com>
            Date:   Tue Jul 2 11:36:51 2019 +0800

                增加图片

            commit 1a3e1b96d9dfd09cf7c9b5d05001db5a12cc2ac4
            Author: liucf <liucf@zjlantone.com>
            Date:   Mon Jul 1 20:44:08 2019 +0800

                新增弹窗,单选,多选,待完善

            commit 565f06729383a7df1bfde511faacb5979432a7da
            Author: liucf <liucf@zjlantone.com>
            Date:   Fri Jun 28 17:36:42 2019 +0800

                患者信息页完成

    commit 41fb3a249052d8beac52da5923b5718a6a758d3d
    Author: liucf <liucf@zjlantone.com>
    Date:   Sat Jul 6 17:33:09 2019 +0800

        症状情况数据处理

    # Conflicts:
    #	src/components/Symptom.vue

commit 51ee3ec2c0cbb5ba05694a2997ca4386f175abe3
Merge: 46c036e 5441afc
Author: Luolei <16657115156@163.com>
Date:   Fri Jul 12 10:47:05 2019 +0800

    Merge branch 'dev' into byll

commit 46c036e584762d2ccd1adb4713e78deae8fe890d
Merge: 0e6e0d9 5bd71c3
Author: Luolei <16657115156@163.com>
Date:   Fri Jul 12 10:37:20 2019 +0800

    Merge branch 'byll' of http://192.168.2.236:10080/zhouna/preliminary into byll

commit 0e6e0d96bde482c578fc25b101b287bdc12e68f7
Author: Luolei <16657115156@163.com>
Date:   Fri Jul 12 10:37:13 2019 +0800

    检索判断

commit 5bd71c3bc78864981c754befd7191968348efe92
Author: liucf <liucf@zjlantone.com>
Date:   Fri Jul 12 09:57:23 2019 +0800

    配置项

commit 5441afcff31bd0effccef58f5ba191972cb5e6f2
Author: liucf <liucf@zjlantone.com>
Date:   Thu Jul 11 17:36:35 2019 +0800

    tab和详情页动画

commit f951842a2e9c38782ad1d203bb0371229eee8615
Author: Luolei <16657115156@163.com>
Date:   Thu Jul 11 17:22:45 2019 +0800

    text文本

commit bc0334d2f9433b08466fad4a052abf8c3e68a4f9
Merge: a76ca62 6cf8212
Author: Luolei <16657115156@163.com>
Date:   Thu Jul 11 17:03:13 2019 +0800

    Merge branch 'dev' into byll

commit a76ca621c03cd43366a3b4d94920110cc953fded
Author: Luolei <16657115156@163.com>
Date:   Thu Jul 11 16:34:13 2019 +0800

    搜索,完成提示弹窗

commit 6cf8212bb7e9f89572feb9a6c4beec37ed8c7f9f
Author: liucf <liucf@zjlantone.com>
Date:   Thu Jul 11 15:02:24 2019 +0800

    清空,其他情况

commit d4c321a248ca8460a3d5212ce6574e2193bb6e7b
Merge: f0cc127 bf08847
Author: Luolei <16657115156@163.com>
Date:   Wed Jul 10 16:01:07 2019 +0800

    Merge branch 'byll' of http://192.168.2.236:10080/zhouna/preliminary into byll

commit f0cc127f19d77f83b7350f8ac47b6b0902eaf8a4
Author: Luolei <16657115156@163.com>
Date:   Wed Jul 10 16:01:00 2019 +0800

    多列填写组件优化

commit 844b5dd59309d1c1bd19517852ba92bfb59e0a85
Author: liucf <liucf@zjlantone.com>
Date:   Wed Jul 10 15:40:44 2019 +0800

    合并代码并更改环境
    Squashed commit of the following:

    commit bf08847a4f5104bdcd0c4facbdd619724f4c3060
    Author: liucf <liucf@zjlantone.com>
    Date:   Wed Jul 10 15:36:17 2019 +0800

        合并development分支

    commit 7b4d2b7b39905403b1d2291a82a5cc534a096dc9
    Merge: 39113f2 528de93
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 9 19:32:53 2019 +0800

        Merge branch 'development' into byll

    commit 39113f251e86e6a2fd2f32ac158a916d8731a1a8
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 9 19:20:36 2019 +0800

        README.md

    commit cbdf8d48f24b5bb3cb0779c024e9889377730190
    Author: Luolei <16657115156@163.com>
    Date:   Tue Jul 9 19:13:20 2019 +0800

        环境切换

    commit 528de93f2e75bf3746f4c3ea6b77db95cd6284bf
    Author: liucf <liucf@zjlantone.com>
    Date:   Mon Jul 8 20:32:12 2019 +0800

        多选数据处理及诊疗

    commit ef957e1efb30367dc50ed54ebd75d006c2095d59
    Author: liucf <liucf@zjlantone.com>
    Date:   Mon Jul 8 14:34:17 2019 +0800

        test build

    commit 379f8dd0adbc97944ab2fdc49bbccd2e319b19fe
    Author: liucf <liucf@zjlantone.com>
    Date:   Sat Jul 6 17:38:52 2019 +0800

        合并dev
        Squashed commit of the following:

        commit 6c1978b3cf95d01b6979fc8d2e558db73ea6699c
        Merge: 2817f6f 29702b2
        Author: Luolei <16657115156@163.com>
        Date:   Sat Jul 6 13:51:22 2019 +0800

            Merge branch 'development' into dev

        commit 2817f6fe89bbc72b5b85f996b054ae959a6d715c
        Author: Luolei <16657115156@163.com>
        Date:   Sat Jul 6 13:26:30 2019 +0800

            改回配置

        commit 99fd5c92c83ff78da644fceb2e73d9646d63eaad
        Author: Luolei <16657115156@163.com>
        Date:   Fri Jul 5 17:10:57 2019 +0800

            多列填写,预览

        commit 54aa3aad2d6163449bff54abd5fbee53f8010941
        Merge: 9b50ae5 ea78834
        Author: Luolei <16657115156@163.com>
        Date:   Wed Jul 3 20:22:00 2019 +0800

            Merge remote-tracking branch 'remotes/origin/development' into dev

        commit 9b50ae5cf4fb61577133d0ff0f0470f86c3da87d
        Author: Luolei <16657115156@163.com>
        Date:   Wed Jul 3 19:43:27 2019 +0800

            新增文本域组件

        commit c49d6a90ceb0a9f4166b1bb787c8b36171d6db41
        Author: Luolei <16657115156@163.com>
        Date:   Wed Jul 3 09:56:18 2019 +0800

            添加补充内容页面

        commit db3d558cc2e8292c65bb8e460a206c40b44e4f75
        Author: liucf <liucf@zjlantone.com>
        Date:   Tue Jul 2 11:38:56 2019 +0800

            Squashed commit of the following:

            commit abb05f77689576a0834513d2a21f5f05b321e495
            Author: liucf <liucf@zjlantone.com>
            Date:   Tue Jul 2 11:36:51 2019 +0800

                增加图片

            commit 1a3e1b96d9dfd09cf7c9b5d05001db5a12cc2ac4
            Author: liucf <liucf@zjlantone.com>
            Date:   Mon Jul 1 20:44:08 2019 +0800

                新增弹窗,单选,多选,待完善

            commit 565f06729383a7df1bfde511faacb5979432a7da
            Author: liucf <liucf@zjlantone.com>
            Date:   Fri Jun 28 17:36:42 2019 +0800

                患者信息页完成

    commit 41fb3a249052d8beac52da5923b5718a6a758d3d
    Author: liucf <liucf@zjlantone.com>
    Date:   Sat Jul 6 17:33:09 2019 +0800

        症状情况数据处理

commit bf08847a4f5104bdcd0c4facbdd619724f4c3060
Author: liucf <liucf@zjlantone.com>
Date:   Wed Jul 10 15:36:17 2019 +0800

    合并development分支

commit 7b4d2b7b39905403b1d2291a82a5cc534a096dc9
Merge: 39113f2 528de93
Author: Luolei <16657115156@163.com>
Date:   Tue Jul 9 19:32:53 2019 +0800

    Merge branch 'development' into byll

commit 39113f251e86e6a2fd2f32ac158a916d8731a1a8
Author: Luolei <16657115156@163.com>
Date:   Tue Jul 9 19:20:36 2019 +0800

    README.md

commit cbdf8d48f24b5bb3cb0779c024e9889377730190
Author: Luolei <16657115156@163.com>
Date:   Tue Jul 9 19:13:20 2019 +0800

    环境切换

commit 528de93f2e75bf3746f4c3ea6b77db95cd6284bf
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 8 20:32:12 2019 +0800

    多选数据处理及诊疗

commit 9135a5a273a904c4358377833564e3177e12bad1
Author: Luolei <16657115156@163.com>
Date:   Mon Jul 8 17:25:16 2019 +0800

    测试多图片上传带参数type

commit ef957e1efb30367dc50ed54ebd75d006c2095d59
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 8 14:34:17 2019 +0800

    test build

commit 379f8dd0adbc97944ab2fdc49bbccd2e319b19fe
Author: liucf <liucf@zjlantone.com>
Date:   Sat Jul 6 17:38:52 2019 +0800

    合并dev
    Squashed commit of the following:

    commit 6c1978b3cf95d01b6979fc8d2e558db73ea6699c
    Merge: 2817f6f 29702b2
    Author: Luolei <16657115156@163.com>
    Date:   Sat Jul 6 13:51:22 2019 +0800

        Merge branch 'development' into dev

    commit 2817f6fe89bbc72b5b85f996b054ae959a6d715c
    Author: Luolei <16657115156@163.com>
    Date:   Sat Jul 6 13:26:30 2019 +0800

        改回配置

    commit 99fd5c92c83ff78da644fceb2e73d9646d63eaad
    Author: Luolei <16657115156@163.com>
    Date:   Fri Jul 5 17:10:57 2019 +0800

        多列填写,预览

    commit 54aa3aad2d6163449bff54abd5fbee53f8010941
    Merge: 9b50ae5 ea78834
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 3 20:22:00 2019 +0800

        Merge remote-tracking branch 'remotes/origin/development' into dev

    commit 9b50ae5cf4fb61577133d0ff0f0470f86c3da87d
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 3 19:43:27 2019 +0800

        新增文本域组件

    commit c49d6a90ceb0a9f4166b1bb787c8b36171d6db41
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 3 09:56:18 2019 +0800

        添加补充内容页面

    commit db3d558cc2e8292c65bb8e460a206c40b44e4f75
    Author: liucf <liucf@zjlantone.com>
    Date:   Tue Jul 2 11:38:56 2019 +0800

        Squashed commit of the following:

        commit abb05f77689576a0834513d2a21f5f05b321e495
        Author: liucf <liucf@zjlantone.com>
        Date:   Tue Jul 2 11:36:51 2019 +0800

            增加图片

        commit 1a3e1b96d9dfd09cf7c9b5d05001db5a12cc2ac4
        Author: liucf <liucf@zjlantone.com>
        Date:   Mon Jul 1 20:44:08 2019 +0800

            新增弹窗,单选,多选,待完善

        commit 565f06729383a7df1bfde511faacb5979432a7da
        Author: liucf <liucf@zjlantone.com>
        Date:   Fri Jun 28 17:36:42 2019 +0800

            患者信息页完成

commit 41fb3a249052d8beac52da5923b5718a6a758d3d
Author: liucf <liucf@zjlantone.com>
Date:   Sat Jul 6 17:33:09 2019 +0800

    症状情况数据处理

commit 6c1978b3cf95d01b6979fc8d2e558db73ea6699c
Merge: 2817f6f 29702b2
Author: Luolei <16657115156@163.com>
Date:   Sat Jul 6 13:51:22 2019 +0800

    Merge branch 'development' into dev

commit 29702b2314ccf5bde3533a60a542d78798e33cd1
Author: liucf <liucf@zjlantone.com>
Date:   Sat Jul 6 13:40:08 2019 +0800

    数据处理
    Squashed commit of the following:

    commit 54aa3aad2d6163449bff54abd5fbee53f8010941
    Merge: 9b50ae5 ea78834
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 3 20:22:00 2019 +0800

        Merge remote-tracking branch 'remotes/origin/development' into dev

    commit 9b50ae5cf4fb61577133d0ff0f0470f86c3da87d
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 3 19:43:27 2019 +0800

        新增文本域组件

    commit c49d6a90ceb0a9f4166b1bb787c8b36171d6db41
    Author: Luolei <16657115156@163.com>
    Date:   Wed Jul 3 09:56:18 2019 +0800

        添加补充内容页面

    commit db3d558cc2e8292c65bb8e460a206c40b44e4f75
    Author: liucf <liucf@zjlantone.com>
    Date:   Tue Jul 2 11:38:56 2019 +0800

        Squashed commit of the following:

        commit abb05f77689576a0834513d2a21f5f05b321e495
        Author: liucf <liucf@zjlantone.com>
        Date:   Tue Jul 2 11:36:51 2019 +0800

            增加图片

        commit 1a3e1b96d9dfd09cf7c9b5d05001db5a12cc2ac4
        Author: liucf <liucf@zjlantone.com>
        Date:   Mon Jul 1 20:44:08 2019 +0800

            新增弹窗,单选,多选,待完善

        commit 565f06729383a7df1bfde511faacb5979432a7da
        Author: liucf <liucf@zjlantone.com>
        Date:   Fri Jun 28 17:36:42 2019 +0800

            患者信息页完成

commit 2817f6fe89bbc72b5b85f996b054ae959a6d715c
Author: Luolei <16657115156@163.com>
Date:   Sat Jul 6 13:26:30 2019 +0800

    改回配置

commit 99fd5c92c83ff78da644fceb2e73d9646d63eaad
Author: Luolei <16657115156@163.com>
Date:   Fri Jul 5 17:10:57 2019 +0800

    多列填写,预览

commit d1d29e086ad247da059fcd1b81bbe4dac88cb97b
Author: liucf <liucf@zjlantone.com>
Date:   Thu Jul 4 16:53:09 2019 +0800

    图片组件

commit 54aa3aad2d6163449bff54abd5fbee53f8010941
Merge: 9b50ae5 ea78834
Author: Luolei <16657115156@163.com>
Date:   Wed Jul 3 20:22:00 2019 +0800

    Merge remote-tracking branch 'remotes/origin/development' into dev

commit 9b50ae5cf4fb61577133d0ff0f0470f86c3da87d
Author: Luolei <16657115156@163.com>
Date:   Wed Jul 3 19:43:27 2019 +0800

    新增文本域组件

commit ea78834659676ba3260ce0dd8be894700f86cdca
Author: liucf <liucf@zjlantone.com>
Date:   Wed Jul 3 17:46:01 2019 +0800

    上传图片组件-未完

commit 76d237f82c016887e09f6c1eb12a3a6dfb1ff943
Author: liucf <liucf@zjlantone.com>
Date:   Wed Jul 3 15:28:24 2019 +0800

    tab流程

commit c49d6a90ceb0a9f4166b1bb787c8b36171d6db41
Author: Luolei <16657115156@163.com>
Date:   Wed Jul 3 09:56:18 2019 +0800

    添加补充内容页面

commit 445308afd3a52b1707d759f5e1e1c8c572eadad2
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 2 20:33:22 2019 +0800

    单选数据处理

commit db3d558cc2e8292c65bb8e460a206c40b44e4f75
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 2 11:38:56 2019 +0800

    Squashed commit of the following:

    commit abb05f77689576a0834513d2a21f5f05b321e495
    Author: liucf <liucf@zjlantone.com>
    Date:   Tue Jul 2 11:36:51 2019 +0800

        增加图片

    commit 1a3e1b96d9dfd09cf7c9b5d05001db5a12cc2ac4
    Author: liucf <liucf@zjlantone.com>
    Date:   Mon Jul 1 20:44:08 2019 +0800

        新增弹窗,单选,多选,待完善

    commit 565f06729383a7df1bfde511faacb5979432a7da
    Author: liucf <liucf@zjlantone.com>
    Date:   Fri Jun 28 17:36:42 2019 +0800

        患者信息页完成

commit abb05f77689576a0834513d2a21f5f05b321e495
Author: liucf <liucf@zjlantone.com>
Date:   Tue Jul 2 11:36:51 2019 +0800

    增加图片

commit 1a3e1b96d9dfd09cf7c9b5d05001db5a12cc2ac4
Author: liucf <liucf@zjlantone.com>
Date:   Mon Jul 1 20:44:08 2019 +0800

    新增弹窗,单选,多选,待完善

commit 565f06729383a7df1bfde511faacb5979432a7da
Author: liucf <liucf@zjlantone.com>
Date:   Fri Jun 28 17:36:42 2019 +0800

    患者信息页完成

commit aa6661b1eda935e0ffbf4debd665a2254e358269
Author: zhouna <zhouna@zjlantone.com>
Date:   Tue Jun 25 17:03:04 2019 +0800

    start
liucf %!s(int64=5) %!d(string=hai) anos
pai
achega
8f7c125f02
Modificáronse 69 ficheiros con 14431 adicións e 26 borrados
  1. 12 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 4 0
      .eslintignore
  4. 29 0
      .eslintrc.js
  5. 8 26
      .gitignore
  6. 10 0
      .postcssrc.js
  7. 21 0
      README.md
  8. 14 0
      app.js
  9. 41 0
      build/build.js
  10. 54 0
      build/check-versions.js
  11. BIN=BIN
      build/logo.png
  12. 102 0
      build/utils.js
  13. 22 0
      build/vue-loader.conf.js
  14. 87 0
      build/webpack.base.conf.js
  15. 98 0
      build/webpack.dev.conf.js
  16. 145 0
      build/webpack.prod.conf.js
  17. 7 0
      config/dev.env.js
  18. 76 0
      config/index.js
  19. 4 0
      config/prod.env.js
  20. 13 0
      index.html
  21. 9314 0
      package-lock.json
  22. 71 0
      package.json
  23. 15 0
      src/App.vue
  24. 147 0
      src/common/CheckBox.vue
  25. 68 0
      src/common/ComTextArea.vue
  26. 64 0
      src/common/Input.vue
  27. 160 0
      src/common/Label.vue
  28. 35 0
      src/common/Loading.vue
  29. 170 0
      src/common/MultiLineInput.vue
  30. 76 0
      src/common/OptionInp.vue
  31. 109 0
      src/common/Radio.vue
  32. 125 0
      src/common/Submit.vue
  33. 81 0
      src/common/Toast.vue
  34. 219 0
      src/common/UploadImg.vue
  35. 172 0
      src/components/AddContent.vue
  36. 116 0
      src/components/Detail.vue
  37. 152 0
      src/components/DetailBox.vue
  38. 193 0
      src/components/DiagTreat.vue
  39. 198 0
      src/components/Others.vue
  40. 264 0
      src/components/PathInfo.vue
  41. 339 0
      src/components/Preview.vue
  42. 179 0
      src/components/Search.vue
  43. 371 0
      src/components/Symptom.vue
  44. 234 0
      src/components/TabPage.vue
  45. BIN=BIN
      src/images/banerbg@1.5x.png
  46. BIN=BIN
      src/images/check-default.png
  47. BIN=BIN
      src/images/check.png
  48. BIN=BIN
      src/images/childbg@1.5x.png
  49. BIN=BIN
      src/images/close.png
  50. BIN=BIN
      src/images/complete.png
  51. BIN=BIN
      src/images/del-pic.png
  52. BIN=BIN
      src/images/delete.png
  53. BIN=BIN
      src/images/finish.png
  54. BIN=BIN
      src/images/loading.gif
  55. BIN=BIN
      src/images/pic.png
  56. BIN=BIN
      src/images/radio-check.png
  57. BIN=BIN
      src/images/radio-default.png
  58. BIN=BIN
      src/images/search.png
  59. BIN=BIN
      src/images/searchB.png
  60. BIN=BIN
      src/images/small-close.png
  61. BIN=BIN
      src/images/upload.png
  62. 77 0
      src/less/base.less
  63. 93 0
      src/less/index.less
  64. 18 0
      src/main.js
  65. 21 0
      src/router/index.js
  66. 370 0
      src/store.js
  67. 52 0
      src/utils/api.js
  68. 172 0
      src/utils/tools.js
  69. 0 0
      static/.gitkeep

+ 12 - 0
.babelrc

@@ -0,0 +1,12 @@
+{
+  "presets": [
+    ["env", {
+      "modules": false,
+      "targets": {
+        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
+      }
+    }],
+    "stage-2"
+  ],
+  "plugins": ["transform-vue-jsx", "transform-runtime"]
+}

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 4 - 0
.eslintignore

@@ -0,0 +1,4 @@
+/build/
+/config/
+/dist/
+/*.js

+ 29 - 0
.eslintrc.js

@@ -0,0 +1,29 @@
+// https://eslint.org/docs/user-guide/configuring
+
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint'
+  },
+  env: {
+    browser: true,
+  },
+  extends: [
+    // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
+    // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
+    'plugin:vue/essential', 
+    // https://github.com/standard/standard/blob/master/docs/RULES-en.md
+    'standard'
+  ],
+  // required to lint *.vue files
+  plugins: [
+    'vue'
+  ],
+  // add your custom rules here
+  rules: {
+    // allow async-await
+    'generator-star-spacing': 'off',
+    // allow debugger during development
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
+  }
+}

+ 8 - 26
.gitignore

@@ -1,32 +1,14 @@
-# Logs
-logs
-*.log
+.DS_Store
+node_modules/
+/dist/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
-icssfront.iml
-package-lock.json
-yarn.lock
-*-bak.*
 
-# Dependency directories
-node_modules/
-package-lock.json
-# Optional eslint cache
-.eslintcache
-/.DS_Store
-dist/
-dist
+# Editor directories and files
 .idea
-
 .vscode
-/.idea
-/dist
-
-
-# node
-app/
-app/package-lock.json
-app/yarn.lock
-app/logs
-app/node_modules
+*.suo
+*.ntvs*
+*.njsproj
+*.sln

+ 10 - 0
.postcssrc.js

@@ -0,0 +1,10 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+  "plugins": {
+    "postcss-import": {},
+    "postcss-url": {},
+    // to edit target browsers: use "browserslist" field in package.json
+    "autoprefixer": {}
+  }
+}

+ 21 - 0
README.md

@@ -0,0 +1,21 @@
+# mobilediag
+
+> A Vue.js project
+
+## Build Setup
+
+``` bash
+# install dependencies
+npm install
+
+# serve with hot reload at localhost:8082
+npm run dev
+
+# build for production with minification
+npm run build
+
+# build for production and view the bundle analyzer report
+npm run build --report
+```
+
+For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

+ 14 - 0
app.js

@@ -0,0 +1,14 @@
+const fs = require('fs');
+const path = require('path');
+const express = require('express');
+const chalk = require('chalk')
+const app = express();
+app.use(express.static(path.resolve(__dirname, './')))
+
+app.get('*', function(req, res) {
+  const html = fs.readFileSync(path.resolve(__dirname, './index.html'), 'utf-8')
+  res.send(html)
+})
+app.listen(5080, res => {
+  console.log(chalk.yellow('Start Service On 5080'));
+});

+ 41 - 0
build/build.js

@@ -0,0 +1,41 @@
+'use strict'
+require('./check-versions')()
+
+process.env.NODE_ENV = 'production'
+
+const ora = require('ora')
+const rm = require('rimraf')
+const path = require('path')
+const chalk = require('chalk')
+const webpack = require('webpack')
+const config = require('../config')
+const webpackConfig = require('./webpack.prod.conf')
+
+const spinner = ora('building for production...')
+spinner.start()
+
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
+  if (err) throw err
+  webpack(webpackConfig, (err, stats) => {
+    spinner.stop()
+    if (err) throw err
+    process.stdout.write(stats.toString({
+      colors: true,
+      modules: false,
+      children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
+      chunks: false,
+      chunkModules: false
+    }) + '\n\n')
+
+    if (stats.hasErrors()) {
+      console.log(chalk.red('  Build failed with errors.\n'))
+      process.exit(1)
+    }
+
+    console.log(chalk.cyan('  Build complete.\n'))
+    console.log(chalk.yellow(
+      '  Tip: built files are meant to be served over an HTTP server.\n' +
+      '  Opening index.html over file:// won\'t work.\n'
+    ))
+  })
+})

+ 54 - 0
build/check-versions.js

@@ -0,0 +1,54 @@
+'use strict'
+const chalk = require('chalk')
+const semver = require('semver')
+const packageConfig = require('../package.json')
+const shell = require('shelljs')
+
+function exec (cmd) {
+  return require('child_process').execSync(cmd).toString().trim()
+}
+
+const versionRequirements = [
+  {
+    name: 'node',
+    currentVersion: semver.clean(process.version),
+    versionRequirement: packageConfig.engines.node
+  }
+]
+
+if (shell.which('npm')) {
+  versionRequirements.push({
+    name: 'npm',
+    currentVersion: exec('npm --version'),
+    versionRequirement: packageConfig.engines.npm
+  })
+}
+
+module.exports = function () {
+  const warnings = []
+
+  for (let i = 0; i < versionRequirements.length; i++) {
+    const mod = versionRequirements[i]
+
+    if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
+      warnings.push(mod.name + ': ' +
+        chalk.red(mod.currentVersion) + ' should be ' +
+        chalk.green(mod.versionRequirement)
+      )
+    }
+  }
+
+  if (warnings.length) {
+    console.log('')
+    console.log(chalk.yellow('To use this template, you must update following to modules:'))
+    console.log()
+
+    for (let i = 0; i < warnings.length; i++) {
+      const warning = warnings[i]
+      console.log('  ' + warning)
+    }
+
+    console.log()
+    process.exit(1)
+  }
+}

BIN=BIN
build/logo.png


+ 102 - 0
build/utils.js

@@ -0,0 +1,102 @@
+'use strict'
+const path = require('path')
+const config = require('../config')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const packageConfig = require('../package.json')
+
+exports.assetsPath = function (_path) {
+  const assetsSubDirectory = process.env.NODE_ENV === 'production'
+    ? config.build.assetsSubDirectory
+    : config.dev.assetsSubDirectory
+
+  return path.posix.join(assetsSubDirectory, _path)
+}
+
+exports.cssLoaders = function (options) {
+  options = options || {}
+
+  const cssLoader = {
+    loader: 'css-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  const postcssLoader = {
+    loader: 'postcss-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  // generate loader string to be used with extract text plugin
+  function generateLoaders (loader, loaderOptions) {
+    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
+
+    if (loader) {
+      loaders.push({
+        loader: loader + '-loader',
+        options: Object.assign({}, loaderOptions, {
+          sourceMap: options.sourceMap
+        })
+      })
+    }
+
+    // Extract CSS when that option is specified
+    // (which is the case during production build)
+    if (options.extract) {
+      return ExtractTextPlugin.extract({
+        use: loaders,
+        fallback: 'vue-style-loader',
+        publicPath:'../../'             //配置背景图片地址
+      })
+    } else {
+      return ['vue-style-loader'].concat(loaders)
+    }
+  }
+
+  // https://vue-loader.vuejs.org/en/configurations/extract-css.html
+  return {
+    css: generateLoaders(),
+    postcss: generateLoaders(),
+    less: generateLoaders('less'),
+    sass: generateLoaders('sass', { indentedSyntax: true }),
+    scss: generateLoaders('sass'),
+    stylus: generateLoaders('stylus'),
+    styl: generateLoaders('stylus')
+  }
+}
+
+// Generate loaders for standalone style files (outside of .vue)
+exports.styleLoaders = function (options) {
+  const output = []
+  const loaders = exports.cssLoaders(options)
+
+  for (const extension in loaders) {
+    const loader = loaders[extension]
+    output.push({
+      test: new RegExp('\\.' + extension + '$'),
+      use: loader
+    })
+  }
+
+  return output
+}
+
+exports.createNotifierCallback = () => {
+  const notifier = require('node-notifier')
+
+  return (severity, errors) => {
+    if (severity !== 'error') return
+
+    const error = errors[0]
+    const filename = error.file && error.file.split('!').pop()
+
+    notifier.notify({
+      title: packageConfig.name,
+      message: severity + ': ' + error.name,
+      subtitle: filename || '',
+      icon: path.join(__dirname, 'logo.png')
+    })
+  }
+}

+ 22 - 0
build/vue-loader.conf.js

@@ -0,0 +1,22 @@
+'use strict'
+const utils = require('./utils')
+const config = require('../config')
+const isProduction = process.env.NODE_ENV === 'production'
+const sourceMapEnabled = isProduction
+  ? config.build.productionSourceMap
+  : config.dev.cssSourceMap
+
+module.exports = {
+  loaders: utils.cssLoaders({
+    sourceMap: sourceMapEnabled,
+    extract: isProduction
+  }),
+  cssSourceMap: sourceMapEnabled,
+  cacheBusting: config.dev.cacheBusting,
+  transformToRequire: {
+    video: ['src', 'poster'],
+    source: 'src',
+    img: 'src',
+    image: 'xlink:href'
+  }
+}

+ 87 - 0
build/webpack.base.conf.js

@@ -0,0 +1,87 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const config = require('../config')
+const vueLoaderConfig = require('./vue-loader.conf')
+
+function resolve (dir) {
+  return path.join(__dirname, '..', dir)
+}
+
+
+
+module.exports = {
+  context: path.resolve(__dirname, '../'),
+  entry:["babel-polyfill", "./src/main.js"],
+  output: {
+    path: config.build.assetsRoot,
+    filename: '[name].js',
+    publicPath: process.env.NODE_ENV === 'production'
+      ? config.build.assetsPublicPath
+      : config.dev.assetsPublicPath
+  },
+  resolve: {
+    extensions: ['.js', '.vue', '.json'],
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js',
+      '@': resolve('src'),
+      '@components':resolve('./src/components'),
+      '@less':resolve('./src/less'),
+      '@utils':resolve('./src/utils')
+    }
+  },
+  module: {
+    rules: [
+      {
+        test: /\.vue$/,
+        loader: 'vue-loader',
+        options: vueLoaderConfig
+      },
+      /*{
+        test: /\.less$/,
+        loader: "style-loader!css-loader!less-loader",
+      },*/
+      {
+        test: /\.js$/,
+        loader: 'babel-loader',
+        include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
+      },
+      {
+        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('img/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('media/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
+        }
+      }
+    ]
+  },
+  node: {
+    // prevent webpack from injecting useless setImmediate polyfill because Vue
+    // source contains it (although only uses it if it's native).
+    setImmediate: false,
+    // prevent webpack from injecting mocks to Node native modules
+    // that does not make sense for the client
+    dgram: 'empty',
+    fs: 'empty',
+    net: 'empty',
+    tls: 'empty',
+    child_process: 'empty'
+  }
+}

+ 98 - 0
build/webpack.dev.conf.js

@@ -0,0 +1,98 @@
+'use strict'
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const path = require('path')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
+const portfinder = require('portfinder')
+
+const HOST = process.env.HOST
+const PORT = process.env.PORT && Number(process.env.PORT)
+
+const devWebpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
+  },
+  // cheap-module-eval-source-map is faster for development
+  devtool: config.dev.devtool,
+
+  // these devServer options should be customized in /config/index.js
+  devServer: {
+    clientLogLevel: 'warning',
+    historyApiFallback: {
+      rewrites: [
+        { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
+      ],
+    },
+    hot: true,
+    openPage:'?hospitalCode=A001&hospitalDeptCode=D01&doctorCode=YS001&patientCode=1600&recordId=44',//携带参数
+    contentBase: false, // since we use CopyWebpackPlugin.
+    compress: true,
+    // host: HOST || config.dev.host,
+    host: '192.168.3.6',
+    // host: '192.168.3.126',
+    port: PORT || config.dev.port,
+    open: config.dev.autoOpenBrowser,
+    overlay: config.dev.errorOverlay
+      ? { warnings: false, errors: true }
+      : false,
+    publicPath: config.dev.assetsPublicPath,
+    proxy: config.dev.proxyTable,
+    quiet: true, // necessary for FriendlyErrorsPlugin
+    watchOptions: {
+      poll: config.dev.poll,
+    }
+  },
+  plugins: [
+    new webpack.DefinePlugin({
+      'process.env': require('../config/dev.env')
+    }),
+    new webpack.HotModuleReplacementPlugin(),
+    new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
+    new webpack.NoEmitOnErrorsPlugin(),
+    // https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: 'index.html',
+      template: 'index.html',
+      inject: true
+    }),
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.dev.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+module.exports = new Promise((resolve, reject) => {
+  portfinder.basePort = process.env.PORT || config.dev.port
+  portfinder.getPort((err, port) => {
+    if (err) {
+      reject(err)
+    } else {
+      // publish the new Port, necessary for e2e tests
+      process.env.PORT = port
+      // add port to devServer config
+      devWebpackConfig.devServer.port = port
+
+      // Add FriendlyErrorsPlugin
+      devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
+        compilationSuccessInfo: {
+          messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
+        },
+        onErrors: config.dev.notifyOnErrors
+        ? utils.createNotifierCallback()
+        : undefined
+      }))
+
+      resolve(devWebpackConfig)
+    }
+  })
+})

+ 145 - 0
build/webpack.prod.conf.js

@@ -0,0 +1,145 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
+
+const env = require('../config/prod.env')
+
+const webpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({
+      sourceMap: config.build.productionSourceMap,
+      extract: true,
+      usePostCSS: true
+    })
+  },
+  devtool: config.build.productionSourceMap ? config.build.devtool : false,
+  output: {
+    path: config.build.assetsRoot,
+    filename: utils.assetsPath('js/[name].[chunkhash].js'),
+    chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+  },
+  plugins: [
+    // http://vuejs.github.io/vue-loader/en/workflow/production.html
+    new webpack.DefinePlugin({
+      'process.env': env
+    }),
+    new UglifyJsPlugin({
+      uglifyOptions: {
+        compress: {
+          warnings: false
+        }
+      },
+      sourceMap: config.build.productionSourceMap,
+      parallel: true
+    }),
+    // extract css into its own file
+    new ExtractTextPlugin({
+      filename: utils.assetsPath('css/[name].[contenthash].css'),
+      // Setting the following option to `false` will not extract CSS from codesplit chunks.
+      // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
+      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 
+      // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
+      allChunks: true,
+    }),
+    // Compress extracted CSS. We are using this plugin so that possible
+    // duplicated CSS from different components can be deduped.
+    new OptimizeCSSPlugin({
+      cssProcessorOptions: config.build.productionSourceMap
+        ? { safe: true, map: { inline: false } }
+        : { safe: true }
+    }),
+    // generate dist index.html with correct asset hash for caching.
+    // you can customize output by editing /index.html
+    // see https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: config.build.index,
+      template: 'index.html',
+      inject: true,
+      minify: {
+        removeComments: true,
+        collapseWhitespace: true,
+        removeAttributeQuotes: true
+        // more options:
+        // https://github.com/kangax/html-minifier#options-quick-reference
+      },
+      // necessary to consistently work with multiple chunks via CommonsChunkPlugin
+      chunksSortMode: 'dependency'
+    }),
+    // keep module.id stable when vendor modules does not change
+    new webpack.HashedModuleIdsPlugin(),
+    // enable scope hoisting
+    new webpack.optimize.ModuleConcatenationPlugin(),
+    // split vendor js into its own file
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'vendor',
+      minChunks (module) {
+        // any required modules inside node_modules are extracted to vendor
+        return (
+          module.resource &&
+          /\.js$/.test(module.resource) &&
+          module.resource.indexOf(
+            path.join(__dirname, '../node_modules')
+          ) === 0
+        )
+      }
+    }),
+    // extract webpack runtime and module manifest to its own file in order to
+    // prevent vendor hash from being updated whenever app bundle is updated
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'manifest',
+      minChunks: Infinity
+    }),
+    // This instance extracts shared chunks from code splitted chunks and bundles them
+    // in a separate chunk, similar to the vendor chunk
+    // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'app',
+      async: 'vendor-async',
+      children: true,
+      minChunks: 3
+    }),
+
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.build.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+if (config.build.productionGzip) {
+  const CompressionWebpackPlugin = require('compression-webpack-plugin')
+
+  webpackConfig.plugins.push(
+    new CompressionWebpackPlugin({
+      asset: '[path].gz[query]',
+      algorithm: 'gzip',
+      test: new RegExp(
+        '\\.(' +
+        config.build.productionGzipExtensions.join('|') +
+        ')$'
+      ),
+      threshold: 10240,
+      minRatio: 0.8
+    })
+  )
+}
+
+if (config.build.bundleAnalyzerReport) {
+  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
+  webpackConfig.plugins.push(new BundleAnalyzerPlugin())
+}
+
+module.exports = webpackConfig

+ 7 - 0
config/dev.env.js

@@ -0,0 +1,7 @@
+'use strict'
+const merge = require('webpack-merge')
+const prodEnv = require('./prod.env')
+
+module.exports = merge(prodEnv, {
+  NODE_ENV: '"development"'
+})

+ 76 - 0
config/index.js

@@ -0,0 +1,76 @@
+'use strict'
+// Template version: 1.3.1
+// see http://vuejs-templates.github.io/webpack for documentation.
+
+const path = require('path')
+// const proxy_path = 'http://192.168.2.236:80';
+// const proxy_path = 'http://192.168.2.236:5050';
+const proxy_path = 'http://192.168.2.241:5050';
+
+module.exports = {
+  dev: {
+    // Paths
+    assetsSubDirectory: 'static',
+    assetsPublicPath: '/',
+    proxyTable: {
+      '/api': {
+        target: proxy_path,
+        changeOrigin: true,
+        secure: false
+      }
+    },
+
+    // Various Dev Server settings
+    port: 8082, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
+    autoOpenBrowser: true,
+    errorOverlay: true,
+    notifyOnErrors: true,
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
+
+
+    /**
+     * Source Maps
+     */
+
+    // https://webpack.js.org/configuration/devtool/#development
+    devtool: 'cheap-module-eval-source-map',
+
+    // If you have problems debugging vue-files in devtools,
+    // set this to false - it *may* help
+    // https://vue-loader.vuejs.org/en/options.html#cachebusting
+    cacheBusting: true,
+
+    cssSourceMap: true
+  },
+
+  build: {
+    // Template for index.html
+    index: path.resolve(__dirname, '../dist/index.html'),
+
+    // Paths
+    assetsRoot: path.resolve(__dirname, '../dist'),
+    assetsSubDirectory: 'static',
+    assetsPublicPath: './',
+
+    /**
+     * Source Maps
+     */
+
+    productionSourceMap: false,
+    // https://webpack.js.org/configuration/devtool/#production
+    devtool: '#source-map',
+
+    // Gzip off by default as many popular static hosts such as
+    // Surge or Netlify already gzip all static assets for you.
+    // Before setting to `true`, make sure to:
+    // npm install --save-dev compression-webpack-plugin
+    productionGzip: false,
+    productionGzipExtensions: ['js', 'css'],
+
+    // Run the build command with an extra argument to
+    // View the bundle analyzer report after build finishes:
+    // `npm run build --report`
+    // Set to `true` or `false` to always turn it on or off
+    bundleAnalyzerReport: process.env.npm_config_report
+  }
+}

+ 4 - 0
config/prod.env.js

@@ -0,0 +1,4 @@
+'use strict'
+module.exports = {
+  NODE_ENV: '"production"'
+}

+ 13 - 0
index.html

@@ -0,0 +1,13 @@
+<!doctype html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+    <!-- 去除点击事件高亮 -->
+    <meta name="msapplication-tap-highlight" content="no">
+    <title>智能预问诊</title>
+</head>
+<body>
+<div id="app"></div>
+</body>
+</html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 9314 - 0
package-lock.json


+ 71 - 0
package.json

@@ -0,0 +1,71 @@
+{
+  "name": "mobilediag",
+  "version": "1.0.0",
+  "description": "A Vue.js project",
+  "author": "Luolei <16657115156@163.com>",
+  "private": true,
+  "scripts": {
+    "dev": "webpack-dev-server --inline --hot --config build/webpack.dev.conf.js",
+    "start": "npm run dev",
+    "build": "node build/build.js"
+  },
+  "dependencies": {
+    "axios": "^0.18.0",
+    "babel-polyfill": "^6.26.0",
+    "better-scroll": "^1.13.2",
+    "fastclick": "^1.0.6",
+    "less": "^3.8.1",
+    "less-loader": "^4.1.0",
+    "lib-flexible": "^0.3.2",
+    "vue": "^2.5.2",
+    "vue-router": "^3.0.1",
+    "vue-photo-preview": "^1.1.3",
+    "vuex": "^3.1.1"
+  },
+  "devDependencies": {
+    "autoprefixer": "^7.1.2",
+    "babel-core": "^6.22.1",
+    "babel-helper-vue-jsx-merge-props": "^2.0.3",
+    "babel-loader": "^7.1.1",
+    "babel-plugin-syntax-jsx": "^6.18.0",
+    "babel-plugin-transform-runtime": "^6.22.0",
+    "babel-plugin-transform-vue-jsx": "^3.5.0",
+    "babel-preset-env": "^1.3.2",
+    "babel-preset-stage-2": "^6.22.0",
+    "chalk": "^2.0.1",
+    "copy-webpack-plugin": "^4.0.1",
+    "css-loader": "^0.28.0",
+    "extract-text-webpack-plugin": "^3.0.0",
+    "file-loader": "^1.1.4",
+    "friendly-errors-webpack-plugin": "^1.6.1",
+    "html-webpack-plugin": "^2.30.1",
+    "node-notifier": "^5.1.2",
+    "optimize-css-assets-webpack-plugin": "^3.2.0",
+    "ora": "^1.2.0",
+    "portfinder": "^1.0.13",
+    "postcss-import": "^11.0.0",
+    "postcss-loader": "^2.0.8",
+    "postcss-url": "^7.2.1",
+    "rimraf": "^2.6.0",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "uglifyjs-webpack-plugin": "^1.1.1",
+    "url-loader": "^0.5.8",
+    "vue-loader": "^13.3.0",
+    "vue-style-loader": "^3.0.1",
+    "vue-template-compiler": "^2.5.2",
+    "webpack": "^3.6.0",
+    "webpack-bundle-analyzer": "^2.9.0",
+    "webpack-dev-server": "^2.9.1",
+    "webpack-merge": "^4.1.0"
+  },
+  "engines": {
+    "node": ">= 6.0.0",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not ie <= 8"
+  ]
+}

+ 15 - 0
src/App.vue

@@ -0,0 +1,15 @@
+<template>
+    <div id="app">
+        <router-view/>
+    </div>
+</template>
+<script>
+  export default {
+    name:'App'
+  }
+</script>
+<style lang="less">
+  @import "./less/index.less";
+</style>
+
+

+ 147 - 0
src/common/CheckBox.vue

@@ -0,0 +1,147 @@
+<template>
+  <div class="check-wrap" v-if="item">
+    <img :src="datas.url.replace('{imageUrlPrefix}',imgUrl)" v-if="datas.url">
+    <p v-for="(it,index) in datas.questionDetailList" :key="it.id" class="list" @click="handleClick(it,index)">
+      <img :src="it.select==1?check:defaultPic">
+      <!-- <span :class="{'check':it.select==1}">{{it.name}}</span> -->
+      <span v-if="(it.name.indexOf('${'))==-1" :class="[{'check':it.select==1},{'exclu':exclusion !==999 && it.exclusion !== exclusion}]">{{it.name}}</span>
+      <!-- <MultiLineInput v-else 
+          @handleInp="inpVal($event,index)"
+          :msg="it.name" 
+          :part="it"
+          :border="false" 
+          :inline="true" 
+          :select="it.select==1" 
+          /> -->
+      <OptionInp v-else :item="it" @handleInp="inpVal($event,index)" />
+    </p>
+  </div>
+</template>
+<script type="text/javascript">
+import {imageUrlPrefix,patt} from '@utils/tools.js';
+import icon from '../images/check-default.png';
+import checkIcon from '../images/check.png';
+import MultiLineInput from '../common/MultiLineInput.vue';
+import OptionInp from '../common/OptionInp.vue';
+  export default{
+    name:'CheckBox',
+    data(){
+      return{
+        imgUrl:imageUrlPrefix,
+        defaultPic:icon,
+        check:checkIcon,
+        datas:{},
+        exclusion:999 //互斥
+      }
+    },
+    props:['item'],
+    created(){
+      // this.datas = JSON.parse(JSON.stringify(this.item));
+      this.datas = this.item;
+      this.resetExc();
+    },
+    methods:{
+      handleClick(it,index){
+        const list = this.datas;
+        let data = list.questionDetailList&&list.questionDetailList.slice(0);
+        // 处理互斥
+        const excluArr = data.filter(it=>it.exclusion==1);
+        const filArr = data.filter(it=>it.select==1);
+        if(excluArr.length>0){//有互斥
+          if(filArr.length>0){//有选中
+            if(it.exclusion !== filArr[0].exclusion){
+              return
+            }
+          }
+          this.exclusion = it.exclusion;  
+        }
+        // 处理选中状态
+        if(data[index].select){
+          data[index].select = 0;
+        }else{
+          data[index].select = 1;
+          this.exclusion = it.exclusion;
+        }
+        // 处理取消-互斥
+        const filArr1 = data.filter(it=>it.select==1);
+        if(excluArr.length>0){//有互斥
+          if(filArr1.length==0){//无选中
+            this.exclusion = 999;
+          }else{
+            this.exclusion = filArr1[0].exclusion;
+          }
+        }
+        let value = "";
+        for(let k in data){
+          if(data[k].select==1){
+            value += data[k].name + ','
+          }
+        }
+        const newData = Object.assign({},this.datas,{questionDetailList:data},{value:value?value.substring(0,value.length-1):''})
+        this.$emit("updata",newData);
+      },
+      inpVal(val,index){//输入框失焦处理
+        let valueStr = this.datas.value;
+        if(valueStr){
+          // let patt = /\$\{[^\]]+\}/g;
+          let newVal =  val;
+          const str = valueStr.replace(patt,newVal);
+          this.datas.value = str;
+        }
+        
+        // 输入框回读
+        let detailList = this.datas.questionDetailList;
+        let currItem = detailList[index];
+        currItem.value = val;
+        this.$emit("updata",this.datas);
+      },
+      resetExc(){
+        // 回读互斥项标识
+        const arr = this.datas.questionDetailList;
+        const filArr = arr.filter(it=>it.select==1);
+        if(filArr.length > 0){
+          this.exclusion = filArr[0].exclusion;
+        }else{
+          this.exclusion = 999;
+        }
+      }
+    },
+    watch:{
+      item:{
+        handler(newVal,oldVal){
+          this.datas = JSON.parse(JSON.stringify(newVal));
+          this.resetExc();
+        },
+        deep:true
+      }
+    },
+    components:{
+      MultiLineInput,
+      OptionInp
+    }
+  }
+</script>
+<style lang="less" scoped>
+  .check-wrap{
+    img{
+      width:100%;
+    }
+    .list{
+      color: #7C828E;
+      margin:0 .1rem .1rem 0;
+      padding: .12rem .1rem;
+      display: inline-block;
+      white-space: nowrap;
+      img{
+        width: .38rem;
+        vertical-align: middle;
+      }
+    }
+    .check{
+      color: #4F50FF;
+    }
+    .exclu{
+      color:#e6e7e9;
+    }
+  }
+</style>

+ 68 - 0
src/common/ComTextArea.vue

@@ -0,0 +1,68 @@
+<template>
+  <div class="comArea">
+    <textarea @input="changeVal" 
+            :style="{width:width,height:height}" 
+            v-model="txt" 
+            placeholder="请输入"
+            @blur="blur"></textarea>
+  </div>
+</template>
+
+<script type="text/javascript">
+export default {
+  name:'ComTextArea',
+  props: {
+    width: {
+      default: '100%',
+      type: String
+    },
+    height: {
+      default: '2rem',
+      type: String
+    },
+    item:{
+      type:Object,
+      require: true
+    }
+  },
+  data() {
+    return {
+      txt:this.item.value || '' //回读用
+      // txt:'' 
+    }
+  },
+  methods:{
+    changeVal(){
+      this.$emit('changeAreaVal',this.txt)
+    },
+    blur(){
+      const newData = Object.assign({},this.item,{value:this.txt});
+      this.$emit("updata",newData);
+    }
+  },
+  watch:{
+    item:{//清空时更新数据
+      handler(newVal,oldVal){
+        this.txt = newVal.value;
+      },
+      deep:true
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+  .comArea {
+    textarea {
+      color: #4F50FF;
+      resize: none;
+      box-shadow: none;
+      font-size: 0.3rem;
+      box-sizing: border-box;
+      border: 1px solid #DFE0E4;
+      border-radius: .08rem /* 8/100 */;
+      -webkit-appearance: none;
+      padding: .16rem /* 16/100 */ .3rem /* 30/100 */;
+      margin-bottom: .3rem;
+    }
+  }
+</style>

+ 64 - 0
src/common/Input.vue

@@ -0,0 +1,64 @@
+<template>
+  <div class="inp-wrap">
+    <input :type="item.controlType==6?'text':'tel'" 
+          :class="{'change':borColor}" 
+          v-model="val" 
+          @input="changeVal" 
+          @blur="blur">
+  </div>
+</template>
+<script type="text/javascript">
+  export default {
+    name:'Input',
+    data(){
+      return{
+        msg:"输入框",
+        val: this.item.value || '',
+        borColor:false
+      }
+    },
+    props:['item'],
+    methods:{
+      changeVal(e){
+        this.borColor = true;
+        if(this.item.controlType==7){//数字键盘
+          this.val = e.target.value=e.target.value.replace(/[^\d]/g,'')
+        }
+      },
+      blur(){
+        this.borColor = false;
+        const newData = Object.assign({},this.item,{value:this.val});
+        this.$emit("updata",newData);
+      }
+    },
+    watch:{
+      item:{
+        handler(newVal,oldVal){
+          this.val = newVal.value;
+        },
+        deep:true
+      }
+    }
+  }
+</script>
+<style lang="less" scoped>
+  .inp-wrap{
+    input{
+      width: 100%;
+      color: #4F50FF;
+      font-size: .3rem;
+      border: 0 none;
+      // border-bottom: 1px solid #7C828E;
+      border-bottom: 1px solid #DFE0E4;
+      margin-bottom: .3rem;
+      border-radius: 0;
+      outline-color: invert;
+      padding-left: 0.1rem;
+      box-sizing: border-box;
+      background: transparent;
+    }
+    .change{
+      border-color:  #4F50FF;
+    }
+  }
+</style>

+ 160 - 0
src/common/Label.vue

@@ -0,0 +1,160 @@
+<template>
+  <div class="label-wrap" v-if="item">
+    <span v-for="(it,index) in datas.questionMapping" :key="it.id" :class="['symp',{'check':it.select==1},{'exclu':exclusion !==999 && it.exclusionType !== exclusion}]" @click="handleClick(it,index)">
+      <i>{{it.name}}</i>
+      <i v-if="it.select==1" @click="deletSymp($event,it,index)"><img src="../images/delete.png" alt=""></i>
+    </span>
+    <Toast :message="delText" 
+          :show="showToast"
+          @comfirn="comfirnDel" 
+          @cancel="cancelDel"/>
+  </div>
+</template>
+<script type="text/javascript">
+import Toast from '../common/Toast.vue';
+  export default{
+    name:'Label',
+    data(){
+      return{
+        datas:{},
+        checkTxt:[],
+        showToast:false,
+        delText:"是否取消当前选中内容?",
+        tempItem:{},
+        exclusion:999 //互斥
+      }
+    },
+    props:['item','moduleType','ppId'],
+    created(){
+      this.datas = this.item;
+      // 回读互斥项标识
+      const arr = this.datas.questionMapping;
+      const filArr = arr.filter(it=>it.select==1);
+      if(filArr.length > 0){
+        this.exclusion = filArr[0].exclusionType;
+      }
+    },
+    components:{
+      Toast
+    },
+    methods:{
+      handleClick(it,index){
+        const arr = this.datas.questionMapping;
+        const excluArr = arr.filter(it=>it.exclusionType==1);
+        const filArr = arr.filter(it=>it.select==1);
+        if(excluArr.length>0){//有互斥
+          if(filArr.length>0){//有选中
+            if(it.exclusionType !== filArr[0].exclusionType){
+              return
+            }
+          }
+          this.exclusion = it.exclusionType;
+        }
+        const newItem = Object.assign({},it,{select:1});
+        const origMapping = this.item.questionMapping;
+        let mapping = this.datas.questionMapping;
+        for(let i in origMapping){
+          if(origMapping[i].id==it.id){
+            mapping.splice(i,1,newItem)
+          }
+        }
+        // 存值到store
+        this.$store.commit('setDatas',{type:this.moduleType,data:newItem,pId:this.datas.id,ppId:this.ppId});
+        this.$store.commit('setText',{type:this.moduleType,text:it.name,pId:it.id});
+        if(it.questionMapping&&it.questionMapping.length>0){//有明细
+          this.$emit("setDetail",{detail:it,ppId:this.ppId})
+        }
+      },
+      deletSymp(e,it,index){
+        e.stopPropagation();
+        // 删除互斥项(无)不弹窗提醒 7-18
+        this.tempItem = it;
+        if(it.exclusionType == 1){
+          this.comfirnDel();
+          return
+        }
+        this.showToast = true;
+      },
+      comfirnDel(){
+        const temp = this.tempItem;
+        // 从store中取origin的值
+        let origin,newItem;
+        if(this.moduleType==2){
+          origin = this.$store.state.diagnose.origin
+        }else if(this.moduleType == 3){
+          origin = this.$store.state.others.origin
+        }
+        if(origin){
+          for(let i in origin){
+            if(origin[i].id==this.ppId){
+              let origItem = origin[i].questionMapping;
+              for(let j in origItem){
+                if(origItem[j].id==temp.id){
+                  newItem = origItem[j];
+                }
+              }
+            }
+          }
+          let mapping = this.datas.questionMapping;
+          for(let n in mapping){
+            if(mapping[n].id==temp.id){
+              mapping.splice(n,1,newItem)
+            }
+          }
+        }
+        // 是否解除互斥
+        const arr = this.datas.questionMapping;
+        const filArr = arr.filter(it=>it.select==1);
+        if(filArr.length==0){
+          this.exclusion = 999;
+        }
+        //存值
+        this.$store.commit('setDatas',{type:this.moduleType,data:newItem,pId:this.datas.id,ppId:this.ppId});
+        this.$store.commit('delText',{type:this.moduleType,pId:temp.id});
+        this.cancelDel();
+      },
+      cancelDel(){
+        this.showToast = false;
+        this.tempItem = {};
+      }
+    }
+  }
+</script>
+<style lang="less" scoped>
+  .label-wrap{
+    font-size: .3rem;
+    .symp{
+      position: relative;
+    }
+    img{
+      width:.56rem;
+      height: .70rem;
+      vertical-align: top;
+      z-index: 22;
+      position: absolute;
+      top:0;
+      right: 0;
+    }
+    i{
+      display: inline-block;
+      vertical-align: top;
+    }
+    i:first-child{
+      min-width:1.34rem;
+      height: .72rem;
+      line-height: .72rem;
+      text-align: center;
+    }
+    .check{
+      color: #fff;
+      // background: linear-gradient(-270deg, #4F4FFF, #4F8BFF);
+      background: linear-gradient(-270deg, #3638EE, #4E72FF);
+      box-shadow: 0 .08rem .16rem 0 rgba(79,129,255,0.40);
+      padding-right: 0.57rem;
+    }
+    .exclu{
+      background:#f0f1f5;
+    }
+  }
+  
+</style>

+ 35 - 0
src/common/Loading.vue

@@ -0,0 +1,35 @@
+<template>
+  <div class="loading" v-if="show">
+    <div class="loadingModal"></div>
+    <img src="../images/loading.gif" alt="">
+  </div>
+</template>
+<script>
+export default {
+  data(){
+    return {
+      show:true
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+@import "../less/base.less";
+.loading {
+  .loadingModal{
+    .mask;
+    position: fixed;
+    width: 100%;
+    height: 100%;
+    left: 0;
+    top: 0;
+  }
+  img {
+    position: fixed;
+    top: 50%;
+    left: 50%;
+    transform: translate(-50%, -50%);
+  }
+}
+</style>
+

+ 170 - 0
src/common/MultiLineInput.vue

@@ -0,0 +1,170 @@
+<template>
+  <div :class="['multipIpt',{'border':border,'inline':inline,'check':select}]">
+    <span class="prefix" v-if="content.prefix">{{content.prefix}}</span>
+    <div class="sticP" :style="{paddingRight:content.suffix?'1rem':'0'}">
+        <div class="iptWrap">
+          <template v-for="(item,idx) in content.iptLis">
+            <input v-if="content.iptLis.length>1" 
+              class="contentVal" 
+              :type="content.type=='number'?'tel':'text'" 
+              :style="{'width':1/content.iptLis.length*100-3+'%'}" 
+              :key="item.placeholder+idx" 
+              v-model="item.value"
+              :placeholder="item.placeholder"
+              @input="changeVal($event,idx,content.type)" 
+              @blur="blur" 
+              @click="handleClick">
+            <input v-show="content.iptLis.length==1" class="contentVal" 
+              :type="content.type=='number'?'tel':'text'" 
+              :placeholder="content.placeholder" 
+              v-model="item.value" 
+              @input="changeVal($event,idx,content.type)" 
+              @blur="blur" 
+              @click="handleClick">
+            <span v-if="idx == 0&&content.iptLis.length>1">/</span>
+          </template>
+        </div>
+    </div>
+    <span class="suffix" v-if="content.suffix">{{content.suffix}}</span>
+  </div>
+</template>
+<script>
+import { getModelExpStr } from '@utils/tools';
+
+export default {
+  props:{
+    msg:{
+      default:'',
+      type:String
+    },
+    part:{
+      type:Object,
+      require: true
+    },
+    border:{//最外层边框
+      default:true,
+      type:Boolean
+    },
+    inline:{ //是否行内元素
+      default:false,
+      type:Boolean
+    },
+    select:{ //是否选中
+      default:false,
+      type:Boolean
+    },
+  },
+  data(){
+    return {
+      content:{},
+      txt:this.part.value || '', //回读用
+      tmpArr:[]
+    }
+  },
+  mounted(){
+    this.content = getModelExpStr(this.msg,this.txt)
+  },
+  methods:{
+    changeVal(e,num,type){
+      let tmpTxt = '',arr=this.tmpArr
+      if(type == 'number'){
+        e.currentTarget.value=e.currentTarget.value.replace(/[^\d]/g,'')
+      }
+      arr[num]=e.currentTarget.value
+      tmpTxt=arr.join('/')
+      this.txt = tmpTxt
+      this.content = getModelExpStr(this.msg,this.txt)
+      // this.$emit('changeMultipVal',e.currentTarget.value,num)
+    },
+    blur(){
+      // 如果该项未选中,则不存值
+      const select = this.part.select;
+      // if(!select){return}
+      const newData = Object.assign({},this.part,{value:this.txt,controlType:3});
+      this.$emit("updata",newData);
+      this.$emit('handleInp',this.txt);
+    },
+    handleClick(e){
+      // 点击输入框时不选中该项
+      e.stopPropagation();
+    }
+  },
+  watch:{
+      part:{//清空时更新
+        handler(newVal,oldVal){
+          this.txt = newVal.value;
+        },
+        deep:true
+      }
+    },
+}
+</script>
+<style lang="less" scoped>
+  .multipIpt {
+    width: 100%;
+    // height: .74rem /* 74/100 */;
+    line-height: .74rem /* 74/100 */;
+    // border: 1px solid #DFE0E4;
+    // border-radius: .08rem /* 8/100 */;
+    padding: 0 .12rem 0 .26rem;
+    box-sizing: border-box;
+    position: relative;
+    margin: .3rem 0;
+    .contentVal {
+      font-size: .3rem /* 30/100 */;
+      color: #4F50FF;
+      text-align: left;
+      border: 0 none;
+      border-bottom: 1px solid #b0afaf !important;
+      border-radius: 0;
+      // background-color: #fff;
+      background: transparent;
+      outline-color: invert;
+      height: .36rem;
+      line-height: .36rem;
+      width: 100%;
+      padding:0 0.1rem;
+      box-sizing: border-box;
+    }
+  }
+  .border{
+    border: 1px solid #DFE0E4;
+    border-radius: .08rem
+  }
+  .inline{
+    display: inline-block;
+    vertical-align: middle;
+    color: #7C828E;
+    padding: 0;
+    margin:0;
+    height: auto /* 74/100 */;
+    line-height: .36rem /* 74/100 */;
+  }
+  .prefix {
+    float: left;
+  }
+  .suffix {
+    position: absolute;
+    right: .1rem;
+    top: .2rem;
+    width: 1rem;
+    text-align: right;
+    text-align: left;
+    line-height: .36rem;
+  }
+  .sticP {
+    width: 100%;
+    // position: relative;
+    padding-right: 1rem;
+    box-sizing: border-box;
+    .iptWrap {
+      // width: 100%;
+      position: relative;
+      overflow: hidden;
+      min-width: 1rem;
+    }
+  }
+  .check{
+    color: #4F50FF;
+  }
+</style>

+ 76 - 0
src/common/OptionInp.vue

@@ -0,0 +1,76 @@
+<!-- 带输入框选项 -->
+<template>
+  <div :class="['inpbox',{'check':item.select}]">
+    <span class="prefix" v-if="msg.prefix">{{msg.prefix}}</span>
+    <div class="inp" @click="preClick">
+      <input :type="msg.type=='number'?'tel':'text'" 
+              :placeholder="msg.placeholder"
+              v-model="txt"
+              @blur="handleBlur"
+              @input="changeVal">
+    </div>
+    <span class="suffix" v-if="msg.suffix">{{msg.suffix}}</span>
+  </div>
+</template>
+<script type="text/javascript">
+import { getExpStr } from '@utils/tools';
+  export default {
+    name:'OptionInp',
+    data(){
+      return{
+        msg:{},
+        txt:this.item.value || ''
+      }
+    },
+    props:['item'],
+    mounted(){
+      this.msg = getExpStr(this.item.name);
+    },
+    methods:{
+      changeVal(e){
+        if(this.msg.type=='number'){//数字键盘
+          this.txt = e.target.value=e.target.value.replace(/[^\d]/g,'')
+        }
+      },
+      handleBlur(){
+        // 如果该项未选中,则不存值
+      const select = this.item.select;
+      if(!select){return}
+      const newData = Object.assign({},this.part,{value:this.txt});
+      this.$emit("updata",newData);
+      this.$emit('handleInp',this.txt);
+      },
+      preClick(e){
+        e.stopPropagation();
+      }
+    },
+    watch:{
+      item:{//清空时更新
+        handler(newVal,oldVal){
+          this.txt = newVal.value;
+        },
+        deep:true
+      }
+    },
+  }
+</script>
+<style lang="less" scoped>
+  .inpbox{
+    color:#7C828E;
+    display: inline-block;
+    .inp{
+      display: inline-block;
+      vertical-align: top;
+      input{
+        color: #4F50FF;
+        font-size: .3rem;
+        border-bottom: 1px solid #DFE0E4 !important;
+        border-radius: 0;
+        padding-left: .05rem;
+      }
+    }
+    .check{
+      color: #4F50FF;
+    }
+  }
+</style>

+ 109 - 0
src/common/Radio.vue

@@ -0,0 +1,109 @@
+<template>
+  <div class="radio-wrap" v-if="item">
+    <img :src="datas.url.replace('{imageUrlPrefix}',imgUrl)" v-if="datas.url">
+    <p v-for="(it,index) in datas.questionDetailList" :key="it.id" class="list" @click="handleClick(it,index)">
+      <img :src="it.select==1?check:defaultPic">
+      <!-- <span :class="{'check':it.select==1}">{{it.name}}</span> -->
+      <span v-if="(it.name.indexOf('${'))==-1" :class="{'check':it.select==1}">{{it.name}}</span>
+      <!-- <MultiLineInput v-else 
+          @handleInp="inpVal($event,index)"
+          :msg="it.name" 
+          :part="it" 
+          :border="false" 
+          :inline="true" 
+          :select="it.select==1" 
+          /> -->
+      <OptionInp v-else :item="it" @handleInp="inpVal($event,index)" />
+    </p>
+  </div>
+</template>
+<script type="text/javascript">
+import icon from '../images/radio-default.png'
+import checkIcon from '../images/radio-check.png'
+import {patt,imageUrlPrefix} from '@utils/tools.js'
+import MultiLineInput from '../common/MultiLineInput.vue';
+import OptionInp from '../common/OptionInp.vue';
+  export default{
+    name:'Radio',
+    data(){
+      return{
+        defaultPic:icon,
+        check:checkIcon,
+        datas:{},
+        imgUrl:imageUrlPrefix,
+      }
+    },
+    props:['item'],
+    created(){
+      // this.datas = JSON.parse(JSON.stringify(this.item));
+      this.datas = this.item;
+    },
+    methods:{
+      handleClick(it,index){
+        // let patt = /\$\{[^\]]+\}/g;
+        const list = this.datas;
+        let data = list.questionDetailList&&list.questionDetailList.slice(0); //数组深拷贝?
+        let value = "";
+        for(let i=0;i<data.length; i++){
+          data[i].select = 0
+          if(i==index){
+            data[i].select = 1;
+            value = data[i].name;
+          }
+        }
+        const newData = Object.assign({},this.datas,{questionDetailList:data},{value:value})
+        this.$emit("updata",newData);
+      },
+      inpVal(val,index){//输入框失焦处理
+        let valueStr = this.datas.value;
+        if(valueStr){
+          // let patt = /\$\{[^\]]+\}/g;
+          let newVal =  val;//修改时替换值用
+          const str = valueStr.replace(patt,newVal);
+          this.datas.value = str;
+        }
+        
+        // 输入框回读
+        let detailList = this.datas.questionDetailList;
+        let currItem = detailList[index];
+        currItem.value = val; 
+        this.$emit("updata",this.datas);
+      },
+    },
+    watch:{
+      item:{
+        handler(newVal,oldVal){
+          this.datas = JSON.parse(JSON.stringify(newVal));
+        },
+        deep:true
+      }
+    },
+    components:{
+      MultiLineInput,
+      OptionInp
+    }
+  }
+</script>
+<style lang="less" scoped>
+  .radio-wrap{
+    img{
+      width:100%;
+    }
+    .list{
+      color: #7C828E;
+      margin:0 .1rem .1rem 0;
+      padding: .12rem .1rem;
+      display: inline-block;
+      white-space: nowrap;
+      -webkit-white-space: nowrap;
+      // -webkit-box-orient: vertical;
+      img{
+        width: .38rem;
+        vertical-align: middle;
+      }
+      .check{
+        color: #4F50FF;
+      }
+    }
+  }
+</style>

+ 125 - 0
src/common/Submit.vue

@@ -0,0 +1,125 @@
+<template>
+  <div>
+    <div class="modalWrap"></div>
+    <div
+      v-if="showType=='success'"
+      class="submitSuccess"
+    >
+      <img
+        src="../images/complete.png"
+        alt=""
+      >
+      <p class="success">{{msg}}</p>
+      <p class="tip">{{tip}}</p>
+      <span @click="goStart">完 成</span>
+    </div>
+    <div
+      v-if="showType=='fail'"
+      class="submitFail"
+    >
+      <p>{{fail}}</p>
+    </div>
+  </div>
+</template>
+<script>
+export default {
+  props: ['showType'],
+  data() {
+    return {
+      msg: '提交成功',
+      tip: '您的病历信息已提交至医生问诊系统,点击完成按钮结束本次预问诊服务。',
+      fail: '提交失败请稍后再试'
+    }
+  },
+  // mounted(){
+  //   if(this.showType=='fail'){
+  //     setTimeout(() => {
+  //       this.$emit('showSubmit',false)
+  //     }, 2000);
+  //   }
+  // },
+  methods: {
+    goStart() {
+      // this.$store.commit('initAllData') //已在患者页进行初始化
+      this.$router.push("/")
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+@import "../less/base.less";
+.modalWrap {
+  .mask;
+  position: fixed;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 100%;
+}
+.submitSuccess {
+  width: 6rem;
+  height: 7rem;
+  background: #fff;
+  z-index: 999;
+  position: fixed;
+  top: 50%;
+  left: 50%;
+  transform: translate(-50%, -50%);
+  padding: 0.8rem 0.5rem 0.5rem 0.5rem;
+  box-sizing: border-box;
+  border-radius: 0.2rem;
+  text-align: center;
+  img {
+    width: 1.28rem;
+    height: 1.28rem;
+  }
+  .success {
+    font-size: 0.36rem;
+    color: #333333;
+    font-weight: bold;
+    margin-top: 0.5rem;
+    margin-bottom: 0.24rem;
+  }
+  .tip {
+    font-size: 0.24rem;
+    color: #666666;
+    line-height: 0.44rem;
+    margin-bottom: 1.2rem;
+  }
+  span {
+    width: 4.9rem;
+    height: 0.88rem;
+    line-height: 0.88rem;
+    font-size: 0.32rem;
+    color: #ffffff;
+    font-weight: bold;
+    display: inline-block;
+    background: -webkit-gradient(
+      linear,
+      right top,
+      left top,
+      from(#4f8bff),
+      to(#4f4fff)
+    );
+    background: -webkit-linear-gradient(right, #4f8bff, #4f4fff);
+    box-shadow: 0 0.12rem 0.24rem 0 rgba(79, 129, 255, 0.4);
+    border-radius: 0.44rem;
+  }
+}
+.submitFail {
+  width: 6rem;
+  height: 0.88rem;
+  line-height: 0.88rem;
+  z-index: 999;
+  position: absolute;
+  top: 50%;
+  left: 50%;
+  transform: translate(-50%, -50%);
+  box-sizing: border-box;
+  border-radius: 0.2rem;
+  text-align: center;
+  background-color: #fff;
+}
+</style>
+
+

+ 81 - 0
src/common/Toast.vue

@@ -0,0 +1,81 @@
+<template>
+  <div class="toast-wrap" v-if="show">
+    <div class="content">
+      <div class="text" v-html="message||msg">
+        <!-- {{message||msg}} -->
+      </div>
+      <div class="btn">
+        <span @click="comfirn">确定</span>
+        <span @click="cancel">取消</span>
+      </div>
+    </div>
+    <div class="mask"></div>
+  </div>
+</template>
+<script type="text/javascript">
+  export default {
+    name:'Toast',
+    data(){
+      return {
+        msg:"是否删除该信息?"
+      }
+    },
+    props:['message','show'],
+    methods:{
+      comfirn(){
+        this.$emit("comfirn")
+      },
+      cancel(){
+        this.$emit("cancel")
+      },
+    }
+  }
+</script>
+<style lang="less" scoped>
+  @import '../less/base.less';
+  .toast-wrap{
+    .content{
+      width: 6rem;
+      height: 3.5rem;
+      background: #fff;
+      z-index: 999;
+      // position: absolute;
+      position: fixed;
+      top:50%;
+      left: 50%;
+      transform: translate(-50%,-50%);
+      padding: .5rem;
+      box-sizing: border-box;
+      border-radius: .20rem;
+      .text{
+        color:#000;
+        text-align: center;
+        height: 1.25rem;
+        overflow-y: auto;
+        padding-top: .2rem;
+      }
+      .btn{
+        margin-top: .20rem;
+        display: flex;
+        justify-content: space-between;
+        span{
+          display: inline-block;
+          width: 2rem;
+          height: .77rem;
+          line-height: .77rem;
+          text-align: center;
+          color: #fff;
+          font-size: .30rem;
+          background: -webkit-gradient(linear, right top, left top, from(#4F8BFF), to(#4F4FFF));
+          background: linear-gradient(right, #4F8BFF, #4F4FFF);
+          box-shadow: 0 .12rem .24rem 0 rgba(79,129,255,0.40);
+          border-radius: .22rem;
+        }
+      }
+    }
+    .mask{
+      .mask;
+      z-index: 99;
+    }
+  }
+</style>

+ 219 - 0
src/common/UploadImg.vue

@@ -0,0 +1,219 @@
+<template>
+  <div class="img-wrap">
+    <div class="box">
+      <ul class="upload-imgs">
+        <li
+          v-if="imgLen>=6 ? false : true"
+          class="uploadBox"
+          @click="handleUpload"
+        >
+          <input
+            type="file"
+            class="upload"
+            @change="addImg"
+            accept="image/*"
+            ref="inp"
+            multiple
+            style="display:none"
+          />
+          <img src="../images/upload.png">
+          <p>点击上传</p>
+        </li>
+        <li v-for='(value, key) in imgs'>
+          <p class="imgbox">
+            <img
+              :src="value"
+              :preview="item.id"
+              class="img"
+              preview-text=""
+            >
+          </p>
+          <a
+            class="close"
+            @click="delImg(key)"
+          ></a>
+        </li>
+      </ul>
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+export default {
+  name: 'UploadImg',
+  data() {
+    return {
+      mag: "上传图片",
+      imgs: {},
+      imgLen: 0
+    }
+  },
+  props: ['item', 'moduleType', 'imgList'],//moduleType-哪个模块下上传的图
+  mounted() {
+    this.imgs = this.imgList; //回读
+    this.$previewRefresh();//预览刷新
+  },
+  methods: {
+    handleUpload() {
+      const inp = this.$refs.inp;
+      inp.click();
+    },
+    delImg(key) {
+      let obj = this.imgs;
+      delete (obj[key]);
+      this.imgLen--;
+      this.imgs = Object.assign({}, obj);
+      this.$store.commit('deleImg', { key: key, type: this.moduleType });
+      this.$store.commit('deleSrc', { key: key, type: this.moduleType });
+    },
+    addImg() {
+      // 上传图片进行压缩,压缩后超过4M则不允许上传
+      let fileTag = this.$refs.inp;
+      let img = this.$refs.img;
+      let file = fileTag.files[0];
+      const that = this;
+      this.imgBase64(file, function (image, canvas) {
+        var maxSize = 4 * 1024; // 4M
+        var fileSize = file.size / 1024; //kb 图片大小
+        var uploadSrc;
+        var uploadFile;
+        if (fileSize > maxSize) { // 如果图片大小大于4m,进行压缩
+          // console.log(maxSize,fileSize, maxSize/fileSize );
+          uploadSrc = canvas.toDataURL(file.type, maxSize / fileSize);
+          uploadFile = that.dataURLtoFile(uploadSrc, file.name.split('.')[0]); // 转成file文件
+          // uploadFile = that.convertBase64UrlToBlob(uploadSrc); // 转成blob
+        } else {
+          uploadSrc = image.src; //canvas.toDataURL(file.type,0.5);
+          uploadFile = file;
+        }
+
+        var compressedSize = uploadFile.size / 1024 / 1024;
+        if (compressedSize.toFixed(2) > 4.00) {
+          alert('上传图片不可超过4M');
+        } else {
+          let key = file.name + new Date().getTime();
+          that.$set(that.imgs, key, uploadSrc);
+          that.imgLen++;
+          // 将图片信息存到store
+          that.$store.commit('setImgFile', { type: that.moduleType, pId: that.item.id, key: key, file: uploadFile })
+          that.$store.commit('setImgSrc', { key: key, src: uploadSrc, type: that.moduleType })
+          that.$previewRefresh(); //异步获取的图片需要刷新下
+        }
+      });
+    },
+    imgBase64(file, callback) {
+      var self = this;
+      // 看支持不支持FileReader
+      if (!file || !window.FileReader) return;
+      // 创建一个 Image 对象
+      var image = new Image();
+      // 绑定 load 事件处理器,加载完成后执行
+      image.onload = function () {
+        // 获取 canvas DOM 对象
+        var canvas = document.createElement('canvas')
+        // 返回一个用于在画布上绘图的环境, '2d' 指定了您想要在画布上绘制的类型
+        var ctx = canvas.getContext('2d')
+        // 如果高度超标 // 参数,最大高度
+        var MAX_HEIGHT = 3000;
+        if (image.height > MAX_HEIGHT) {
+          // 宽度等比例缩放 *=
+          image.width *= MAX_HEIGHT / image.height;
+          image.height = MAX_HEIGHT;
+        }
+        // 获取 canvas的 2d 环境对象,
+        // canvas清屏
+        ctx.clearRect(0, 0, canvas.width, canvas.height);
+        // 重置canvas宽高
+        canvas.width = image.width;
+        canvas.height = image.height;
+        // 将图像绘制到canvas上
+        ctx.drawImage(image, 0, 0, image.width, image.height);
+        callback(image, canvas);
+      };
+      if (/^image/.test(file.type)) {
+        var reader = new FileReader();
+        // 将图片将转成 base64 格式
+        reader.readAsDataURL(file);
+        // 读取成功后的回调
+        reader.onload = function () {
+          // 设置src属性,浏览器会自动加载。
+          // 记住必须先绑定事件,才能设置src属性,否则会出同步问题。
+          image.src = this.result;
+        }
+      }
+    },
+    // 将以base64的图片url数据转换为Blob
+    convertBase64UrlToBlob(urlData) {
+      var bytes = window.atob(urlData.split(',')[1]); //去掉url的头,并转换为byte
+      //处理异常,将ascii码小于0的转换为大于0
+      var ab = new ArrayBuffer(bytes.length);
+      var ia = new Uint8Array(ab);
+      for (var i = 0; i < bytes.length; i++) {
+        ia[i] = bytes.charCodeAt(i);
+      }
+      return new Blob([ab], { type: 'image/jpg' });
+    },
+    // 将以base64的图片url数据转换为file
+    dataURLtoFile(dataurl, filename) { //将base64转换为文件
+      var arr = dataurl.split(','),
+        mime = arr[0].match(/:(.*?);/)[1],
+        bstr = atob(arr[1]),
+        n = bstr.length,
+        u8arr = new Uint8Array(n);
+      while (n--) {
+        u8arr[n] = bstr.charCodeAt(n);
+      }
+      return new File([u8arr], filename, { type: mime });
+    },
+
+  }
+}
+</script>
+<style lang="less" scoped>
+.img-wrap {
+  font-size: 0.3rem;
+  .upload-imgs {
+    margin-bottom: 0.2rem;
+    .uploadBox {
+      border: 1px solid #dfe0e4;
+      box-sizing: border-box;
+      text-align: center;
+      img {
+        width: 0.6rem;
+        margin: 0.45rem 0 0.23rem 0;
+      }
+    }
+    li {
+      width: 1.86rem;
+      height: 1.9rem;
+      border: 1px solid #dfe0e4;
+      display: inline-block;
+      position: relative;
+      vertical-align: top;
+      border-radius: 0.08rem;
+      margin: 0 0 0.3rem 0.3rem;
+      .close {
+        width: 0.54rem;
+        height: 0.54rem;
+        background: url(../images/del-pic.png) no-repeat;
+        background-size: cover;
+        position: absolute;
+        top: -0.27rem;
+        right: -0.27rem;
+        z-index: 3;
+      }
+    }
+    li:nth-child(3n + 1) {
+      margin-left: 0;
+    }
+    .imgbox {
+      width: 100%;
+      height: 100%;
+      overflow: hidden;
+      border-radius: 0.08rem;
+      .img {
+        width: 100%;
+      }
+    }
+  }
+}
+</style>

+ 172 - 0
src/components/AddContent.vue

@@ -0,0 +1,172 @@
+<template>
+  <div class="symp-wrap">
+    <div class="choose">
+      <ul class="addPart">
+        <li v-for="(item,idx) in dataTrd">
+          <p class="question">{{idx+1 + '. ' +item.name}}</p>
+          <Radio v-if="item.controlType==1" 
+            :item="item"
+            :key="item.id"
+            @updata="updataData($event,idx,item)"/>
+          <CheckBox v-if="item.controlType==2" 
+            :item="item"
+            :key="item.id"
+            @updata="updataData($event,idx,item)"/>
+          <ComTextArea
+            v-if="item.controlType == 5"
+            :item="item"
+            @updata="updataData($event,idx,item)"
+            @changeAreaVal="changeAreaVal($event,idx)"
+          ></ComTextArea>
+          <Input v-if="item.controlType==6 || item.controlType==7"
+            :item="item"
+            :key="item.id"
+            @updata="updataData($event,idx,item)"/>
+          <template
+            v-if="item.controlType == 3"
+            v-for="(part,index) in item.questionDetailList"
+          >
+            <MultiLineInput
+              v-if="item.controlType == 3"
+              :msg="part.name"
+              :part="part"
+              @updata="updataData($event,index,item)"
+            ></MultiLineInput>
+          </template>
+        </li>
+      </ul>
+      <div class="result" v-if="allStr">
+        <p class="title">{{allMoudles.name}}</p>
+        <p>{{allStr}}</p>
+      </div>
+      <div class="thanks">
+        <p>感谢您的回答,您的病历已经自动生成。</p>
+        <p>您可以点击预览病历回顾病情;或者点击顶部修改病历采集信息。</p>
+        <p>如果没有需要修改的内容,请点击提交,医生便能看到您的病历。</p>
+      </div>
+    </div>
+    <div class="foot">
+      <span class="back" @click="back">{{'返回'+ preName}}</span>
+      <span class="next" @click="next">预览</span>
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+import ComTextArea from '../common/ComTextArea.vue';
+import MultiLineInput from '../common/MultiLineInput.vue';
+import Input from '../common/Input.vue';
+import Radio from '../common/Radio.vue';
+import CheckBox from '../common/CheckBox.vue';
+import {getAllStr} from '@utils/tools.js'
+
+export default {
+  name: 'AddContent',
+  props: ['allMoudles','preName'],
+  data() {
+    return {
+      dataTrd: [],
+      val: '',
+      allStr:''
+    }
+  },
+  mounted() {
+    this.dataTrd = this.allMoudles && this.allMoudles.moduleDetailDTOList
+  },
+  methods: {
+    back() {
+      this.$emit("back");
+    },
+    changeAreaVal(value, idx) {
+      this.val = value
+    },
+    next(){
+      this.$store.commit('setText',{data:this.dataTrd,type:this.allMoudles&&this.allMoudles.type});
+      this.$emit('next','preview')
+    },
+    setDetail(obj){
+      this.labelDetail = obj.detail;
+      this.ppId = obj.ppId;
+      this.show = true;
+    },
+    updateOrig(){
+      let origin = this.$store.state.diagnose.origin;
+      // this.dtoList = origin;console.log("更新:",origin)
+    },
+    updataData(data,idx,item){
+      let mapping = this.dataTrd;
+      if(data.controlType == 3){//多行输入,多了一层需单独处理
+        let tmpLis = item.questionDetailList
+        tmpLis.splice(idx,1,data)
+        this.allStr=getAllStr({data:this.dataTrd,type:this.allMoudles&&this.allMoudles.type})
+        return;
+      }
+      for(let i in mapping){
+        if(mapping[i].id==data.id){
+          mapping.splice(i,1,data)
+        }
+      }
+      this.allStr=getAllStr({data:this.dataTrd,type:this.allMoudles&&this.allMoudles.type})
+      this.$store.commit('setDataAll',{data:data,idx:idx});
+    },
+  },
+  components: {
+    ComTextArea,
+    MultiLineInput,
+    Input,
+    Radio,
+    CheckBox
+  }
+}
+</script>
+<style lang="less" scoped>
+@import "../less/base.less";
+.symp-wrap {
+  font-size: 0.3rem;
+  padding-right: .3rem;
+  h3 {
+    color: #000;
+    margin-bottom: 0.36rem;
+  }
+}
+.choose {
+  padding-bottom: 0.2rem;
+  .addPart {
+    li {
+      margin-bottom: 0.1rem;
+      clear: both;
+    }
+    .question {
+      margin-bottom: 0.2rem;
+      font-weight: bold;
+    }
+  }
+}
+  .foot{
+    .dbfooter;
+  }
+  
+.result{
+  margin-bottom: .3rem;
+  .title{
+    color: #4F50FF;
+    padding-left: .1rem;
+    border-left: .08rem solid #4F50FF;
+    margin-bottom: .19rem;
+    font-weight: 700;
+  }
+  p{
+    color: #666;
+    line-height: .44rem;
+  }
+}
+.thanks {
+  font-size: .28rem /* 28/100 */;
+  color: #666666;
+  letter-spacing: 0;
+  text-align: justify;
+  line-height: .48rem /* 48/100 */;
+}
+.label{
+  .label;
+}
+</style>

+ 116 - 0
src/components/Detail.vue

@@ -0,0 +1,116 @@
+<template>
+  <div class="detail-wrap">
+    <!-- <div v-for="(item,index) in datas"> -->
+    <div v-for="(item,index) in checkDatas.questionMapping">
+      <p class="quest">{{index + 1 +'.' + item.name}}</p>
+      <Radio v-if="item.controlType==1" 
+            :item="item"
+            :key="item.id"
+            @updata="updataData"/>
+      <CheckBox v-if="item.controlType==2" 
+            :item="item"
+            :key="item.id"
+            @updata="updataData"/>
+      <!-- 文本域 -->
+      <ComTextArea v-if="item.controlType == 5"
+            :item="item"
+            @updata="updataData"/>
+      <!-- 输入框 -->
+      <Input v-if="item.controlType==6 || item.controlType==7"
+            :item="item"
+            :key="item.id"
+            @updata="updataData"/>
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+import Radio from '../common/Radio.vue';
+import CheckBox from '../common/CheckBox.vue';
+import Input from '../common/Input.vue';
+import ComTextArea from '../common/ComTextArea.vue';
+import {patt} from '@utils/tools.js'
+// 将获取到的数据源转换成私有数据,处理选择事件。点击完成后统一存到store中,便于回读
+  export default {
+    name:'Detail',
+    data(){
+      return{
+        checkDatas:{},
+        finished:false
+      }
+    },
+    props:['datas','type','ppId'],
+    created(){
+      this.checkDatas = JSON.parse(JSON.stringify(this.datas));
+    },
+    components:{
+      Radio,
+      CheckBox,
+      Input,
+      ComTextArea
+    },
+    methods:{
+      updataData(data){
+        const origMapping = this.datas.questionMapping;
+        let mapping = this.checkDatas.questionMapping;
+        for(let i in origMapping){
+          if(origMapping[i].id==data.id){
+            mapping.splice(i,1,data)
+          }
+        }
+      },
+      saveData(){//存值
+        this.finished = true;
+        this.checkDatas = Object.assign({},this.checkDatas,{select:1});
+        const datas = this.checkDatas.questionMapping;
+        let text = "";
+        for(let i in datas){
+          if(datas[i].value){
+            text += datas[i].value+',';
+          }
+        }
+        // let msg = this.checkDatas.name+ ',' + text.substring(0,text.length-1);
+        let msg = this.checkDatas.name+ ',' + text;
+        let newMsg = "";
+        if(msg[msg.length-1] == ','){
+          newMsg = msg.substring(0,msg.length-1);
+        }else{
+          newMsg = msg
+        }
+
+        this.$store.commit('setDatas',{data:this.checkDatas,pId:this.checkDatas.id,type:this.type,ppId:this.ppId});
+        // flag是区分点开已选症状 未点完成
+        this.$store.commit('setText',{text:newMsg.replace(patt,''),pId:this.checkDatas.id,type:this.type,flag:true});
+      },
+      clearData(){//清空
+        const datas = this.checkDatas.questionMapping;
+        for(let i in datas){
+          datas[i].value = "";
+          let detaiList = datas[i].questionDetailList;
+          if(detaiList.length>0){
+            for(let k in detaiList){
+              detaiList[k].select = 0;
+              if(detaiList[k].value){
+                detaiList[k].value = "";
+              }
+            }
+          }
+        }
+        this.checkDatas = Object.assign({},this.checkDatas,{questionMapping:datas});
+        let msg = this.checkDatas.name;
+        this.$store.commit('setDatas',{data:this.checkDatas,pId:this.checkDatas.id,type:this.type,ppId:this.ppId});
+        this.$store.commit('setText',{text:msg,pId:this.checkDatas.id,type:this.type,flag:true});
+      }
+    },
+  }
+</script>
+<style lang="less" scoped>
+  .detail-wrap{
+    // padding: .3rem .5rem 1.2rem .6rem;
+    padding: .3rem .5rem 2rem .6rem;
+    font-size: .3rem;
+    .quest{
+      color:#000;
+      margin-bottom: .2rem;
+    }
+  }
+</style>

+ 152 - 0
src/components/DetailBox.vue

@@ -0,0 +1,152 @@
+<template>
+  <div class="detailBox-wrap" ref="detailBox">
+    <div class="head">
+      <span class="icon" @click="close">
+        <img src="../images/small-close.png">
+      </span>
+      <span class="name">{{privateData.name+'详情'}}</span>
+      <span @click="handleClear">清空</span>
+      <i>{{tips}}</i>
+    </div>
+    <div class="main">
+      <Detail :datas="privateData" 
+              ref="detail"
+              :type="moduleType" 
+              :ppId="ppId"/>
+    </div>
+    <div class="foot" @click="complete">完成</div>
+    <Toast :message="clearTxt" 
+          :show="showToast"
+          @comfirn="comfirnDel" 
+          @cancel="cancelDel"/>
+  </div>
+</template>
+<script type="text/javascript">
+  import Detail from './Detail.vue';
+  import Toast from '../common/Toast.vue';
+  export default {
+    name:'DetailBox', //点开详情的盒子
+    data(){
+      return{
+        msg:"胸痛详情",
+        privateData:{},
+        compFlag:false,
+        clearTxt:"是否清空当前已选内容?",
+        showToast:false,
+        tips:"(请完成病情预问诊可让医生提前了解病情)"
+      }
+    },
+    created(){
+      this.privateData = this.data;
+    },
+    mounted(){
+      const box = this.$refs.detailBox;
+      const height = document.documentElement.clientHeight;
+      box.style.height = height - 45 + 'px'; 
+    },
+    methods:{
+      close(){
+        this.$emit("close");
+      },
+      complete(){
+        this.$refs.detail.saveData();
+        this.$emit("pComplete");
+      },
+      handleClear(){//清空
+        this.showToast = true;
+      },
+      cancelDel(){
+        this.showToast = false;
+      },
+      comfirnDel(){
+        this.$refs.detail.clearData();
+        this.showToast = false;
+        // 让detail组件更新
+        // this.privateData = JSON.parse(JSON.stringify(this.data));
+        this.$emit('reload',this.data.id);
+      }
+    },
+    props:['data','moduleType','ppId'],
+    components:{
+      Detail,
+      Toast
+    }
+  }
+</script>
+<style lang="less" scoped>
+@import '../less/base.less';
+  .detailBox-wrap{
+    width: 100%;
+    // overflow-y: auto;
+    position: fixed;
+    bottom: 0;
+    left: 0;
+    z-index: 666;
+    background: #fff;
+    border-radius: .08rem .08rem 0 0;
+    font-size: .3rem;
+    // animation: wave .4s ease-in;
+    animation: wave .4s linear;
+    .head{
+      // height: .88rem;
+      height: 1rem; //增加了提示
+      line-height: .88rem;
+      display: flex;
+      justify-content: space-between;
+      border-bottom: 1px solid #E6E7EF;
+      padding: 0 .4rem 0 .32rem;
+      font-size: .28rem;
+      color: #7C828E;
+      i{
+        position: absolute;
+        top:0.35rem;
+        left:0;
+        font-size: .22rem;
+        width:100%;
+        display: inline-block;
+        text-align: center;
+      }
+      .icon{
+        display: inline-block;
+        height: 100%;
+        padding: 0 .1rem;
+        img{
+          width:.34rem;
+          vertical-align: middle;
+        }
+      }
+      .name{
+        font-size: .32rem;
+        color: #1A1A1A;
+      }
+    }
+    .main{
+      height: 100%;
+      width:100%;
+      overflow-y: auto;
+    }
+    .foot{
+      .footer;
+      animation-delay:.6s;
+      animation: foo .4s linear;
+      /* width:100%;
+      height: .88rem;
+      line-height: .88rem;
+      text-align: center;
+      color:#fff;
+      font-size: .32rem;
+      background: linear-gradient(-270deg, #4F4FFF,#4F8BFF); */
+    }
+  }
+  @keyframes wave {
+    0%   {top:100% ;}
+    25% {top: 75%;}
+    50% {top: 50%;}
+    75% {top: 25%;}
+    100% {top: 45px;}
+  } 
+  @keyframes foo {
+    0% {bottom:-1rem;}
+    100% {bottom:0;}
+  }
+</style>

+ 193 - 0
src/components/DiagTreat.vue

@@ -0,0 +1,193 @@
+<template>
+  <div class="treat-wrap">
+    <div v-for="(it,i) in dtoList" 
+        v-if="dtoList"
+        :key="it.id"
+        class="label">
+      <p class="quest">{{i + 1 +'.' + it.name}}</p>
+        <Label v-if="it.controlType==0" 
+              :item="it" 
+              :indx="i" 
+              :ppId="it.id"
+              :moduleType="datas.type"
+              @setDetail="setDetail"/>
+        <!-- 上传图片 -->
+        <UploadImg v-if="it.controlType==4" 
+            :item="it" 
+            :moduleType="datas.type"
+            :imgList="imgs"
+            />
+        <!-- 输入框 -->
+        <Input v-if="it.controlType==6 || it.controlType==7"
+            :item="it"
+            :key="it.id"
+            @updata="updataData($event,it.id)"/>
+        <!-- 文本域 -->
+        <ComTextArea v-if="it.controlType == 5"
+            :item="it"
+            @updata="updataData($event,it.id)"/>
+        <Radio v-if="it.controlType==1" 
+            :item="it"
+            :key="it.id"
+            @updata="updataData($event,it.id)"/>
+        <CheckBox v-if="it.controlType==2" 
+            :item="it"
+            :key="it.id"
+            @updata="updataData($event,it.id)"/>
+    </div>
+    <div class="result" v-if="checkText.length>0">
+      <p class="title">治疗情况</p>
+      <!-- <p v-for="(v,i) in checkText">{{v.text}}</p> -->
+      <p>{{getText()}}</p>
+    </div>
+
+    <div class="foot" v-if="modluesLen==2">
+      <span class="back" @click="beBack">{{'返回'+ preName}}</span>
+      <span class="next" @click="toNext">{{'预览'}}</span>
+    </div>
+    <div class="foot" v-else>
+      <span class="back" @click="beBack">{{'返回'+ preName}}</span>
+      <span class="next" @click="toNext">{{'进入'+ nextName}}</span>
+    </div>
+    <div class="detail" v-if="show">
+    <DetailBox @close="closeDetal" 
+            :data="labelDetail" 
+            :moduleType="datas.type"
+            :ppId="ppId"
+            v-if="labelDetail.questionMapping&&labelDetail.questionMapping.length>0"
+            @pComplete="complete"/>
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+  import UploadImg from '../common/UploadImg.vue';
+  import Label from '../common/Label.vue';
+  import DetailBox from './DetailBox.vue';
+  import Input from '../common/Input.vue';
+  import ComTextArea from '../common/ComTextArea.vue';
+  import {moduleCP} from '@utils/tools';
+  import Radio from '../common/Radio.vue';
+  import CheckBox from '../common/CheckBox.vue';
+  export default {
+    name:'DiagTreat',
+    data(){
+      let {origin,text,datas} = this.$store.state.diagnose;
+      return{
+        msg:"诊疗情况",
+        imgs:this.$store.state.diagnose.imgSrc,
+        // dtoList:origin, //模板数据
+        dtoList:datas, //模板数据
+        labelDetail:{}, //标签明细
+        checkText:text, //选中的文字-Arr
+        show:false,
+        ppId:null
+      }
+    },
+    props:['datas','preName','nextName','modluesLen'],
+    methods:{
+      beBack(){
+        this.$emit('back');
+      },
+      toNext(){
+        if(this.modluesLen==2){
+          this.$emit('next','preview')
+        }else{
+          this.$emit('next');
+        }
+      },
+      setDetail(obj){
+        this.labelDetail = obj.detail;
+        this.ppId = obj.ppId;
+        this.show = true;
+      },
+      complete(){
+        this.show = false;
+        this.labelDetail = {};
+        this.ppId = null;
+        // 处理明细选中的值
+      },
+      closeDetal(){
+        this.show = false;
+        this.labelDetail = {};
+        this.ppId = null;
+      },
+      getText(){
+        let textArr = this.checkText;
+        let msg = "";
+        for(let k in textArr){
+          msg += textArr[k].text + ';'
+        }
+        return msg;
+      },
+      updataData(data,id){//输入框存值
+        let list = this.dtoList;
+        for(let i in list){
+          if(list[i].id==data.id){
+            list.splice(i,1,data)
+          }
+        }
+        this.$store.commit('setDatas',{type:moduleCP['diagT'],data:data,pId:data.id,ppId:id});
+        this.$store.commit('setText',{type:moduleCP['diagT'],text:data.value,pId:data.id,flag:true}); 
+      }
+    },
+    components:{
+      UploadImg,
+      Label,
+      DetailBox,
+      Input,
+      ComTextArea,
+      Radio,
+      CheckBox
+    },
+    /*watch:{
+      dtoList:{
+        handler(newVal,oldVal){
+        },
+        deep:true
+      }
+    },*/
+  }
+</script>
+<style lang="less" scoped>
+@import '../less/base.less';
+  .treat-wrap{
+    font-size: .3rem;
+    .quest{
+      color: #000;
+      margin-bottom: .36rem;
+      font-weight: 700;
+    }
+    .label{
+      .label;
+      /* img{
+        width:.56rem;
+        height: .74rem;
+        vertical-align: top;
+      } */
+    }
+    .result{
+      .title{
+        color: #4F50FF;
+        padding-left: .1rem;
+        border-left: .08rem solid #4F50FF;
+        margin-bottom: .19rem;
+        font-weight: 700;
+      }
+      p{
+        color: #666;
+        line-height: .44rem;
+      }
+    }
+  }
+  .foot{
+    .dbfooter;
+  }
+  .detail{
+    .mask;
+    z-index: 66;
+  }
+  
+.footer{
+  .footer;
+}
+</style>

+ 198 - 0
src/components/Others.vue

@@ -0,0 +1,198 @@
+<template>
+  <div class="other-wrap">
+    <div v-for="(it,i) in dtoList" 
+        v-if="dtoList"
+        :key="it.id"
+        class="label">
+        <p class="quest">{{i + 1 +'.' + it.name}}</p>
+        <!-- <Label v-if="it.controlType==0" -->
+        <Label v-if="it.controlType==0"
+              :item="it"
+              :ppId="it.id" 
+              :moduleType="datas.type" 
+              @setDetail="setDetail"/>
+        <!-- 输入框 -->
+        <Input v-if="it.controlType==6 || it.controlType==7"
+            :item="it"
+            :key="it.id"
+            @updata="updataData($event,it.id)"/>
+        <!-- 文本域 -->
+        <ComTextArea v-if="it.controlType == 5"
+            :item="it"
+            @updata="updataData($event,it.id)"/>
+        <Radio v-if="it.controlType==1" 
+            :item="it"
+            :key="it.id"
+            @updata="updataData($event,it.id)"/>
+        <CheckBox v-if="it.controlType==2" 
+            :item="it"
+            :key="it.id"
+            @updata="updataData($event,it.id)"/>
+        <!-- 多行输入 存值和回读事件未处理 -->
+        <!-- <template
+            v-if="it.controlType == 3"
+            v-for="(part,index) in it.questionDetailList"
+          >
+            <MultiLineInput
+              v-if="it.controlType == 3"
+              :msg="part.name"
+              :part="part"
+              @updata="updataData($event,index,it)"
+            ></MultiLineInput>
+        </template> -->
+    </div>
+    <div class="result" v-if="checkText.length>0">
+      <p class="title">其他病史</p>
+      <p>{{getText()}}</p>
+    </div>
+    <div class="foot" v-if="modluesLen==3&&!nextName||modluesLen==2">
+      <span class="back" @click="beBack">{{'返回'+ preName}}</span>
+      <span class="next" @click="toNext">{{'预览'}}</span>
+    </div>
+    <div class="foot" v-else>
+      <span class="back" @click="beBack">{{'返回'+ preName}}</span>
+      <span class="next" @click="toNext">{{'进入'+ nextName}}</span>
+    </div>
+    <div class="detail" v-if="show">
+      <DetailBox @close="closeDetal" 
+              :data="labelDetail" 
+              :moduleType="datas.type"
+              :ppId="ppId"
+              v-if="labelDetail.questionMapping&&labelDetail.questionMapping.length>0"
+              @pComplete="complete"/>
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+  import UploadImg from '../common/UploadImg.vue';
+  import Label from '../common/Label.vue';
+  import DetailBox from './DetailBox.vue';
+  import Toast from '../common/Toast.vue';
+  import Input from '../common/Input.vue';
+  import ComTextArea from '../common/ComTextArea.vue';
+  import {moduleCP} from '@utils/tools';
+  import Radio from '../common/Radio.vue';
+  import CheckBox from '../common/CheckBox.vue';
+  import MultiLineInput from '../common/MultiLineInput.vue';
+  export default {
+    name:'Others',
+    data(){
+      let {origin,datas,text} = this.$store.state.others;
+      return{
+        msg:"其他情况",
+        // imgs:this.$store.state.others.imgSrc,
+        // dtoList:origin, //模板数据
+        dtoList:datas, //模板数据
+        labelDetail:{}, //标签明细
+        checkText:text, //选中的文字
+        ppId:null,
+        show:false,
+      }
+    },
+    props:['datas','preName','nextName','modluesLen'],
+    created(){},
+    methods:{
+      beBack(){
+        this.$emit('back');
+      },
+      toNext(){
+        if(this.modluesLen==2&&!this.nextName){
+          this.$emit('next','preview')
+        }else{
+          this.$emit('next');
+        }
+      },
+      setDetail(obj){
+        this.labelDetail = obj.detail;
+        this.ppId = obj.ppId;
+        this.show = true;
+      },
+      complete(){
+        this.show = false;
+        this.labelDetail = {};
+        this.ppId = null;
+        // 处理明细选中的值
+      },
+      closeDetal(){
+        this.show = false;
+        this.labelDetail = {};
+        this.ppId = null;
+      },
+      updataData(data,id){//输入框存值
+        let list = this.dtoList;
+        for(let i in list){
+          if(list[i].id==data.id){
+            list.splice(i,1,data)
+          }
+        }
+        
+        // this.$store.commit('setOrigin',{type:'3',data:data,pId:data.id});
+        this.$store.commit('setDatas',{type:moduleCP['other'],data:data,pId:data.id,ppId:id});
+        this.$store.commit('setText',{type:moduleCP['other'],text:data.value,pId:data.id,flag:true}); 
+      },
+      getText(){
+        let textArr = this.checkText;
+        let msg = "";
+        for(let k in textArr){
+          if(textArr[k].text){
+            msg += textArr[k].text + ';'
+          }          
+        }
+        return msg;
+      }
+    },
+    components:{
+      UploadImg,
+      Label,
+      DetailBox,
+      Input,
+      ComTextArea,
+      Radio,
+      CheckBox,
+      MultiLineInput
+    },
+    /*watch:{
+      dtoList:{
+        handler(newVal,oldVal){
+          console.log("其他史数据更新:",newVal,this.$store.state.others.text)
+        },
+        deep:true
+      }
+    },*/
+  }
+</script>
+<style lang="less" scoped>
+@import '../less/base.less';
+  .other-wrap{
+    font-size: .3rem;
+    .quest{
+      color: #000;
+      margin-bottom: .36rem;
+      font-weight: 700;
+    }
+    .label{
+      .label;
+    }
+    .result{
+      .title{
+        color: #4F50FF;
+        padding-left: .1rem;
+        border-left: .08rem solid #4F50FF;
+        margin-bottom: .19rem;
+        font-weight: 700;
+      }
+      p{
+        color: #666;
+        line-height: .44rem;
+      }
+    }
+  }
+  .foot{
+    .dbfooter;
+  }
+  .detail{
+    .mask;
+    z-index: 66;
+  }
+  
+</style>

+ 264 - 0
src/components/PathInfo.vue

@@ -0,0 +1,264 @@
+<template>
+  <div class="path-wrap">
+    <p class="info">挂号用户信息查询如下:</p>
+    <div class="con">
+      <p class="name">
+        <span>{{pathInfo.patientName}}</span>|
+        <span>{{pathInfo.patientSex}}</span>|
+        <span>{{pathInfo.patientAge}}岁</span>
+      </p>
+      <div class="dept">
+        <p>
+          <span>挂号科室:</span>
+          <span>{{pathInfo.selfDeptName}}</span>
+        </p>
+        <p>
+          <span>门诊号:</span>
+          <span>{{pathInfo.recordId}}</span>
+        </p> 
+      </div>
+      <div class="doct">
+        <p>
+          <span>预约医生:</span>
+          <span>{{pathInfo.doctorName}}</span>
+        </p>
+        <p>
+          <span>预约时间:</span>
+          <span>{{pathInfo.systemTime}}</span>
+        </p>
+      </div>
+      <p class="already" v-if="type !== 1">{{text[type]}}</p>
+    </div>
+    <div class="out-box">
+      <div class="emery">
+        <div class="baner">
+          <p>{{pathInfo.hospitalName}}</p>
+          <p class="big">智能预问诊</p>
+        </div>
+        <div class="inner">
+          <p>该系统通过智能引导式问诊,帮助医生规范、全面的采集患者的症状、体征、病史等信息,从而实现诊疗流程的优化和配置。</p>
+          <button @click="getStart">开始</button>
+        </div>
+        <!-- <p v-if="type==3">您已完成过一次预问诊,是否再次录入</p> -->
+      </div>
+      <div class="child" v-if="child.length>0&&child[0].value==1">
+        <div class="baner">
+          <p>{{pathInfo.hospitalName}}</p>
+          <p class="big">儿童体质检测</p>
+        </div>
+        <div class="inner">
+          <p>该标准将为0-12岁儿童在为体质辨识及与中医体质相关疾病的预防、养生保健、健康管理提供依据,使体质分类科学化、规范化。</p>
+          <button>开始</button>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+  import api from '@utils/api.js'
+  import {getUrlArgObject} from '@utils/tools.js'
+  export default {
+    name:'PathInfo',
+    data(){
+      return {
+        pathInfo:{},
+        child:[],
+        type:null, //1-未做过;3-只做过问诊;4-只做过体质辨识;6-都做过
+        text:{
+          "3":'您已完成过一次预问诊,是否再次录入',
+          "4":'您已完成过一次儿童体质辨识,是否再次录入',
+          "6":'您已完成过一次预问诊和儿童体质辨识,是否再次录入',
+        },
+        isReady:false
+      }
+    },
+    created(){
+      // this.ifWX();
+      this.getPathInfo();
+      this.getSysConfig();
+      this.$store.commit('initAllData');//初始化store数据
+    },
+    methods:{
+      getPathInfo(){
+        const params = {
+          'hospitalCode':getUrlArgObject('hospitalCode'),
+          'hospitalDeptCode':getUrlArgObject('hospitalDeptCode'),
+          'doctorCode':getUrlArgObject('doctorCode'),
+          'patientCode':getUrlArgObject('patientCode'),
+          'recordId':getUrlArgObject('recordId')
+        }
+        api.getPathInfo(params).then((res)=>{
+          const result = res.data;
+          if(result.code==0){
+            this.pathInfo = result.data;
+            this.$store.commit('savePathInfo',result.data);
+            this.recordCheck(); //校验是否填过
+            this.getAll(); //获取模板
+          }
+        })
+      },
+      getSysConfig(){
+        const param = {
+          'hospitalCode':getUrlArgObject('hospitalCode')
+        }
+        api.getSysConfig(param).then((res)=>{
+          const result = res.data;
+          if(result.code==0){
+            const datas = result.data;
+            this.child = datas.filter((item)=>{return item.code == "constitution_show"})
+            this.$store.commit('saveSysConfig',datas)
+          }
+        })
+      },
+      recordCheck(){
+        const param = {
+          'doctorId':this.pathInfo.doctorId,
+          'hospitalDeptId':this.pathInfo.hospitalDeptId,
+          'hospitalId':this.pathInfo.hospitalId,
+          'inquiryCode':this.pathInfo.recordId,
+          'patientId':this.pathInfo.patientId
+        }
+        api.recordCheck(param).then((res)=>{
+          const result = res.data;
+          if(result.code==0){
+            this.type = result.data.type;
+          }
+        })
+      },
+      getAll(){
+        this.isReady=false
+        const param = {
+          'age':this.pathInfo.patientAge,
+          'relationId':this.pathInfo.selfDeptId,
+          'mouduleType':1, //根据科室划分
+          'sexType':this.pathInfo.patientSex=='男'?1:(this.pathInfo.patientSex=='女'?2:3),
+        }
+        api.getAll(param).then((res)=>{
+          const result = res.data;
+          if(result.code==0){
+            const datas = result.data;
+            this.$store.commit('saveAll',datas)
+            this.isReady=true
+          }
+        })
+      },
+      getStart(){
+        this.$router.push({path:'/tab'})
+      },
+      ifWX(){
+        let us = navigator.userAgent.toLowerCase();
+        if(us.indexOf('micromessenger') == -1){
+          console.log("非微信打开")
+        }
+      }
+    }
+  }
+</script>
+<style lang="less" scoped>
+  .path-wrap{
+    padding-top: .7rem;
+    font-size: .28rem;
+    box-sizing: border-box;
+    .info{
+      font-size: .32rem;
+      font-weight: 700;
+      color: #040428;
+      margin-left: .6rem;
+      font-weight: bold;
+    }
+    .con{
+      margin-left: .6rem;
+      position: relative;
+      .name{
+        color: #7C828E;
+        margin-top: .27rem;
+        span{
+          margin-right: .08rem;
+        }
+      }
+      .dept,.doct{
+        display: inline-block;
+        p{
+          margin-top: .27rem;
+          span{
+            color: #7C828E;
+          }
+        }
+      }
+      .doct{
+        margin-left: .26rem;
+      }
+      .already{
+        position: absolute;
+        left: 0;
+        bottom:-.6rem;
+        color: #7C828E;
+      }
+    }
+    .out-box{
+      white-space: nowrap;
+      overflow-x: auto;
+      padding:0 .15rem .15rem 0;
+      -webkit-overflow-scrolling: touch;  
+    }
+    .emery,.child{
+      display: inline-block;
+      vertical-align: top;
+      // width:5.3rem;
+      width:5.1rem;
+      margin-top: .91rem;
+      margin-left: .6rem;
+      box-sizing: border-box;
+      .baner{
+        box-sizing: border-box;
+        width:100%;
+        // height: 2.52rem;
+        height: 2.3rem;
+        // padding: .66rem 0 0 .6rem;
+        padding: .5rem 0 0 .6rem;
+        p{
+          color:#fff;
+        }
+        .big{
+          font-size: .56rem;
+          margin-top: .12rem;
+        }
+      }
+      .inner{
+        // height: 4.98rem;
+        height: 4.5rem;
+        box-shadow:-.05rem .05rem .10rem -.04rem #989da3,.05rem .05rem .10rem -.04rem #989da3;
+        border-radius: 0 0 .20rem .20rem;
+        padding: .45rem .6rem .6rem;
+        box-sizing: border-box;
+        position: relative;
+        p{
+          font-size: .24rem;
+          line-height: .5rem;
+          white-space: normal;
+        }
+        button{
+          width: 4rem;
+          height: .88rem;
+          color: #fff;
+          font-size: .32rem;
+          margin-top: .20rem;
+          background: -webkit-gradient(linear, right top, left top, from(#4F8BFF), to(#4F4FFF));
+          background: -webkit-linear-gradient(right, #4F8BFF, #4F4FFF);
+          box-shadow: 0 .12rem .24rem 0 rgba(79,129,255,0.40);
+          border-radius: .44rem;
+          position: absolute;
+          bottom: .7rem;
+        }
+      }
+    }
+    .emery .baner{
+      background: url('../images/banerbg@1.5x.png') no-repeat;
+      background-size: cover;
+    }
+    .child .baner{
+      background: url('../images/childbg@1.5x.png') no-repeat;
+      background-size: cover;
+    }
+  }
+</style>

+ 339 - 0
src/components/Preview.vue

@@ -0,0 +1,339 @@
+<template>
+  <div class="preview">
+    <div class="personMsg">
+      <p class="baseMsg">{{pathInfo.patientName}}&nbsp;&nbsp;&nbsp;&nbsp;{{pathInfo.patientSex}}&nbsp;&nbsp;&nbsp;&nbsp;{{pathInfo.patientAge}}岁</p>
+      <table>
+        <tr>
+          <td class="fst">挂号科室:{{pathInfo.selfDeptName}}</td>
+          <td class="sec">门诊号:{{pathInfo.recordId}}</td>
+        </tr>
+        <tr>
+          <td class="fst">预约医生:{{pathInfo.doctorName}}</td>
+          <td class="sec">就诊时间:{{pathInfo.systemTime}}</td>
+        </tr>
+      </table>
+      <div class="line"></div>
+      <p>采集时间:{{pathInfo.systemTime}}</p>
+    </div>
+    <div class="personMsg">
+      <ul class="previewParts">
+        <li v-if="symptom.choose.length>0">
+          <h4><i :style="{'background': '#FF9A9A'}"></i> 主诉:</h4>
+          <p>
+            <span v-for="(item,idx) in symptom.choose" :key="item.name+idx">{{item.name+(idx == symptom.choose.length-1?'':'、')}}</span>
+          </p>
+        </li>
+        <li v-if="diagnose.text.length>0||symptom.choose.length>0">
+          <h4><i :style="{'background': '#3D69D9'}"></i> 现病史:</h4>
+          <p>
+            <span v-for="(item,idx) in symptom.text" :key="item.text+idx">{{item.text+(idx == symptom.choose.length-1?'。':';')}}</span>
+          </p>
+          <p>
+            <span v-for="(item,idx) in diagnose.text" :key="item.text+idx">{{item.text+(idx == diagnose.text.length-1?'。':';')}}</span>
+          </p>
+        </li>
+        <li v-if="others.text.length>0">
+          <h4><i></i> 其他史:</h4>
+          <p>
+            <span v-for="(item,idx) in others.text" :key="item.text+idx">{{item.text+(idx == others.text.length-1?'。':';')}}</span>
+          </p>
+        </li>
+        <li v-if="addContent.txt">
+          <h4><i></i> 补充内容:</h4>
+          <p>{{addContent.txt}}</p>
+        </li>
+        <li v-if="JSON.stringify(diagnose.imgSrc) !='{}'">
+          <h4><i></i> 最近一次治疗报告:</h4>
+          <div v-for="(value,key) in diagnose.imgSrc" class="imgView">
+            <img :src="value" alt="">
+          </div>
+        </li>
+      </ul>
+    </div>
+    <div class="foot">
+      <span
+        class="back"
+        @click="back"
+      >{{'返回'+ preName}}</span>
+      <span
+        class="next"
+        @click="saveAllImage"
+      >提 交</span>
+    </div>
+    <Submit
+      v-if="submit"
+      :showType="showType"
+      @showSubmit="showSubmit"
+    ></Submit>
+    <Loading v-if="show"></Loading>
+  </div>
+</template>
+<script>
+import api from '@utils/api.js';
+import Submit from '../common/Submit';
+import Loading from '../common/Loading';
+export default {
+  props: ['preName'],
+  data() {
+    const { pathInfo, originDatas } = this.$store.state;
+    let symptomDate = this.$store.state.symptom;
+    let diagnoseDate = this.$store.state.diagnose;
+    let othersDate = this.$store.state.others;
+    let addContentDate = this.$store.state.addContent;
+    return {
+      msg: '预览',
+      pathInfo: pathInfo,
+      symptom: symptomDate,
+      diagnose: diagnoseDate,
+      others: othersDate,
+      addContent: addContentDate,
+      submit: false,
+      showType: 'fail',
+      imgList:[],
+      show:false,//提交等待的动画loading
+      tmpNum:0
+    }
+  },
+  methods: {
+    showSubmit(flg) {
+      this.submit = flg
+    },
+    back() {
+      this.$emit('back', 'preview')
+    },
+    saveAllImage() {
+      let formData = new FormData();
+      let imgList = this.diagnose.imgFile;
+      // let tmpNum = this.tmpNum;
+      // var dateBegin = new Date();//获取当前时间
+      if (imgList.length > 0) {//有图片先上传图片
+        this.show = true
+        for (let i = 0; i < imgList.length; i++) {
+          let pageFile = imgList[i].file
+          formData.append('upfiles', imgList[i].file);
+          // formData.append('upfile', imgList[i].file);
+          formData.append('type', imgList[i].type);
+          // api.uploadImageThum(formData).then((res)=>{
+          //   console.log(res)
+          //   let result = res.data;
+          //   if (result.code == 0) {
+          //     this.tmpNum = ++tmpNum
+          //     if(this.tmpNum == imgList.length){
+          //       var dateEnd = new Date();//获取当前时间
+          //       var dateDiff = dateEnd.getTime() - dateBegin.getTime();//时间差的毫秒数
+          //       var dayDiff = dateDiff / 1000;//计算出秒数
+          //       this.show = false
+          //       alert('图片上传完成:'+dayDiff+'s')
+          //     }
+          //   }
+          // })
+        }
+        // return
+        api.uploadImageThums(formData).then((res) => {//获取图片
+          console.log(res.data)
+          let result = res.data;
+          if (result.code == 0) {//图片提交成功再保存数据
+            // this.showType = 'success'
+            // this.submit = true
+            let reportList = []
+            for(let i = 0;i < result.length;i++){
+              let obg = {}
+              obg.narrowImage = result[i].thumbnail.url
+              obg.narrowName = result[i].thumbnail.original
+              obg.originalImage = result[i].source.url
+              obg.originalName = result[i].source.original
+              obg.orderNum = i+1
+              obg.type = result[i].source.type
+              reportList.push(obg)
+            }
+            this.imgList = reportList
+                // var dateEnd = new Date();//获取当前时间
+                // var dateDiff = dateEnd.getTime() - dateBegin.getTime();//时间差的毫秒数
+                // var dayDiff = dateDiff / 1000;//计算出秒数
+                // this.show = false
+                // alert('图片上传完成:'+dayDiff+'s')
+            this.saveAllDate()
+          } else {//提交失败提示
+            this.show=false
+            this.showType = 'fail'
+            this.submit = true
+            let timer = setTimeout(() => {
+              this.submit = false
+              clearTimeout(timer)
+            }, 2000);
+          }
+        })
+        return;
+      } else {//没有图片直接保存数据
+        this.show = true
+        this.saveAllDate()
+      }
+    },
+    getStr(arr,flg){
+      let tmpStr = '',obg={};
+      for(let i = 0;i<arr.length;i++){
+        tmpStr+=arr[i].text+';'
+      }
+      obg.content=tmpStr
+      obg.contentValue=tmpStr
+      obg.type=flg
+      return obg;
+    },
+    saveAllDate() {
+      const {pathInfo,symptom,diagnose,others,addContent} = this
+      let detailList = []
+      if(symptom.text.length>0){
+        detailList.push(this.getStr(symptom.text,1))
+      }
+      if(diagnose.text.length>0){
+        detailList.push(this.getStr(diagnose.text,2))
+      }
+      if(others.text.length>0){
+        let obg = {}
+        detailList.push(this.getStr(others.text,3))
+      }
+      if(addContent.txt){
+        let obg = {}
+        obg.content=addContent.txt
+        obg.contentValue=addContent.txt
+        obg.type=4
+        detailList.push(obg)
+      }
+      let params = {
+        "dataJson": "1",
+        "detailList": detailList,
+        "hospitalId": pathInfo.hospitalId,//医院id
+        "hospitalName": pathInfo.hospitalName,//医院名称
+        "hospitalCode": pathInfo.hospitalCode,//医院编码
+        "doctorId": pathInfo.doctorId,//医生id
+        "doctorCode": pathInfo.doctorCode,//医生编码
+        "doctorName": pathInfo.doctorName,//医生name
+        "hospitalDeptCode": pathInfo.hospitalDeptCode,//医院科室编码
+        "hospitalDeptId": pathInfo.hospitalDeptId,//科室id
+        "hospitalDeptName": pathInfo.hospitalDeptName,//科室name
+        "inquiryCode": pathInfo.recordId,//就诊序列号,目前是门诊号
+        "patientBirthday": pathInfo.birthday+':00',//患者出生日期,格式为:2018-11-28 17:25:30
+        "patientCode": pathInfo.patientCode,//患者编号
+        "patientId": pathInfo.patientId,//患者id
+        "patientIdNo": pathInfo.patientIdNo,//患者证件号码(病历号)
+        "patientName": pathInfo.patientName,//患者姓名
+        // "patientPhone": pathInfo,//患者联系电话(非)
+        "patientSex": pathInfo.patientSex=='男'?1:2,//患者性别:1男2女(非)
+        // "regVisitedState": pathInfo,//就诊状态(0待接诊,1接诊中,2完成接诊)(非)
+        "reportList": this.imgList,
+        // "type": 0//病历分类(1:门诊,2:住院)
+      }
+      // console.log(params)
+      api.saveInquiry(params).then((res) => {
+        console.log(res)
+        if (res.data.code == 0) {
+          this.show=false
+          this.showType = 'success'
+          this.submit = true
+        } else {
+          this.show=false
+          this.showType = 'fail'
+          this.submit = true
+          let timer = setTimeout(() => {
+            this.submit = false
+            clearTimeout(timer)
+          }, 2000);
+        }
+      })
+    }
+  },
+  components: {
+    Submit,
+    Loading,
+  }
+}
+</script>
+<style lang="less" scoped>
+@import "../less/base.less";
+.foot {
+  .dbfooter;
+}
+.preview {
+  color: red;
+  background-color: #f2f2f5;
+  position: fixed;
+  width: 100%;
+  height: 100%;
+  top: 0;
+  left: 0;
+  box-sizing: border-box;
+  padding: 0.3rem 0.4rem 1rem .4rem;
+  overflow: auto;
+}
+.imgView {
+  width: 2.44rem;
+  height: 3.25rem;
+  float: left;
+  margin: .3rem .2rem 0 0;
+  img {
+    width: 100%;
+  }
+}
+.personMsg {
+  padding: 0.3rem 0.4rem;
+  box-sizing: border-box;
+  background-color: #fff;
+  border-radius: 0.16rem;
+  margin-bottom: 0.38rem;
+  .previewParts {
+    li {
+      padding: .1rem .3rem;
+      overflow: hidden;
+    }
+    h4 {
+      color: #000;
+      font-size: .32rem;
+      font-weight: bold;
+      position: relative;
+      i {
+        width: .16rem;
+        height: .16rem;
+        border-radius: 50%;
+        background: #767676;
+        display: inline-block;
+        position: absolute;
+        top: .15rem;
+        left: -0.3rem;
+      }
+    }
+    p {
+      font-size: .28rem;
+      color: #424242;
+      margin: .2rem 0;
+    }
+  }
+  .baseMsg {
+    font-size: 0.32rem;
+    color: #000000;
+    letter-spacing: 0;
+    text-align: justify;
+    font-weight: bold;
+    margin-bottom: 0.13rem;
+  }
+  table {
+    width: 100%;
+    font-size: 0.26rem;
+    color: #333333;
+    letter-spacing: 0;
+    text-align: justify;
+    line-height: 0.44rem /* 44/100 */;
+    td.fst {
+      width: 40%;
+    }
+    td.sec {
+      width: 60%;
+    }
+  }
+  .line {
+    opacity: 0.3;
+    background: #d8d8d8;
+    margin: 0.2rem 0;
+    height: 1px;
+  }
+}
+</style>

+ 179 - 0
src/components/Search.vue

@@ -0,0 +1,179 @@
+<template>
+  <div class="searchWrap">
+    <div class="searchTop">
+      <div class="iptWrap">
+        <img
+          class="searchImg"
+          src="../images/searchB.png"
+          alt=""
+        >
+        <input
+          type="text"
+          autofocus
+          placeholder="请搜索"
+          v-model="searchVal"
+        >
+      </div>
+      <span @click="search">取消</span>
+    </div>
+    <div class="searchList">
+      <p
+        class="waring"
+        v-if="!searchVal&&searchLis.length==0"
+      >请输入搜索内容</p>
+      <p
+        class="waring"
+        v-if="searchVal&&searchLis.length==0"
+      >暂无搜索结果</p>
+      <ul>
+        <li
+          v-for="(item,idx) in searchLis"
+          :key="item.conceptId+idx"
+          @click="showDetil(item)"
+          :style="{'borderBottom':(idx==searchLis.length-1)?'0':'1px solid #a8a8a8'}"
+        ><img
+            class="searchImgLis"
+            src="../images/search.png"
+            alt=""
+          >{{item.name}}</li>
+      </ul>
+    </div>
+  </div>
+</template>
+<script>
+import api from '@utils/api.js';
+export default {
+  props: ['age', 'sexType', 'chooseSymp'],
+  data() {
+    return {
+      searchVal: '',
+      searchLis: []
+    }
+  },
+  watch:{
+    searchVal(curVal, oldVal) {
+      if (curVal.trim() == "") {
+        this.searchVal = "";
+        this.searchLis = [];
+        return;
+      }
+      if (curVal != "" && curVal != oldVal) {
+        this.searchList()
+      }
+    }
+  },
+  methods: {
+    showDetil(item) {
+      this.$emit('showDetil', item,true)
+      // this.$emit('search', false)
+    },
+    search() {
+      this.$emit('search', false)
+    },
+    searchList() {
+      let tmpArr = [], chooseSymp = this.chooseSymp;
+      for (let i = 0; i < chooseSymp.length; i++) {
+        tmpArr.push(chooseSymp[i].conceptId)
+      }
+      const param = {
+        "age": this.age,
+        "inputIds": tmpArr,
+        "inputStr": this.searchVal,
+        "sexType": this.sexType
+      }
+      api.getTagInfos(param).then((res) => {
+        const result = res.data;
+        if (result.code == 0) {
+          this.searchLis = result.data
+        }
+      })
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+.searchWrap {
+  position: fixed;
+  height: 100%;
+  width: 100%;
+  top: 0;
+  left: 0;
+  z-index: 55;
+  background-color: #ededed;
+}
+.searchTop {
+  padding: 0.15rem 0.4rem;
+  padding-right: 1.2rem;
+  background-color: #ededed;
+  box-sizing: border-box;
+  position: absolute;
+  width: 100%;
+  top: 0;
+  z-index: 999;
+  span {
+    position: absolute;
+    right: 0.32rem;
+    top: 0.32rem;
+    font-size: 0.3rem;
+    color: #666666;
+  }
+}
+.iptWrap {
+  height: 0.74rem;
+  border-radius: 0.37rem;
+  background-color: #fff;
+  overflow: hidden;
+  padding: 0.16rem 0.3rem 0.16rem 0.75rem;
+  box-sizing: border-box;
+  width: 100%;
+  position: relative;
+  .searchImg {
+    width: 0.44rem;
+    height: 0.44rem;
+    position: absolute;
+    left: 0.2rem;
+    top: 0.14rem;
+  }
+  input {
+    width: 100%;
+    height: 0.42rem;
+    font-size: 0.3rem;
+    line-height: 0.42rem;
+  }
+}
+.searchList {
+  overflow: scroll;
+  position: absolute;
+  -webkit-overflow-scrolling: touch;
+  top: 0;
+  left: 0;
+  padding-top: 1.04rem;
+  height: 100%;
+  width: 100%;
+  background-color: #ededed;
+  .waring {
+    padding-left: 0.5rem;
+    margin-top: 0.2rem;
+  }
+  ul {
+    padding: 0 0.4rem;
+    box-sizing: border-box;
+    background-color: #fff;
+  }
+  li {
+    height: 1rem;
+    line-height: 1rem;
+    padding: 0 0.4rem;
+    border-bottom: 1px solid #a8a8a8;
+    box-sizing: border-box;
+    .searchImgLis {
+      width: 0.44rem;
+      height: 0.44rem;
+      float: left;
+      margin-top: 0.26rem;
+      margin-right: 0.15rem;
+    }
+  }
+}
+</style>
+

+ 371 - 0
src/components/Symptom.vue

@@ -0,0 +1,371 @@
+<template>
+  <div class="symp-wrap">
+    <div
+      class="choose"
+      v-if="chooseSymp.length>0"
+    >
+      <p class="quest">已选症状</p>
+      <p
+        class="choo-symp"
+        v-for="(v,i) in chooseSymp"
+      >
+        <span @click="showChecked(v)">{{v.name}}</span>
+        <span @click="deletSymp(v,i)"><img
+            src="../images/delete.png"
+            alt=""
+          ></span>
+      </p>
+    </div>
+    <div class="label">
+      <p class="quest">请问您有哪些不适?<img
+          @click="search(true)"
+          class="searchImg"
+          src="../images/search.png"
+          alt=""
+        ></p>
+      <span
+        class="symp"
+        v-for="(it,ind) in symp"
+        :key="it.conceptId"
+        @click="showDetil(it)"
+      >{{it.name}}</span>
+    </div>
+    <div
+      class="result"
+      v-if="checkText.length>0"
+    >
+      <p class="title">症状情况</p>
+      <p v-for="(value,index) in checkText">{{value.text}}</p>
+    </div>
+    <div v-if="modluesLen>1"
+      :class="['footer',{'nofoot':chooseSymp.length==0}]"
+      @click="toNext"
+    >下一步</div>
+    <div v-if="modluesLen==1"
+      :class="['footer',{'nofoot':chooseSymp.length==0}]"
+      @click="toNext"
+    >预览</div>
+    <div
+      class="detail"
+      v-if="show"
+    >
+      <DetailBox
+        @close="closeDetal"
+        :data="labelDetail"
+        :moduleType="1"
+        v-if="labelDetail.questionMapping&&labelDetail.questionMapping.length>0"
+        @pComplete="complete"
+        @reload="reload"
+      />
+    </div>
+    <Toast
+      :message="delText"
+      :show="showToast"
+      @comfirn="comfirnDel"
+      @cancel="cancelDel"
+    />
+    <Search
+      v-if="searchShow"
+      @search="search"
+      @showDetil="showDetil"
+      :age="age"
+      :chooseSymp="chooseSymp"
+      :sexType="sexType"
+    ></Search>
+  </div>
+</template>
+<script type="text/javascript">
+import api from '@utils/api.js';
+import DetailBox from './DetailBox.vue';
+import Toast from '../common/Toast.vue';
+import Search from './Search.vue';
+import {moduleCP} from '@utils/tools'
+export default {
+  name: 'Symptom',
+  props:['modluesLen'],
+  data() {
+    let { datas, pathInfo } = this.$store.state;
+    const { choose, text } = this.$store.state.symptom;
+    return {
+      age: pathInfo.patientAge,
+      sexType: pathInfo.patientSex == '男' ? 1 : (pathInfo.patientSex == '女' ? 2 : 3),
+      deptName: pathInfo.selfDeptName,
+      hosCode: pathInfo.hospitalCode,
+      show: false, //显示明细
+      chooseSymp: choose, //已选症状
+      symp: [], //症状
+      labelDetail: {}, //明细
+      checkText: text, //症状情况文字
+      questId: null, //id
+      delText: "是否删除该信息?<br/>(已填内容将清除)",
+      delIndex: null,
+      showToast: false,
+      searchShow: false,//显示搜索界面
+      tmpItem:{},//检索的症状
+      isSearch:false
+    }
+  },
+  created() {
+    if (this.chooseSymp.length > 0) {
+      // 推送
+      const sympText = this.getSympText();
+      this.getPush(sympText);
+    } else {
+      this.getSympList(); //常见
+    }
+  },
+  methods: {
+    searchVal(val) {
+      console.log(val)
+    },
+    search(flg) {
+      this.searchShow = flg
+    },
+
+    getSympList() {
+      const param = {
+        "age": this.age,
+        "deptName": this.deptName,
+        "sexType": this.sexType
+      }
+      api.getSymptom(param).then((res) => {
+        const result = res.data;
+        if (result.code == 0) {
+          this.symp = result.data;
+        }
+      })
+    },
+    toNext() {
+      // 把1切换成完成图标,且2高亮--判断有几个模块显示,1个--提交预览;1个以上--下一步
+      if (this.chooseSymp.length == 0) { return }
+      // 把症状情况的数据存起-已选
+      this.$store.commit('setChoose', { choose: this.chooseSymp, type: moduleCP['symp'] });
+      if(this.modluesLen==1){
+        this.$emit('next','preview')
+      }else{
+        this.$emit('next');
+      }
+
+    },
+    showDetil(item,flg) {
+      if(!flg){
+        this.chooseSymp.push(item);
+      }else{
+        this.tmpItem=item
+        this.isSearch=flg
+      }
+      this.questId = item.questionId || item.id || item.conceptId;
+      const id = item.questionId || item.id; //常见症状questionId,推送id,两者均有可能没有
+      //将选中的name存到store中的text
+      this.$store.commit('setText', { type: moduleCP['symp'], text: item.name, pId: this.questId });
+      if (id) {
+        const param = {
+          "age": this.age,
+          "id": id,
+          "sexType": this.sexType
+        }
+        api.getById(param).then((res) => {
+          const result = res.data;
+          if (result.code == 0) {
+            const mapping = result.data.questionMapping;
+            this.labelDetail = result.data;
+            this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
+            if (mapping && mapping.length > 0) {
+              this.show = true;
+            } else { //没有详情,推送
+              const sympText = this.getSympText();
+              this.getPush(sympText);
+            }
+          }
+        })
+      } else {//没有questionId或id 则直接调推送
+        const sympText = this.getSympText();
+        this.getPush(sympText);
+        this.checkText = this.$store.state.symptom.text;
+      }
+
+    },
+    getSympText() {
+      const text = this.$store.state.symptom.text;
+      let msg = "";
+      for (let i in text) {
+        msg += text[i].text;
+      }
+      return msg;
+    },
+    getPush(symptoms) {//推理
+      const param = {
+        "age": this.age,
+        "hosCode": this.hosCode,
+        "sex": this.sexType,
+        "symptom": symptoms //症状+选择的明细,string
+      }
+      api.getPush(param).then((res) => {
+        const result = res.data;
+        if (result.code == 0) {
+          this.symp = result.data.symptom;
+        }
+      })
+    },
+    closeDetal() {
+      // 推理 
+      const sympText = this.getSympText();
+      this.getPush(sympText);
+      this.show = false;
+      this.questId = null;
+    },
+    deletSymp(item, index) {
+      this.delIndex = index;
+      this.questId = item.questionId || item.conceptId;
+      if (this.chooseSymp.length == 1) {
+        this.delText = "是否删除该信息?<br/>删除后将重新填写预问诊流程 <br/>(已填内容将清除)"
+      }
+      this.showToast = true;
+    },
+    comfirnDel() {
+      this.chooseSymp.splice(this.delIndex, 1);
+      // delete(this.checkText[this.questId]);
+      this.checkText.splice(this.delIndex, 1);
+      this.$store.commit('delText', { type: moduleCP['symp'], pId: this.questId })
+      // 删除完-常见;其他-推送
+      if (this.chooseSymp.length > 0) {
+        const sympText = this.getSympText();
+        this.getPush(sympText);//删除后重新调推理-入参:拼好的内容
+      } else {
+        this.getSympList();
+      }
+      this.cancelDel();
+    },
+    cancelDel() {
+      this.showToast = false;
+      this.delIndex = null;
+      this.questId = null;
+      this.delText = "是否删除该信息?<br/>(已填内容将清除)";
+    },
+    complete() {//明细填写完成
+      if(this.isSearch){
+        this.chooseSymp.push(this.tmpItem);
+        this.searchShow = false
+      }
+      this.isSearch = false; //重置,否则每次点开都会叠加
+      this.checkText = this.$store.state.symptom.text;
+      this.show = false;
+      this.questId = null;
+      // 推理 
+      const sympText = this.getSympText();
+      this.getPush(sympText);
+    },
+    showChecked(item) {
+      const origin = this.$store.state.symptom.origin;
+      const read = this.$store.state.symptom.datas;
+      const data = read[item.questionId] || origin[item.questionId];
+      if (data.questionMapping && data.questionMapping.length > 0) {
+        this.labelDetail = data;
+        this.show = true;
+      }
+    },
+    reload(id) {//清空重新赋值
+      const read = this.$store.state.symptom.datas;
+      const data = read[id];
+      this.labelDetail = data;
+    }
+  },
+  components: {
+    DetailBox,
+    Toast,
+    Search
+  },
+}
+</script>
+<style lang="less" scoped>
+@import "../less/base.less";
+.symp-wrap {
+  font-size: 0.3rem;
+  .quest {
+    color: #000;
+    margin-bottom: 0.36rem;
+    font-weight: 700;
+    .searchImg {
+      width: 0.44rem;
+      height: 0.44rem;
+      float: right;
+    }
+  }
+}
+.choose{
+  padding-bottom: .2rem;
+  .choo-symp{
+      display: inline-block;
+      width:1.9rem;
+      height: .74rem;
+      // background: linear-gradient(-270deg, #4F4FFF, #4F8BFF);
+      background: linear-gradient(-270deg, #3638EE, #4E72FF);
+      box-shadow: 0 .08rem .16rem 0 rgba(79,129,255,0.40);
+      border-radius: .08rem;
+      white-space: nowrap;
+      margin: 0 .3rem .3rem 0;
+      span{
+        display: inline-block;
+        vertical-align: top;
+      }
+      span:first-child{
+        min-width:1.34rem;
+        height: .74rem;
+        line-height: .74rem;
+        text-align: center;
+        color: #fff;
+      }
+      img{
+        width:.56rem;
+        height: .74rem;
+      }
+    }
+  .label{
+    .label;
+  }
+  .result{
+    .title{
+      color: #4F50FF;
+      padding-left: .1rem;
+      border-left: .08rem solid #4F50FF;
+      margin-bottom: .19rem;
+      font-weight: 700;
+    }
+    p{
+      color: #666;
+      line-height: .44rem;
+    }
+  }
+  .footer{
+    .footer;
+  }
+}
+.label{
+  .label;
+}
+.result{
+  .title{
+    color: #4F50FF;
+    padding-left: .1rem;
+    border-left: .08rem solid #4F50FF;
+    margin-bottom: .19rem;
+    font-weight: 700;
+  }
+  p{
+    color: #666;
+    line-height: .44rem;
+  }
+}
+.footer{
+  .footer;
+}
+.nofoot{
+  // opacity: 0.3;
+  // background: linear-gradient(-270deg,#4F4FFF, #4F8BFF);
+  background:#CACCFF;
+}
+.detail{
+  .mask;
+  z-index: 66;
+}
+</style>

+ 234 - 0
src/components/TabPage.vue

@@ -0,0 +1,234 @@
+<template>
+  <div class="tab-wrap">
+    <div class="tab"
+      v-if="modlues&&modlues.length>0 && moduleShow">
+      <p v-for="(it,index) in modlues"
+        :style="{'width':1/modlues.length*100+'%'}"
+        :key="it.id">
+        <span :class="{current:index==number,comp:finish[it.type]}" v-if="type[it.type]==1">
+          <!-- <i>{{it.type}}</i> -->
+          <i>{{index+1}}</i>
+          {{it.name}}
+        </span>
+      </p>
+    </div>
+    <!-- 内容 -->
+    <div class="content">
+      <template v-for="(item,idx) in modlues">
+        <Symptom
+          v-if="flag==moduleCP['symp']&&item.type==moduleCP['symp']&&moduleShow"
+          @next="toNext"
+          :modluesLen="modluesLen"
+        />
+      
+        <DiagTreat
+          v-if="flag==moduleCP['diagT']&&item.type==moduleCP['diagT']&&moduleShow"
+          :datas="item"
+          :preName="modlues[0]&&modlues[0].name"
+          :modluesLen="modluesLen"
+          :nextName="modlues[2]&&modlues[2].name"
+          @next="toNext"
+          @back="beBack"
+        />
+
+        <Others
+          v-if="flag==moduleCP['other']&&item.type==moduleCP['other']&&moduleShow"
+          :modluesLen="modluesLen"
+          :datas="item"
+          :preName="modlues[idx-1]&&modlues[idx-1].name"
+          :nextName="modlues[idx+1]&&modlues[idx+1].name"
+          @next="toNext"
+          @back="beBack"
+        />
+        <AddContent
+          v-show="flag == moduleCP['suplement']&&item.type==moduleCP['suplement']&&moduleShow"
+          :modluesLen="modluesLen"
+          :allMoudles="item"
+          :preName="modlues[idx-1]&&modlues[idx-1].name"
+          @toggleModule="toggleModule"
+          @next="toNext"
+          @back="beBack"
+        />
+      </template>
+      <Preview v-show="!moduleShow" 
+        :preName="getPreviewName()"
+        @back="beBack" 
+      />
+    </div>
+  </div>
+</template>
+<script type="text/javascript">
+import Symptom from './Symptom.vue';
+import AddContent from './AddContent.vue';
+import DiagTreat from './DiagTreat.vue';
+import Others from './Others.vue';
+import Preview from './Preview.vue';
+import {moduleConfig,moduleCP} from '../utils/tools.js';
+export default {
+  name: 'TabPage',
+  data() {
+    let sysConfig = this.$store.state.sysConfig;
+    let tmpAllMoudles = this.$store.state.allMoudles;
+    let allMoudles = moduleConfig(sysConfig,tmpAllMoudles);
+    return {
+      config: sysConfig,
+      modlues: allMoudles.data,
+      modluesLen: allMoudles.len,
+      type: {
+        "1": sysConfig.length > 0 && sysConfig.filter(item => item.code == "symptoms_show")[0].value,
+        "51": sysConfig.length > 0 && sysConfig.filter(item => item.code == "diagnosis_show")[0].value,
+        "3": sysConfig.length > 0 && sysConfig.filter(item => item.code == "omhistory_show")[0].value,
+        "52": sysConfig.length > 0 && sysConfig.filter(item => item.code == "replenish_show")[0].value,
+      },
+      flag: allMoudles.order,
+      moduleShow:true,
+      finish:{ //标识已填
+        '1':true,
+        '51':false,
+        '3':false,
+        '52':false
+      },
+      number:0,
+      moduleCP:moduleCP
+    }
+  },
+  created() {
+    if (this.config.length == 0) {
+      this.$router.go(-1)
+    }
+  },
+  methods: {
+    getPreviewName(){
+      let len = this.modluesLen,tmpModule = this.modlues;
+      let preName = '';
+      if(len == 1){
+        preName=tmpModule[0].name
+      }else if(len == 2){
+        preName=tmpModule[1].name
+      }else if(len == 3){
+        preName=tmpModule[2].name
+      }else if(len == 4){
+        preName=tmpModule[3].name
+      }
+      return preName
+    },
+    getNames(type){
+      let len = this.modluesLen,tmpModule = this.modlues;
+      let nextName = '';
+      if(len == 1){
+        preName=tmpModule[0].name
+      }else if(len == 2){
+        preName=tmpModule[1].name
+      }else if(len == 3){
+        preName=tmpModule[2].name
+      }else if(len == 4){
+        preName=tmpModule[3].name
+      }
+      return preName
+    },
+    toNext(preview) {
+      if(preview === 'preview'){
+        this.moduleShow=false
+        return
+      }
+      let flag = parseInt(this.flag),num=this.number;
+      this.number = ++num;
+      
+      for(let j in this.finish){
+        if(j <= flag){
+          this.finish[j] = true
+        }
+      }
+      for(let i = 0;i < this.modlues.length;i++){
+        let part = this.modlues[i];
+        if(part.type == flag){
+          if(i < (this.modlues.length-1)){
+            this.flag = this.modlues[i+1].type
+          }
+        }
+      }
+    },
+    beBack(preview) {
+      if(preview === 'preview'){
+        this.moduleShow=true
+        return
+      }
+      let flag = parseInt(this.flag),num=this.number;
+      this.number = --num;
+
+      for(let j in this.finish){
+        if(j <= flag){
+          this.finish[j] = true
+        }
+      }
+      for(let i = 0;i < this.modlues.length;i++){
+        let part = this.modlues[i];
+        if(part.type == flag){
+          this.flag = this.modlues[i-1].type
+        }
+      }
+    },
+    toggleModule(flg){
+      this.moduleShow = flg
+    },
+  },
+  components: {
+    Symptom,
+    DiagTreat,
+    Others,
+    AddContent,
+    Preview
+  }
+}
+</script>
+<style lang="less" scoped>
+.tab-wrap {
+  width: 100%;
+  height: 100%;
+  padding-bottom: 0.88rem;
+  padding-top: 0.82rem;
+  .tab {
+    position: fixed;
+    top: 0;
+    left: 0;
+    width: 100%;
+    background: #fff;
+    z-index: 50;
+    height: 0.82rem;
+    line-height: 0.82rem;
+    border-bottom: 1px solid #ededed;
+    box-sizing: border-box;
+    padding-top: 0.16rem;
+    p {
+      display: inline-block;
+      padding: 0 0.2rem;
+      box-sizing: border-box;
+    }
+    span {
+      font-size: 0.24rem;
+      display: inline-block;
+      vertical-align: top;
+      width: 100%;
+      height: 0.5rem;
+      line-height: 0.5rem;
+      color: #7c828e;
+      text-align: center;
+      // margin-left: 0.2rem;
+      // margin-right: 0.19rem;
+    }
+    .current {
+      color: #0043e8;
+      background: #e5ecfc;
+      border-radius: 25px;
+    }
+    .comp{
+      color: #0043e8;
+    }
+}
+  .content {
+    font-size: 0.3rem;
+    // padding: 0.45rem 0.6rem;
+    padding: 0.45rem 0.3rem 0.45rem 0.6rem;
+  }
+}
+</style>

BIN=BIN
src/images/banerbg@1.5x.png


BIN=BIN
src/images/check-default.png


BIN=BIN
src/images/check.png


BIN=BIN
src/images/childbg@1.5x.png


BIN=BIN
src/images/close.png


BIN=BIN
src/images/complete.png


BIN=BIN
src/images/del-pic.png


BIN=BIN
src/images/delete.png


BIN=BIN
src/images/finish.png


BIN=BIN
src/images/loading.gif


BIN=BIN
src/images/pic.png


BIN=BIN
src/images/radio-check.png


BIN=BIN
src/images/radio-default.png


BIN=BIN
src/images/search.png


BIN=BIN
src/images/searchB.png


BIN=BIN
src/images/small-close.png


BIN=BIN
src/images/upload.png


+ 77 - 0
src/less/base.less

@@ -0,0 +1,77 @@
+// 公用less
+@font-size: 13.33333333vw !important;
+@theme-color:#4F50FF;
+.mask{
+  width:100%;
+  height: 100%;
+  position: fixed;
+  top:0;
+  left: 0;
+  background:rgba(0,0,0,.5);
+}
+.footer{
+  width:100%;
+  height: .88rem;
+  line-height: .88rem;
+  text-align: center;
+  color:#fff;
+  font-size: .32rem;
+  background: linear-gradient(-270deg, #4F4FFF,#4F8BFF);
+  position: fixed;
+  bottom: 0;
+  left: 0;
+}
+.dbfooter{
+  width:100%;
+  font-size: .32rem;
+  position: fixed;
+  bottom: 0;
+  left: 0;
+  background: #F2F2F5;
+  z-index: 66;
+  .back,.next{
+    display: inline-block;
+    height: .88rem;
+    line-height: .88rem;
+    text-align: center;
+    vertical-align: top;
+  }
+  .back{
+    width: 2.5rem;
+    color: #7C828E;
+    // background: #F2F2F5;
+  }
+  .next{
+    // width: 5rem;
+    width: 4.91rem;
+    color: #fff;
+    background: linear-gradient(-270deg, #4F4FFF,#4F8BFF);
+  }
+}
+.over{
+  font-size: .24rem !important;
+}
+.label{
+  padding-bottom: .2rem;
+  .symp{
+    display: inline-block;
+    // width:1.9rem;
+    min-width:1.9rem;
+    height: .74rem;
+    line-height: .74rem;
+    border: 1px solid #DFE0E4;
+    border-radius: .08rem;
+    text-align: center;
+    color: #7C828E;
+    // margin: 0 0 .3rem .3rem;
+    margin: 0 .3rem .3rem 0;
+    padding: 0 .05rem;
+    box-sizing: border-box;
+  }
+  /* .symp:nth-child(3n+2){
+    margin-left: 0;
+  } */
+  .over{
+    font-size: .24rem !important;
+  }
+}

+ 93 - 0
src/less/index.less

@@ -0,0 +1,93 @@
+@import './base.less';
+body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, input, textarea, p, th, td, hr, button {
+  margin: 0;
+  padding: 0;
+  font-family: Arial, sans-serif, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB";
+  color: #323232;
+  // -webkit-text-size-adjust:100%;
+  -webkit-text-size-adjust:auto;
+}
+input, textarea{
+  outline: none;
+  border: 0 none;
+  -webkit-tap-highlight-color:transparent;  //ios去掉选择阴影
+}
+button {
+    border: 0 none;
+}
+i {
+  font-style: normal;
+}
+ol, ul {
+  list-style: none;
+}
+a {
+  text-decoration: none;
+}
+
+.fl {
+    float: left;
+}
+
+.fr {
+    float: right;
+}
+/* 清理浮动 */
+.clearfix:after {
+    visibility: hidden;
+    display: block;
+    font-size: 0;
+    content: "";
+    clear: both;
+    height: 0;
+    line-height:0;
+}
+
+.clearfix {
+    zoom: 1; /* for IE6 IE7 */
+}
+
+/* 单行文字溢出时出现省略号,需设定宽度 */
+.ellips {
+    overflow: hidden;
+    white-space: nowrap;    
+    text-overflow: ellipsis;
+}
+
+html,body{
+  width: 100%;
+  height: auto !important;
+  overflow-x: auto;
+}
+html{
+  margin: 0;
+  padding: 0;
+  // font-size: @font-size;  //750px,1vw = 750*1%=7.5px
+  font-size: 13.33333333vw !important;
+}
+
+// 兼容ipad和pc端大屏幕
+@media screen and (min-width: 560px){
+  html{
+    font-size: 54px;
+  }
+}
+
+/* @media screen and (max-width:320px){兼容iphone5
+    .symptomDes .arrorTop p {
+        padding-left: 0 !important;
+        text-align: right;
+    }
+    .resultSym {
+      overflow: hidden;
+      white-space: nowrap;    
+      text-overflow: ellipsis;
+      width: 110px;
+    }
+    .main .mainBtm .Recommend {
+      font-size: 14px !important;
+    }
+    .main .mainBtm .Recommend .btn {
+      padding: 0 10px !important;
+    }
+} */ 

+ 18 - 0
src/main.js

@@ -0,0 +1,18 @@
+import Vue from 'vue';
+import router from './router/index.js';
+import store from './store.js';
+import App from './App.vue';
+import preview from 'vue-photo-preview';
+import 'vue-photo-preview/dist/skin.css';
+Vue.use(preview);
+Vue.config.productionTip = false;
+
+new Vue({
+  el:'#app',
+  router,
+  store,
+  components:{
+    App
+  },
+  template:'<App/>'
+});

+ 21 - 0
src/router/index.js

@@ -0,0 +1,21 @@
+import Vue from 'vue';
+import Router from 'vue-router';
+import PathInfo from '@components/PathInfo.vue';
+import TabPage from '@components/TabPage.vue';
+Vue.use(Router);
+const router = new Router({
+  routes:[
+    {
+      path:'/',
+      name:'PathInfo',
+      component:PathInfo
+    },
+    {
+      path:'/tab',
+      name:'TabPage',
+      component:TabPage
+    }
+  ]
+})
+
+export default router;

+ 370 - 0
src/store.js

@@ -0,0 +1,370 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import {deepClone,getAllStr,moduleCP} from '@utils/tools.js'
+Vue.use(Vuex);
+
+const store = new Vuex.Store({
+  state:{
+    pathInfo:{}, //患者信息-后续提交要用
+    sysConfig:[], //系统配置项
+    allMoudles:[], //模板
+    symptom:{ //症状情况
+      choose:[],
+      origin:{},
+      datas:{},
+      text:[],
+    },
+    diagnose:{ //诊疗
+      origin:[], //模板数据
+      datas:[],
+      text:[],
+      imgFile:[],//上传图片信息file
+      imgSrc:{},//上传的图片信息src
+    },
+    others:{ //其他情况
+      origin:[], //模板数据
+      datas:[],
+      text:[],
+      imgFile:[],
+      imgSrc:{},
+    },
+    addContent:{
+      origin:[],
+      txt:'',
+    }
+  },
+  mutations:{
+    initAllData(state){
+      state.symptom={ //症状情况
+        choose:[],
+        origin:{},
+        datas:{},
+        text:[],
+      }
+      state.diagnose={ //诊疗
+        origin:[], //模板数据
+        datas:[],
+        text:[],
+        imgFile:[],
+        imgSrc:{},
+      }
+      state.others={ //其他情况
+        origin:[], //模板数据
+        datas:[],
+        text:[],
+        imgFile:[],
+        imgSrc:{},
+      }
+      state.addContent={
+        origin:[],
+        txt:'',
+      }
+    },
+    setDataAll(state,param){
+      console.log(state,moduleCP['suplement'],param,1111)
+      let res = state.allMoudles
+      for(let i = 0;i<res.length;i++){
+        if(res[i].type == moduleCP['suplement']){
+          res[i].moduleDetailDTOList[param.idx] = param.data
+        }
+      }
+      state.allMoudles = res
+    },
+    savePathInfo(state,param){
+      state.pathInfo = param;
+    },
+    saveSysConfig(state,param){
+      state.sysConfig = param;
+    },
+    saveAll(state,param){
+      state.allMoudles = param;
+      for(let k in param){
+        if(param[k].type == moduleCP['diagT']){
+          state.diagnose.origin = JSON.parse(JSON.stringify(param[k].moduleDetailDTOList))
+          state.diagnose.datas = JSON.parse(JSON.stringify(param[k].moduleDetailDTOList))
+        }else if(param[k].type == moduleCP['other']){
+          state.others.origin = JSON.parse(JSON.stringify(param[k].moduleDetailDTOList))
+          state.others.datas = JSON.parse(JSON.stringify(param[k].moduleDetailDTOList))
+        }
+      }
+    },
+    setOrigin(state,param){//取消选中时用
+      const type = parseInt(param.type);
+      const data = param.data;
+      switch(type){
+        case moduleCP['symp']: //症状情况
+          state.symptom.origin = Object.assign({},state.symptom.origin,{[data.id]:data});
+          break;
+        case moduleCP['diagT']: //诊疗情况
+          let diagData = state.diagnose.origin;
+          for(let i in diagData){
+            if(diagData[i].id == param.pId){
+              let questionMapping = diagData[i].questionMapping;
+              for(let k in questionMapping){
+                if(questionMapping[k].id == data.id){
+                  questionMapping.splice(k,1,data);
+                }
+              }
+            }
+          }
+          break;
+        case moduleCP['other']:
+          let otherData = state.others.origin;
+          for(let i in otherData){
+            if(otherData[i].id == param.pId){
+              let questionMapping = otherData[i].questionMapping;
+              for(let k in questionMapping){
+                if(questionMapping[k].id == data.id){
+                  questionMapping.splice(k,1,data);
+                }
+              }
+            }
+          }
+          break;
+        case moduleCP['suplement']:
+          
+          break;
+        default:
+          break;
+      }
+    },
+    setDatas(state,param){
+      // ppId--每一道题的id;pId--每个选项的id
+      const type = parseInt(param.type);
+      const data = param.data;
+      const ppId = param.ppId;
+      switch(type){
+        case moduleCP['symp']:
+          state.symptom.datas = Object.assign({},state.symptom.datas,{[param.pId]:data});
+          break;
+        case moduleCP['diagT']: //诊疗情况
+          let diagData = state.diagnose.datas;
+          for(let i in diagData){
+            if(diagData[i].id == ppId){
+              let questionMapping = diagData[i].questionMapping;
+              for(let k in questionMapping){
+                if(questionMapping[k].id == data.id){
+                  // questionMapping[k].questionMapping = data.questionMapping;
+                  questionMapping.splice(k,1,data);
+                }
+              }
+            }
+          }
+          break;
+        case moduleCP['other']:
+          let otherData = state.others.datas;
+          for(let i in otherData){
+            if(otherData[i].id == ppId){
+              let questionMapping = otherData[i].questionMapping;
+              for(let k in questionMapping){
+                if(questionMapping[k].id == data.id){
+                  questionMapping[k].questionMapping = data.questionMapping;
+                }
+              }
+            }
+          }
+          break;
+        case moduleCP['suplement']:
+
+          break;
+        default:
+          break;
+      }
+      
+    },
+    setText(state,param){
+      const type = parseInt(param.type);
+      switch(type){
+        case moduleCP['symp']:
+          // 对象易更新但顺序无法控制
+          // state.symptom.text = Object.assign({},state.symptom.text,{[param.pId]:param.text}); 
+          let text = state.symptom.text;
+          if(text.length > 0){
+            for(let i in text){
+              // 点完成时才覆盖,单纯点开再关闭不覆盖flag
+              if(text[i].pId==param.pId){
+                if(param.flag){
+                  text.splice(i,1,param);
+                }
+                return
+              }
+            }
+            text.push(param);
+          }else{
+            text.push(param);
+          }
+          break;
+        case moduleCP['diagT']: //诊疗情况
+          let diaText = state.diagnose.text;
+          if(diaText.length > 0){
+            for(let i in diaText){
+              if(diaText[i].pId==param.pId){
+                if(param.flag){
+                  diaText.splice(i,1,param);
+                }
+                return
+              }
+            }
+            diaText.push(param);
+          }else{
+            diaText.push(param);
+          }
+          break;
+        case moduleCP['other']: //其他情况
+          let otherText = state.others.text;
+          if(otherText.length > 0){
+            for(let i in otherText){
+              if(otherText[i].pId==param.pId){
+                if(param.flag){
+                  otherText.splice(i,1,param);
+                }
+                return
+              }
+            }
+            otherText.push(param);
+          }else{
+            otherText.push(param);
+          }
+          break;
+        case moduleCP['suplement']:
+          let addText = state.addContent.txt
+          state.addContent.origin = param.data
+          state.addContent.txt = getAllStr(param)
+          break;
+        default:
+          break;
+      }
+    },
+    delText(state,param){
+      const type = parseInt(param.type);
+      switch(type){
+        case moduleCP['symp']:
+          let text = state.symptom.text;
+          for(let i in text){
+            if(text[i].pId==param.pId){
+              text.splice(i,1)
+            }
+          }
+          break;
+        case moduleCP['diagT']: //诊疗情况
+          let diaText = state.diagnose.text;
+          for(let i in diaText){
+            if(diaText[i].pId==param.pId){
+              diaText.splice(i,1)
+            }
+          }
+          break;
+        case moduleCP['other']:
+          let otherText = state.others.text;
+          for(let i in otherText){
+            if(otherText[i].pId==param.pId){
+              otherText.splice(i,1)
+            }
+          }
+          break;
+        case moduleCP['suplement']:
+
+          break;
+        default:
+          break;
+      }
+    },
+    setChoose(state,param){ //症状情况-已选症状
+      state.symptom.choose = param.choose;
+    },
+    setImgFile(state,param){//区别模块
+      const type = parseInt(param.type);
+      switch(type){
+        case moduleCP['symp']:
+
+          break;
+        case moduleCP['diagT']: //诊疗情况
+          state.diagnose.imgFile.push(param);
+          break;
+        case moduleCP['other']:
+
+          break;
+        case moduleCP['suplement']:
+
+          break;
+        default:
+          break;
+      }
+      
+    },
+    setImgSrc(state,param){
+      const key = param.key;
+      const src = param.src;
+      const type = parseInt(param.type);
+      switch(type){
+        case moduleCP['symp']:
+
+          break;
+        case moduleCP['diagT']:
+          state.diagnose.imgSrc = Object.assign({},state.diagnose.imgSrc,{[key]:src});
+          break;
+        case moduleCP['other']:
+
+          break;
+        case moduleCP['suplement']:
+
+          break;
+        default:
+          break;
+      }
+      
+    },
+    deleImg(state,param){
+      const key = param.key;
+      const type = parseInt(param.type);
+      switch(type){
+        case moduleCP['symp']:
+
+          break;
+        case moduleCP['diagT']:
+          let data = state.diagnose.imgFile;
+          for(let i=0; i<data.length;i++){
+            if(data[i].key==key){
+              data.splice(i,1)
+            }
+          }
+          break;
+        case moduleCP['other']:
+
+          break;
+        case moduleCP['suplement']:
+
+          break;
+        default:
+          break;
+      }
+      
+    },
+    deleSrc(state,param){
+      const key = param.key;
+      const type = parseInt(param.type);
+      switch(type){
+        case moduleCP['symp']:
+
+          break;
+        case moduleCP['diagT']:
+          let data = state.diagnose.imgFile;
+          let obj = state.diagnose.imgSrc;
+          delete(obj[key]);
+          state.diagnose.imgSrc = Object.assign({},obj);
+          break;
+        case moduleCP['other']:
+
+          break;
+        case moduleCP['suplement']:
+
+          break;
+        default:
+          break;
+      }
+      
+    },
+  }
+})
+
+export default store;

+ 52 - 0
src/utils/api.js

@@ -0,0 +1,52 @@
+import axios from 'axios';
+
+const urls = {
+  getPathInfo:'/api/prec/patientInfo/getTopPatientInfo',//患者信息
+  getSysConfig:'/api/prec/sysSet/getSysSetInfoDatas',//配置项
+  recordCheck:'/api/prec/inquiryInfo/recordCheck',//校验是否已做过
+  getAll:'/api/prec/moduleInfo/getAll',//获取模板
+  getSymptom:'/api/prec/questionUsual/getQuestionUsual',//常用症状
+  getById:'/api/prec/questionInfo/getById',//常标签详情
+  push:'/api/prec/push/pushInner',//症状推送
+  saveInquiry:'/api/prec/inquiryInfo/saveInquiry',//保存问诊记录
+  uploadImageThum:'/api/prec/file/uploadImageThum',//单个文件上传同时生成缩略图
+  uploadImageThums:'/api/prec/file/uploadImageThums',//多个文件上传同时生成缩略图
+  getTagInfos:'/api/prec/retrieval/getTagInfos',//检索
+  // uploadImageThums:'http://192.168.3.1:8849/file/uploadImageThums',//多个文件上传同时生成缩略图
+}
+
+export default {
+  getPathInfo(param){
+    return axios.post(urls.getPathInfo,param)
+  },
+  getSysConfig(param){
+    return axios.post(urls.getSysConfig,param)
+  },
+  recordCheck(param){
+    return axios.post(urls.recordCheck,param)
+  },
+  getAll(param){
+    return axios.post(urls.getAll,param)
+  },
+  getSymptom(param){
+    return axios.post(urls.getSymptom,param)
+  },
+  getById(param){
+    return axios.post(urls.getById,param)
+  },
+  getPush(param){
+    return axios.post(urls.push,param)
+  },
+  uploadImageThums(param){
+    return axios.post(urls.uploadImageThums,param)
+  },
+  uploadImageThum(param){
+    return axios.post(urls.uploadImageThum,param)
+  },
+  getTagInfos(param){
+    return axios.post(urls.getTagInfos,param)
+  },
+  saveInquiry(param){
+    return axios.post(urls.saveInquiry,param)
+  },
+}

+ 172 - 0
src/utils/tools.js

@@ -0,0 +1,172 @@
+
+const qs = require('qs');
+const imageUrlPrefix = 'http://192.168.2.241:82' //后台图片地址
+// const imageUrlPrefix = 'http://192.168.2.236:82' //后台图片地址
+
+const getUrlArgObject = (parm) => {
+    let query = window.location.search;
+    let args = qs.parse(query.substr(1));
+    return args[parm];//返回对象  
+}
+
+const deepClone = (arr) =>{
+  let newArr = [];
+  for(let i in arr){
+    newArr.push(arr[i]);
+  }
+  return newArr;
+}
+// 带输入框选项
+const getExpStr = (str) =>{
+  let result = {}
+  if(str.match(/\${number_(.*})/)){//数字输入框
+    let matchStr = str.match(/\${number_(.*})/)[0]
+    result = {
+      type:'number',
+      placeholder:matchStr.split('${number_')[1].split('}')[0],
+      prefix:str.split(matchStr)[0]||'',
+      suffix:str.split(matchStr)[1]||''
+    }
+  }else if(str.match(/\${input_(.*})/)){
+    let matchStr = str.match(/\${input_(.*})/)[0]
+    result = {
+      type:'text',
+      placeholder:matchStr.split('${input_')[1].split('}')[0],
+      prefix:str.split(matchStr)[0]||'',
+      suffix:str.split(matchStr)[1]||''
+    }
+  }
+  return result
+}
+// 多行输入 多个输入框
+const getModelExpStr = (str,txt) =>{
+  let result = {}
+  // console.log(str,txt,44444)
+  if(str.match(/\${number_(.*})/)){//数字输入框
+    let matchStr = str.match(/\${number_(.*})/)[0]
+    let tmpHolder = matchStr.split('${number_')[1].split('}')[0]
+    let iptLis = [],join='';
+    if(tmpHolder.indexOf('/') != -1){
+      let tmpHolderArr = tmpHolder.split('/')
+      for(let i = 0;i < tmpHolderArr.length;i++){
+        let obj={placeholder:'',value:''}
+        let tmpData = tmpHolderArr[i];
+        obj.placeholder=tmpData
+        if(txt){
+          obj.value=txt.split('/')[i]
+        }
+        iptLis.push(obj)
+      }
+      join = '/'
+    }else{
+      let obj={placeholder:'tmpHolder',value:txt}
+      iptLis.push(obj)
+    }
+    result = {
+      type:'number',
+      placeholder:tmpHolder,
+      iptLis:iptLis,
+      join:join,
+      prefix:str.split(matchStr)[0]||'',
+      suffix:str.split(matchStr)[1]||'',
+    }
+  }else if(str.match(/\${input_(.*})/)){
+    let matchStr = str.match(/\${input_(.*})/)[0]
+    let tmpHolder = matchStr.split('${input_')[1].split('}')[0]
+    let iptLis = [],join='';
+    if(tmpHolder.indexOf('/') != -1){
+      let tmpHolderArr = tmpHolder.split('/')
+      for(let i = 0;i < tmpHolderArr.length;i++){
+        let obj={placeholder:'',value:''}
+        let tmpData = tmpHolderArr[i];
+        obj.placeholder=tmpData
+        if(txt){
+          obj.value=txt.split('/')[i]
+        }
+        iptLis.push(obj)
+      }
+      join = '/'
+    }else{
+      let obj={placeholder:'tmpHolder',value:txt}
+      iptLis.push(obj)
+    }
+    result = {
+      type:'text',
+      placeholder:tmpHolder,
+      iptLis:iptLis,
+      join:join,
+      prefix:str.split(matchStr)[0]||'',
+      suffix:str.split(matchStr)[1]||'',
+    }
+  }
+  return result
+}
+
+const getAllStr = (allData) =>{//获取界面数据,拼接字符串
+  let allStr = '',data = allData.data;
+  for(let i = 0;i < data.length;i++){
+    if(data[i].controlType != 3&&data[i].value){
+        allStr += (data[i].value).replace('{','').replace('}','')+';'
+    }
+    if(data[i].controlType == 3){//多列选择
+      let tmpStr = '';
+      for(let j = 0;j < data[i].questionDetailList.length;j++){
+        let tmpName = data[i].questionDetailList[j]
+        if(tmpName&&tmpName.value){
+          let obj = getModelExpStr(tmpName.name)
+          tmpStr+=obj.prefix+tmpName.value+obj.suffix+(j ==(data[i].questionDetailList.length-1)?';':',')
+        }
+      }
+      allStr+=tmpStr
+    }
+  }
+  return allStr;
+}
+
+const moduleCP = {
+  'symp':1,   //症状情况
+  'diagT':51,  //诊疗情况
+  'other':3,   //其他史
+  'suplement':52,//补充内容
+}
+
+const moduleConfig = (config,modules) => {
+  let activeModule = []
+  for(let i = 0;i < config.length;i++){
+    let tmpCode = config[i].code
+    for(let j = 0;j < modules.length;j++){
+      let tmpType = modules[j].type
+      if(tmpCode=="symptoms_show"&&tmpType==moduleCP['symp']){
+        activeModule.push(modules[j])
+      }else if(tmpCode=="diagnosis_show"&&tmpType==moduleCP['diagT']){
+        activeModule.push(modules[j])
+      }else if(tmpCode=="omhistory_show"&&tmpType==moduleCP['other']){
+        activeModule.push(modules[j])
+      }else if(tmpCode=="replenish_show"&&tmpType==moduleCP['suplement']){
+        activeModule.push(modules[j])
+      }
+    }
+  }
+  return {
+    data:activeModule,
+    len:activeModule.length||0,
+    order:activeModule.length>0?activeModule[0].type:''
+  }
+}
+
+// 替换输入框占位符
+const patt = /\$\{[^\]]+\}/g;
+
+module.exports =  {
+  imageUrlPrefix,
+  getUrlArgObject,
+  deepClone,
+  getModelExpStr,
+  getAllStr,
+  moduleConfig,
+  patt,
+  moduleCP,
+  getExpStr
+}
+
+

+ 0 - 0
static/.gitkeep