Bladeren bron

查看随访表单

hwy 2 maanden geleden
bovenliggende
commit
c89ea4dbbf
3 gewijzigde bestanden met toevoegingen van 69 en 2 verwijderingen
  1. 28 2
      component/statistics/GxbCy/index.js
  2. 8 0
      component/statistics/GxbMz/index.html
  3. 33 0
      component/statistics/GxbMz/index.js

+ 28 - 2
component/statistics/GxbCy/index.js

@ -132,7 +132,8 @@ Vue.component('gxb-cy', {
      messInfo: null,
      remind: '',
      dialogExportLoading: false,
      dialogLoading: false
      dialogLoading: false,
      service: {}
    }
  },
  methods: {
@ -513,7 +514,32 @@ Vue.component('gxb-cy', {
      this.size = val
      this.dialogSearch()
    },
    previewForm(row) {},
    previewForm(row) {
      var vm = this
      var params = {
        planDetailId: row.planDetailId
      }
      rehaAPI.serviceItem(params).then(function (res) {
        if (res.status == 200) {
          vm.service = res.data
          top.layer.open({
            type: 2,
            area: ['600px', '700px'],
            shade: 0.5,
            title: '记录随访表单',
            fixed: true, //不固定
            maxmin: true,
            closeBtn: 1,
            // shift: 5,
            shadeClose: false, //点击遮罩关闭层
            content: '../../rehabilitation/html/followRecord.html?serviceInfo=' + encodeURIComponent(JSON.stringify(vm.service)) + '&planDetailId=' + row.planDetailId,
            end: function () {
              // 未点击确定按钮,点击关闭按钮
            }
          })
        }
      })
    },
    previewMess(row) {
      this.messageVisible = true
      this.messInfo = row.content

+ 8 - 0
component/statistics/GxbMz/index.html

@ -160,6 +160,14 @@
          <span @click="seePatientDetail(scope.row)">{{scope.row[item.prop]}}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" width="100" v-if="title=='康复下转明细列表'">
        <template slot-scope="scope">
          <el-button type="text" v-if="scope.row.status==0" @click="operation(1,scope.row)">分配</el-button>
          <el-button type="text" @click="operation(2,scope.row)">查看签约</el-button>
          <el-button type="text" v-if="scope.row.status==5" @click="operation(3,scope.row)">同步居民</el-button>
          <el-button type="text" v-if="scope.row.status==3" @click="operation(4,scope.row)">同步病历</el-button>
        </template>
      </el-table-column>
    </el-table>
    <div style="display: flex; justify-content: flex-end; margin-top: 10px">
      <el-pagination

+ 33 - 0
component/statistics/GxbMz/index.js

@ -463,6 +463,39 @@ Vue.component('gxb-mz', {
        this.turnDownDataPage()
      }
    },
    // 康复下转操作
    operation(num, item) {
      var vm = this
      if (num != 2) {
        statisticAPI
          .synchronizePationSingle({ id: item.id })
          .then(function (res) {
            if (res.status == 200) {
              vm.$message.success('操作成功')
            } else {
              vm.$message.error(res.msg)
            }
          })
          .catch(function (err) {
            console.log(err, 'Errr')
          })
      } else {
        vm.signatoryList = []
        statisticAPI
          .kangfuGetSignInfo({ idcard: item.idcard })
          .then(function (res) {
            if (res.status == 200) {
              if (res.data != null) {
                vm.signatoryList.push(res.data)
              }
            }
          })
          .catch(function (err) {
            console.log(err, 'Errr')
          })
        this.dialogVisible = true
      }
    },
    rehabilitationPatientInfo() {
      var vm = this
      var params = {