You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2888 lines
99 KiB

3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
4 months ago
3 years ago
3 years ago
2 years ago
3 years ago
4 months ago
3 years ago
2 years ago
3 years ago
2 years ago
4 months ago
3 years ago
4 months ago
2 years ago
3 years ago
3 years ago
2 years ago
4 months ago
3 years ago
2 years ago
4 months ago
3 years ago
4 months ago
2 years ago
3 years ago
3 years ago
4 months ago
2 years ago
4 months ago
2 years ago
3 years ago
3 years ago
2 years ago
4 months ago
2 years ago
4 months ago
3 years ago
4 months ago
3 years ago
2 years ago
2 years ago
2 years ago
4 months ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
4 months ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
2 years ago
4 months ago
3 years ago
3 years ago
3 years ago
3 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
4 months ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
4 months ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
1 year ago
4 months ago
4 months ago
4 months ago
3 years ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 years ago
2 years ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 years ago
4 months ago
3 years ago
4 months ago
3 years ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
3 years ago
2 years ago
4 months ago
3 years ago
2 years ago
3 years ago
4 months ago
3 years ago
2 years ago
4 months ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
4 months ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
4 months ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 months ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
4 months ago
3 years ago
3 months ago
3 years ago
3 years ago
3 years ago
3 months ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
4 months ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 months ago
2 years ago
2 years ago
2 years ago
1 year ago
4 months ago
1 year ago
4 months ago
4 months ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 months ago
3 years ago
3 years ago
3 years ago
3 months ago
3 years ago
3 months ago
2 months ago
2 years ago
3 years ago
3 years ago
3 months ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
4 months ago
1 year ago
4 months ago
1 year ago
4 months ago
1 year ago
3 years ago
2 years ago
3 years ago
4 months ago
1 year ago
3 years ago
2 years ago
3 years ago
1 year ago
4 months ago
1 year ago
4 months ago
1 year ago
4 months ago
1 year ago
4 months ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
4 months ago
2 years ago
4 months ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
4 months ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
2 years ago
5 months ago
4 months ago
5 months ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="box">
  3. <div>
  4. <div class="middlebox">
  5. <div class="contenttitle">
  6. 基础资料 /
  7. <span class="contenttitleBold">项目设置</span>
  8. </div>
  9. <div class="seachinput">
  10. <el-select v-model="department" placeholder="请选择项目" filterable :filter-method="remoteMethodes"
  11. default-first-option @change="quckDepartments" clearable size="small">
  12. <el-option v-for="item in quckDepartment" :key="item.id" :label="item.displayName" :value="item.id">
  13. </el-option>
  14. </el-select>
  15. </div>
  16. </div>
  17. <div style="display: flex; margin-top: 7px">
  18. <div :style="'width: 208px;overflow: scroll;height:' +
  19. (window.pageHeight < 600 ? 480 : window.pageHeight - 100) +
  20. 'px;background-color: #fff; border-radius: 8px'
  21. ">
  22. <div style="margin-top: 10px">
  23. <el-tree :data="itemTypeId" :props="treeprops" @node-click="treeclick" node-key="id" ref="itemType"
  24. highlight-current auto-expand-parent>
  25. <span class="custom-tree-node" slot-scope="{ node, data }">
  26. <div>
  27. <span class="treeicons">
  28. <!-- <i
  29. class="el-icon-document-remove"
  30. v-if="data.parentId == null"
  31. ></i> -->
  32. <img style="width: 20px; height: 20px; vertical-align: sub" src="@/assets/images/order.png"
  33. v-if="!data.parentId" />
  34. </span>
  35. <span :class="!data.parentId ? 'maxtitle' : 'mintitle'">{{ node.label }}</span>
  36. </div>
  37. </span>
  38. </el-tree>
  39. </div>
  40. </div>
  41. <div style="display: block">
  42. <div style="margin-left: 15px; display: flex">
  43. <div :style="'width:' +
  44. (window.pageWidth - 200 - 110 - 50 - 14) +
  45. 'px;padding: 15px;background-color: #fff;border-radius: 8px;'
  46. ">
  47. <div style="margin-left: 5px; display: flex; flex-wrap: wrap">
  48. <div>
  49. <!--
  50. <el-checkbox v-model="query.itemTypeFlag">项目类别作为查询条件</el-checkbox>
  51. <el-input placeholder="查询关键字" v-model="query.keyWords" size="small" clearable style="width: 200px" />
  52. -->
  53. </div>
  54. </div>
  55. <div>
  56. <el-table :data="tableData" row-key="id" :height="window.pageHeight < 600 ? 450 : window.pageHeight - 130
  57. " class="el-table__body-wrapper tbody" highlight-current-row @row-click="rowick" @row-dblclick="dblClick" ref="tableData" border>
  58. <el-table-column prop="id" label="编号" width="300" align="center">
  59. </el-table-column>
  60. <el-table-column prop="displayName" label="名称" min-width="150" sortable>
  61. </el-table-column>
  62. <el-table-column prop="creatorName" label="创建者" width="80" sortable align="center">
  63. </el-table-column>
  64. <el-table-column prop="creationTime" label="创建时间" width="140" sortable align="center">
  65. <template slot-scope="scope">
  66. {{ scope.row.creationTime | dateFormat }}
  67. </template>
  68. </el-table-column>
  69. <el-table-column prop="lastModifierName" label="修改者" width="80" sortable align="center">
  70. </el-table-column>
  71. <el-table-column prop="lastModificationTime" label="修改时间" width="140" sortable align="center">
  72. <template slot-scope="scope">
  73. {{ scope.row.lastModificationTime | dateFormat }}
  74. </template>
  75. </el-table-column>
  76. <el-table-column label="结果类别" prop="resultTemplateTypeFlag" sortable align="center"></el-table-column>
  77. <el-table-column label="操作" align="center">
  78. <template>
  79. <el-tag class="move" style="
  80. cursor: move;
  81. background-color: rgb(245, 245, 245);
  82. border: none;
  83. " draggable="true">
  84. <i class="el-icon-d-caret" style="
  85. width: 1rem;
  86. height: 1rem;
  87. color: rgb(113, 113, 113);
  88. "></i>
  89. </el-tag>
  90. </template>
  91. </el-table-column>
  92. </el-table>
  93. </div>
  94. </div>
  95. <!-- 按钮区域 -->
  96. <div style="margin-left: 10px">
  97. <el-button type="" @click="add" class="commonbutton">新增</el-button>
  98. <div style="margin-top: 10px">
  99. <el-button type="" @click="editpopup" class="commonbutton">编辑</el-button>
  100. </div>
  101. <div style="margin-top: 10px">
  102. <el-button type="" @click="delsrts" class="deleteButton">删除</el-button>
  103. </div>
  104. <div style="margin-top: 10px">
  105. <el-button type="" @click="topping" class="commonbutton">置顶</el-button>
  106. </div>
  107. <div style="margin-top: 10px">
  108. <el-button type="" @click="toppings" class="commonbutton">置底</el-button>
  109. </div>
  110. <div style="margin-top: 10px">
  111. <el-button type="" :disabled="isshow" @click="assertion" class="commonbutton">排序</el-button>
  112. </div>
  113. <div style="margin-top: 10px">
  114. <el-button type="" :disabled="isshow" @click="cancellation" class="commonbutton">取消</el-button>
  115. </div>
  116. <div style="margin-top: 10px">
  117. <el-button type="" size="" @click="resulttemplate" class="commonbutton">结果模板</el-button>
  118. </div>
  119. <div style="margin-top: 10px">
  120. <el-button type="" size="" @click="referencerange" class="commonbutton">参考范围</el-button>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <!-- <div style="width: 95%">
  128. <el-card
  129. style="width: 100%; border-radius: 15px"
  130. class="elcard"
  131. >
  132. <div class="publiccss">项目设置</div>
  133. <div style="display: flex;margin-top:15px;">
  134. <div style="width: 15%;">
  135. <div>
  136. <el-select v-model="department" placeholder="请选择项目类别" filterable :filter-method="remoteMethodes" default-first-option @change="quckDepartments" clearable>
  137. <el-option
  138. v-for="item in quckDepartment"
  139. :key="item.id"
  140. :label="item.displayName"
  141. :value="item.id"
  142. >
  143. </el-option>
  144. </el-select>
  145. </div>
  146. <div :style="'margin-top: 10px;overflow: scroll;border: 1px solid;height:'+ (window.pageHeight < 600 ? 410 : window.pageHeight - 210) + 'px;'">
  147. <el-tree
  148. :data="itemTypeId"
  149. :props="treeprops"
  150. @node-click="treeclick"
  151. node-key="id"
  152. ref="itemType"
  153. highlight-current
  154. auto-expand-parent
  155. ></el-tree>
  156. </div>
  157. </div>
  158. <div style="width: 85%;margin-left:5px;">
  159. <el-table
  160. :data="tableData"
  161. style="width: 100%"
  162. row-key="id"
  163. :height="window.pageHeight < 600 ? 185 : window.pageHeight - 160"
  164. class="el-table__body-wrapper tbody"
  165. highlight-current-row
  166. @row-click="rowick"
  167. ref="tableData"
  168. border
  169. >
  170. <el-table-column prop="id" label="编号" width="300">
  171. </el-table-column>
  172. <el-table-column prop="displayName" label="名称" width="">
  173. </el-table-column>
  174. <el-table-column prop="creatorName" label="创建者" width="">
  175. </el-table-column>
  176. <el-table-column prop="creationTime" label="创建时间" width="200">
  177. <template slot-scope="scope">
  178. {{ scope.row.creationTime | dateFormat }}
  179. </template>
  180. </el-table-column>
  181. <el-table-column prop="lastModifierName" label="修改者" width="">
  182. </el-table-column>
  183. <el-table-column
  184. prop="lastModificationTime"
  185. label="修改时间"
  186. width="200"
  187. >
  188. <template slot-scope="scope">
  189. {{ scope.row.lastModificationTime | dateFormat }}
  190. </template>
  191. </el-table-column>
  192. <el-table-column
  193. label="结果类别"
  194. prop="resultTemplateTypeFlag"
  195. ></el-table-column>
  196. <el-table-column label="操作">
  197. <template>
  198. <el-tag
  199. class="move"
  200. style="
  201. cursor: move;
  202. margin-left: 15px;
  203. background-color: rgb(245, 245, 245);
  204. border: none;
  205. "
  206. draggable="true"
  207. >
  208. <i
  209. class="el-icon-d-caret"
  210. style="
  211. width: 1rem;
  212. height: 1rem;
  213. color: rgb(113, 113, 113);
  214. "
  215. ></i>
  216. </el-tag>
  217. </template>
  218. </el-table-column>
  219. </el-table>
  220. </div>
  221. </div>
  222. </el-card>
  223. </div> -->
  224. <el-dialog :title="title == 1 ? '新增' : '编辑'" :visible.sync="dialogVisible" width="800px"
  225. :close-on-click-modal="false">
  226. <el-form ref="form" :model="form" label-width="80px" :rules="rules">
  227. <el-row>
  228. <el-col :span="10">
  229. <el-form-item label="项目编号" prop="">
  230. <el-input v-model="form.id" :disabled="true" size="small"></el-input>
  231. </el-form-item>
  232. </el-col>
  233. <el-col :span="10">
  234. <el-form-item label="项目类别" prop="itemTypeId">
  235. <el-cascader v-model="form.itemTypeId" :options="itemTypeId" popper-class="example" ref="itemTypeId"
  236. @change="onchange" :props="{
  237. value: 'id',
  238. label: 'displayName',
  239. children: 'treeChildren',
  240. checkStrictly: true,
  241. expandTrigger: 'hover',
  242. }" size="small" style="width: 236px;"></el-cascader>
  243. </el-form-item>
  244. </el-col>
  245. <el-col :span="4">
  246. <el-form-item label="启用" prop="">
  247. <el-checkbox v-model="isActiveBox" @change="changeBox('isActive')" />
  248. </el-form-item>
  249. </el-col>
  250. </el-row>
  251. <el-row>
  252. <el-col :span="8">
  253. <el-form-item label="名称" prop="displayName">
  254. <el-input v-model="form.displayName" ref="refinput" size="small"></el-input>
  255. </el-form-item>
  256. </el-col>
  257. <el-col :span="8">
  258. <el-form-item label="英文缩写" prop="">
  259. <el-input v-model="form.englishShortName" size="small"></el-input>
  260. </el-form-item>
  261. </el-col>
  262. <el-col :span="8">
  263. <el-form-item label="价格" prop="">
  264. <el-input v-model="form.price" size="small"></el-input>
  265. </el-form-item>
  266. </el-col>
  267. </el-row>
  268. <el-row>
  269. <!-- <el-col :span="8">
  270. <el-form-item label="价表项目编码" prop="">
  271. <el-select
  272. v-model="form.priceItemId"
  273. placeholder="请选择"
  274. style="width: 100%"
  275. >
  276. <el-option
  277. v-for="item in priceItemId"
  278. :key="item.id"
  279. :label="item.displayName"
  280. :value="item.id"
  281. >
  282. </el-option>
  283. </el-select>
  284. </el-form-item>
  285. </el-col> -->
  286. <el-col :span="8">
  287. <el-form-item label="单位" prop="">
  288. <el-select v-model="form.unitId" placeholder="请选择" style="width: 100%" filterable size="small">
  289. <el-option v-for="item in unitId" :key="item.id" :label="item.displayName" :value="item.id">
  290. </el-option>
  291. </el-select>
  292. <!-- <el-autocomplete
  293. class="inline-input"
  294. v-model="unitIdName"
  295. :fetch-suggestions="querySearch"
  296. value-key="displayName"
  297. placeholder="请输入内容"
  298. @select="handleSelect"
  299. >
  300. </el-autocomplete> -->
  301. </el-form-item>
  302. </el-col>
  303. <el-col :span="8">
  304. <el-form-item>
  305. <template slot="label">
  306. <span style="font-size: 12px;">参考范围类型</span>
  307. </template>
  308. <el-select v-model="form.referenceRangeTypeFlag" placeholder="请选择" style="width: 100%" size="small">
  309. <el-option v-for="item in referenceRangeTypeFlag" :key="item.value" :label="item.label"
  310. :value="item.value">
  311. </el-option>
  312. </el-select>
  313. <!-- <el-input v-model="form.referenceRangeTypeFlag"></el-input> -->
  314. </el-form-item>
  315. </el-col>
  316. <el-col :span="4">
  317. <el-form-item>
  318. <template slot="label">
  319. <span style="font-size: 12px;">名称进入小结</span>
  320. </template>
  321. <el-checkbox v-model="isNameIntoSummaryBox" @change="changeBox('isNameIntoSummary')" />
  322. </el-form-item>
  323. </el-col>
  324. <el-col :span="4">
  325. <el-form-item label="生成小结">
  326. <el-checkbox v-model="isProduceSummaryBox" @change="changeBox('isProduceSummary')" />
  327. </el-form-item>
  328. </el-col>
  329. </el-row>
  330. <el-row>
  331. <el-col :span="24">
  332. <el-row>
  333. <el-form-item label="默认结果" prop="">
  334. <div style="display: flex; justify-content: center">
  335. <el-input v-model="form.defaultResult" type="textarea" :autosize="{ minRows: 2, maxRows: 5 }" />
  336. <el-select v-model="form.defaultResult" style="width: 40px" class="downText">
  337. <el-option v-for="item in defaultResult" :key="item.value" :label="item.label" :value="item.label">
  338. </el-option>
  339. </el-select>
  340. </div>
  341. </el-form-item>
  342. </el-row>
  343. </el-col>
  344. </el-row>
  345. <el-row>
  346. <el-col :span="4">
  347. <el-form-item label="是计算项目" prop="">
  348. <el-checkbox v-model="isCalculationItemBox" @change="changeBox('isCalculationItem')" />
  349. </el-form-item>
  350. </el-col>
  351. <el-col :span="8">
  352. <el-form-item label="计算函数" prop="">
  353. <el-input v-model="form.calculationFunction" :disabled="true" size="small">
  354. <el-button slot="append" icon="el-icon-more" v-if="isCalculationItemBox" @click="
  355. (calculationFunctionBox = true),
  356. (calculationFunctionText = form.calculationFunction)
  357. " size="small"></el-button>
  358. </el-input>
  359. </el-form-item>
  360. </el-col>
  361. <el-col :span="4">
  362. <el-form-item>
  363. <template slot="label">
  364. <span style="font-size: 12px;">输入结果校验</span>
  365. </template>
  366. <el-input v-model="form.inputCheck" size="small"></el-input>
  367. </el-form-item>
  368. </el-col>
  369. <el-col :span="4">
  370. <el-form-item label="仪器类别" prop="">
  371. <el-select v-model="form.deviceTypeId" placeholder="请选择" size="small" @change="quckRusetform">
  372. <el-option v-for="item in deviceTypeId" :key="item.id" :label="item.displayName" :value="item.id">
  373. </el-option>
  374. </el-select>
  375. </el-form-item>
  376. </el-col>
  377. <el-col :span="4">
  378. <el-form-item label="报告对比" prop="">
  379. <el-checkbox v-model="form.isReportContrast" size="small" true-label="Y" false-label="N" />
  380. </el-form-item>
  381. </el-col>
  382. </el-row>
  383. <el-row>
  384. <el-col :span="4">
  385. <el-form-item>
  386. <template slot="label">
  387. <span style="font-size: 12px;">启用诊断函数</span>
  388. </template>
  389. <el-checkbox v-model="isDiagnosisFunctionBox" @change="changeBox('isDiagnosisFunction')" />
  390. </el-form-item>
  391. </el-col>
  392. <el-col :span="8">
  393. <el-form-item label="诊断函数" prop="">
  394. <el-input v-model="form.diagnosisFunction" :disabled="disableddiagnosisFunction" size="small">
  395. <el-button slot="append" icon="el-icon-more" v-if="isDiagnosisFunctionBox" @click="
  396. (diagnosisFunctionBox = true),
  397. (diagnosisFunctionText = form.diagnosisFunction)
  398. " size="small"></el-button>
  399. </el-input>
  400. </el-form-item>
  401. </el-col>
  402. <el-col :span="4">
  403. <el-form-item label="继续处理" prop="">
  404. <el-checkbox v-model="isContinueProcessBox" @change="changeBox('isContinueProcess')" />
  405. </el-form-item>
  406. </el-col>
  407. <el-col :span="8">
  408. <el-form-item>
  409. <template slot="label">
  410. <span style="font-size: 12px;">结果换行标志</span>
  411. </template>
  412. <el-select v-model="form.lineModeFlag" placeholder="请选择" style="width: 100%" size="small">
  413. <el-option v-for="item in dict.lineModeFlag" :key="item.id" :label="item.displayName" :value="item.id">
  414. </el-option>
  415. </el-select>
  416. <!-- <el-input v-model="form.referenceRangeTypeFlag"></el-input> -->
  417. </el-form-item>
  418. </el-col>
  419. </el-row>
  420. <!-- <el-col :span="8">
  421. <el-form-item label="项目结果模板" prop="resultTemplateTypeFlag">
  422. <el-input v-model="form.resultTemplateTypeFlag"
  423. >resulttemp</el-input
  424. >
  425. <el-select
  426. v-model="form.resultTemplateTypeFlag"
  427. placeholder="请选择"
  428. style="width: 100%"
  429. >
  430. <el-option
  431. v-for="item in resulttemp"
  432. :key="item.id"
  433. :label="item.result"
  434. :value="item.id"
  435. >
  436. </el-option>
  437. </el-select>
  438. </el-form-item>
  439. </el-col> -->
  440. <el-row>
  441. <el-col :span="4">
  442. <el-form-item prop="isCriticalValueFunction">
  443. <template slot="label">
  444. <span style="font-size: 11px;">启用危急值函数</span>
  445. </template>
  446. <el-checkbox v-model="form.isCriticalValueFunction" size="small" true-label="Y" false-label="N" />
  447. </el-form-item>
  448. </el-col>
  449. <el-col :span="8">
  450. <el-form-item label="危急值函数" prop="criticalValueFunction">
  451. <el-input v-model="form.criticalValueFunction" disabled size="small">
  452. <el-button slot="append" icon="el-icon-more" v-if="form.isCriticalValueFunction == 'Y'"
  453. @click="dialogCriticalValueFunction = true" size="small"></el-button>
  454. </el-input>
  455. </el-form-item>
  456. </el-col>
  457. <el-col :span="4">
  458. <el-form-item prop="isFollowUpFunction">
  459. <template slot="label">
  460. <span style="font-size: 12px;">启用随访函数</span>
  461. </template>
  462. <el-checkbox v-model="form.isFollowUpFunction" size="small" true-label="Y" false-label="N" />
  463. </el-form-item>
  464. </el-col>
  465. <el-col :span="8">
  466. <el-form-item label="随访函数" prop="followUpFunction">
  467. <el-input v-model="form.followUpFunction" disabled size="small">
  468. <el-button slot="append" icon="el-icon-more" v-if="form.isFollowUpFunction == 'Y'"
  469. @click="dialogFollowUpFunction = true" size="small"></el-button>
  470. </el-input>
  471. </el-form-item>
  472. </el-col>
  473. </el-row>
  474. <!-- -->
  475. <el-divider></el-divider>
  476. <el-row>
  477. <el-col :span="5">
  478. <el-form-item label="创建者" label-width="50px">
  479. <el-input v-model="form.creatorName" disabled size="small"></el-input>
  480. </el-form-item>
  481. </el-col>
  482. <el-col :span="7">
  483. <el-form-item label="创建时间" label-width="70px">
  484. <el-input :value="form.creationTime | dateFormat" disabled size="small"></el-input>
  485. </el-form-item>
  486. </el-col>
  487. <el-col :span="5">
  488. <el-form-item label="修改者" label-width="50px">
  489. <el-input v-model="form.creatorName" disabled size="small"></el-input>
  490. </el-form-item>
  491. </el-col>
  492. <el-col :span="7">
  493. <el-form-item label="修改时间" label-width="70px">
  494. <el-input :value="form.lastModificationTime | dateFormat" disabled
  495. size="small"></el-input>
  496. </el-form-item>
  497. </el-col>
  498. </el-row>
  499. </el-form>
  500. <span slot="footer" class="dialog-footer">
  501. <el-button @click="dialogVisible = false" class="difference"> </el-button>
  502. <el-button type="primary" @click="Onsubmit" class="commonbutton"> </el-button>
  503. </span>
  504. </el-dialog>
  505. <!-- 按钮区域 -->
  506. <!-- <div style="margin-left: 10px; margin-top: 4%">
  507. <el-button type="" @click="add" class="commonbutton">新增</el-button>
  508. <div>
  509. <el-button
  510. type=""
  511. @click="editpopup"
  512. class="commonbutton"
  513. >编辑</el-button
  514. >
  515. </div>
  516. <div>
  517. <el-button type="" @click="delsrts" class="commonbutton"
  518. >删除</el-button
  519. >
  520. </div>
  521. <div>
  522. <el-button type="" @click="topping" class="commonbutton"
  523. >置顶</el-button
  524. >
  525. </div>
  526. <div>
  527. <el-button type="" @click="toppings" class="commonbutton"
  528. >置底</el-button
  529. >
  530. </div>
  531. <div>
  532. <el-button
  533. type=""
  534. :disabled="isshow"
  535. @click="assertion"
  536. class="commonbutton"
  537. >排序</el-button
  538. >
  539. </div>
  540. <div>
  541. <el-button
  542. type=""
  543. :disabled="isshow"
  544. @click="cancellation"
  545. class="commonbutton"
  546. >取消</el-button
  547. >
  548. </div>
  549. <div>
  550. <el-button
  551. type=""
  552. size=""
  553. @click="resulttemplate"
  554. class="commonbutton"
  555. >结果模板</el-button
  556. >
  557. </div>
  558. <div>
  559. <el-button
  560. type=""
  561. size=""
  562. @click="referencerange"
  563. class="commonbutton"
  564. >参考范围</el-button
  565. >
  566. </div>
  567. </div> -->
  568. <!-- 结果模板弹框 -->
  569. <el-dialog title="结果模板" :visible.sync="rurestdialogVisible" width="80%" :close-on-click-modal="false">
  570. <el-tabs v-model="activeName" type="border-card">
  571. <el-tab-pane label="结果模板" name="first">
  572. <div style="display: flex">
  573. <div style="width: 90%">
  574. <el-table :data="reusttableData" @row-click="reustclick" row-key="id" highlight-current-row
  575. style="width: 100%" :height="window.pageHeight < 600 ? 270 : window.pageHeight - 330"
  576. ref="reusttableData" class="el-table__body-wrappers tbodys" border>
  577. <!-- <el-table-column label="编号" prop="id"></el-table-column>
  578. <el-table-column label="项目编号" prop="itemId"></el-table-column> -->
  579. <el-table-column label="结果" prop="result" width="300" sortable ></el-table-column>
  580. <el-table-column label="诊断" width="200" sortable>
  581. <template slot-scope="scope">
  582. {{ dddw(diagnosisId, "id", scope.row.diagnosisId, "displayName") }}
  583. </template>
  584. </el-table-column>
  585. <el-table-column label="小结前加名称" width="110" align="center" sortable>
  586. <template slot-scope="scope">
  587. <el-checkbox v-model="scope.row.isNameIntoSummary" true-label="Y" false-label="N" disabled />
  588. </template>
  589. </el-table-column>
  590. <el-table-column label="结果状态" width="80" align="center" sortable>
  591. <template slot-scope="scope">
  592. {{ getChangeResult(scope.row.resultStatusId) }}
  593. </template>
  594. </el-table-column>
  595. <el-table-column label="结果进入小结" width="100" align="center">
  596. <template slot-scope="scope">
  597. <el-checkbox v-model="scope.row.isResultIntoSummary" true-label="Y" false-label="N" disabled />
  598. </template>
  599. </el-table-column>
  600. <el-table-column label="操作" align="center">
  601. <template>
  602. <el-tag class="moves" style="
  603. cursor: move;
  604. background-color: rgb(245, 245, 245);
  605. border: none;
  606. " draggable="true">
  607. <i class="el-icon-d-caret" style="width: 1rem; height: 1rem; color: rgb(113, 113, 113)"></i>
  608. </el-tag>
  609. </template>
  610. </el-table-column>
  611. <el-table-column label="创建者" width="80" sortable>
  612. <template slot-scope="scope">
  613. {{ scope.row.creatorName }}
  614. </template>
  615. </el-table-column>
  616. <el-table-column label="创建时间" width="200" sortable>
  617. <template slot-scope="scope">
  618. {{ scope.row.creationTime | dateFormat }}
  619. </template>
  620. </el-table-column>
  621. <el-table-column label="修改者" width="80" sortable>
  622. <template slot-scope="scope">
  623. {{ scope.row.lastModifierName }}
  624. </template>
  625. </el-table-column>
  626. <el-table-column label="修改时间" width="200" sortable>
  627. <template slot-scope="scope">
  628. {{ scope.row.lastModificationTime | dateFormat }}
  629. </template>
  630. </el-table-column>
  631. </el-table>
  632. </div>
  633. <div style="margin-top: 5px; margin-left: 15px; width: 10%">
  634. <el-button type="" @click="increase" class="commonbutton">添加</el-button>
  635. <div style="margin-top: 5px">
  636. <el-button type="" @click="resultediting" class="commonbutton">编辑</el-button>
  637. </div>
  638. <div style="margin-top: 5px">
  639. <el-button type="" @click="delemtdelite" class="deleteButton">删除</el-button>
  640. </div>
  641. <div style="margin-top: 5px">
  642. <el-button type="" @click="resulttopping" class="commonbutton">置顶</el-button>
  643. </div>
  644. <div style="margin-top: 5px">
  645. <el-button type="" @click="resulttoppings" class="commonbutton">置底</el-button>
  646. </div>
  647. <div style="margin-top: 5px">
  648. <el-button type="" :disabled="isshows" @click="assertions" class="commonbutton">排序</el-button>
  649. </div>
  650. <div style="margin-top: 5px">
  651. <el-button type="" :disabled="isshows" @click="resultcancellation" class="commonbutton">取消</el-button>
  652. </div>
  653. <!-- <div style="margin-top: 5px">
  654. <el-button type="primary" @click="templatecategory"
  655. >模板类别</el-button
  656. >
  657. </div> -->
  658. <div style="margin-top: 5px; margin-bottom: 14px">
  659. <el-button type="" @click="diagnosticmatching" class="commonbutton">诊断匹配</el-button>
  660. </div>
  661. </div>
  662. </div>
  663. </el-tab-pane>
  664. <el-tab-pane label="词条类别" name="second">
  665. <div style="display: flex">
  666. <div style="flex:1;overflow: scroll;height:450px;"
  667. :style="'overflow: scroll;height:' + (window.pageHeight < 600 ? 270 : window.pageHeight - 330) + 'px;'">
  668. <el-tree :data="menuInfoView" :props="treeprops" node-key="bigtextResultTypeId" show-checkbox
  669. default-expand-all :default-checked-keys="defaultExpandedKeys" highlight-current ref="customerOrgTree"
  670. size="small" />
  671. </div>
  672. <div style="margin-top: 5px; margin-left: 15px;">
  673. <el-button type="" @click="saveEntry" class="commonbutton">保存</el-button>
  674. </div>
  675. </div>
  676. </el-tab-pane>
  677. </el-tabs>
  678. <el-divider></el-divider>
  679. <span slot="footer" class="dialog-footer">
  680. <el-button @click="
  681. (rurestdialogVisible = false), (rusetform = {}), (curRows = {}), (activeName = 'first')
  682. " class="difference"> </el-button>
  683. <el-button type="primary" @click="
  684. (rurestdialogVisible = false), (rusetform = {}), (curRows = {}), (activeName = 'first')
  685. " class="commonbutton"> </el-button>
  686. </span>
  687. </el-dialog>
  688. <!-- 结果模板添加或者修改弹框 -->
  689. <el-dialog :title="ruesttiele == 1 ? '新增' : '修改'" :visible.sync="ruesttieledialogVisible" width="80%"
  690. :close-on-click-modal="false">
  691. <el-form :model="rusetform" ref="rusetform" label-width="100px" :rules="rusetformcheck">
  692. <el-row>
  693. <el-col :span="24">
  694. <el-form-item label="结果" prop="result">
  695. <el-input v-model="rusetform.result" ref="ruseInput" @change="changeUpdate($event)"
  696. @input="change($event)" size="small"></el-input>
  697. </el-form-item>
  698. </el-col>
  699. </el-row>
  700. <el-row>
  701. <el-col :span="8">
  702. <el-form-item label="诊断编号">
  703. <el-select v-model="rusetform.diagnosisId" placeholder="请选择" filterable :filter-method="remoteMethod"
  704. clearable @change="quckRusetforms" default-first-option size="small" popper-class="dddwSelect"
  705. :popper-append-to-body="false">
  706. <el-option v-for="item in quickAsb" :key="item.id" :label="item.displayName" :value="item.id">
  707. </el-option>
  708. </el-select>
  709. </el-form-item>
  710. </el-col>
  711. <el-col :span="4">
  712. <el-form-item label="小结前加名称">
  713. <el-checkbox v-model="rusetform.isNameIntoSummary" true-label="Y" false-label="N"
  714. @change="quckRusetform" />
  715. </el-form-item>
  716. </el-col>
  717. <el-col :span="4">
  718. <el-form-item label="结果进入小结">
  719. <el-checkbox v-model="rusetform.isResultIntoSummary" true-label="Y" false-label="N"
  720. @change="quckRusetform" />
  721. </el-form-item>
  722. </el-col>
  723. <el-col :span="8">
  724. <el-form-item label="结果状态" prop="resultStatusId">
  725. <el-select v-model="rusetform.resultStatusId" placeholder="请选择" filterable @change="quckRusetform"
  726. size="small">
  727. <el-option v-for="item in resultStatusId" :key="item.id" :label="item.displayName" :value="item.id">
  728. </el-option>
  729. </el-select>
  730. </el-form-item>
  731. </el-col>
  732. </el-row>
  733. </el-form>
  734. <el-divider></el-divider>
  735. <span slot="footer" class="dialog-footer">
  736. <el-button @click="ruesttieledialogVisible = false" class="difference"> </el-button>
  737. <el-button type="" @click="rusteronsubmit" class="commonbutton"> </el-button>
  738. </span>
  739. </el-dialog>
  740. <!-- 参考范围弹框 -->
  741. <el-dialog title="参考范围" :visible.sync="referencerangedialogVisible" width="80%" :close-on-click-modal="false">
  742. <el-row>
  743. <el-col :span="8">
  744. <span>参考范围类型</span>
  745. <el-select v-model="referencerangevalue" filterable placeholder="请选择" @change="selecttype" size="small">
  746. <el-option v-for="item in referencerangedata" :key="item.value" :label="item.label" :value="item.value">
  747. </el-option>
  748. </el-select>
  749. </el-col>
  750. </el-row>
  751. <!-- //无参考范围 2223456-->
  752. <el-card v-if="referencerangevalue == 0" style="margin-top: 20px">无参考范围</el-card>
  753. <!-- 数字型参考范围 -->
  754. <div style="display: flex" v-if="referencerangevalue == 1">
  755. <ReferenceRange :itemId="form.id" ReferenceRangeTypeFlag="1" />
  756. </div>
  757. <!-- 字符型参考范围 -->
  758. <div v-if="referencerangevalue == 2">
  759. <div style="margin: 20px 0; display: flex">
  760. <div style="width: 100%">
  761. <el-input type="textarea" placeholder="请输入内容" v-model="fssubdex" maxlength="300" show-word-limit
  762. style="height: 50px" size="small">
  763. </el-input>
  764. </div>
  765. <!-- <div style="margin-top: 5px; margin-left: 15px;width:10%;">
  766. <el-button type="primary" @click="addfssubdex" style="width:100%;">新增</el-button>
  767. </div> -->
  768. </div>
  769. </div>
  770. <!-- 性激素参考范围 -->
  771. <div v-if="referencerangevalue == 3">
  772. <ReferenceRange3 :itemId="form.id" ReferenceRangeTypeFlag="3" />
  773. </div>
  774. <el-divider></el-divider>
  775. <span slot="footer" class="dialog-footer">
  776. <el-button @click="
  777. (referencerangedialogVisible = false), (referencerangevalue = '0')
  778. " class="difference"> </el-button>
  779. <el-button type="" @click="determinetype" class="commonbutton"> </el-button>
  780. </span>
  781. </el-dialog>
  782. <!-- 项目结果模板弹框 -->
  783. <el-dialog title="结果模板" :visible.sync="projectdialogVisible" width="80%" :close-on-click-modal="false">
  784. <div style="display: flex">
  785. <div style="width: 95%">
  786. <el-table :data="projectdata">
  787. <el-table-column label="编号" prop="id"> </el-table-column>
  788. <el-table-column label="结果" prop="result"> </el-table-column>
  789. <el-table-column label="修改者" prop="lastModifierName">
  790. </el-table-column>
  791. <el-table-column label="修改时间" prop="lastModificationTime">
  792. <template slot-scope="scope">
  793. {{ scope.row.lastModificationTime | dateFormat }}
  794. </template>
  795. </el-table-column>
  796. </el-table>
  797. </div>
  798. <!-- 结果模板 -->
  799. <div style="margin-left: 10px; margin-top: 5%">
  800. <el-button type="primary" @click="resultaddition">添加</el-button>
  801. </div>
  802. </div>
  803. <span slot="footer" class="dialog-footer">
  804. <el-button @click="projectdialogVisible = false"> </el-button>
  805. <el-button type="primary" @click="projectdialogVisible = false"> </el-button>
  806. </span>
  807. </el-dialog>
  808. <!--诊断匹配弹框-->
  809. <el-dialog title="诊断匹配" :visible.sync="diagnosdialogVisible" width="80%" :close-on-click-modal="false">
  810. <div style="display: flex">
  811. <div style="width: 95%">
  812. <el-table :data="diagnosticdata" :height="window.pageHeight < 600 ? 280 : window.pageHeight - 320"
  813. highlight-current-row @row-click="diagnosick" row-key="id" ref="diagnosticdata"
  814. class="el-table__body-wrapperes tbodyes">
  815. <el-table-column label="结果" prop="result"></el-table-column>
  816. <el-table-column label="诊断" width="200">
  817. <template slot-scope="scope">
  818. {{ dddw(diagnosisId, "id", scope.row.diagnosisId, "displayName") }}
  819. </template>
  820. </el-table-column>
  821. <el-table-column label="创建者" width="100">
  822. <template slot-scope="scope">
  823. {{ scope.row.creatorName }}
  824. </template>
  825. </el-table-column>
  826. <el-table-column label="创建时间" width="200">
  827. <template slot-scope="scope">
  828. {{ scope.row.creationTime | dateFormat }}
  829. </template>
  830. </el-table-column>
  831. <el-table-column label="修改者" width="100">
  832. <template slot-scope="scope">
  833. {{ scope.row.lastModifierName }}
  834. </template>
  835. </el-table-column>
  836. <el-table-column label="修改时间" width="200">
  837. <template slot-scope="scope">
  838. {{ scope.row.lastModificationTime | dateFormat }}
  839. </template>
  840. </el-table-column>
  841. <el-table-column label="操作" align="center">
  842. <template>
  843. <el-tag class="movess" style="
  844. cursor: move;
  845. background-color: rgb(245, 245, 245);
  846. border: none;
  847. " draggable="true">
  848. <i class="el-icon-d-caret" style="width: 1rem; height: 1rem; color: rgb(113, 113, 113)"></i>
  849. </el-tag>
  850. </template>
  851. </el-table-column>
  852. </el-table>
  853. </div>
  854. <div style="margin-top: 5px; margin-left: 15px; width: 10%">
  855. <el-button type="" @click="adddiagnosis" class="commonbutton">增加</el-button>
  856. <div style="margin-top: 5px">
  857. <el-button type="" @click="editDiagnosis" class="commonbutton">编辑</el-button>
  858. </div>
  859. <div style="margin-top: 5px">
  860. <el-button type="" @click="deleteDiagnosis" class="deleteButton">删除</el-button>
  861. </div>
  862. <div style="margin-top: 5px">
  863. <el-button type="" @click="diagnosistopping" class="commonbutton">置顶</el-button>
  864. </div>
  865. <div style="margin-top: 5px">
  866. <el-button type="" @click="diagnosistoppings" class="commonbutton">置底</el-button>
  867. </div>
  868. <div style="margin-top: 5px">
  869. <el-button type="" :disabled="isshowes" @click="assertiones" class="commonbutton">排序</el-button>
  870. </div>
  871. <div style="margin-top: 5px">
  872. <el-button type="" :disabled="isshowes" @click="diagnosiscancellation" class="commonbutton">取消</el-button>
  873. </div>
  874. </div>
  875. </div>
  876. <el-divider></el-divider>
  877. <span slot="footer" class="dialog-footer">
  878. <el-button @click="
  879. (diagnosdialogVisible = false),
  880. (editdigoisceditingform = {}),
  881. (curRowes = {})
  882. " class="difference"> </el-button>
  883. <el-button type="primary" @click="
  884. (diagnosdialogVisible = false),
  885. (editdigoisceditingform = {}),
  886. (curRowes = {})
  887. " class="commonbutton"> </el-button>
  888. </span>
  889. </el-dialog>
  890. <!-- 增加诊断弹框 -->
  891. <el-dialog :title="diagnostiele == 1 ? '新增' : '修改'" :visible.sync="diagnosticediting" width="80%"
  892. :close-on-click-modal="false">
  893. <el-form :model="editdigoisceditingform" ref="editdigoisceditingform" label-width="100px"
  894. :rules="editdigoisceditingformcheck">
  895. <el-row>
  896. <el-col :span="8">
  897. <el-form-item label="结果" prop="result">
  898. <el-input v-model="editdigoisceditingform.result" ref="editdiInput" @change="changeUpdates($event)"
  899. size="small"></el-input>
  900. </el-form-item>
  901. </el-col>
  902. <el-col :span="8">
  903. <el-form-item label="诊断编号" prop="diagnosisId">
  904. <el-select v-model="editdigoisceditingform.diagnosisId" placeholder="请选择" filterable
  905. :filter-method="remoteMethodess" default-first-option clearable @change="quckEditdigoisce" size="small">
  906. <el-option v-for="item in quckeDitd" :key="item.id" :label="item.displayName" :value="item.id">
  907. </el-option>
  908. </el-select>
  909. </el-form-item>
  910. </el-col>
  911. </el-row>
  912. </el-form>
  913. <el-divider></el-divider>
  914. <span slot="footer" class="dialog-footer">
  915. <el-button @click="diagnosticediting = false" class="difference"> </el-button>
  916. <el-button type="primary" @click="diagnosticsadd" class="commonbutton"> </el-button>
  917. </span>
  918. </el-dialog>
  919. <!--诊断设置弹框 -->
  920. <el-dialog title="诊断建议设置" :visible.sync="diagnostisbox" width="80%" :close-on-click-modal="false">
  921. <div style="display: flex">
  922. <div style="width: 95%">
  923. <el-card>
  924. <el-row>
  925. <el-col :span="8">
  926. <el-select v-model="value" placeholder="请选择">
  927. <el-option v-for="item in itemTypeId" :key="item.id" :label="item.displayName" :value="item.id">
  928. </el-option>
  929. </el-select>
  930. </el-col>
  931. <el-col :span="8"> 2122 </el-col>
  932. </el-row>
  933. <!-- table部分 -->
  934. <el-row> </el-row>
  935. </el-card>
  936. </div>
  937. </div>
  938. <span slot="footer" class="dialog-footer">
  939. <el-button @click="diagnostisbox = false"> </el-button>
  940. <el-button type="primary" @click="diagnostisbox = false"> </el-button>
  941. </span>
  942. </el-dialog>
  943. <!-- 诊断函数弹框 -->
  944. <el-dialog title="诊断函数设置" :visible.sync="diagnosisFunctionBox" width="90%" :close-on-click-modal="false" fullscreen>
  945. <el-form label-width="110px">
  946. <el-row>
  947. <el-col :span="24">
  948. <el-form-item label="诊断函数">
  949. <el-input type="textarea" v-model="diagnosisFunctionText"
  950. :autosize="{ minRows: 29, maxRows: 29 }"></el-input>
  951. </el-form-item>
  952. </el-col>
  953. </el-row>
  954. </el-form>
  955. <span slot="footer" class="dialog-footer">
  956. <el-button @click="(diagnosisFunctionBox = false), (diagnosisFunctionText = '')" class="difference">
  957. </el-button>
  958. <el-button type="primary" @click="OnsubmitDiagnosis" class="commonbutton"> </el-button>
  959. </span>
  960. </el-dialog>
  961. <!-- 危急值函数弹框 -->
  962. <el-dialog title="危急值函数设置" :visible.sync="dialogCriticalValueFunction" width="90%" :close-on-click-modal="false"
  963. fullscreen>
  964. <el-form label-width="110px">
  965. <el-row>
  966. <el-col :span="24">
  967. <el-form-item label="危急值函数">
  968. <el-input type="textarea" v-model="form.criticalValueFunction"
  969. :autosize="{ minRows: 29, maxRows: 29 }"></el-input>
  970. </el-form-item>
  971. </el-col>
  972. </el-row>
  973. </el-form>
  974. <span slot="footer" class="dialog-footer">
  975. <el-button @click="(dialogCriticalValueFunction = false), (form.criticalValueFunction = '')"
  976. class="difference">
  977. </el-button>
  978. <el-button type="primary" @click="dialogCriticalValueFunction = false" class="commonbutton"> </el-button>
  979. </span>
  980. </el-dialog>
  981. <!-- 危急值函数弹框 -->
  982. <el-dialog title="随访函数设置" :visible.sync="dialogFollowUpFunction" :close-on-click-modal="false" fullscreen>
  983. <el-form label-width="110px">
  984. <el-row>
  985. <el-col :span="24">
  986. <el-form-item label="随访函数">
  987. <el-input type="textarea" v-model="form.followUpFunction"
  988. :autosize="{ minRows: 29, maxRows: 29 }"></el-input>
  989. </el-form-item>
  990. </el-col>
  991. </el-row>
  992. </el-form>
  993. <span slot="footer" class="dialog-footer">
  994. <el-button @click="(dialogFollowUpFunction = false), (form.followUpFunction = '')" class="difference">
  995. </el-button>
  996. <el-button type="primary" @click="dialogFollowUpFunction = false" class="commonbutton"> </el-button>
  997. </span>
  998. </el-dialog>
  999. <!-- 计算函数弹框 -->
  1000. <el-dialog title="计算函数设置" :visible.sync="calculationFunctionBox" width="50%" :close-on-click-modal="false"
  1001. fullscreen>
  1002. <el-form label-width="110px">
  1003. <el-row>
  1004. <el-col :span="24">
  1005. <el-form-item label="诊断函数">
  1006. <el-input type="textarea" v-model="calculationFunctionText"
  1007. :autosize="{ minRows: 29, maxRows: 29 }"></el-input>
  1008. </el-form-item>
  1009. </el-col>
  1010. </el-row>
  1011. </el-form>
  1012. <span slot="footer" class="dialog-footer">
  1013. <el-button @click="
  1014. (calculationFunctionBox = false), (calculationFunctionText = '')
  1015. " class="difference"> </el-button>
  1016. <el-button type="primary" @click="OnsubmitCalculation" class="commonbutton"> </el-button>
  1017. </span>
  1018. </el-dialog>
  1019. </div>
  1020. </template>
  1021. <script>
  1022. import { yzstr } from "@/utlis/validate";
  1023. import {
  1024. getporjectlists,
  1025. projectlist,
  1026. addproject,
  1027. priceitemlist,
  1028. posjrctid,
  1029. projectedit,
  1030. projectdeleft,
  1031. projttitem,
  1032. projectdreog
  1033. } from "@/request/commonapi";
  1034. import { unitlist, instrumentlist } from "@/request/systemapi";
  1035. import Sortable from "sortablejs";
  1036. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  1037. import { deepCopy, dddw, tcdate } from "../../utlis/proFunc";
  1038. import ReferenceRange from "../../components/itemSet/ReferenceRange.vue";
  1039. import ReferenceRange3 from "../../components/itemSet/ReferenceRange3.vue";
  1040. import { mapState, mapActions } from "vuex";
  1041. export default {
  1042. components: {
  1043. ReferenceRange,ReferenceRange3
  1044. },
  1045. data() {
  1046. return {
  1047. value: "",
  1048. diagnostisbox: false, //诊断设置弹框的方法
  1049. // tabelform: {
  1050. // ageLowerLimit: "input无法输入",
  1051. // },
  1052. sexname: [],
  1053. sexid: [],
  1054. treeprops: {
  1055. label: "displayName",
  1056. value: "id",
  1057. children: "treeChildren",
  1058. }, //左侧树形结构需要的数据
  1059. editdigoisceditingform: {
  1060. itemId: "",
  1061. result: "",
  1062. diagnosisId: "",
  1063. }, //诊断编辑需要绑定的对象诊断所需要的编辑
  1064. diagnosticediting: false, //诊断编辑
  1065. diagnosdialogVisible: false, //匹配诊断
  1066. diagnosticdata: [], //匹配诊断
  1067. initdiagnosticdata: [],
  1068. projectdata: [], //结果模板
  1069. projectdialogVisible: false,
  1070. itemId: [], //项目id
  1071. diagnosisId: [], //诊断
  1072. rusetform: {
  1073. itemId: "",
  1074. result: "",
  1075. diagnosisId: null,
  1076. isNameIntoSummary: "N",
  1077. isResultIntoSummary: "Y",
  1078. resultStatusId: "01",
  1079. simpleCode: "",
  1080. }, //项目结果模板需要的数据
  1081. resultStatusId: [], //结果状态
  1082. isNameIntoSummary: [
  1083. {
  1084. value: "Y",
  1085. label: "是",
  1086. },
  1087. {
  1088. value: "N",
  1089. label: "否",
  1090. },
  1091. ], //小结名称
  1092. isResultIntoSummary: [
  1093. {
  1094. value: "Y",
  1095. label: "是",
  1096. },
  1097. {
  1098. value: "N",
  1099. label: "否",
  1100. },
  1101. ], //进入小结
  1102. ruesttiele: 1,
  1103. ruesttieledialogVisible: false,
  1104. referencerangedata: [
  1105. {
  1106. value: "0",
  1107. label: "无参考范围",
  1108. },
  1109. {
  1110. value: "1",
  1111. label: "数字型参考范围",
  1112. },
  1113. {
  1114. value: "2",
  1115. label: "字符型参考范围",
  1116. },
  1117. {
  1118. value: "3",
  1119. label: "性激素参考范围",
  1120. },
  1121. ], //参考范围下拉框
  1122. referencerangevalue: "0",
  1123. referencerangedialogVisible: false, //参考范围弹框
  1124. Selectvalue: "",
  1125. Selectacategory: [],
  1126. rurestdialogVisible: false,
  1127. isshow: true,
  1128. reusttableData: [],
  1129. initReusttableData: [],
  1130. tableData: [],
  1131. initTableData: [],
  1132. pages: {
  1133. Filter: "",
  1134. Sorting: "",
  1135. SkipCount: 0,
  1136. MaxResultCount: 100,
  1137. },
  1138. title: 1,
  1139. isProduceSummaryBox: true,
  1140. isNameIntoSummaryBox: true,
  1141. isDiagnosisFunctionBox: false,
  1142. isCalculationItemBox: false,
  1143. isContinueProcessBox: false,
  1144. isActiveBox: true,
  1145. // unitIdName:"",
  1146. diagnosisFunctionBox: false,
  1147. calculationFunctionBox: false,
  1148. form: {
  1149. displayName: "",
  1150. englishShortName: "",
  1151. itemTypeId: "",
  1152. price: "0",
  1153. priceItemId: null,
  1154. unitId: null,
  1155. defaultResult: "未见异常",
  1156. referenceRangeTypeFlag: "0",
  1157. isProduceSummary: "",
  1158. isNameIntoSummary: "",
  1159. isDiagnosisFunction: "",
  1160. diagnosisFunction: "",
  1161. isCalculationItem: "",
  1162. calculationFunction: "",
  1163. isContinueProcess: "",
  1164. resultTemplateTypeFlag: null,
  1165. inputCheck: "",
  1166. isActive: "",
  1167. lineModeFlag: '2',
  1168. deviceTypeId: null,
  1169. isCriticalValueFunction: 'N',
  1170. criticalValueFunction: '',
  1171. isFollowUpFunction: 'N',
  1172. followUpFunction: '',
  1173. isReportContrast: "N"
  1174. },
  1175. referenceRangeTypeFlag: [
  1176. {
  1177. value: "0",
  1178. label: "无参考范围",
  1179. },
  1180. {
  1181. value: "1",
  1182. label: "数字型参考范围",
  1183. },
  1184. {
  1185. value: "2",
  1186. label: "字符型参考范围",
  1187. },
  1188. {
  1189. value: "3",
  1190. label: "性激素参考范围",
  1191. },
  1192. ],
  1193. isProduceSummary: [
  1194. {
  1195. value: "Y",
  1196. label: "是",
  1197. },
  1198. {
  1199. value: "N",
  1200. label: "否",
  1201. },
  1202. ], //生成小结
  1203. isNameIntoSummary: [
  1204. {
  1205. value: "Y",
  1206. label: "是",
  1207. },
  1208. {
  1209. value: "N",
  1210. label: "否",
  1211. },
  1212. ], //名称进入小结
  1213. isDiagnosisFunction: [
  1214. {
  1215. value: "Y",
  1216. label: "是",
  1217. },
  1218. {
  1219. value: "N",
  1220. label: "否",
  1221. },
  1222. ], //启用诊断函数
  1223. isCalculationItem: [
  1224. {
  1225. value: "Y",
  1226. label: "是",
  1227. },
  1228. {
  1229. value: "N",
  1230. label: "否",
  1231. },
  1232. ], //是计算项目
  1233. isContinueProcess: [
  1234. {
  1235. value: "Y",
  1236. label: "是",
  1237. },
  1238. {
  1239. value: "N",
  1240. label: "否",
  1241. },
  1242. ], //是继续处理
  1243. inputCheck: [
  1244. {
  1245. value: "Y",
  1246. label: "是",
  1247. },
  1248. {
  1249. value: "N",
  1250. label: "否",
  1251. },
  1252. ], //输入结果校验公式
  1253. isActive: [
  1254. {
  1255. value: "Y",
  1256. label: "是",
  1257. },
  1258. {
  1259. value: "N",
  1260. label: "否",
  1261. },
  1262. ], //启用
  1263. dialogVisible: false,
  1264. rules: {
  1265. displayName: [
  1266. { required: true, message: "请输入名称", trigger: "blur" },
  1267. ],
  1268. englishShortName: [
  1269. { required: true, message: "请输入英文缩写", trigger: "blur" },
  1270. ],
  1271. itemTypeId: [
  1272. { required: true, message: "请输入项目类别", trigger: "blur" },
  1273. ],
  1274. price: [{ required: true, message: "请输入价格", trigger: "blur" }],
  1275. priceItemId: [
  1276. { required: true, message: "请输入价表项目编码", trigger: "blur" },
  1277. ],
  1278. unitId: [{ required: true, message: "请输入单位", trigger: "blur" }],
  1279. defaultResult: [
  1280. { required: true, message: "请输入默认结果", trigger: "blur" },
  1281. ],
  1282. referenceRangeTypeFlag: [
  1283. { required: true, message: "请输入参考范围类别", trigger: "blur" },
  1284. ],
  1285. isProduceSummary: [
  1286. { required: true, message: "请选择是生成小结", trigger: "blur" },
  1287. ],
  1288. isNameIntoSummary: [
  1289. { required: true, message: "请输择称进入小结", trigger: "blur" },
  1290. ],
  1291. isDiagnosisFunction: [
  1292. { required: true, message: "请选择启用诊断函数", trigger: "blur" },
  1293. ],
  1294. diagnosisFunction: [
  1295. { required: true, message: "请输入诊断函数", trigger: "blur" },
  1296. ],
  1297. isCalculationItem: [
  1298. { required: true, message: "请选择计算项目", trigger: "blur" },
  1299. ],
  1300. calculationFunction: [
  1301. { required: true, message: "请输入计算函数", trigger: "blur" },
  1302. ],
  1303. isContinueProcess: [
  1304. { required: true, message: "请选择继续处理", trigger: "blur" },
  1305. ],
  1306. deviceTypeId: [
  1307. { required: true, message: "请选择仪器类别", trigger: "blur" },
  1308. ],
  1309. resultTemplateTypeFlag: [
  1310. {
  1311. required: true,
  1312. message: "请输入结果模板类别标志",
  1313. trigger: "blur",
  1314. },
  1315. ],
  1316. inputCheck: [
  1317. { required: true, message: "请选择结果校验公式", trigger: "blur" },
  1318. ],
  1319. isActive: [{ required: true, message: "请选择启用", trigger: "blur" }],
  1320. },
  1321. rusetformcheck: {
  1322. result: [{ required: true, message: "请输入名称", trigger: "blur" }],
  1323. resultStatusId: [
  1324. { required: true, message: "请选择结果状态", trigger: "blur" },
  1325. ],
  1326. },
  1327. editdigoisceditingformcheck: {
  1328. result: [{ required: true, message: "请输入名称", trigger: "blur" }],
  1329. diagnosisId: [
  1330. { required: true, message: "请选择诊断编号", trigger: "blur" },
  1331. ],
  1332. },
  1333. unitId: [], //单位Id
  1334. priceItemId: [], //价格id1
  1335. result: [], //结果
  1336. forSexId: [], //性别
  1337. itemTypeId: [], //项目类别
  1338. diagnosisLevelId: [], //诊断级别
  1339. isIll: [
  1340. {
  1341. value: "Y",
  1342. label: "是",
  1343. },
  1344. {
  1345. value: "N",
  1346. label: "否",
  1347. },
  1348. ], //是疾病
  1349. isSummaryTemplate: [
  1350. {
  1351. value: "Y",
  1352. label: "是",
  1353. },
  1354. {
  1355. value: "N",
  1356. label: "否",
  1357. },
  1358. ], //总监模板
  1359. props: {
  1360. label: "displayName",
  1361. value: "id",
  1362. children: "treeChildren",
  1363. }, //左侧树形结构
  1364. newssdate: [
  1365. {
  1366. id: "1",
  1367. name: "",
  1368. },
  1369. {
  1370. id: "2",
  1371. name: "",
  1372. },
  1373. ],
  1374. defaultResult: [
  1375. {
  1376. value: "1",
  1377. label: "未见异常",
  1378. },
  1379. {
  1380. value: "2",
  1381. label: "正常",
  1382. },
  1383. {
  1384. value: "3",
  1385. label: "阴性",
  1386. },
  1387. {
  1388. value: "4",
  1389. label: "无",
  1390. },
  1391. {
  1392. value: "5",
  1393. label: "(—)",
  1394. },
  1395. {
  1396. value: "6",
  1397. label: "­-",
  1398. },
  1399. ], //默认结果
  1400. ssdate: [],
  1401. fssubdex: "",
  1402. resultitemtype: [], //项目类别
  1403. scopediagnostic: [], //诊断范围下拉框
  1404. reference: [], //参考范围
  1405. resulttemp: [], // 结果模板
  1406. disableddiagnosisFunction: true,
  1407. dialogFollowUpFunction: false, // 随访函数详细编辑窗口
  1408. dialogCriticalValueFunction: false, // 危急值详细编辑窗口
  1409. curRow: {},
  1410. diagnosisFunctionText: "",
  1411. calculationFunctionText: "",
  1412. quickAsb: [],
  1413. quckDepartment: [],
  1414. department: "",
  1415. quckeDitd: [],
  1416. editdigoisceDiagnosisId: [],
  1417. diagnostiele: 1,
  1418. curRows: {},
  1419. curRowes: {},
  1420. fssubdexDete: "",
  1421. isshows: true,
  1422. isshowes: true,
  1423. initItemTypeId: "",
  1424. deviceTypeId: [],
  1425. activeName: "first",
  1426. menuInfoView: [],
  1427. treeprops: {
  1428. label: "displayName", //displayName
  1429. value: "bigtextResultTypeId",
  1430. id: "bigtextResultTypeId",
  1431. children: "treeChildren",
  1432. checkStrictly: true
  1433. },
  1434. defaultExpandedKeys: [],
  1435. clickTime1: 0,
  1436. clickTime2: 0
  1437. };
  1438. },
  1439. created() {
  1440. // this.getlist();
  1441. this.getmedicalconclusionlist();
  1442. this.dictInit() // 获取字典信息
  1443. },
  1444. mounted() {
  1445. this.rowDrop();
  1446. this.typeid();
  1447. },
  1448. computed: {
  1449. ...mapState(["window", "dict"]),
  1450. },
  1451. methods: {
  1452. dddw, deepCopy,
  1453. dictInit() {
  1454. // 获取诊断信息
  1455. postapi("/api/app/Diagnosis/GetSimpleList").then((res) => {
  1456. if (res.code != -1) {
  1457. this.diagnosisId = res.data;
  1458. this.quickAsb = res.data;
  1459. this.quckeDitd = [...res.data]
  1460. this.editdigoisceDiagnosisId = res.data;
  1461. }
  1462. });
  1463. getapi("/api/app/result-status").then((res) => {
  1464. if (res.code != -1) {
  1465. this.resultStatusId = res.data;
  1466. }
  1467. });
  1468. },
  1469. //启用诊断函数
  1470. enablediagnostics(v) {
  1471. if (v == "N") {
  1472. this.disableddiagnosisFunction = true;
  1473. } else {
  1474. this.disableddiagnosisFunction = false;
  1475. }
  1476. },
  1477. // addfssubdex(){
  1478. // if(this.fssubdex){
  1479. // let obj = {
  1480. // itemId: this.form.id,
  1481. // referenceRangeValue: this.fssubdex,
  1482. // referenceRangeTypeFlag: this.referencerangevalue,
  1483. // };
  1484. // postapi("/api/app/reference-range/text", obj).then((res) => {
  1485. // if(res.code!=-1){
  1486. // console.log("新增成功");
  1487. // this.fssubdex = "";
  1488. // }
  1489. // });
  1490. // }else{
  1491. // this.$message.warning("内容不能为空");
  1492. // }
  1493. // },
  1494. //参考范围确定类型
  1495. determinetype() {
  1496. this.referencerangedialogVisible = false;
  1497. if (this.referencerangevalue == 2) {
  1498. if (this.fssubdex) {
  1499. if (!this.fssubdexDete) {
  1500. let obj = {
  1501. itemId: this.form.id,
  1502. referenceRangeValue: this.fssubdex,
  1503. referenceRangeTypeFlag: this.referencerangevalue,
  1504. };
  1505. postapi("/api/app/reference-range/text", obj).then((res) => {
  1506. if (res.code != -1) {
  1507. //this.$message.success("新增成功");
  1508. this.fssubdex = "";
  1509. this.curRow.referenceRangeTypeFlag = this.referencerangevalue;
  1510. }
  1511. });
  1512. } else {
  1513. let obj = {
  1514. itemId: this.form.id,
  1515. referenceRangeValue: this.fssubdex,
  1516. referenceRangeTypeFlag: this.referencerangevalue,
  1517. };
  1518. putapi(
  1519. `/api/app/reference-range/${this.fssubdexDete.id}/text`,
  1520. obj
  1521. ).then((res) => {
  1522. if (res.code != -1) {
  1523. //this.$message.success("修改成功");
  1524. this.fssubdex = "";
  1525. this.curRow.referenceRangeTypeFlag = this.referencerangevalue;
  1526. }
  1527. });
  1528. }
  1529. } else {
  1530. this.$message.warning("内容不能为空");
  1531. }
  1532. } else {
  1533. postapi("/api/app/item/updateitemreferencerangetypeflag", {
  1534. itemId: this.form.id,
  1535. referenceRangeTypeFlag: this.referencerangevalue,
  1536. }).then((res) => {
  1537. if (res.code != -1) {
  1538. this.curRow.referenceRangeTypeFlag = this.referencerangevalue;
  1539. }
  1540. });
  1541. }
  1542. },
  1543. async blurInput(id, name, value) {
  1544. var isdate = false; //是否存在
  1545. for (var i = 0; i < this.newssdate.length; i++) {
  1546. if (this.newssdate[i].id == id) {
  1547. isdate = true;
  1548. this.newssdate[i][name] = value;
  1549. }
  1550. }
  1551. if (!isdate) {
  1552. for (var j = 0; j < this.ssdate.length; j++) {
  1553. if (this.ssdate[j].id == id) {
  1554. this.newssdate.push(this.ssdate[j]);
  1555. }
  1556. }
  1557. }
  1558. //
  1559. },
  1560. treeclick(data) {
  1561. this.initItemTypeId = data.id;
  1562. getapi(`/api/app/item/in-item-type/${data.id}`).then((res) => {
  1563. if (res.code != -1) {
  1564. this.tableData = res.data;
  1565. // this.initTableData = [...res.data];
  1566. }
  1567. // this.getlist();
  1568. });
  1569. this.curRow = this.$options.data().curRow
  1570. },
  1571. typeid() {
  1572. projectlist().then((res) => {
  1573. if (res.code != -1) {
  1574. this.itemTypeId = res.data;
  1575. this.itemTypeId = this.formatData(this.itemTypeId);
  1576. }
  1577. });
  1578. },
  1579. formatData(dataList) {
  1580. for (let i = 0; i < dataList.length; i++) {
  1581. if (dataList[i].treeChildren.length < 1) {
  1582. dataList[i].treeChildren = undefined;
  1583. } else {
  1584. this.formatData(dataList[i].treeChildren);
  1585. }
  1586. }
  1587. return dataList;
  1588. },
  1589. //诊断新增获取数据
  1590. diagnosticsadd() {
  1591. this.$refs.editdigoisceditingform.validate((v) => {
  1592. if (v) {
  1593. if (this.diagnostiele == 1) {
  1594. postapi(
  1595. "/api/app/item-result-match",
  1596. this.editdigoisceditingform
  1597. ).then((res) => {
  1598. if (res.code != -1) {
  1599. //this.$message.success("添加成功");
  1600. this.diagnosticediting = false;
  1601. this.putDiagnosis();
  1602. }
  1603. });
  1604. } else if (this.diagnostiele == 2) {
  1605. putapi(
  1606. `/api/app/item-result-match/${this.editdigoisceditingform.id}`,
  1607. {
  1608. itemId: this.editdigoisceditingform.itemId,
  1609. result: this.editdigoisceditingform.result,
  1610. diagnosisId: this.editdigoisceditingform.diagnosisId,
  1611. }
  1612. ).then((res) => {
  1613. if (res.code != -1) {
  1614. //this.$message.success("修改成功");
  1615. this.diagnosticediting = false;
  1616. this.curRowes = res.data;
  1617. this.putDiagnosis();
  1618. }
  1619. });
  1620. }
  1621. }
  1622. });
  1623. },
  1624. diagnosick(row) {
  1625. this.curRowes = row;
  1626. // getapi(`/api/app/item-result-match/${row.id}`).then((res) => {
  1627. // this.curRowes = res.data;
  1628. // });
  1629. },
  1630. editDiagnosis() {
  1631. this.editdigoisceditingform = { ...this.curRowes };
  1632. if (this.editdigoisceditingform.id == undefined) {
  1633. this.$message.warning("请选择操作的数据");
  1634. } else {
  1635. this.diagnostiele = 2;
  1636. this.diagnosticediting = true;
  1637. if (this.$refs.editdigoisceditingform !== undefined) {
  1638. this.$refs.editdigoisceditingform.resetFields();
  1639. }
  1640. }
  1641. },
  1642. deleteDiagnosis() {
  1643. this.editdigoisceditingform = { ...this.curRowes };
  1644. if (this.editdigoisceditingform.id == undefined) {
  1645. this.$message.warning("请选择操作的数据");
  1646. } else {
  1647. this.$confirm("是否确认删除,是否继续?", "提示", {
  1648. confirmButtonText: "确定",
  1649. cancelButtonText: "取消",
  1650. type: "warning",
  1651. cancelButtonClass: "difference",
  1652. confirmButtonClass: "commonbutton"
  1653. })
  1654. .then(() => {
  1655. deletapi(
  1656. `/api/app/item-result-match/${this.editdigoisceditingform.id}`
  1657. ).then((res) => {
  1658. if (res.code != -1) {
  1659. //this.$message.success("删除成功");
  1660. this.editdigoisceditingform = this.$options.data().editdigoisceditingform
  1661. this.curRowes = {};
  1662. this.putDiagnosis();
  1663. }
  1664. });
  1665. })
  1666. .catch(() => { });
  1667. }
  1668. },
  1669. putDiagnosis() {
  1670. postapi(`/api/app/itemresultmatch/getlistinitmeid`, {
  1671. itemId: this.form.id,
  1672. }).then((res) => {
  1673. if (res.code != -1) {
  1674. this.diagnosticdata = res.data;
  1675. this.initdiagnosticdata = [...res.data];
  1676. }
  1677. });
  1678. },
  1679. // 增加诊断弹框
  1680. adddiagnosis() {
  1681. this.diagnostiele = 1;
  1682. this.diagnosticediting = true;
  1683. if (this.$refs.editdigoisceditingform !== undefined) {
  1684. this.$refs.editdigoisceditingform.resetFields();
  1685. }
  1686. this.$nextTick(() => {
  1687. this.$refs.editdiInput.focus();
  1688. });
  1689. this.editdigoisceditingform = this.$options.data().editdigoisceditingform
  1690. this.editdigoisceditingform.itemId = this.form.id;
  1691. },
  1692. //诊断匹配弹框获取诊断数据
  1693. //改成直接跳转到诊断页面
  1694. diagnosticmatching() {
  1695. this.form = { ...this.curRow };
  1696. this.diagnosdialogVisible = true;
  1697. this.putDiagnosis();
  1698. this.$nextTick(() => {
  1699. this.rowDropes();
  1700. });
  1701. },
  1702. quckEditdigoisce(e) {
  1703. if (!e) {
  1704. this.remoteMethodess();
  1705. }
  1706. },
  1707. changeUpdate(e) {
  1708. this.$delete(this.rusetform, "result");
  1709. this.$set(this.rusetform, "result", e);
  1710. },
  1711. changeUpdates(e) {
  1712. this.$delete(this.editdigoisceditingform, "result");
  1713. this.$set(this.editdigoisceditingform, "result", e);
  1714. },
  1715. //结果模板添加
  1716. resultaddition() { },
  1717. //模板类别弹框
  1718. // templatecategory() {
  1719. // getapi("/api/app/item-result-template").then((res) => {
  1720. // this.projectdata = res.data;
  1721. // console.log(res);
  1722. // });
  1723. // this.projectdialogVisible = true;
  1724. // },
  1725. //项目模板置底
  1726. bottoming() {
  1727. if (this.rusetform.id == undefined) {
  1728. this.$message.warning("请选择操作的数据");
  1729. } else {
  1730. putapi(
  1731. `/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=2`
  1732. ).then((res) => {
  1733. if (res.code != -1) {
  1734. //this.$message.success("操作成功");
  1735. this.resultlist();
  1736. }
  1737. });
  1738. }
  1739. },
  1740. //项目模板置顶
  1741. toppingqq() {
  1742. if (this.rusetform.id == undefined) {
  1743. this.$message.warning("请选择操作的数据");
  1744. } else {
  1745. putapi(
  1746. `/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=1`
  1747. ).then((res) => {
  1748. if (res.code != -1) {
  1749. //this.$message.success("操作成功");
  1750. this.resultlist();
  1751. }
  1752. });
  1753. }
  1754. },
  1755. //结果模板删除
  1756. delemtdelite() {
  1757. this.rusetform = { ...this.curRows };
  1758. if (this.rusetform.id == undefined) {
  1759. this.$message.warning("请选择操作的数据");
  1760. } else {
  1761. this.$confirm("是否确认删除,是否继续?", "提示", {
  1762. confirmButtonText: "确定",
  1763. cancelButtonText: "取消",
  1764. type: "warning",
  1765. cancelButtonClass: "difference",
  1766. confirmButtonClass: "commonbutton"
  1767. })
  1768. .then(() => {
  1769. deletapi(`/api/app/item-result-template/${this.rusetform.id}`).then(
  1770. (res) => {
  1771. if (res.code != -1) {
  1772. //this.$message.success("删除成功");
  1773. this.rusetform = this.$options.data().rusetform
  1774. this.curRows = {};
  1775. this.resultlist();
  1776. }
  1777. }
  1778. );
  1779. })
  1780. .catch(() => { });
  1781. }
  1782. },
  1783. reustclick(row) {
  1784. this.curRows = row;
  1785. // getapi(`/api/app/item-result-template/${row.id}`).then((res) => {
  1786. // this.curRows = res.data;
  1787. // });
  1788. },
  1789. //项目结果模板新增弹框
  1790. resultediting() {
  1791. this.rusetform = { ...this.curRows };
  1792. if (this.rusetform.id == undefined) {
  1793. this.$message.warning("请选择操作的数据");
  1794. } else {
  1795. // this.addoredit();
  1796. this.ruesttiele = 2;
  1797. this.ruesttieledialogVisible = true;
  1798. if (this.$refs.rusetform !== undefined) {
  1799. this.$refs.rusetform.resetFields();
  1800. }
  1801. }
  1802. },
  1803. //结果模板新增或者修改
  1804. rusteronsubmit() {
  1805. this.$refs.rusetform.validate((v) => {
  1806. if (v) {
  1807. if (this.ruesttiele == 1) {
  1808. if (this.rusetform.diagnosisId == "") {
  1809. this.rusetform.diagnosisId = null;
  1810. }
  1811. postapi(`/api/app/item-result-template`, this.rusetform).then(
  1812. (res) => {
  1813. if (res.code != -1) {
  1814. //this.$message.success("新增成功");
  1815. this.ruesttieledialogVisible = false;
  1816. this.resultlist();
  1817. }
  1818. }
  1819. );
  1820. } else if (this.ruesttiele == 2) {
  1821. if (this.rusetform.diagnosisId == "") {
  1822. this.rusetform.diagnosisId = null;
  1823. }
  1824. putapi(
  1825. `/api/app/item-result-template/${this.rusetform.id}`,
  1826. this.rusetform
  1827. ).then((res) => {
  1828. if (res.code != -1) {
  1829. //this.$message.success("修改成功");
  1830. this.ruesttieledialogVisible = false;
  1831. this.curRows = { ...res.data };
  1832. this.resultlist();
  1833. }
  1834. });
  1835. }
  1836. }
  1837. });
  1838. },
  1839. //诊断设置弹框新增
  1840. diagnosticsettings() {
  1841. // this.diagnostisbox = true;
  1842. // console.log("1");
  1843. this.$router.push({ path: "/diagnosis" });
  1844. },
  1845. digitaladdion() {
  1846. // this.referencerangedata.push({
  1847. // gender: "全部",
  1848. // agewise: "200",
  1849. // underage: "下",
  1850. // onreference: "0",
  1851. // underreference: "上",
  1852. // });
  1853. },
  1854. //参考范围下拉选择
  1855. selecttype(v) {
  1856. this.referencerangevalue = v;
  1857. if (v == "2") {
  1858. getapi(
  1859. `/api/app/reference-range/in-type/${this.form.id}?ReferenceRangeTypeFlag=${this.referencerangevalue}`
  1860. ).then((res) => {
  1861. if (res.code != -1) {
  1862. if (res.data[0]) {
  1863. this.fssubdex = res.data[0].referenceRangeValue;
  1864. } else {
  1865. this.fssubdex = "";
  1866. }
  1867. this.fssubdexDete = res.data[0];
  1868. }
  1869. });
  1870. }
  1871. },
  1872. //参考范围
  1873. referencerange() {
  1874. this.form = { ...this.curRow };
  1875. if (this.form.id == undefined) {
  1876. this.$message.warning("请选择操作的数据");
  1877. } else {
  1878. this.referencerangevalue = this.form.referenceRangeTypeFlag; // 0-无;1-数字;2-字符;3-性激素
  1879. this.referencerangedialogVisible = true;
  1880. if (this.referencerangevalue == "1" || this.referencerangevalue == "3") {
  1881. getapi(
  1882. `/api/app/reference-range/in-type/${this.form.id}?ReferenceRangeTypeFlag=${this.form.referenceRangeTypeFlag}`
  1883. ).then((res) => {
  1884. if (res.code != -1) {
  1885. if (res.data[0]) {
  1886. this.fssubdex = res.data[0].referenceRangeValue;
  1887. } else {
  1888. this.fssubdex = "";
  1889. }
  1890. this.fssubdexDete = res.data[0];
  1891. }
  1892. });
  1893. }
  1894. }
  1895. },
  1896. //结果模板添加或者修改需要的列
  1897. addoredit() {
  1898. getapi("/api/app/item/in-filter").then((res) => {
  1899. if (res.code != -1) {
  1900. this.itemId = res.data;
  1901. }
  1902. });
  1903. },
  1904. //结果模板添加
  1905. increase() {
  1906. // this.addoredit();
  1907. this.ruesttiele = 1;
  1908. this.ruesttieledialogVisible = true;
  1909. if (this.$refs.rusetform !== undefined) {
  1910. this.$refs.rusetform.resetFields();
  1911. }
  1912. this.$nextTick(() => {
  1913. this.$refs.ruseInput.focus();
  1914. });
  1915. this.rusetform = this.$options.data().rusetform
  1916. this.rusetform.itemId = this.form.id;
  1917. },
  1918. quckRusetform(e) {
  1919. this.$forceUpdate();
  1920. },
  1921. quckRusetforms(e) {
  1922. this.$forceUpdate();
  1923. if (!e) {
  1924. this.remoteMethod();
  1925. }
  1926. },
  1927. //获取项目类别列表
  1928. getmedicalconclusionlist() {
  1929. getporjectlists().then((res) => {
  1930. if (res.code != -1) {
  1931. this.initTableData = [...res.data];
  1932. this.quckDepartment = res.data;
  1933. }
  1934. });
  1935. },
  1936. onchange(v) {
  1937. if (v.length > 1) {
  1938. this.form.itemTypeId = this.form.itemTypeId.slice(-1)[0];
  1939. } else {
  1940. this.form.itemTypeId = this.form.itemTypeId[0];
  1941. }
  1942. this.$refs.itemTypeId.toggleDropDownVisible();
  1943. },
  1944. gettypelist(listdata) {
  1945. listdata.forEach((items) => {
  1946. if (items.treeChildren.length > 0) {
  1947. this.gettypelist(items.treeChildren);
  1948. } else {
  1949. items.treeChildren = undefined;
  1950. }
  1951. });
  1952. },
  1953. isselctvalue(v) {
  1954. this.pages.TypeId = v;
  1955. this.getlist();
  1956. },
  1957. handleSelect(item) {
  1958. this.pages.Filter = item.displayName;
  1959. this.item = item;
  1960. this.formid = item.id;
  1961. //console.log(item);
  1962. // quersmedicalid(item.id).then((res) => {
  1963. // console.log(res);
  1964. // this.form = res.data;
  1965. // });
  1966. },
  1967. getlistM(rowsid) {
  1968. getporjectlists().then((res) => {
  1969. if (res.code != -1) {
  1970. this.initTableData = [...res.data];
  1971. this.tableData = res.data;
  1972. this.quckDepartment = res.data;
  1973. if (rowsid != null && rowsid != "") {
  1974. var row = this.tableData.filter((item) => item.id == rowsid);
  1975. this.$refs.tableData.setCurrentRow(row[0]);
  1976. getapi(`/api/app/item/${rowsid}`).then((res) => {
  1977. if (res.code != -1) {
  1978. this.form = res.data;
  1979. }
  1980. });
  1981. }
  1982. }
  1983. });
  1984. },
  1985. selsearch(id, typeid) {
  1986. this.Selectvalue = typeid;
  1987. this.pages.TypeId = typeid;
  1988. this.getlistM(id);
  1989. },
  1990. createFilter(queryString) {
  1991. return (tableData) => {
  1992. return (
  1993. tableData.displayName
  1994. .toLowerCase()
  1995. .indexOf(queryString.toLowerCase()) != -1
  1996. );
  1997. };
  1998. },
  1999. querySearch(queryString, cb) {
  2000. var tableData = this.tableData;
  2001. var tableDatas = queryString
  2002. ? tableData.filter(this.createFilter(queryString))
  2003. : tableData;
  2004. // 调用 callback 返回建议列表的数据
  2005. cb(tableDatas);
  2006. },
  2007. resultlist() {
  2008. getapi(`/api/app/item-result-template/in-item-id/${this.form.id}`).then(
  2009. (res) => {
  2010. if (res.code != -1) {
  2011. this.reusttableData = res.data;
  2012. this.initReusttableData = [...res.data];
  2013. }
  2014. }
  2015. );
  2016. },
  2017. saveEntry() {
  2018. let selectedNodes = this.$refs.customerOrgTree.getCheckedNodes()
  2019. let itemBigtextResultTypeIds = []
  2020. for (let i = 0; i < selectedNodes.length; i++) {
  2021. if (!selectedNodes[i].treeChildren) {
  2022. itemBigtextResultTypeIds.push(selectedNodes[i].bigtextResultTypeId)
  2023. }
  2024. }
  2025. postapi("/api/app/item/CreateItemBigtextResultType", {
  2026. itemId: this.form.id,
  2027. itemBigtextResultTypeIds: itemBigtextResultTypeIds
  2028. }).then(
  2029. (res) => {
  2030. if (res.code != -1) {
  2031. this.$message.success("设置成功");
  2032. }
  2033. }
  2034. );
  2035. },
  2036. resulttemplate() {
  2037. let that = this;
  2038. this.form = { ...this.curRow };
  2039. if (this.form.id == undefined) {
  2040. this.$message.warning("请选择操作的数据");
  2041. } else {
  2042. this.rurestdialogVisible = true;
  2043. if (this.$refs.customerOrgTree) {
  2044. this.$refs.customerOrgTree.setCheckedKeys([]);
  2045. }
  2046. getapi(`/api/app/item-result-template/in-item-id/${this.form.id}`).then(
  2047. (res) => {
  2048. if (res.code != -1) {
  2049. this.reusttableData = res.data;
  2050. this.initReusttableData = [...res.data];
  2051. this.$nextTick(() => {
  2052. that.rowDrops();
  2053. });
  2054. }
  2055. }
  2056. );
  2057. postapi("/api/app/BigtextResultType/GetByCodeAll").then(
  2058. (res) => {
  2059. if (res.code != -1) {
  2060. this.menuInfoView = res.data;
  2061. tcdate(this.menuInfoView);
  2062. }
  2063. }
  2064. );
  2065. postapi("/api/app/item/GetItemBigtextResultTypeByItemId", {
  2066. itemId: this.form.id
  2067. }).then(
  2068. (res) => {
  2069. if (res.code != -1) {
  2070. let defaultExpandedKeys = []
  2071. res.data.forEach((e) => {
  2072. defaultExpandedKeys.push(e.itemBigtextResultTypeId)
  2073. })
  2074. this.defaultExpandedKeys = defaultExpandedKeys;
  2075. }
  2076. }
  2077. );
  2078. // // 获取项目类别
  2079. // getapi("/api/app/item-type/by-code-all").then((res) => {
  2080. // this.resultitemtype = res.data;
  2081. // });
  2082. }
  2083. },
  2084. remoteMethod(keyWords) {
  2085. if (keyWords) {
  2086. this.quickAsb = [];
  2087. this.diagnosisId.forEach((item) => {
  2088. if (
  2089. item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
  2090. -1 ||
  2091. item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
  2092. // || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  2093. ) {
  2094. this.quickAsb.push(item);
  2095. }
  2096. });
  2097. } else {
  2098. this.quickAsb = deepCopy(this.diagnosisId);
  2099. }
  2100. },
  2101. remoteMethodes(keyWords) {
  2102. if (keyWords) {
  2103. this.quckDepartment = [];
  2104. this.initTableData.forEach((item) => {
  2105. if (
  2106. item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
  2107. -1 ||
  2108. item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
  2109. // || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  2110. ) {
  2111. this.quckDepartment.push(item);
  2112. }
  2113. });
  2114. } else {
  2115. this.quckDepartment = deepCopy(this.initTableData);
  2116. }
  2117. },
  2118. remoteMethodess(keyWords) {
  2119. if (keyWords) {
  2120. this.quckeDitd = [];
  2121. this.editdigoisceDiagnosisId.forEach((item) => {
  2122. if (
  2123. item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) >
  2124. -1 ||
  2125. item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1
  2126. // || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
  2127. ) {
  2128. this.quckeDitd.push(item);
  2129. }
  2130. });
  2131. } else {
  2132. this.quckeDitd = deepCopy(this.editdigoisceDiagnosisId);
  2133. }
  2134. },
  2135. quckDepartments(e) {
  2136. if (e) {
  2137. let currentKey = "";
  2138. this.quckDepartment.forEach((item) => {
  2139. if (e == item.id) {
  2140. currentKey = item.itemTypeId;
  2141. this.initItemTypeId = item.itemTypeId;
  2142. }
  2143. });
  2144. this.$refs["itemType"].setCurrentKey(currentKey);
  2145. let selected = this.$refs["itemType"].getCurrentNode();
  2146. if (
  2147. this.$refs["itemType"].getNode(selected) &&
  2148. this.$refs["itemType"].getNode(selected).parent
  2149. ) {
  2150. this.expandParents(this.$refs["itemType"].getNode(selected).parent);
  2151. }
  2152. getapi(`/api/app/item/in-item-type/${currentKey}`).then((res) => {
  2153. if (res.code != -1) {
  2154. this.tableData = res.data;
  2155. this.tableData.forEach((item, index) => {
  2156. if (e == item.id) {
  2157. this.$refs["tableData"].setCurrentRow(item);
  2158. this.rowick(item);
  2159. this.tableScrollToRow(this.$refs.tableData, index);
  2160. this.searchup(item, index)
  2161. }
  2162. });
  2163. }
  2164. });
  2165. } else {
  2166. this.remoteMethodes();
  2167. }
  2168. },
  2169. searchup(data, index) {
  2170. this.$nextTick(() => {
  2171. if (index == 0) {
  2172. index = 1
  2173. }
  2174. const targetTop = this.$refs["tableData"].$el.querySelectorAll('.el-table__body tr')[index - 1].getBoundingClientRect().top
  2175. const containerTop = this.$refs["tableData"].$el.querySelector('.el-table__body').getBoundingClientRect().top
  2176. const scrollParent = this.$refs["tableData"].$el.querySelector('.el-table__body-wrapper')
  2177. scrollParent.scrollTop = targetTop - containerTop
  2178. })
  2179. },
  2180. expandParents(node) {
  2181. node.expanded = true;
  2182. if (node.parent) {
  2183. this.expandParents(node.parent);
  2184. }
  2185. },
  2186. getChangeResult(e) {
  2187. for (var i = 0; i < this.resultStatusId.length; i++) {
  2188. if (this.resultStatusId[i].id == e) {
  2189. //dictValue,dictLabel保持和上面定义一致
  2190. return this.resultStatusId[i].displayName;
  2191. }
  2192. }
  2193. },
  2194. tableScrollToRow(tableElement, rowIndex) {
  2195. let theTableRows = tableElement.bodyWrapper.querySelectorAll(
  2196. ".el-table__body tbody .el-table__row"
  2197. );
  2198. let scrollTop = 0;
  2199. for (let i = 0; i < theTableRows.length; i++) {
  2200. if (i === rowIndex) {
  2201. break;
  2202. }
  2203. scrollTop += theTableRows[i].offsetHeight;
  2204. }
  2205. tableElement.bodyWrapper.scrollTop = scrollTop;
  2206. },
  2207. //取消排序
  2208. cancellation() {
  2209. getapi(`/api/app/item/in-item-type/${this.initItemTypeId}`).then((res) => {
  2210. if (res.code != -1) {
  2211. this.$message.info("取消操作");
  2212. this.isshow = true;
  2213. this.tableData = res.data;
  2214. }
  2215. });
  2216. },
  2217. //确定拖拽
  2218. assertion() {
  2219. let result = [];
  2220. this.tableData.forEach((item, index) => {
  2221. result.push({ id: item.id, displayOrder: index })
  2222. // index 从0开始的, displayOrder从大到小排
  2223. // let currentDisplayOrder = this.tableData.length -1
  2224. // let currentDisplayOrder = this.initTableData[index].displayOrder;
  2225. // if (item.displayOrder != currentDisplayOrder) {
  2226. // // 如果它的displayOrder和它当前所在的位置不同代表挪动过位置
  2227. // result.push({ id: item.id, displayOrder: currentDisplayOrder });
  2228. // }
  2229. });
  2230. projectdreog({ itemList: result }).then((res) => {
  2231. if (res.code != -1) {
  2232. //this.$message.success("操作成功");
  2233. this.isshow = true;
  2234. }
  2235. // this.getlist();
  2236. });
  2237. },
  2238. //初始化
  2239. rowDrop() {
  2240. this.$nextTick(() => {
  2241. let tbody = document.querySelector(".el-table__body-wrapper tbody");
  2242. let _this = this;
  2243. Sortable.create(tbody, {
  2244. handle: ".move",
  2245. animation: 300,
  2246. onChoose({ oldIndex }) {
  2247. _this.$refs["tableData"].setCurrentRow(_this.tableData[oldIndex]);
  2248. _this.rowick(_this.tableData[oldIndex]);
  2249. },
  2250. onEnd({ newIndex, oldIndex }) {
  2251. _this.isshow = false;
  2252. let currRow = _this.tableData.splice(oldIndex, 1)[0];
  2253. _this.tableData.splice(newIndex, 0, currRow);
  2254. _this.tableData.map((item, index) => {
  2255. if (index == newIndex && index == oldIndex) {
  2256. // console.log(item, "新数据");
  2257. } else if (index == oldIndex) {
  2258. } else if (index == newIndex) {
  2259. }
  2260. });
  2261. },
  2262. });
  2263. });
  2264. },
  2265. //项目模板确定拖拽
  2266. assertions() {
  2267. let result = [];
  2268. this.reusttableData.forEach((item, index) => {
  2269. // index 从0开始的, displayOrder从大到小排
  2270. // let currentDisplayOrder = this.tableData.length -1
  2271. // let currentDisplayOrder = this.initReusttableData[index].displayOrder;
  2272. // if (item.displayOrder != currentDisplayOrder) {
  2273. // 如果它的displayOrder和它当前所在的位置不同代表挪动过位置
  2274. result.push({ id: item.id, displayOrder: index + 1 });
  2275. // }
  2276. });
  2277. putapi("/api/app/itemresulttemplate/updatesortmany", {
  2278. itemList: result,
  2279. }).then((res) => {
  2280. if (res.code != -1) {
  2281. //this.$message.success("操作成功");
  2282. this.isshows = true;
  2283. }
  2284. // this.getlist();
  2285. });
  2286. },
  2287. //结果模板初始化
  2288. rowDrops() {
  2289. this.$nextTick(() => {
  2290. let tbody = document.querySelector(".el-table__body-wrappers tbody");
  2291. let _this = this;
  2292. Sortable.create(tbody, {
  2293. handle: ".moves",
  2294. animation: 300,
  2295. onChoose({ oldIndex }) {
  2296. _this.$refs["reusttableData"].setCurrentRow(
  2297. _this.reusttableData[oldIndex]
  2298. );
  2299. _this.reustclick(_this.reusttableData[oldIndex]);
  2300. },
  2301. onEnd({ newIndex, oldIndex }) {
  2302. _this.isshows = false;
  2303. let currRow = _this.reusttableData.splice(oldIndex, 1)[0];
  2304. _this.reusttableData.splice(newIndex, 0, currRow);
  2305. _this.reusttableData.map((item, index) => {
  2306. if (index == newIndex && index == oldIndex) {
  2307. // console.log(item, "新数据");
  2308. } else if (index == oldIndex) {
  2309. } else if (index == newIndex) {
  2310. }
  2311. });
  2312. },
  2313. });
  2314. });
  2315. },
  2316. //结果模板取消
  2317. resultcancellation() {
  2318. this.$message.info("取消操作");
  2319. this.isshows = true;
  2320. this.reusttableData = this.initReusttableData;
  2321. },
  2322. //结果模板置顶
  2323. resulttopping() {
  2324. this.rusetform = { ...this.curRows };
  2325. if (this.rusetform.id == undefined) {
  2326. this.$message.warning("请点击选择操作的数据");
  2327. } else {
  2328. putapi(
  2329. `/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=1`
  2330. ).then((res) => {
  2331. if (res.code != -1) {
  2332. //this.$message.success("操作成功");
  2333. this.resultlist();
  2334. }
  2335. });
  2336. }
  2337. },
  2338. //结果模板置底
  2339. resulttoppings() {
  2340. this.rusetform = { ...this.curRows };
  2341. if (this.rusetform.id == undefined) {
  2342. this.$message.warning("请点击选择操作的数据");
  2343. } else {
  2344. putapi(
  2345. `/api/app/itemresulttemplate/updatemanysort?id=${this.rusetform.id}&SortType=2`
  2346. ).then((res) => {
  2347. if (res.code != -1) {
  2348. //this.$message.success("操作成功");
  2349. this.resultlist();
  2350. }
  2351. });
  2352. }
  2353. },
  2354. //诊断匹配确定拖拽
  2355. assertiones() {
  2356. let result = [];
  2357. this.diagnosticdata.forEach((item, index) => {
  2358. // index 从0开始的, displayOrder从大到小排
  2359. // let currentDisplayOrder = this.tableData.length -1
  2360. let currentDisplayOrder = this.initdiagnosticdata[index].displayOrder;
  2361. if (item.displayOrder != currentDisplayOrder) {
  2362. // 如果它的displayOrder和它当前所在的位置不同代表挪动过位置
  2363. result.push({ id: item.id, displayOrder: currentDisplayOrder });
  2364. }
  2365. });
  2366. putapi("/api/app/itemresultmatch/updatesortmany", {
  2367. itemList: result,
  2368. }).then((res) => {
  2369. if (res.code != -1) {
  2370. //this.$message.success("操作成功");
  2371. this.isshowes = true;
  2372. }
  2373. // this.getlist();
  2374. });
  2375. },
  2376. //诊断匹配初始化
  2377. rowDropes() {
  2378. this.$nextTick(() => {
  2379. let tbody = document.querySelector(".el-table__body-wrapperes tbody");
  2380. let _this = this;
  2381. Sortable.create(tbody, {
  2382. handle: ".movess",
  2383. animation: 300,
  2384. onChoose({ oldIndex }) {
  2385. _this.$refs["diagnosticdata"].setCurrentRow(
  2386. _this.diagnosticdata[oldIndex]
  2387. );
  2388. _this.diagnosick(_this.diagnosticdata[oldIndex]);
  2389. },
  2390. onEnd({ newIndex, oldIndex }) {
  2391. _this.isshowes = false;
  2392. let currRow = _this.diagnosticdata.splice(oldIndex, 1)[0];
  2393. _this.diagnosticdata.splice(newIndex, 0, currRow);
  2394. _this.diagnosticdata.map((item, index) => {
  2395. if (index == newIndex && index == oldIndex) {
  2396. // console.log(item, "新数据");
  2397. } else if (index == oldIndex) {
  2398. } else if (index == newIndex) {
  2399. }
  2400. });
  2401. },
  2402. });
  2403. });
  2404. },
  2405. //诊断匹配置顶
  2406. diagnosistopping() {
  2407. this.editdigoisceditingform = { ...this.curRowes };
  2408. if (this.editdigoisceditingform.id == undefined) {
  2409. this.$message.warning("请点击选择操作的数据");
  2410. } else {
  2411. putapi(
  2412. `/api/app/itemresultmatch/updatesortmany?id=${this.editdigoisceditingform.id}&SortType=1`
  2413. ).then((res) => {
  2414. if (res.code != -1) {
  2415. //this.$message.success("操作成功");
  2416. this.resultlist();
  2417. }
  2418. });
  2419. }
  2420. },
  2421. //诊断匹配置底
  2422. diagnosistoppings() {
  2423. this.editdigoisceditingform = { ...this.curRowes };
  2424. if (this.editdigoisceditingform.id == undefined) {
  2425. this.$message.warning("请点击选择操作的数据");
  2426. } else {
  2427. putapi(
  2428. `/api/app/itemresultmatch/updatesortmany?id=${this.editdigoisceditingform.id}&SortType=2`
  2429. ).then((res) => {
  2430. if (res.code != -1) {
  2431. //this.$message.success("操作成功");
  2432. this.resultlist();
  2433. }
  2434. });
  2435. }
  2436. },
  2437. //诊断匹配取消
  2438. diagnosiscancellation() {
  2439. this.$message.info("取消操作");
  2440. this.isshowes = true;
  2441. this.diagnosticdata = this.initdiagnosticdata;
  2442. },
  2443. //置低
  2444. toppings() {
  2445. this.form = { ...this.curRow };
  2446. if (this.form.id == undefined) {
  2447. this.$message.warning("请点击选择操作的数据");
  2448. } else {
  2449. projttitem(this.form.id, 2).then((res) => {
  2450. if (res.code != -1) {
  2451. //this.$message.success("操作成功");
  2452. this.getItemTypeIdList();
  2453. }
  2454. });
  2455. }
  2456. },
  2457. //置顶
  2458. topping() {
  2459. this.form = { ...this.curRow };
  2460. if (this.form.id == undefined) {
  2461. this.$message.warning("请点击选择操作的数据");
  2462. } else {
  2463. projttitem(this.form.id, 1).then((res) => {
  2464. if (res.code != -1) {
  2465. //this.$message.success("操作成功");
  2466. this.getItemTypeIdList();
  2467. }
  2468. });
  2469. }
  2470. },
  2471. //删除
  2472. delsrts() {
  2473. this.form = { ...this.curRow };
  2474. if (this.form.id == undefined) {
  2475. this.$message.warning("请选择删除的数据");
  2476. } else {
  2477. this.$confirm("是否确认删除,是否继续?", "提示", {
  2478. confirmButtonText: "确定",
  2479. cancelButtonText: "取消",
  2480. type: "warning",
  2481. cancelButtonClass: "difference",
  2482. confirmButtonClass: "commonbutton",
  2483. })
  2484. .then(() => {
  2485. projectdeleft(this.form.id).then((res) => {
  2486. if (res.code != -1) {
  2487. //this.$message.success("删除成功");
  2488. this.getItemTypeIdList();
  2489. this.curRow = this.$options.data().curRow;
  2490. }
  2491. });
  2492. })
  2493. .catch(() => { });
  2494. }
  2495. },
  2496. //点击列表通过id查询
  2497. rowick(row) {
  2498. this.clickTime1 = new Date().getTime();
  2499. setTimeout(() => {
  2500. if (this.clickTime1 > this.clickTime2) {
  2501. this.curRow = row;
  2502. }
  2503. }, 400);
  2504. // posjrctid(row.id).then((res) => {
  2505. // this.curRow = { ...res.data };
  2506. // });
  2507. },
  2508. dblClick(row) {
  2509. this.clickTime2 = new Date().getTime();
  2510. this.curRow = { ...row };
  2511. this.editpopup()
  2512. },
  2513. change(e) {
  2514. this.$forceUpdate();
  2515. },
  2516. //编辑弹框
  2517. editpopup() {
  2518. this.form = { ...this.curRow };
  2519. if (this.form.id == undefined) {
  2520. this.$message.warning("请选择操作的数据");
  2521. } else {
  2522. this.form.price = Number(this.form.price);
  2523. this.addorgropdata();
  2524. this.title = 2;
  2525. this.dialogVisible = true;
  2526. if (this.$refs.form !== undefined) {
  2527. this.$refs.form.resetFields();
  2528. }
  2529. posjrctid(this.form.id).then((res) => {
  2530. if (res.code != -1) {
  2531. this.form = res.data;
  2532. if (res.data.isProduceSummary == "Y") {
  2533. this.isProduceSummaryBox = true;
  2534. } else {
  2535. this.isProduceSummaryBox = false;
  2536. }
  2537. if (res.data.isNameIntoSummary == "Y") {
  2538. this.isNameIntoSummaryBox = true;
  2539. } else {
  2540. this.isNameIntoSummaryBox = false;
  2541. }
  2542. if (res.data.isDiagnosisFunction == "Y") {
  2543. this.isDiagnosisFunctionBox = true;
  2544. } else {
  2545. this.isDiagnosisFunctionBox = false;
  2546. }
  2547. if (res.data.isCalculationItem == "Y") {
  2548. this.isCalculationItemBox = true;
  2549. } else {
  2550. this.isCalculationItemBox = false;
  2551. }
  2552. if (res.data.isContinueProcess == "Y") {
  2553. this.isContinueProcessBox = true;
  2554. } else {
  2555. this.isContinueProcessBox = false;
  2556. }
  2557. if (res.data.isActive == "Y") {
  2558. this.isActiveBox = true;
  2559. } else {
  2560. this.isActiveBox = false;
  2561. }
  2562. }
  2563. });
  2564. instrumentlist().then((res) => {
  2565. if (res.code != -1) {
  2566. this.deviceTypeId = res.data;
  2567. }
  2568. });
  2569. }
  2570. },
  2571. //编辑弹框勾选重新赋值
  2572. changeBox(type) {
  2573. //赋值
  2574. if (this[type + "Box"]) {
  2575. this.form[type] = "Y";
  2576. } else {
  2577. this.form[type] = "N";
  2578. }
  2579. },
  2580. // querySearch(queryString, cb) {
  2581. // var restaurants = this.unitId;
  2582. // var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2583. // // 调用 callback 返回建议列表的数据
  2584. // cb(results);
  2585. // },
  2586. // createFilter(queryString) {
  2587. // return (restaurant) => {
  2588. // return (restaurant.displayName.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
  2589. // };
  2590. // },
  2591. // handleSelect(item) {
  2592. // this.form.unitId=item.id
  2593. // },
  2594. OnsubmitDiagnosis() {
  2595. this.form.diagnosisFunction = this.diagnosisFunctionText;
  2596. this.diagnosisFunctionText = "";
  2597. this.diagnosisFunctionBox = false;
  2598. },
  2599. OnsubmitCalculation() {
  2600. this.form.calculationFunction = this.calculationFunctionText;
  2601. this.calculationFunctionText = "";
  2602. this.calculationFunctionBox = false;
  2603. },
  2604. //确定新增或者编辑
  2605. Onsubmit() {
  2606. this.$refs.form.validate((v) => {
  2607. if (v) {
  2608. if (this.title == 1) {
  2609. this.form.price = Number(this.form.price);
  2610. // this.form.itemTypeId = this.form.itemTypeId.slice(-1)[0];
  2611. addproject(this.form).then((res) => {
  2612. if (res.code != -1) {
  2613. //this.$message.success("新增成功");
  2614. this.getItemTypeIdList();
  2615. this.dialogVisible = false;
  2616. this.$nextTick(() => {
  2617. this.$refs["tableData"].setCurrentRow(res.data);
  2618. this.rowick(res.data);
  2619. });
  2620. }
  2621. });
  2622. } else if (this.title == 2) {
  2623. projectedit(this.form.id, this.form).then((res) => {
  2624. if (res.code != -1) {
  2625. this.tableData.forEach((item, index) => {
  2626. if (res.data.id == item.id) {
  2627. this.$set(this.tableData, index, res.data);
  2628. }
  2629. });
  2630. this.curRow = { ...res.data };
  2631. this.dialogVisible = false;
  2632. //this.$message.success("修改成功");
  2633. }
  2634. });
  2635. }
  2636. }
  2637. });
  2638. // addproject(this.form)
  2639. },
  2640. //新增弹框
  2641. add() {
  2642. if (this.initItemTypeId == undefined || this.initItemTypeId == "") {
  2643. this.$message.warning("请选择项目类别");
  2644. } else {
  2645. this.form.price = Number(this.form.price);
  2646. // this.form={}
  2647. this.title = 1;
  2648. this.dialogVisible = true;
  2649. if (this.$refs.form !== undefined) {
  2650. this.$refs.form.resetFields();
  2651. }
  2652. this.form = this.$options.data().form
  2653. this.isProduceSummaryBox = true;
  2654. this.isNameIntoSummaryBox = true;
  2655. this.isDiagnosisFunctionBox = false;
  2656. this.isCalculationItemBox = false;
  2657. this.isContinueProcessBox = false;
  2658. this.isActiveBox = true;
  2659. let isBox = ["isProduceSummary", "isNameIntoSummary", "isActive"];
  2660. isBox.forEach((item) => {
  2661. this.form[item] = "Y";
  2662. });
  2663. let isNotBox = [
  2664. "isDiagnosisFunction",
  2665. "isCalculationItem",
  2666. "isContinueProcess",
  2667. ];
  2668. isNotBox.forEach((item) => {
  2669. this.form[item] = "N";
  2670. });
  2671. this.form.itemTypeId = this.initItemTypeId;
  2672. // this.unitIdName=""
  2673. this.$nextTick(() => {
  2674. this.$refs.refinput.focus();
  2675. });
  2676. this.addorgropdata();
  2677. }
  2678. },
  2679. //新增或者编辑弹框需要的下拉框接口数据
  2680. addorgropdata() {
  2681. //获取项目id
  2682. // projectlist().then((res) => {
  2683. // this.itemTypeId = res.data;
  2684. // this.tcdate(this.itemTypeId);
  2685. // });
  2686. //获取单位
  2687. unitlist().then((res) => {
  2688. if (res.code != -1) {
  2689. this.unitId = res.data;
  2690. }
  2691. });
  2692. //获取价格Id
  2693. priceitemlist().then((res) => {
  2694. if (res.code != -1) {
  2695. this.priceItemId = res.data;
  2696. }
  2697. });
  2698. //参考范围
  2699. // getapi("/api/app/reference-range").then((res) => {
  2700. // this.reference = res.data;
  2701. // });
  2702. //结果模板
  2703. getapi("/api/app/ItemResultTemplate/GetItemResultTemplateList").then((res) => {
  2704. if (res.code != -1) {
  2705. this.resulttemp = res.data;
  2706. }
  2707. });
  2708. },
  2709. getlist() {
  2710. this.getlistM();
  2711. // getporjectlists(this.pages).then((res) => {
  2712. // this.initTableData = [...res.data];
  2713. // this.tableData = res.data;
  2714. // });
  2715. },
  2716. getItemTypeIdList() {
  2717. getapi(`/api/app/item/in-item-type/${this.initItemTypeId}`).then(
  2718. (res) => {
  2719. if (res.code != -1) {
  2720. this.tableData = res.data;
  2721. }
  2722. }
  2723. );
  2724. },
  2725. tcdate(date) {
  2726. for (var i = 0; i < date.length; i++) {
  2727. if (date[i].treeChildren.length == 0) {
  2728. date[i].treeChildren = undefined;
  2729. } else {
  2730. this.tcdate(date[i].treeChildren);
  2731. }
  2732. }
  2733. },
  2734. ///
  2735. },
  2736. };
  2737. </script>
  2738. <style scoped>
  2739. @import "../../assets/css/global_button.css";
  2740. @import "../../assets/css/global_card.css";
  2741. @import "../../assets/css/global_dialog.css";
  2742. @import "../../assets/css/global_table.css";
  2743. @import "../../assets/css/global_form.css";
  2744. @import "../../assets/css/global_input.css";
  2745. @import "../../assets/css/global.css";
  2746. .box {
  2747. display: flex;
  2748. flex-direction: column;
  2749. }
  2750. .seachinput {
  2751. width: 350px;
  2752. margin-right: 110px;
  2753. }
  2754. ::v-deep .dddwSelect .el-select-dropdown__wrap {
  2755. background-color: #FFF;
  2756. max-height: 500px;
  2757. max-width: 350px;
  2758. }
  2759. :deep .seachinput .el-select {
  2760. width: 100%;
  2761. }
  2762. .layeredleftright {
  2763. width: 95%;
  2764. display: flex;
  2765. flex-direction: column;
  2766. }
  2767. /* form表单每一项的下边距 */
  2768. :deep .el-form-item {
  2769. margin-bottom: 14px;
  2770. }
  2771. /* 去掉input textarea的手动扩张样式 */
  2772. :deep(.el-textarea__inner) {
  2773. resize: none;
  2774. }
  2775. /* el-dialog的头部样式 */
  2776. :deep .el-dialog__header {
  2777. padding: 11px 20px 11px;
  2778. }
  2779. /* el-dialog的主体样式 */
  2780. :deep .el-dialog__body {
  2781. padding: 0px 20px 0px;
  2782. }
  2783. /* el-divider样式 */
  2784. :deep .el-divider--horizontal {
  2785. margin: 0px 0 12px;
  2786. }
  2787. /* el-dialog的底部样式 */
  2788. :deep .el-dialog__footer {
  2789. padding: 0px 20px 14px;
  2790. }
  2791. /* 默认结果后面下拉框样式 */
  2792. :deep .downText .el-input--suffix .el-input__inner {
  2793. width: 0;
  2794. height: 100%;
  2795. padding: 0 19px;
  2796. }
  2797. /* 默认结果后面下拉框图标样式 */
  2798. :deep .downText .el-input--suffix .el-input__suffix {
  2799. right: 12px;
  2800. }
  2801. /* 默认结果后面下拉框 */
  2802. :deep .downText {
  2803. display: flex !important;
  2804. }
  2805. /* 诊断函数后面按钮样式 */
  2806. :deep .el-input-group__append {
  2807. padding: 0 11px;
  2808. }
  2809. /* 默认结果整体样式 */
  2810. .my-el-form-item :deep .el-form-item__content {
  2811. line-height: 0 !important;
  2812. }
  2813. .my-el-form-item :deep .el-input__icon {
  2814. line-height: 0 !important;
  2815. }
  2816. :deep .el-tree-node>.el-tree-node__children {
  2817. overflow: visible;
  2818. }
  2819. </style>
  2820. <style lang="scss">
  2821. .chosen td {
  2822. background-color: blue !important;
  2823. color: #fff;
  2824. }
  2825. //checkBox自定义禁用样式
  2826. .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
  2827. background-color: #409eff !important;
  2828. border-color: #409eff !important;
  2829. }
  2830. .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
  2831. border-color: #fff !important;
  2832. }
  2833. </style>
  2834. <style>
  2835. .example .el-cascader-panel .el-radio {
  2836. width: 100%;
  2837. height: 100%;
  2838. z-index: 10;
  2839. position: absolute;
  2840. top: 0px;
  2841. right: 0px;
  2842. }
  2843. .example .el-cascader-panel .el-radio__input {
  2844. display: none;
  2845. }
  2846. .example .el-cascader-panel .el-cascader-node__postfix {
  2847. top: 10px;
  2848. }
  2849. </style>