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.

3338 lines
110 KiB

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
  1. <template>
  2. <div class="mod-config">
  3. <el-form :inline="true" label-position="top">
  4. <el-form-item :label="'设备编码:'">
  5. <el-input v-model="searchData.objectID" style="width: 120px"></el-input>
  6. </el-form-item>
  7. <el-form-item :label="'设备名称:'">
  8. <el-input v-model="searchData.objectDesc" style="width: 120px"></el-input>
  9. </el-form-item>
  10. <el-form-item :label="'区域:'">
  11. <el-input v-model="searchData.locationID" style="width: 120px"></el-input>
  12. </el-form-item>
  13. <el-form-item :label="'分类:'">
  14. <el-input v-model="searchData.familyID" style="width: 120px"></el-input>
  15. </el-form-item>
  16. <el-form-item :label="'在用'">
  17. <el-select filterable v-model="searchData.active" style="width: 130px">
  18. <el-option label="全部" value="ALL"></el-option>
  19. <el-option label="是" value="Y"></el-option>
  20. <el-option label="否" value="N"></el-option>
  21. </el-select>
  22. </el-form-item>
  23. <el-form-item :label="' '">
  24. <el-button type="primary" @click="getDataList()">查询</el-button>
  25. <el-button type="primary" @click="addEamObjectModal()">新增</el-button>
  26. </el-form-item>
  27. </el-form>
  28. <el-table
  29. :height="height"
  30. :data="dataList"
  31. ref="eamObjectTable"
  32. highlight-current-row
  33. @row-click="setCurrentRow"
  34. @current-change="changeCurrentRow"
  35. border
  36. v-loading="dataListLoading"
  37. style="width: 100%;">
  38. <el-table-column
  39. v-for="(item,index) in columnList" :key="index"
  40. :sortable="item.columnSortable"
  41. :prop="item.columnProp"
  42. :header-align="item.headerAlign"
  43. :show-overflow-tooltip="item.showOverflowTooltip"
  44. :align="item.align"
  45. :fixed="item.fixed==''?false:item.fixed"
  46. :min-width="item.columnWidth"
  47. :label="item.columnLabel">
  48. <template slot-scope="scope">
  49. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  50. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  51. style="width: 100px; height: 80px"/></span>
  52. </template>
  53. </el-table-column>
  54. <el-table-column
  55. fixed="right"
  56. header-align="center"
  57. align="center"
  58. width="100"
  59. label="操作">
  60. <template slot-scope="scope">
  61. <a type="text" size="small" @click="updateEamObjectModal(scope.row)">修改</a>
  62. <a type="text" size="small" @click="deleteEamObjectConfirm(scope.row)">删除</a>
  63. </template>
  64. </el-table-column>
  65. </el-table>
  66. <el-pagination
  67. @size-change="sizeChangeHandle"
  68. @current-change="currentChangeHandle"
  69. :current-page="pageIndex"
  70. :page-sizes="[20, 50, 100, 1000]"
  71. :page-size="pageSize"
  72. :total="totalPage"
  73. layout="total, sizes, prev, pager, next, jumper">
  74. </el-pagination>
  75. <el-tabs v-model="activeTable" style="margin-top: 0px; width: 100%; height: 100%;"
  76. type="border-card" @tab-click="tabClick" class="customer-tab">
  77. <!-- 文档 -->
  78. <el-tab-pane label="文档" name="file_content">
  79. <!--文件上传-->
  80. <el-form label-position="top" style="margin-top: 5px;">
  81. <el-row>
  82. <el-col :span="6">
  83. <el-upload class="customer-upload"
  84. drag
  85. action="javascript:void(0);" ref="uploadFile" :limit="1"
  86. :before-upload="beforeUploadHandle" :on-change="onChange"
  87. accept=".jpg,.pdf,.PDF" :auto-upload="false"
  88. style="text-align: left;">
  89. <i class="el-icon-upload"></i>
  90. <div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
  91. </el-upload>
  92. </el-col>
  93. <!--文件描述-->
  94. <el-col :span="4" >
  95. <el-form-item class="customer-item" label="文件描述:" >
  96. <el-input v-model="fileRemark" style="width: 120px;" ></el-input>
  97. </el-form-item>
  98. </el-col>
  99. <el-col :span="4" >
  100. <el-form-item class="customer-item" label=" ">
  101. <el-button type="primary" @click="saveUploadFile()">保存</el-button>
  102. </el-form-item>
  103. </el-col>
  104. </el-row>
  105. </el-form>
  106. <el-table
  107. :data="fileContentList"
  108. height="265px"
  109. border
  110. v-loading="dataListLoading"
  111. style="width: 95%; ">
  112. <!-- <el-table-column
  113. fixed="left"
  114. header-align="center"
  115. align="center"
  116. width="80"
  117. label="操作">
  118. <template slot-scope="scope">
  119. <a class="customer-a" @click="deleteSfdcTimeHist(scope.row)">{{
  120. labels.deleteSfdcTime || '删除'
  121. }}</a>
  122. </template>
  123. </el-table-column>-->
  124. <el-table-column
  125. v-for="(item,index) in columnFileContentArray" :key="index"
  126. :sortable="item.columnSortable"
  127. :prop="item.columnProp"
  128. :header-align="item.headerAlign"
  129. :show-overflow-tooltip="item.showOverflowTooltip"
  130. :align="item.align"
  131. :fixed="item.fixed==''?false:item.fixed"
  132. :width="item.columnWidth"
  133. :label="item.columnLabel">
  134. <template slot-scope="scope">
  135. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  136. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  137. style="width: 100px; height: 80px"/></span>
  138. </template>
  139. </el-table-column>
  140. </el-table>
  141. </el-tab-pane>
  142. <!-- 设备备件 -->
  143. <el-tab-pane label="设备备件" name="device_part">
  144. <el-form :inline="true" label-position="top" style="margin-top: 5px">
  145. <el-button type="primary" @click="addSpareModal()">新增备件</el-button>
  146. <el-button type="primary" @click="copySpares()">复制到其他设备</el-button>
  147. </el-form>
  148. <el-table
  149. :height="secondHeight"
  150. :data="devicePartList"
  151. border
  152. v-loading="dataListLoading"
  153. style="width: 100%;">
  154. <el-table-column
  155. v-for="(item,index) in columnDevicePartArray" :key="index"
  156. :sortable="item.columnSortable"
  157. :prop="item.columnProp"
  158. :header-align="item.headerAlign"
  159. :show-overflow-tooltip="item.showOverflowTooltip"
  160. :align="item.align"
  161. :fixed="item.fixed==''?false:item.fixed"
  162. :min-width="item.columnWidth"
  163. :label="item.columnLabel">
  164. <template slot-scope="scope">
  165. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  166. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  167. style="width: 100px; height: 80px"/></span>
  168. </template>
  169. </el-table-column>
  170. <el-table-column
  171. fixed="right"
  172. header-align="center"
  173. align="center"
  174. width="100"
  175. label="操作">
  176. <template slot-scope="scope">
  177. <a type="text" size="small" @click="deleteObjectSpare(scope.row)">删除</a>
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. </el-tab-pane>
  182. <!-- 点检项目 -->
  183. <el-tab-pane label="点检项目" name="check_item">
  184. <el-form :inline="true" label-position="top" style="margin-top: 5px">
  185. <el-button type="primary" @click="addItemModal('A')">新增项目</el-button>
  186. <el-button type="primary" @click="copyCheckItems('A')">复制到其他设备</el-button>
  187. </el-form>
  188. <el-table
  189. :height="secondHeight"
  190. :data="checkItemList"
  191. border
  192. v-loading="dataListLoading"
  193. style="width: 100%;">
  194. <el-table-column
  195. v-for="(item,index) in columnCheckItemArray" :key="index"
  196. :sortable="item.columnSortable"
  197. :prop="item.columnProp"
  198. :header-align="item.headerAlign"
  199. :show-overflow-tooltip="item.showOverflowTooltip"
  200. :align="item.align"
  201. :fixed="item.fixed==''?false:item.fixed"
  202. :min-width="item.columnWidth"
  203. :label="item.columnLabel">
  204. <template slot-scope="scope">
  205. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  206. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  207. style="width: 100px; height: 80px"/></span>
  208. </template>
  209. </el-table-column>
  210. <el-table-column
  211. fixed="right"
  212. header-align="center"
  213. align="center"
  214. width="100"
  215. label="操作">
  216. <template slot-scope="scope">
  217. <a type="text" size="small" @click="updateObjectItem(scope.row)">修改</a>
  218. <a type="text" size="small" @click="deleteObjectItem(scope.row)">删除</a>
  219. <a type="text" size="small" v-if="scope.row.valueChooseFlag=='Y'" @click="chooseModal(scope.row)">可选值</a>
  220. </template>
  221. </el-table-column>
  222. </el-table>
  223. </el-tab-pane>
  224. <!-- 维保项目 -->
  225. <el-tab-pane label="维保项目" name="maintenance_item">
  226. <el-form :inline="true" label-position="top" style="margin-top: 5px">
  227. <el-button type="primary" @click="addItemModal('B')">新增项目</el-button>
  228. <el-button type="primary" @click="copyCheckItems('B')">复制到其他设备</el-button>
  229. </el-form>
  230. <el-table
  231. :height="secondHeight"
  232. :data="maintenanceItemList"
  233. border
  234. v-loading="dataListLoading"
  235. style="width: 100%;">
  236. <el-table-column
  237. v-for="(item,index) in columnMaintenanceItemArray" :key="index"
  238. :sortable="item.columnSortable"
  239. :prop="item.columnProp"
  240. :header-align="item.headerAlign"
  241. :show-overflow-tooltip="item.showOverflowTooltip"
  242. :align="item.align"
  243. :fixed="item.fixed==''?false:item.fixed"
  244. :min-width="item.columnWidth"
  245. :label="item.columnLabel">
  246. <template slot-scope="scope">
  247. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  248. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  249. style="width: 100px; height: 80px"/></span>
  250. </template>
  251. </el-table-column>
  252. <el-table-column
  253. fixed="right"
  254. header-align="center"
  255. align="center"
  256. width="100"
  257. label="操作">
  258. <template slot-scope="scope">
  259. <a type="text" size="small" @click="updateObjectItem(scope.row)">修改</a>
  260. <a type="text" size="small" @click="deleteObjectItem(scope.row)">删除</a>
  261. <a type="text" size="small" v-if="scope.row.valueChooseFlag=='Y'" @click="chooseModal(scope.row)">可选值</a>
  262. </template>
  263. </el-table-column>
  264. </el-table>
  265. </el-tab-pane>
  266. <!-- 维保计划 -->
  267. <el-tab-pane label="点检计划" name="check_plan">
  268. <el-table
  269. :height="secondHeight"
  270. :data="checkPlanList"
  271. border
  272. v-loading="dataListLoading"
  273. style="width: 100%;">
  274. <!-- <el-table-column
  275. fixed="left"
  276. header-align="center"
  277. align="center"
  278. width="80"
  279. label=labels.rollListOperation>
  280. <template slot-scope="scope">
  281. <a class="customer-a" @click="deleteSfdcDefect(scope.row)">{{
  282. labels.deleteSfdcDefect || '删除'
  283. }}</a>
  284. </template>
  285. </el-table-column>-->
  286. <el-table-column
  287. v-for="(item,index) in checkPlanColumnArray" :key="index"
  288. :sortable="item.columnSortable"
  289. :prop="item.columnProp"
  290. :header-align="item.headerAlign"
  291. :show-overflow-tooltip="item.showOverflowTooltip"
  292. :align="item.align"
  293. :fixed="item.fixed==''?false:item.fixed"
  294. :width="item.columnWidth"
  295. :label="item.columnLabel">
  296. <template slot-scope="scope">
  297. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  298. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  299. style="width: 100px; height: 80px"/></span>
  300. </template>
  301. </el-table-column>
  302. </el-table>
  303. </el-tab-pane>
  304. <!-- 维保计划 -->
  305. <el-tab-pane label="维保计划" name="maintenance_plan">
  306. <el-table
  307. :height="secondHeight"
  308. :data="maintenancePlanList"
  309. border
  310. v-loading="dataListLoading"
  311. style="width: 100%;">
  312. <!-- <el-table-column
  313. fixed="left"
  314. header-align="center"
  315. align="center"
  316. width="80"
  317. label=labels.rollListOperation>
  318. <template slot-scope="scope">
  319. <a class="customer-a" @click="deleteSfdcDefect(scope.row)">{{
  320. labels.deleteSfdcDefect || '删除'
  321. }}</a>
  322. </template>
  323. </el-table-column>-->
  324. <el-table-column
  325. v-for="(item,index) in maintenanceColumnArray" :key="index"
  326. :sortable="item.columnSortable"
  327. :prop="item.columnProp"
  328. :header-align="item.headerAlign"
  329. :show-overflow-tooltip="item.showOverflowTooltip"
  330. :align="item.align"
  331. :fixed="item.fixed==''?false:item.fixed"
  332. :min-width="item.columnWidth"
  333. :label="item.columnLabel">
  334. <template slot-scope="scope">
  335. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  336. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  337. style="width: 100px; height: 80px"/></span>
  338. </template>
  339. </el-table-column>
  340. </el-table>
  341. </el-tab-pane>
  342. <!-- 历史工单 -->
  343. <!-- <el-tab-pane label="历史工单" name="history_order">-->
  344. <!-- <el-table-->
  345. <!-- height="260"-->
  346. <!-- :data="historyOrderList"-->
  347. <!-- border-->
  348. <!-- show-summary-->
  349. <!-- v-loading="dataListLoading"-->
  350. <!-- highlight-current-row-->
  351. <!-- style="width: 100%;">-->
  352. <!-- <el-table-column-->
  353. <!-- v-for="(item,index) in columnHistoryOrderArray" :key="index"-->
  354. <!-- :sortable="item.columnSortable"-->
  355. <!-- :prop="item.columnProp"-->
  356. <!-- :header-align="item.headerAlign"-->
  357. <!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
  358. <!-- :align="item.align"-->
  359. <!-- :fixed="item.fixed==''?false:item.fixed"-->
  360. <!-- :width="item.columnWidth"-->
  361. <!-- :label="item.columnLabel">-->
  362. <!-- <template slot-scope="scope">-->
  363. <!-- <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>-->
  364. <!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"-->
  365. <!-- style="width: 100px; height: 80px"/></span>-->
  366. <!-- </template>-->
  367. <!-- </el-table-column>-->
  368. <!--&lt;!&ndash; <el-table-column-->
  369. <!-- fixed="left"-->
  370. <!-- header-align="center"-->
  371. <!-- align="center"-->
  372. <!-- width="150"-->
  373. <!-- label=labels.rollListOperation>-->
  374. <!-- <template slot-scope="scope">-->
  375. <!-- <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"-->
  376. <!-- @click="warnReopenSfdcRollsConfirm(scope.row)"-->
  377. <!-- >{{ labels.rollListReopen }}</a>-->
  378. <!-- <a class="customer-a" v-if="operatorData.operatorName != ''"-->
  379. <!-- @click="warnDeleteSfdcRollsConfirm(scope.row)"-->
  380. <!-- >{{ labels.rollListDelete }}</a>-->
  381. <!-- <a class="customer-a" v-if="operatorData.operatorName != ''"-->
  382. <!-- @click="printSfdcFlowLabel(scope.row)"-->
  383. <!-- >{{ labels.rollListPrint }}</a>-->
  384. <!-- </template>-->
  385. <!-- </el-table-column>&ndash;&gt;-->
  386. <!-- </el-table>-->
  387. <!-- </el-tab-pane>-->
  388. <!-- 故障现象 -->
  389. <el-tab-pane label="故障现象" name="fault_behavior">
  390. <el-table
  391. :height="secondHeight"
  392. :data="faultBehaviorList"
  393. border
  394. v-loading="dataListLoading"
  395. highlight-current-row
  396. style="width: 100%;">
  397. <el-table-column
  398. v-for="(item,index) in columnFaultBehaviorArray" :key="index"
  399. :sortable="item.columnSortable"
  400. :prop="item.columnProp"
  401. :header-align="item.headerAlign"
  402. :show-overflow-tooltip="item.showOverflowTooltip"
  403. :align="item.align"
  404. :fixed="item.fixed==''?false:item.fixed"
  405. :min-width="item.columnWidth"
  406. :label="item.columnLabel">
  407. <template slot-scope="scope">
  408. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  409. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  410. style="width: 100px; height: 80px"/></span>
  411. </template>
  412. </el-table-column>
  413. <!-- <el-table-column
  414. fixed="left"
  415. header-align="center"
  416. align="center"
  417. width="150"
  418. label=labels.rollListOperation>
  419. <template slot-scope="scope">
  420. <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"
  421. @click="warnReopenSfdcRollsConfirm(scope.row)"
  422. >{{ labels.rollListReopen }}</a>
  423. <a class="customer-a" v-if="operatorData.operatorName != ''"
  424. @click="warnDeleteSfdcRollsConfirm(scope.row)"
  425. >{{ labels.rollListDelete }}</a>
  426. <a class="customer-a" v-if="operatorData.operatorName != ''"
  427. @click="printSfdcFlowLabel(scope.row)"
  428. >{{ labels.rollListPrint }}</a>
  429. </template>
  430. </el-table-column>-->
  431. </el-table>
  432. </el-tab-pane>
  433. </el-tabs>
  434. <!-- 新增或者修改的modal -->
  435. <comAddUpdateEamObject ref="comAddUpdateEamObject" @refreshPageTables="getDataList()" v-drag></comAddUpdateEamObject>
  436. <!-- 新增备件的modal -->
  437. <el-dialog title="点检计划" :close-on-click-modal="false" v-drag :visible.sync="spareModalFlag" width="570px">
  438. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  439. <el-form-item label="设备编码:" >
  440. <el-input v-model="spareModalData.objectID" disabled style="width: 120px"></el-input>
  441. </el-form-item>
  442. <el-form-item label="设备名称:" >
  443. <el-input v-model="spareModalData.objectDesc" disabled style="width: 120px"></el-input>
  444. </el-form-item>
  445. </el-form>
  446. <div style="text-align: center ;font-size: 11px">
  447. <span> ----------------------------------------------------选择备件----------------------------------------------------</span>
  448. </div>
  449. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  450. <el-form-item label="备品备件编码:" >
  451. <el-input v-model="spareModalData.partNo" style="width: 120px"></el-input>
  452. </el-form-item>
  453. <el-form-item label="备品备件名称:" >
  454. <el-input v-model="spareModalData.partDescription" style="width: 120px"></el-input>
  455. </el-form-item>
  456. <el-form-item label=" " >
  457. <el-button @click="getSpareSelectList()">查询备件</el-button>
  458. </el-form-item>
  459. </el-form>
  460. <el-table
  461. :height="200"
  462. :data="spareList"
  463. border
  464. v-loading="dataListLoading"
  465. @selection-change="spareSelectionChangeHandle"
  466. style="width: 100%;">
  467. <el-table-column
  468. type="selection"
  469. header-align="center"
  470. align="center"
  471. :selectable="spareSelectFlag"
  472. width="50">
  473. </el-table-column>
  474. <el-table-column
  475. prop="partNo"
  476. header-align="center"
  477. align="left"
  478. min-width="30"
  479. label="备品备件编码">
  480. </el-table-column>
  481. <el-table-column
  482. prop="partDescription"
  483. header-align="center"
  484. align="left"
  485. min-width="30"
  486. label="备品备件名称">
  487. </el-table-column>
  488. <el-table-column
  489. prop="spec"
  490. header-align="center"
  491. align="left"
  492. min-width="30"
  493. label="规格型号">
  494. </el-table-column>
  495. </el-table>
  496. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  497. <el-button type="primary" @click="saveSparesData()">保存</el-button>
  498. <el-button type="primary" @click="spareModalFlag = false">关闭</el-button>
  499. </el-footer>
  500. </el-dialog>
  501. <!-- 复制到其他设备 -->
  502. <el-dialog title="复制备件" :close-on-click-modal="false" v-drag :visible.sync="spareCopyModalFlag" width="570px">
  503. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  504. <el-form-item label="设备编码:" >
  505. <el-input v-model="spareCopyModalData.oldObjectID" disabled style="width: 120px"></el-input>
  506. </el-form-item>
  507. <el-form-item label="设备名称:" >
  508. <el-input v-model="spareCopyModalData.oldObjectDesc" disabled style="width: 120px"></el-input>
  509. </el-form-item>
  510. </el-form>
  511. <div style="text-align: center ;font-size: 11px">
  512. <span> ----------------------------------------------------选择其他设备----------------------------------------------------</span>
  513. </div>
  514. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -8px;">
  515. <el-form-item label="设备编码">
  516. <el-input v-model="spareCopyModalData.objectID" style="width: 120px"></el-input>
  517. </el-form-item>
  518. <el-form-item label="设备名称">
  519. <el-input v-model="spareCopyModalData.objectDesc" style="width: 120px"></el-input>
  520. </el-form-item>
  521. <el-form-item label="设备分类编码">
  522. <el-input v-model="spareCopyModalData.familyID" style="width: 120px"></el-input>
  523. </el-form-item>
  524. <el-form-item label=" ">
  525. <el-button @click="getObjectCopyList()">查询</el-button>
  526. </el-form-item>
  527. </el-form>
  528. <el-table
  529. :height="200"
  530. :data="objectCopyList"
  531. border
  532. v-loading="dataListLoading"
  533. @selection-change="copySelectionChangeHandle"
  534. style="width: 100%;">
  535. <el-table-column
  536. type="selection"
  537. header-align="center"
  538. align="center"
  539. width="50">
  540. </el-table-column>
  541. <el-table-column
  542. prop="objectID"
  543. header-align="center"
  544. align="left"
  545. min-width="30"
  546. label="设备编码">
  547. </el-table-column>
  548. <el-table-column
  549. prop="objectDesc"
  550. header-align="center"
  551. align="left"
  552. min-width="30"
  553. label="设备名称">
  554. </el-table-column>
  555. <el-table-column
  556. prop="familyID"
  557. header-align="center"
  558. align="left"
  559. min-width="30"
  560. label="设备分类">
  561. </el-table-column>
  562. <el-table-column
  563. prop="familyName"
  564. header-align="center"
  565. align="left"
  566. min-width="30"
  567. label="分类名称">
  568. </el-table-column>
  569. </el-table>
  570. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  571. <el-button type="primary" @click="saveSpareCopyData()">保存</el-button>
  572. <el-button type="primary" @click="spareCopyModalFlag = false">关闭</el-button>
  573. </el-footer>
  574. </el-dialog>
  575. <!-- 维护点检项目 -->
  576. <el-dialog title="维护项目" :close-on-click-modal="false" v-drag :visible.sync="updateItemModalFlag" width="430px">
  577. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  578. <el-form-item >
  579. <span slot="label" v-if="updateItemModal.itemType=='A'&&updateItemModal.flag=='0'" style="" @click="getBaseList(1024)"><a herf="#">点检项目编码</a></span>
  580. <span slot="label" v-if="updateItemModal.itemType=='B'&&updateItemModal.flag=='0'" style="" @click="getBaseList(1025)"><a herf="#">维保项目编码</a></span>
  581. <span slot="label" v-if="updateItemModal.itemType=='A'&&updateItemModal.flag=='1'" style="" >点检项目编码</span>
  582. <span slot="label" v-if="updateItemModal.itemType=='B'&&updateItemModal.flag=='1'" style="" >维保项目编码</span>
  583. <el-input v-model="updateItemModal.itemNo" disabled style="width: 120px"></el-input>
  584. </el-form-item>
  585. <el-form-item :label="updateItemLabel.itemDescLabel">
  586. <el-input v-model="updateItemModal.itemDesc" disabled style="width: 120px"></el-input>
  587. </el-form-item>
  588. <el-form-item :label="'检测值类型'">
  589. <el-select filterable v-model="updateItemModal.valueTypeDb" style="width: 120px">
  590. <el-option label="文本" value="T"></el-option>
  591. <el-option label="数字" value="N"></el-option>
  592. </el-select>
  593. </el-form-item>
  594. </el-form>
  595. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  596. <el-form-item :label="updateItemLabel.itemRemarkLabel">
  597. <el-input v-model="updateItemModal.itemRemark" disabled style="width: 254px"></el-input>
  598. </el-form-item>
  599. <el-form-item :label="'是否值可选'">
  600. <el-select filterable v-model="updateItemModal.valueChooseFlag" style="width: 120px">
  601. <el-option label="是" value="Y"></el-option>
  602. <el-option label="否" value="N"></el-option>
  603. </el-select>
  604. </el-form-item>
  605. </el-form>
  606. <el-form :inline="true" label-position="top" style="margin-left: 7px;margin-top: -5px;">
  607. <el-form-item label="参照值:">
  608. <el-input v-model="updateItemModal.defaultValue" style="width: 120px"></el-input>
  609. </el-form-item>
  610. <el-form-item label="最大值:">
  611. <el-input v-model="updateItemModal.maxValue" type="number" style="width: 120px"></el-input>
  612. </el-form-item>
  613. <el-form-item label="最小值:">
  614. <el-input v-model="updateItemModal.minValue" type="number" style="width: 120px"></el-input>
  615. </el-form-item>
  616. </el-form>
  617. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  618. <el-button type="primary" @click="saveItemsData()">保存</el-button>
  619. <el-button type="primary" @click="updateItemModalFlag = false">关闭</el-button>
  620. </el-footer>
  621. </el-dialog>
  622. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  623. </div>
  624. </template>
  625. <script>
  626. import {
  627. getEamObjectList,
  628. getFileContentList,
  629. getDevicePartList,
  630. getCheckItemList,
  631. getMaintenanceItemList,
  632. getMaintenancePlanList,
  633. getHistoryOrderList,
  634. getFaultBehaviorList,
  635. deleteEamObject,
  636. uploadEamObjectFile,/*图片上传*/
  637. } from '@/api/eam/eam_object_list.js';
  638. import {
  639. getSpareSelectList,
  640. saveObjectSparesData,
  641. getObjectList,
  642. copyObjectSparesData,
  643. getWorkPlanDataWithObjectID,
  644. getObjectItemList,
  645. getDefectWithObject,
  646. saveObjectItemData,
  647. eamPropertiesItemSearch,
  648. deleteObjectItem,
  649. } from '@/api/eam/eam.js';
  650. import {
  651. updateOssRef
  652. } from '@/api/oss/oss.js';
  653. import {
  654. deleteResourceSpare,
  655. } from '@/api/partspare/resourcespare.js'
  656. /*引入組件*/
  657. import comAddUpdateEamObject from "./com_eam_object_add_update";/*新增或者修改的組件*/
  658. import Chooselist from '@/views/modules/common/Chooselist_eam'
  659. export default {
  660. data () {
  661. return {
  662. tagNo:'',
  663. activeTable: 'file_content',
  664. folder: 'eamObject',
  665. eamObjectId: '',
  666. uploadUrl: "",
  667. ossRet: {},
  668. fileList: [],
  669. fileRemark: '',
  670. currentRow: {},
  671. searchData: {
  672. site: this.$store.state.user.site,
  673. objectID: '',
  674. objectDesc: '',
  675. locationID: '',
  676. familyID: '',
  677. active: 'Y',
  678. page: 1,
  679. limit: 10
  680. },
  681. pageIndex: 1,
  682. pageSize: 100,
  683. totalPage: 0,
  684. height: 200,
  685. secondHeight: 200,
  686. dataList: [],
  687. fileContentList: [],
  688. devicePartList: [],
  689. checkItemList: [],
  690. maintenanceItemList: [],
  691. maintenancePlanList: [],
  692. historyOrderList: [],
  693. faultBehaviorList: [],
  694. columnFileContentArray: [
  695. {
  696. columnProp: 'fileName',
  697. headeralign: 'left',
  698. align: 'left',
  699. columnLabel: '文件名称',
  700. columnHidden: false,
  701. columnImage: false,
  702. columnSortable: false,
  703. sortLv: 0,
  704. status: true,
  705. fixed: false
  706. }, {
  707. columnProp: 'createdBy',
  708. headeralign: 'left',
  709. align: 'left',
  710. columnLabel: '上传人',
  711. columnHidden: false,
  712. columnImage: false,
  713. columnSortable: true,
  714. sortLv: 0,
  715. status: true,
  716. fixed: false
  717. }, {
  718. columnProp: 'createDate',
  719. headeralign: 'left',
  720. align: 'left',
  721. columnLabel: '上传时间',
  722. columnHidden: false,
  723. columnImage: false,
  724. columnSortable: true,
  725. sortLv: 0,
  726. status: true,
  727. fixed: false
  728. }, {
  729. columnProp: 'orderRef3',
  730. headeralign: 'left',
  731. align: 'left',
  732. columnLabel: '备注',
  733. columnHidden: false,
  734. columnImage: false,
  735. columnSortable: true,
  736. sortLv: 0,
  737. status: true,
  738. fixed: false
  739. },
  740. ],
  741. columnDevicePartArray: [
  742. {
  743. columnProp: 'partNo',
  744. headeralign: 'left',
  745. align: 'left',
  746. columnLabel: '备件编码',
  747. columnHidden: false,
  748. columnImage: false,
  749. columnSortable: true,
  750. sortLv: 0,
  751. status: true,
  752. fixed: false
  753. }, {
  754. columnProp: 'partDescription',
  755. headeralign: 'left',
  756. align: 'left',
  757. columnLabel: '备件名称',
  758. columnHidden: false,
  759. columnImage: false,
  760. columnSortable: false,
  761. sortLv: 0,
  762. status: true,
  763. fixed: false
  764. }, {
  765. columnProp: 'qtyUsable',
  766. headeralign: 'left',
  767. align: 'left',
  768. columnLabel: '可用数量',
  769. columnHidden: false,
  770. columnImage: false,
  771. columnSortable: false,
  772. sortLv: 0,
  773. status: true,
  774. fixed: false
  775. },
  776. ],
  777. columnCheckItemArray: [
  778. {
  779. userId: this.$store.state.user.name,
  780. functionId: 5303,
  781. serialNumber: '5303CheckItemTableEamPropertiesItemID',
  782. tableId: "5303CheckItemTable",
  783. tableName: "common",
  784. columnProp: 'itemNo',
  785. headerAlign: "center",
  786. align: "left",
  787. columnLabel: '点检项目编码',
  788. columnHidden: false,
  789. columnImage: false,
  790. columnSortable: false,
  791. sortLv: 0,
  792. status: true,
  793. fixed: '',
  794. columnWidth: 100,
  795. },
  796. {
  797. userId: this.$store.state.user.name,
  798. functionId: 5303,
  799. serialNumber: '5303CheckItemTableEamPropertiesItemDesc',
  800. tableId: "5303CheckItemTable",
  801. tableName: "common",
  802. columnProp: 'itemDesc',
  803. headerAlign: "center",
  804. align: "left",
  805. columnLabel: '点检项目名称',
  806. columnHidden: false,
  807. columnImage: false,
  808. columnSortable: false,
  809. sortLv: 0,
  810. status: true,
  811. fixed: '',
  812. columnWidth: 140,
  813. },
  814. {
  815. userId: this.$store.state.user.name,
  816. functionId: 5303,
  817. serialNumber: '5303CheckItemTableEamPropertiesItemRemark',
  818. tableId: "5303CheckItemTable",
  819. tableName: "common",
  820. columnProp: 'itemRemark',
  821. headerAlign: "center",
  822. align: "left",
  823. columnLabel: '点检方法说明',
  824. columnHidden: false,
  825. columnImage: false,
  826. columnSortable: false,
  827. sortLv: 0,
  828. status: true,
  829. fixed: '',
  830. columnWidth: 140,
  831. },
  832. {
  833. userId: this.$store.state.user.name,
  834. functionId: 5303,
  835. serialNumber: '5303CheckItemTableValueType',
  836. tableId: "5303CheckItemTable",
  837. tableName: "common",
  838. columnProp: 'valueType',
  839. headerAlign: "center",
  840. align: "left",
  841. columnLabel: '检测值类型',
  842. columnHidden: false,
  843. columnImage: false,
  844. columnSortable: false,
  845. sortLv: 0,
  846. status: true,
  847. fixed: '',
  848. columnWidth: 100,
  849. },
  850. {
  851. userId: this.$store.state.user.name,
  852. functionId: 5303,
  853. serialNumber: '5303CheckItemTableDefaultValue',
  854. tableId: "5303CheckItemTable",
  855. tableName: "common",
  856. columnProp: 'defaultValue',
  857. headerAlign: "center",
  858. align: "left",
  859. columnLabel: '参照值',
  860. columnHidden: false,
  861. columnImage: false,
  862. columnSortable: false,
  863. sortLv: 0,
  864. status: true,
  865. fixed: '',
  866. columnWidth: 100,
  867. },
  868. {
  869. userId: this.$store.state.user.name,
  870. functionId: 5303,
  871. serialNumber: '5303CheckItemTableMaxValue',
  872. tableId: "5303CheckItemTable",
  873. tableName: "common",
  874. columnProp: 'maxValue',
  875. headerAlign: "center",
  876. align: "left",
  877. columnLabel: '最大值',
  878. columnHidden: false,
  879. columnImage: false,
  880. columnSortable: false,
  881. sortLv: 0,
  882. status: true,
  883. fixed: '',
  884. columnWidth: 100,
  885. },
  886. {
  887. userId: this.$store.state.user.name,
  888. functionId: 5303,
  889. serialNumber: '5303CheckItemTableMinValue',
  890. tableId: "5303CheckItemTable",
  891. tableName: "common",
  892. columnProp: 'minValue',
  893. headerAlign: "center",
  894. align: "left",
  895. columnLabel: '最小值',
  896. columnHidden: false,
  897. columnImage: false,
  898. columnSortable: false,
  899. sortLv: 0,
  900. status: true,
  901. fixed: '',
  902. columnWidth: 100,
  903. },
  904. {
  905. userId: this.$store.state.user.name,
  906. functionId: 5303,
  907. serialNumber: '5303CheckItemTableValueChooseFlag',
  908. tableId: "5303CheckItemTable",
  909. tableName: "common",
  910. columnProp: 'valueChooseFlag',
  911. headerAlign: "center",
  912. align: "left",
  913. columnLabel: '是否值可选',
  914. columnHidden: false,
  915. columnImage: false,
  916. columnSortable: false,
  917. sortLv: 0,
  918. status: true,
  919. fixed: '',
  920. columnWidth: 100,
  921. },
  922. ],
  923. columnMaintenanceItemArray: [
  924. {
  925. userId: this.$store.state.user.name,
  926. functionId: 5303,
  927. serialNumber: '5303MaintenceItemTableEamPropertiesItemID',
  928. tableId: "5303MaintenceItemTable",
  929. tableName: "common",
  930. columnProp: 'itemNo',
  931. headerAlign: "center",
  932. align: "left",
  933. columnLabel: '维保项目编码',
  934. columnHidden: false,
  935. columnImage: false,
  936. columnSortable: false,
  937. sortLv: 0,
  938. status: true,
  939. fixed: '',
  940. columnWidth: 100,
  941. },
  942. {
  943. userId: this.$store.state.user.name,
  944. functionId: 5303,
  945. serialNumber: '5303MaintenceItemTableEamPropertiesItemDesc',
  946. tableId: "5303MaintenceItemTable",
  947. tableName: "common",
  948. columnProp: 'itemDesc',
  949. headerAlign: "center",
  950. align: "left",
  951. columnLabel: '维保项目名称',
  952. columnHidden: false,
  953. columnImage: false,
  954. columnSortable: false,
  955. sortLv: 0,
  956. status: true,
  957. fixed: '',
  958. columnWidth: 140,
  959. },
  960. {
  961. userId: this.$store.state.user.name,
  962. functionId: 5303,
  963. serialNumber: '5303MaintenceItemTableEamPropertiesItemRemark',
  964. tableId: "5303MaintenceItemTable",
  965. tableName: "common",
  966. columnProp: 'itemRemark',
  967. headerAlign: "center",
  968. align: "left",
  969. columnLabel: '维保方法说明',
  970. columnHidden: false,
  971. columnImage: false,
  972. columnSortable: false,
  973. sortLv: 0,
  974. status: true,
  975. fixed: '',
  976. columnWidth: 140,
  977. },
  978. {
  979. userId: this.$store.state.user.name,
  980. functionId: 5303,
  981. serialNumber: '5303MaintenceItemTableValueType',
  982. tableId: "5303MaintenceItemTable",
  983. tableName: "common",
  984. columnProp: 'valueType',
  985. headerAlign: "center",
  986. align: "left",
  987. columnLabel: '检测值类型',
  988. columnHidden: false,
  989. columnImage: false,
  990. columnSortable: false,
  991. sortLv: 0,
  992. status: true,
  993. fixed: '',
  994. columnWidth: 100,
  995. },
  996. {
  997. userId: this.$store.state.user.name,
  998. functionId: 5303,
  999. serialNumber: '5303MaintenceItemTableDefaultValue',
  1000. tableId: "5303MaintenceItemTable",
  1001. tableName: "common",
  1002. columnProp: 'defaultValue',
  1003. headerAlign: "center",
  1004. align: "left",
  1005. columnLabel: '参照值',
  1006. columnHidden: false,
  1007. columnImage: false,
  1008. columnSortable: false,
  1009. sortLv: 0,
  1010. status: true,
  1011. fixed: '',
  1012. columnWidth: 100,
  1013. },
  1014. {
  1015. userId: this.$store.state.user.name,
  1016. functionId: 5303,
  1017. serialNumber: '5303MaintenceItemTableMaxValue',
  1018. tableId: "5303MaintenceItemTable",
  1019. tableName: "common",
  1020. columnProp: 'maxValue',
  1021. headerAlign: "center",
  1022. align: "left",
  1023. columnLabel: '最大值',
  1024. columnHidden: false,
  1025. columnImage: false,
  1026. columnSortable: false,
  1027. sortLv: 0,
  1028. status: true,
  1029. fixed: '',
  1030. columnWidth: 100,
  1031. },
  1032. {
  1033. userId: this.$store.state.user.name,
  1034. functionId: 5303,
  1035. serialNumber: '5303MaintenceItemTableMinValue',
  1036. tableId: "5303MaintenceItemTable",
  1037. tableName: "common",
  1038. columnProp: 'minValue',
  1039. headerAlign: "center",
  1040. align: "left",
  1041. columnLabel: '最小值',
  1042. columnHidden: false,
  1043. columnImage: false,
  1044. columnSortable: false,
  1045. sortLv: 0,
  1046. status: true,
  1047. fixed: '',
  1048. columnWidth: 100,
  1049. },
  1050. {
  1051. userId: this.$store.state.user.name,
  1052. functionId: 5303,
  1053. serialNumber: '5303MaintenceItemTableValueChooseFlag',
  1054. tableId: "5303MaintenceItemTable",
  1055. tableName: "common",
  1056. columnProp: 'valueChooseFlag',
  1057. headerAlign: "center",
  1058. align: "left",
  1059. columnLabel: '是否值可选',
  1060. columnHidden: false,
  1061. columnImage: false,
  1062. columnSortable: false,
  1063. sortLv: 0,
  1064. status: true,
  1065. fixed: '',
  1066. columnWidth: 100,
  1067. },
  1068. ],
  1069. columnMaintenancePlanArray: [
  1070. {
  1071. userId: this.$store.state.user.name,
  1072. functionId: 5303,
  1073. serialNumber: '5303MaterialHistSeqNo',
  1074. tableId: '5303Material',
  1075. tableName: '派工单材料',
  1076. columnProp: 'histSeqNo',
  1077. headeralign: 'left',
  1078. align: 'left',
  1079. columnLabel: '序号',
  1080. columnWidth: 60,
  1081. columnHidden: false,
  1082. columnImage: false,
  1083. columnSortable: true,
  1084. sortLv: 0,
  1085. status: true,
  1086. fixed: false
  1087. },
  1088. {
  1089. userId: this.$store.state.user.name,
  1090. functionId: 5303,
  1091. serialNumber: '5303MaterialReportDate',
  1092. tableId: '5303Material',
  1093. tableName: '派工单材料',
  1094. columnProp: 'reportDate',
  1095. headeralign: 'left',
  1096. align: 'left',
  1097. columnLabel: '报告时间',
  1098. columnWidth: 125,
  1099. columnHidden: false,
  1100. columnImage: false,
  1101. columnSortable: true,
  1102. sortLv: 0,
  1103. status: true,
  1104. fixed: false
  1105. },
  1106. {
  1107. userId: this.$store.state.user.name,
  1108. functionId: 5303,
  1109. serialNumber: '5303MaterialReportedBy',
  1110. tableId: '5303Material',
  1111. tableName: '派工单材料',
  1112. columnProp: 'reportedBy',
  1113. headeralign: 'left',
  1114. align: 'left',
  1115. columnLabel: '报告人',
  1116. columnWidth: 80,
  1117. columnHidden: false,
  1118. columnImage: false,
  1119. columnSortable: true,
  1120. sortLv: 0,
  1121. status: true,
  1122. fixed: false
  1123. },
  1124. {
  1125. userId: this.$store.state.user.name,
  1126. functionId: 5303,
  1127. serialNumber: '5303MaterialRollNo',
  1128. tableId: '5303Material',
  1129. tableName: '派工单材料',
  1130. columnProp: 'rollNo',
  1131. headeralign: 'left',
  1132. align: 'left',
  1133. columnLabel: '卷号',
  1134. columnWidth: 100,
  1135. columnHidden: false,
  1136. columnImage: false,
  1137. columnSortable: true,
  1138. sortLv: 0,
  1139. status: true,
  1140. fixed: false
  1141. },
  1142. {
  1143. userId: this.$store.state.user.name,
  1144. functionId: 5303,
  1145. serialNumber: '5303MaterialRmRollNo',
  1146. tableId: '5303Material',
  1147. tableName: '派工单材料',
  1148. columnProp: 'rmRollNo',
  1149. headeralign: 'left',
  1150. align: 'left',
  1151. columnLabel: '材料卷号',
  1152. columnWidth: 100,
  1153. columnHidden: false,
  1154. columnImage: false,
  1155. columnSortable: true,
  1156. sortLv: 0,
  1157. status: true,
  1158. fixed: false
  1159. },
  1160. {
  1161. userId: this.$store.state.user.name,
  1162. functionId: 5303,
  1163. serialNumber: '5303MaterialPartNo',
  1164. tableId: '5303Material',
  1165. tableName: '派工单材料',
  1166. columnProp: 'partNo',
  1167. headeralign: 'left',
  1168. align: 'left',
  1169. columnLabel: '零部件编码',
  1170. columnWidth: 100,
  1171. columnHidden: false,
  1172. columnImage: false,
  1173. columnSortable: true,
  1174. sortLv: 0,
  1175. status: true,
  1176. fixed: false
  1177. },
  1178. {
  1179. userId: this.$store.state.user.name,
  1180. functionId: 5303,
  1181. serialNumber: '5303MaterialRemark',
  1182. tableId: '5303Material',
  1183. tableName: '派工单材料',
  1184. columnProp: 'remark',
  1185. headeralign: 'left',
  1186. align: 'left',
  1187. columnLabel: '备注',
  1188. columnWidth: 80,
  1189. columnHidden: false,
  1190. columnImage: false,
  1191. columnSortable: false,
  1192. sortLv: 0,
  1193. status: true,
  1194. fixed: false
  1195. },
  1196. {
  1197. userId: this.$store.state.user.name,
  1198. functionId: 5303,
  1199. serialNumber: '5303MaterialStartDate',
  1200. tableId: '5303Material',
  1201. tableName: '派工单材料',
  1202. columnProp: 'startDate',
  1203. headeralign: 'left',
  1204. align: 'left',
  1205. columnLabel: '开始使用时间',
  1206. columnWidth: 125,
  1207. columnHidden: false,
  1208. columnImage: false,
  1209. columnSortable: true,
  1210. sortLv: 0,
  1211. status: true,
  1212. fixed: false
  1213. },
  1214. {
  1215. userId: this.$store.state.user.name,
  1216. functionId: 5303,
  1217. serialNumber: '5303MaterialFinishedDate',
  1218. tableId: '5303Material',
  1219. tableName: '派工单材料',
  1220. columnProp: 'finishedDate',
  1221. headeralign: 'left',
  1222. align: 'left',
  1223. columnLabel: '结束使用时间',
  1224. columnWidth: 125,
  1225. columnHidden: false,
  1226. columnImage: false,
  1227. columnSortable: true,
  1228. sortLv: 0,
  1229. status: true,
  1230. fixed: false
  1231. },
  1232. {
  1233. userId: this.$store.state.user.name,
  1234. functionId: 5303,
  1235. serialNumber: '5303MaterialFinishedFlag',
  1236. tableId: '5303Material',
  1237. tableName: '派工单材料',
  1238. columnProp: 'finishedFlag',
  1239. headeralign: 'left',
  1240. align: 'left',
  1241. columnLabel: '结束使用',
  1242. columnWidth: 60,
  1243. columnHidden: false,
  1244. columnImage: false,
  1245. columnSortable: false,
  1246. sortLv: 0,
  1247. status: true,
  1248. fixed: false
  1249. },
  1250. {
  1251. userId: this.$store.state.user.name,
  1252. functionId: 5303,
  1253. serialNumber: '5303MaterialHistType',
  1254. tableId: '5303Material',
  1255. tableName: '派工单材料',
  1256. columnProp: 'histType',
  1257. headeralign: 'left',
  1258. align: 'left',
  1259. columnLabel: '类型',
  1260. columnWidth: 80,
  1261. columnHidden: false,
  1262. columnImage: false,
  1263. columnSortable: true,
  1264. sortLv: 0,
  1265. status: true,
  1266. fixed: false
  1267. },
  1268. {
  1269. userId: this.$store.state.user.name,
  1270. functionId: 5303,
  1271. serialNumber: '5303MaterialTransGeneratedFlag',
  1272. tableId: '5303Material',
  1273. tableName: '派工单材料',
  1274. columnProp: 'transGeneratedFlag',
  1275. headeralign: 'left',
  1276. align: 'left',
  1277. columnLabel: '是否同步SAp',
  1278. columnWidth: 80,
  1279. columnHidden: false,
  1280. columnImage: false,
  1281. columnSortable: true,
  1282. sortLv: 0,
  1283. status: true,
  1284. fixed: false
  1285. },
  1286. {
  1287. userId: this.$store.state.user.name,
  1288. functionId: 5303,
  1289. serialNumber: '5303MaterialOriginalRMRollNo',
  1290. tableId: '5303Material',
  1291. tableName: '派工单材料',
  1292. columnProp: 'originalRMRollNo',
  1293. headeralign: 'left',
  1294. align: 'left',
  1295. columnLabel: '原材料卷号',
  1296. columnWidth: 80,
  1297. columnHidden: false,
  1298. columnImage: false,
  1299. columnSortable: true,
  1300. sortLv: 0,
  1301. status: true,
  1302. fixed: false
  1303. },
  1304. {
  1305. userId: this.$store.state.user.name,
  1306. functionId: 5303,
  1307. serialNumber: '5303MaterialUnissueFlag',
  1308. tableId: '5303Material',
  1309. tableName: '派工单材料',
  1310. columnProp: 'unissueFlag',
  1311. headeralign: 'left',
  1312. align: 'left',
  1313. columnLabel: '是否退料',
  1314. columnWidth: 80,
  1315. columnHidden: false,
  1316. columnImage: false,
  1317. columnSortable: false,
  1318. sortLv: 0,
  1319. status: true,
  1320. fixed: false
  1321. },
  1322. {
  1323. userId: this.$store.state.user.name,
  1324. functionId: 5303,
  1325. serialNumber: '5303MaterialTransQty',
  1326. tableId: '5303Material',
  1327. tableName: '派工单材料',
  1328. columnProp: 'transQty',
  1329. headeralign: 'left',
  1330. align: 'left',
  1331. columnLabel: '数量',
  1332. columnWidth: 80,
  1333. columnHidden: false,
  1334. columnImage: false,
  1335. columnSortable: true,
  1336. sortLv: 0,
  1337. status: true,
  1338. fixed: false
  1339. },
  1340. {
  1341. userId: this.$store.state.user.name,
  1342. functionId: 5303,
  1343. serialNumber: '5303MaterialNetIssueQty',
  1344. tableId: '5303Material',
  1345. tableName: '派工单材料',
  1346. columnProp: 'netIssueQty',
  1347. headeralign: 'left',
  1348. align: 'left',
  1349. columnLabel: '净耗用数量',
  1350. columnWidth: 80,
  1351. columnHidden: false,
  1352. columnImage: false,
  1353. columnSortable: true,
  1354. sortLv: 0,
  1355. status: true,
  1356. fixed: false
  1357. },
  1358. {
  1359. userId: this.$store.state.user.name,
  1360. functionId: 5303,
  1361. serialNumber: '5303MaterialOriginalHistSeqNo',
  1362. tableId: '5303Material',
  1363. tableName: '派工单材料',
  1364. columnProp: 'originalHistSeqNo',
  1365. headeralign: 'left',
  1366. align: 'left',
  1367. columnLabel: '关联序号',
  1368. columnWidth: 80,
  1369. columnHidden: false,
  1370. columnImage: false,
  1371. columnSortable: false,
  1372. sortLv: 0,
  1373. status: true,
  1374. fixed: false
  1375. },
  1376. {
  1377. userId: this.$store.state.user.name,
  1378. functionId: 5303,
  1379. serialNumber: '5303MaterialKeyRMFlag',
  1380. tableId: '5303Material',
  1381. tableName: '派工单材料',
  1382. columnProp: 'keyRMFlag',
  1383. headeralign: 'left',
  1384. align: 'left',
  1385. columnLabel: '是否主材',
  1386. columnWidth: 80,
  1387. columnHidden: false,
  1388. columnImage: false,
  1389. columnSortable: true,
  1390. sortLv: 0,
  1391. status: true,
  1392. fixed: false
  1393. },
  1394. {
  1395. userId: this.$store.state.user.name,
  1396. functionId: 5303,
  1397. serialNumber: '5303MaterialStartFromRollNo',
  1398. tableId: '5303Material',
  1399. tableName: '派工单材料',
  1400. columnProp: 'startFromRollNo',
  1401. headeralign: 'left',
  1402. align: 'left',
  1403. columnLabel: '上机时的半成品卷号',
  1404. columnWidth: 115,
  1405. columnHidden: false,
  1406. columnImage: false,
  1407. columnSortable: false,
  1408. sortLv: 0,
  1409. status: true,
  1410. fixed: false
  1411. },
  1412. {
  1413. userId: this.$store.state.user.name,
  1414. functionId: 5303,
  1415. serialNumber: '5303MaterialSAPBOMItemNo',
  1416. tableId: '5303Material',
  1417. tableName: '派工单材料',
  1418. columnProp: 'sAPBOMItemNo',
  1419. headeralign: 'left',
  1420. align: 'left',
  1421. columnLabel: 'SAP BOM序号',
  1422. columnWidth: 100,
  1423. columnHidden: false,
  1424. columnImage: false,
  1425. columnSortable: false,
  1426. sortLv: 0,
  1427. status: true,
  1428. fixed: false
  1429. },
  1430. {
  1431. userId: this.$store.state.user.name,
  1432. functionId: 5303,
  1433. serialNumber: '5303MaterialSetupflag',
  1434. tableId: '5303Material',
  1435. tableName: '派工单材料',
  1436. columnProp: 'setupflag',
  1437. headeralign: 'left',
  1438. align: 'left',
  1439. columnLabel: '调机',
  1440. columnWidth: 80,
  1441. columnHidden: false,
  1442. columnImage: false,
  1443. columnSortable: false,
  1444. sortLv: 0,
  1445. status: true,
  1446. fixed: false
  1447. }
  1448. ],
  1449. columnHistoryOrderArray: [
  1450. {
  1451. userId: this.$store.state.user.name,
  1452. functionId: 5303,
  1453. serialNumber: '5303RollOpsRollNo',
  1454. tableId: '5303RollOps',
  1455. tableName: '上机卷',
  1456. columnProp: 'rollNo',
  1457. headeralign: 'left',
  1458. align: 'left',
  1459. columnLabel: '卷号',
  1460. columnWidth: 100,
  1461. columnHidden: false,
  1462. columnImage: false,
  1463. columnSortable: true,
  1464. sortLv: 0,
  1465. status: true,
  1466. fixed: false
  1467. },
  1468. {
  1469. userId: this.$store.state.user.name,
  1470. functionId: 5303,
  1471. serialNumber: '5303RollOpsFinishedDate',
  1472. tableId: '5303RollOps',
  1473. tableName: '上机卷',
  1474. columnProp: 'finishedDate',
  1475. headeralign: 'left',
  1476. align: 'left',
  1477. columnLabel: '完工时间',
  1478. columnWidth: 125,
  1479. columnHidden: false,
  1480. columnImage: false,
  1481. columnSortable: true,
  1482. sortLv: 0,
  1483. status: true,
  1484. fixed: false
  1485. },
  1486. {
  1487. userId: this.$store.state.user.name,
  1488. functionId: 5303,
  1489. serialNumber: '5303RollOpsFinishedBy',
  1490. tableId: '5303RollOps',
  1491. tableName: '上机卷',
  1492. columnProp: 'finishedBy',
  1493. headeralign: 'left',
  1494. align: 'left',
  1495. columnLabel: '完工人',
  1496. columnWidth: 90,
  1497. columnHidden: false,
  1498. columnImage: false,
  1499. columnSortable: true,
  1500. sortLv: 0,
  1501. status: true,
  1502. fixed: false
  1503. },
  1504. {
  1505. userId: this.$store.state.user.name,
  1506. functionId: 5303,
  1507. serialNumber: '5303RollOpsFinishedFlag',
  1508. tableId: '5303RollOps',
  1509. tableName: '上机卷',
  1510. columnProp: 'finishedFlag',
  1511. headeralign: 'left',
  1512. align: 'left',
  1513. columnLabel: '是否完工',
  1514. columnWidth: 100,
  1515. columnHidden: false,
  1516. columnImage: false,
  1517. columnSortable: true,
  1518. sortLv: 0,
  1519. status: true,
  1520. fixed: false
  1521. },
  1522. {
  1523. userId: this.$store.state.user.name,
  1524. functionId: 5303,
  1525. serialNumber: '5303RollOpsRemark',
  1526. tableId: '5303RollOps',
  1527. tableName: '上机卷',
  1528. columnProp: 'remark',
  1529. headeralign: 'left',
  1530. align: 'left',
  1531. columnLabel: '备注',
  1532. columnWidth: 110,
  1533. columnHidden: false,
  1534. columnImage: false,
  1535. columnSortable: false,
  1536. sortLv: 0,
  1537. status: true,
  1538. fixed: false
  1539. },
  1540. {
  1541. userId: this.$store.state.user.name,
  1542. functionId: 5303,
  1543. serialNumber: '5303RollOpsScanedBy',
  1544. tableId: '5303RollOps',
  1545. tableName: '上机卷',
  1546. columnProp: 'scanedBy',
  1547. headeralign: 'left',
  1548. align: 'left',
  1549. columnLabel: '扫描员',
  1550. columnWidth: 90,
  1551. columnHidden: false,
  1552. columnImage: false,
  1553. columnSortable: true,
  1554. sortLv: 0,
  1555. status: true,
  1556. fixed: false
  1557. },
  1558. {
  1559. userId: this.$store.state.user.name,
  1560. functionId: 5303,
  1561. serialNumber: '5303RollOpsScanedDate',
  1562. tableId: '5303RollOps',
  1563. tableName: '上机卷',
  1564. columnProp: 'scanedDate',
  1565. headeralign: 'left',
  1566. align: 'left',
  1567. columnLabel: '扫描时间',
  1568. columnWidth: 125,
  1569. columnHidden: false,
  1570. columnImage: false,
  1571. columnSortable: true,
  1572. sortLv: 0,
  1573. status: true,
  1574. fixed: false
  1575. },
  1576. {
  1577. userId: this.$store.state.user.name,
  1578. functionId: 5303,
  1579. serialNumber: '5303RollOpsFirstSetupBy',
  1580. tableId: '5303RollOps',
  1581. tableName: '上机卷',
  1582. columnProp: 'firstSetupBy',
  1583. headeralign: 'left',
  1584. align: 'left',
  1585. columnLabel: '首次调机人',
  1586. columnWidth: 80,
  1587. columnHidden: false,
  1588. columnImage: false,
  1589. columnSortable: false,
  1590. sortLv: 0,
  1591. status: true,
  1592. fixed: false
  1593. },
  1594. {
  1595. userId: this.$store.state.user.name,
  1596. functionId: 5303,
  1597. serialNumber: '5303RollOpsFirstSetupDate',
  1598. tableId: '5303RollOps',
  1599. tableName: '上机卷',
  1600. columnProp: 'firstSetupDate',
  1601. headeralign: 'left',
  1602. align: 'left',
  1603. columnLabel: '首次调机时间',
  1604. columnWidth: 125,
  1605. columnHidden: false,
  1606. columnImage: false,
  1607. columnSortable: true,
  1608. sortLv: 0,
  1609. status: true,
  1610. fixed: false
  1611. },
  1612. {
  1613. userId: this.$store.state.user.name,
  1614. functionId: 5303,
  1615. serialNumber: '5303RollOpsLatestSetupBy',
  1616. tableId: '5303RollOps',
  1617. tableName: '上机卷',
  1618. columnProp: 'latestSetupBy',
  1619. headeralign: 'left',
  1620. align: 'left',
  1621. columnLabel: '最近一次调机人',
  1622. columnWidth: 100,
  1623. columnHidden: false,
  1624. columnImage: false,
  1625. columnSortable: false,
  1626. sortLv: 0,
  1627. status: true,
  1628. fixed: false
  1629. },
  1630. {
  1631. userId: this.$store.state.user.name,
  1632. functionId: 5303,
  1633. serialNumber: '5303RollOpsLatestSetupDate',
  1634. tableId: '5303RollOps',
  1635. tableName: '上机卷',
  1636. columnProp: 'latestSetupDate',
  1637. headeralign: 'left',
  1638. align: 'left',
  1639. columnLabel: '最近一次调机时间',
  1640. columnWidth: 125,
  1641. columnHidden: false,
  1642. columnImage: false,
  1643. columnSortable: true,
  1644. sortLv: 0,
  1645. status: true,
  1646. fixed: false
  1647. },
  1648. {
  1649. userId: this.$store.state.user.name,
  1650. functionId: 5303,
  1651. serialNumber: '5303RollOpsFirstEndSetupBy',
  1652. tableId: '5303RollOps',
  1653. tableName: '上机卷',
  1654. columnProp: 'firstEndSetupBy',
  1655. headeralign: 'left',
  1656. align: 'left',
  1657. columnLabel: '首次调机结束人',
  1658. columnWidth: 100,
  1659. columnHidden: false,
  1660. columnImage: false,
  1661. columnSortable: false,
  1662. sortLv: 0,
  1663. status: true,
  1664. fixed: false
  1665. },
  1666. {
  1667. userId: this.$store.state.user.name,
  1668. functionId: 5303,
  1669. serialNumber: '5303RollOpsFirstEndSetupDate',
  1670. tableId: '5303RollOps',
  1671. tableName: '上机卷',
  1672. columnProp: 'firstEndSetupDate',
  1673. headeralign: 'left',
  1674. align: 'left',
  1675. columnLabel: '首次调机结束时间',
  1676. columnWidth: 125,
  1677. columnHidden: false,
  1678. columnImage: false,
  1679. columnSortable: true,
  1680. sortLv: 0,
  1681. status: true,
  1682. fixed: false
  1683. },
  1684. {
  1685. userId: this.$store.state.user.name,
  1686. functionId: 5303,
  1687. serialNumber: '5303RollOpsLatestEndSetupBy',
  1688. tableId: '5303RollOps',
  1689. tableName: '上机卷',
  1690. columnProp: 'latestEndSetupBy',
  1691. headeralign: 'left',
  1692. align: 'left',
  1693. columnLabel: '最近一次调机结束人',
  1694. columnWidth: 110,
  1695. columnHidden: false,
  1696. columnImage: false,
  1697. columnSortable: false,
  1698. sortLv: 0,
  1699. status: true,
  1700. fixed: false
  1701. },
  1702. {
  1703. userId: this.$store.state.user.name,
  1704. functionId: 5303,
  1705. serialNumber: '5303RollOpsLatestEndSetupDate',
  1706. tableId: '5303RollOps',
  1707. tableName: '上机卷',
  1708. columnProp: 'latestEndSetupDate',
  1709. headeralign: 'left',
  1710. align: 'left',
  1711. columnLabel: '最近一次调机结束时间',
  1712. columnWidth: 125,
  1713. columnHidden: false,
  1714. columnImage: false,
  1715. columnSortable: true,
  1716. sortLv: 0,
  1717. status: true,
  1718. fixed: false
  1719. },
  1720. {
  1721. userId: this.$store.state.user.name,
  1722. functionId: 5303,
  1723. serialNumber: '5303RollOpsFirstProdBy',
  1724. tableId: '5303RollOps',
  1725. tableName: '上机卷',
  1726. columnProp: 'firstProdBy',
  1727. headeralign: 'left',
  1728. align: 'left',
  1729. columnLabel: '首次开始生产人',
  1730. columnWidth: 120,
  1731. columnHidden: false,
  1732. columnImage: false,
  1733. columnSortable: false,
  1734. sortLv: 0,
  1735. status: true,
  1736. fixed: false
  1737. },
  1738. {
  1739. userId: this.$store.state.user.name,
  1740. functionId: 5303,
  1741. serialNumber: '5303RollOpsFirstProdDate',
  1742. tableId: '5303RollOps',
  1743. tableName: '上机卷',
  1744. columnProp: 'firstProdDate',
  1745. headeralign: 'left',
  1746. align: 'left',
  1747. columnLabel: '首次开始生产时间',
  1748. columnWidth: 125,
  1749. columnHidden: false,
  1750. columnImage: false,
  1751. columnSortable: true,
  1752. sortLv: 0,
  1753. status: true,
  1754. fixed: false
  1755. },
  1756. {
  1757. userId: this.$store.state.user.name,
  1758. functionId: 5303,
  1759. serialNumber: '5303RollOpsLatestProdBy',
  1760. tableId: '5303RollOps',
  1761. tableName: '上机卷',
  1762. columnProp: 'latestProdBy',
  1763. headeralign: 'left',
  1764. align: 'left',
  1765. columnLabel: '最近一次开始生产人',
  1766. columnWidth: 120,
  1767. columnHidden: false,
  1768. columnImage: false,
  1769. columnSortable: false,
  1770. sortLv: 0,
  1771. status: true,
  1772. fixed: false
  1773. },
  1774. {
  1775. userId: this.$store.state.user.name,
  1776. functionId: 5303,
  1777. serialNumber: '5303RollOpsLatestProdDate',
  1778. tableId: '5303RollOps',
  1779. tableName: '上机卷',
  1780. columnProp: 'latestProdDate',
  1781. headeralign: 'left',
  1782. align: 'left',
  1783. columnLabel: '最近一次开始生产时间',
  1784. columnWidth: 125,
  1785. columnHidden: false,
  1786. columnImage: false,
  1787. columnSortable: false,
  1788. sortLv: 0,
  1789. status: true,
  1790. fixed: false
  1791. },
  1792. {
  1793. userId: this.$store.state.user.name,
  1794. functionId: 5303,
  1795. serialNumber: '5303RollOpsFirstEndProdBy',
  1796. tableId: '5303RollOps',
  1797. tableName: '上机卷',
  1798. columnProp: 'firstEndProdBy',
  1799. headeralign: 'left',
  1800. align: 'left',
  1801. columnLabel: '首次结束生产人',
  1802. columnWidth: 120,
  1803. columnHidden: false,
  1804. columnImage: false,
  1805. columnSortable: false,
  1806. sortLv: 0,
  1807. status: true,
  1808. fixed: false
  1809. },
  1810. {
  1811. userId: this.$store.state.user.name,
  1812. functionId: 5303,
  1813. serialNumber: '5303RollOpsFirstEndProdDate',
  1814. tableId: '5303RollOps',
  1815. tableName: '上机卷',
  1816. columnProp: 'firstEndProdDate',
  1817. headeralign: 'left',
  1818. align: 'left',
  1819. columnLabel: '首次结束生产时间',
  1820. columnWidth: 125,
  1821. columnHidden: false,
  1822. columnImage: false,
  1823. columnSortable: false,
  1824. sortLv: 0,
  1825. status: true,
  1826. fixed: false
  1827. },
  1828. {
  1829. userId: this.$store.state.user.name,
  1830. functionId: 5303,
  1831. serialNumber: '5303RollOpsLatestEndProdBy',
  1832. tableId: '5303RollOps',
  1833. tableName: '上机卷',
  1834. columnProp: 'latestEndProdBy',
  1835. headeralign: 'left',
  1836. align: 'left',
  1837. columnLabel: '最近一次结束生产人',
  1838. columnWidth: 120,
  1839. columnHidden: false,
  1840. columnImage: false,
  1841. columnSortable: false,
  1842. sortLv: 0,
  1843. status: true,
  1844. fixed: false
  1845. },
  1846. {
  1847. userId: this.$store.state.user.name,
  1848. functionId: 5303,
  1849. serialNumber: '5303RollOpsLatestEndProdDate',
  1850. tableId: '5303RollOps',
  1851. tableName: '上机卷',
  1852. columnProp: 'latestEndProdDate',
  1853. headeralign: 'left',
  1854. align: 'left',
  1855. columnLabel: '最近一次结束生产时间',
  1856. columnWidth: 125,
  1857. columnHidden: false,
  1858. columnImage: false,
  1859. columnSortable: false,
  1860. sortLv: 0,
  1861. status: true,
  1862. fixed: false
  1863. },
  1864. {
  1865. userId: this.$store.state.user.name,
  1866. functionId: 5303,
  1867. serialNumber: '5303RollOpsPauseFlag',
  1868. tableId: '5303RollOps',
  1869. tableName: '上机卷',
  1870. columnProp: 'pauseFlag',
  1871. headeralign: 'left',
  1872. align: 'left',
  1873. columnLabel: '暂停',
  1874. columnWidth: 35,
  1875. columnHidden: false,
  1876. columnImage: false,
  1877. columnSortable: false,
  1878. sortLv: 0,
  1879. status: true,
  1880. fixed: false
  1881. },
  1882. {
  1883. userId: this.$store.state.user.name,
  1884. functionId: 5303,
  1885. serialNumber: '5303RollOpsReportedFlag',
  1886. tableId: '5303RollOps',
  1887. tableName: '上机卷',
  1888. columnProp: 'reportedFlag',
  1889. headeralign: 'left',
  1890. align: 'left',
  1891. columnLabel: '是否报产量',
  1892. columnWidth: 80,
  1893. columnHidden: false,
  1894. columnImage: false,
  1895. columnSortable: false,
  1896. sortLv: 0,
  1897. status: true,
  1898. fixed: false
  1899. },
  1900. {
  1901. userId: this.$store.state.user.name,
  1902. functionId: 5303,
  1903. serialNumber: '5303RollOpsQtyReported',
  1904. tableId: '5303RollOps',
  1905. tableName: '上机卷',
  1906. columnProp: 'qtyReported',
  1907. headeralign: 'left',
  1908. align: 'left',
  1909. columnLabel: '产出数量',
  1910. columnWidth: 60,
  1911. columnHidden: false,
  1912. columnImage: false,
  1913. columnSortable: false,
  1914. sortLv: 0,
  1915. status: true,
  1916. fixed: false
  1917. }
  1918. ],
  1919. columnFaultBehaviorArray: [
  1920. {
  1921. userId: this.$store.state.user.name,
  1922. functionId: 5303,
  1923. serialNumber: '5303DefectTableDefectID',
  1924. tableId: '5303DefectTable',
  1925. tableName: '设备故障表',
  1926. columnProp: 'defectID',
  1927. headeralign: 'left',
  1928. align: 'left',
  1929. columnLabel: '故障编码',
  1930. columnWidth: 60,
  1931. columnHidden: false,
  1932. columnImage: false,
  1933. columnSortable: true,
  1934. sortLv: 0,
  1935. status: true,
  1936. fixed: false
  1937. },
  1938. {
  1939. userId: this.$store.state.user.name,
  1940. functionId: 5303,
  1941. serialNumber: '5303DefectTableDefectDesc',
  1942. tableId: '5303DefectTable',
  1943. tableName: '设备故障表',
  1944. columnProp: 'defectDesc',
  1945. headeralign: 'left',
  1946. align: 'left',
  1947. columnLabel: '故障名称',
  1948. columnWidth: 110,
  1949. columnHidden: false,
  1950. columnImage: false,
  1951. columnSortable: true,
  1952. sortLv: 0,
  1953. status: true,
  1954. fixed: false
  1955. },
  1956. {
  1957. userId: this.$store.state.user.name,
  1958. functionId: 5303,
  1959. serialNumber: '5303DefectTableActive',
  1960. tableId: '5303DefectTable',
  1961. tableName: '不良信息',
  1962. columnProp: 'active',
  1963. headeralign: 'left',
  1964. align: 'left',
  1965. columnLabel: '是否在用',
  1966. columnWidth: 40,
  1967. columnHidden: false,
  1968. columnImage: false,
  1969. columnSortable: true,
  1970. sortLv: 0,
  1971. status: true,
  1972. fixed: false
  1973. },
  1974. ],
  1975. dataListLoading: false,
  1976. dataListSelections: [],
  1977. modalFlag: false,
  1978. modalDisableFlag: false,
  1979. modalData: {
  1980. flag: '',
  1981. site: this.$store.state.user.site,
  1982. adminID: '',
  1983. adminName: '',
  1984. active: '',
  1985. department: '',
  1986. phone: '',
  1987. tel: '',
  1988. email: '',
  1989. levelID: '',
  1990. mesUser: ''
  1991. },
  1992. departmentList: [],
  1993. // 展示列集
  1994. columnList: [
  1995. {
  1996. columnProp: 'site',
  1997. headeralign: 'left',
  1998. align: 'left',
  1999. columnLabel: '工厂编码',
  2000. columnHidden: false,
  2001. columnImage: false,
  2002. columnSortable: false,
  2003. sortLv: 0,
  2004. status: true,
  2005. fixed: '',
  2006. columnWidth: 80
  2007. }, {
  2008. columnProp: 'objectID',
  2009. headeralign: 'left',
  2010. align: 'left',
  2011. columnLabel: '设备编码',
  2012. columnHidden: false,
  2013. columnImage: false,
  2014. columnSortable: false,
  2015. sortLv: 0,
  2016. status: true,
  2017. fixed: '',
  2018. columnWidth: 120
  2019. }, {
  2020. columnProp: 'objectDesc',
  2021. headeralign: 'left',
  2022. align: 'left',
  2023. columnLabel: '设备名称',
  2024. columnHidden: false,
  2025. columnImage: false,
  2026. columnSortable: false,
  2027. sortLv: 0,
  2028. status: true,
  2029. fixed: '',
  2030. columnWidth: 140
  2031. }, {
  2032. columnProp: 'locationID',
  2033. headeralign: 'left',
  2034. align: 'left',
  2035. columnLabel: '区域',
  2036. columnHidden: false,
  2037. columnImage: false,
  2038. columnSortable: false,
  2039. sortLv: 0,
  2040. status: true,
  2041. fixed: '',
  2042. columnWidth: 40
  2043. }, {
  2044. columnProp: 'familyID',
  2045. headeralign: 'left',
  2046. align: 'left',
  2047. columnLabel: '分类',
  2048. columnHidden: false,
  2049. columnImage: false,
  2050. columnSortable: false,
  2051. sortLv: 0,
  2052. status: true,
  2053. fixed: '',
  2054. columnWidth: 80
  2055. }, {
  2056. columnProp: 'supplierID',
  2057. headeralign: 'left',
  2058. align: 'left',
  2059. columnLabel: '供应商',
  2060. columnHidden: false,
  2061. columnImage: false,
  2062. columnSortable: false,
  2063. sortLv: 0,
  2064. status: true,
  2065. fixed: '',
  2066. columnWidth: 140
  2067. }, {
  2068. columnProp: 'groupID',
  2069. headeralign: 'left',
  2070. align: 'left',
  2071. columnLabel: '分组',
  2072. columnHidden: false,
  2073. columnImage: false,
  2074. columnSortable: false,
  2075. sortLv: 0,
  2076. status: true,
  2077. fixed: '',
  2078. columnWidth: 140
  2079. }, {
  2080. columnProp: 'seqNo',
  2081. headeralign: 'left',
  2082. align: 'left',
  2083. columnLabel: '序列号',
  2084. columnHidden: false,
  2085. columnImage: false,
  2086. columnSortable: false,
  2087. sortLv: 0,
  2088. status: true,
  2089. fixed: '',
  2090. columnWidth: 140
  2091. }, {
  2092. columnProp: 'purchessDate',
  2093. headeralign: 'left',
  2094. align: 'left',
  2095. columnLabel: '购入日期',
  2096. columnHidden: false,
  2097. columnImage: false,
  2098. columnSortable: false,
  2099. sortLv: 0,
  2100. status: true,
  2101. fixed: '',
  2102. columnWidth: 80
  2103. }, {
  2104. columnProp: 'active',
  2105. headeralign: 'left',
  2106. align: 'left',
  2107. columnLabel: '在用',
  2108. columnHidden: false,
  2109. columnImage: false,
  2110. columnSortable: false,
  2111. sortLv: 0,
  2112. status: true,
  2113. fixed: '',
  2114. columnWidth: 40
  2115. }, {
  2116. columnProp: 'closedDate',
  2117. headeralign: 'left',
  2118. align: 'left',
  2119. columnLabel: '停用日期',
  2120. columnHidden: false,
  2121. columnImage: false,
  2122. columnSortable: false,
  2123. sortLv: 0,
  2124. status: true,
  2125. fixed: '',
  2126. columnWidth: 100
  2127. },
  2128. ],
  2129. levelList: [],
  2130. //设备备件分页新增 0314 rq ---start
  2131. spareModalFlag:false,
  2132. spareModalData:{
  2133. site:'',
  2134. objectID:'',
  2135. objectDesc:'',
  2136. partNo: '',
  2137. partDescription: '',
  2138. spareList:[],
  2139. },
  2140. spareList:[],
  2141. spareSelectionList:[],
  2142. spareCopyModalData:{
  2143. site: this.$store.state.user.site,
  2144. objectID:'',
  2145. objectDesc:'',
  2146. familyID:'',
  2147. oldObjectID:'',
  2148. oldObjectDesc:'',
  2149. },
  2150. objectCopySelectionList:[],
  2151. objectCopyList:[],
  2152. spareCopyModalFlag:false,
  2153. //设备备件分页新增 0314 rq ---end
  2154. //设备点检计划分页新增 0315 rq ---start
  2155. checkPlanColumnArray:[
  2156. {
  2157. userId: this.$store.state.user.name,
  2158. functionId: 5303,
  2159. serialNumber: '5053CheckPlanTableSite',
  2160. tableId: "5053CheckPlanTable",
  2161. tableName: "点检计划表",
  2162. columnProp: 'site',
  2163. headerAlign: "center",
  2164. align: "left",
  2165. columnLabel: '工厂编码',
  2166. columnHidden: false,
  2167. columnImage: false,
  2168. columnSortable: false,
  2169. sortLv: 0,
  2170. status: true,
  2171. fixed: '',
  2172. columnWidth: 80,
  2173. },
  2174. {
  2175. userId: this.$store.state.user.name,
  2176. functionId: 5053,
  2177. serialNumber: '5053CheckPlanTablePlanID',
  2178. tableId: "5053CheckPlanTable",
  2179. tableName: "点检计划表",
  2180. columnProp: 'planID',
  2181. headerAlign: "center",
  2182. align: "left",
  2183. columnLabel: '计划编码',
  2184. columnHidden: false,
  2185. columnImage: false,
  2186. columnSortable: false,
  2187. sortLv: 0,
  2188. status: true,
  2189. fixed: '',
  2190. columnWidth: 100,
  2191. },
  2192. {
  2193. userId: this.$store.state.user.name,
  2194. functionId: 5053,
  2195. serialNumber: '5053CheckPlanTablePlanDesc',
  2196. tableId: "5053CheckPlanTable",
  2197. tableName: "点检计划表",
  2198. columnProp: 'planDesc',
  2199. headerAlign: "center",
  2200. align: "left",
  2201. columnLabel: '计划描述',
  2202. columnHidden: false,
  2203. columnImage: false,
  2204. columnSortable: false,
  2205. sortLv: 0,
  2206. status: true,
  2207. fixed: '',
  2208. columnWidth: 140,
  2209. },
  2210. {
  2211. userId: this.$store.state.user.name,
  2212. functionId: 5053,
  2213. serialNumber: '5053CheckPlanTableObjectID',
  2214. tableId: "5053CheckPlanTable",
  2215. tableName: "点检计划表",
  2216. columnProp: 'objectID',
  2217. headerAlign: "center",
  2218. align: "left",
  2219. columnLabel: '设备编码',
  2220. columnHidden: false,
  2221. columnImage: false,
  2222. columnSortable: false,
  2223. sortLv: 0,
  2224. status: true,
  2225. fixed: '',
  2226. columnWidth: 100,
  2227. },
  2228. {
  2229. userId: this.$store.state.user.name,
  2230. functionId: 5053,
  2231. serialNumber: '5053CheckPlanTablePropertiesCode',
  2232. tableId: "5053CheckPlanTable",
  2233. tableName: "点检计划表",
  2234. columnProp: 'propertiesCode',
  2235. headerAlign: "center",
  2236. align: "left",
  2237. columnLabel: '点检模板编码',
  2238. columnHidden: false,
  2239. columnImage: false,
  2240. columnSortable: false,
  2241. sortLv: 0,
  2242. status: true,
  2243. fixed: '',
  2244. columnWidth: 100,
  2245. },
  2246. {
  2247. userId: this.$store.state.user.name,
  2248. functionId: 5053,
  2249. serialNumber: '5053CheckPlanTableStatus',
  2250. tableId: "5053CheckPlanTable",
  2251. tableName: "点检计划表",
  2252. columnProp: 'status',
  2253. headerAlign: "center",
  2254. align: "left",
  2255. columnLabel: '状态',
  2256. columnHidden: false,
  2257. columnImage: false,
  2258. columnSortable: false,
  2259. sortLv: 0,
  2260. status: true,
  2261. fixed: '',
  2262. columnWidth: 70,
  2263. },
  2264. {
  2265. userId: this.$store.state.user.name,
  2266. functionId: 5053,
  2267. serialNumber: '5053CheckPlanTablePlanStartDate',
  2268. tableId: "5053CheckPlanTable",
  2269. tableName: "点检计划表",
  2270. columnProp: 'planStartDate',
  2271. headerAlign: "center",
  2272. align: "left",
  2273. columnLabel: '计划开始日期',
  2274. columnHidden: false,
  2275. columnImage: false,
  2276. columnSortable: false,
  2277. sortLv: 0,
  2278. status: true,
  2279. fixed: '',
  2280. columnWidth: 140,
  2281. },
  2282. {
  2283. userId: this.$store.state.user.name,
  2284. functionId: 5053,
  2285. serialNumber: '5053CheckPlanTablePlanEndDate',
  2286. tableId: "5053CheckPlanTable",
  2287. tableName: "点检计划表",
  2288. columnProp: 'planEndDate',
  2289. headerAlign: "center",
  2290. align: "left",
  2291. columnLabel: '计划结束日期',
  2292. columnHidden: false,
  2293. columnImage: false,
  2294. columnSortable: false,
  2295. sortLv: 0,
  2296. status: true,
  2297. fixed: '',
  2298. columnWidth: 140,
  2299. },
  2300. {
  2301. userId: this.$store.state.user.name,
  2302. functionId: 5053,
  2303. serialNumber: '5053CheckPlanTableNextWorkDate',
  2304. tableId: "5053CheckPlanTable",
  2305. tableName: "点检计划表",
  2306. columnProp: 'nextWorkDate',
  2307. headerAlign: "center",
  2308. align: "left",
  2309. columnLabel: '下次执行日期',
  2310. columnHidden: false,
  2311. columnImage: false,
  2312. columnSortable: false,
  2313. sortLv: 0,
  2314. status: true,
  2315. fixed: '',
  2316. columnWidth: 140,
  2317. },
  2318. {
  2319. userId: this.$store.state.user.name,
  2320. functionId: 5053,
  2321. serialNumber: '5053CheckPlanTableOperator',
  2322. tableId: "5053CheckPlanTable",
  2323. tableName: "点检计划表",
  2324. columnProp: 'operator',
  2325. headerAlign: "center",
  2326. align: "left",
  2327. columnLabel: '计划操作员',
  2328. columnHidden: false,
  2329. columnImage: false,
  2330. columnSortable: false,
  2331. sortLv: 0,
  2332. status: true,
  2333. fixed: '',
  2334. columnWidth: 80,
  2335. },
  2336. {
  2337. userId: this.$store.state.user.name,
  2338. functionId: 5053,
  2339. serialNumber: '5053CheckPlanTablePlanPeriod',
  2340. tableId: "5053CheckPlanTable",
  2341. tableName: "点检计划表",
  2342. columnProp: 'planPeriod',
  2343. headerAlign: "center",
  2344. align: "right",
  2345. columnLabel: '点检周期',
  2346. columnHidden: false,
  2347. columnImage: false,
  2348. columnSortable: false,
  2349. sortLv: 0,
  2350. status: true,
  2351. fixed: '',
  2352. columnWidth: 80,
  2353. },
  2354. {
  2355. userId: this.$store.state.user.name,
  2356. functionId: 5053,
  2357. serialNumber: '5053CheckPlanTableCreatedDate',
  2358. tableId: "5053CheckPlanTable",
  2359. tableName: "点检计划表",
  2360. columnProp: 'createdDate',
  2361. headerAlign: "center",
  2362. align: "left",
  2363. columnLabel: '创建时间',
  2364. columnHidden: false,
  2365. columnImage: false,
  2366. columnSortable: false,
  2367. sortLv: 0,
  2368. status: true,
  2369. fixed: '',
  2370. columnWidth: 140,
  2371. },
  2372. {
  2373. userId: this.$store.state.user.name,
  2374. functionId: 5053,
  2375. serialNumber: '5053CheckPlanTableCreatedBy',
  2376. tableId: "5053CheckPlanTable",
  2377. tableName: "点检计划表",
  2378. columnProp: 'createdBy',
  2379. headerAlign: "center",
  2380. align: "left",
  2381. columnLabel: '创建人',
  2382. columnHidden: false,
  2383. columnImage: false,
  2384. columnSortable: false,
  2385. sortLv: 0,
  2386. status: true,
  2387. fixed: '',
  2388. columnWidth: 80,
  2389. },
  2390. {
  2391. userId: this.$store.state.user.name,
  2392. functionId: 5053,
  2393. serialNumber: '5053CheckPlanTableRemark',
  2394. tableId: "5053CheckPlanTable",
  2395. tableName: "点检计划表",
  2396. columnProp: 'remark',
  2397. headerAlign: "center",
  2398. align: "left",
  2399. columnLabel: '备注',
  2400. columnHidden: false,
  2401. columnImage: false,
  2402. columnSortable: false,
  2403. sortLv: 0,
  2404. status: true,
  2405. fixed: '',
  2406. columnWidth: 150,
  2407. },
  2408. ],
  2409. checkPlanList:[],
  2410. //设备点检计划分页新增 0315 rq ---end
  2411. //设备维保计划分页新增 0315 rq ---start
  2412. maintenanceColumnArray:[
  2413. {
  2414. userId: this.$store.state.user.name,
  2415. functionId: 5303,
  2416. serialNumber: '5053MaintenancePlanTableSite',
  2417. tableId: "5053MaintenancePlanTable",
  2418. tableName: "维保计划表",
  2419. columnProp: 'site',
  2420. headerAlign: "center",
  2421. align: "left",
  2422. columnLabel: '工厂编码',
  2423. columnHidden: false,
  2424. columnImage: false,
  2425. columnSortable: false,
  2426. sortLv: 0,
  2427. status: true,
  2428. fixed: '',
  2429. columnWidth: 80,
  2430. },
  2431. {
  2432. userId: this.$store.state.user.name,
  2433. functionId: 5053,
  2434. serialNumber: '5053MaintenancePlanTablePlanID',
  2435. tableId: "5053MaintenancePlanTable",
  2436. tableName: "维保计划表",
  2437. columnProp: 'planID',
  2438. headerAlign: "center",
  2439. align: "left",
  2440. columnLabel: '计划编码',
  2441. columnHidden: false,
  2442. columnImage: false,
  2443. columnSortable: false,
  2444. sortLv: 0,
  2445. status: true,
  2446. fixed: '',
  2447. columnWidth: 100,
  2448. },
  2449. {
  2450. userId: this.$store.state.user.name,
  2451. functionId: 5053,
  2452. serialNumber: '5053MaintenancePlanTablePlanDesc',
  2453. tableId: "5053MaintenancePlanTable",
  2454. tableName: "维保计划表",
  2455. columnProp: 'planDesc',
  2456. headerAlign: "center",
  2457. align: "left",
  2458. columnLabel: '计划描述',
  2459. columnHidden: false,
  2460. columnImage: false,
  2461. columnSortable: false,
  2462. sortLv: 0,
  2463. status: true,
  2464. fixed: '',
  2465. columnWidth: 140,
  2466. },
  2467. {
  2468. userId: this.$store.state.user.name,
  2469. functionId: 5053,
  2470. serialNumber: '5053MaintenancePlanTableObjectID',
  2471. tableId: "5053MaintenancePlanTable",
  2472. tableName: "维保计划表",
  2473. columnProp: 'objectID',
  2474. headerAlign: "center",
  2475. align: "left",
  2476. columnLabel: '设备编码',
  2477. columnHidden: false,
  2478. columnImage: false,
  2479. columnSortable: false,
  2480. sortLv: 0,
  2481. status: true,
  2482. fixed: '',
  2483. columnWidth: 100,
  2484. },
  2485. {
  2486. userId: this.$store.state.user.name,
  2487. functionId: 5053,
  2488. serialNumber: '5053MaintenancePlanTablePropertiesCode',
  2489. tableId: "5053MaintenancePlanTable",
  2490. tableName: "维保计划表",
  2491. columnProp: 'propertiesCode',
  2492. headerAlign: "center",
  2493. align: "left",
  2494. columnLabel: '维保模板编码',
  2495. columnHidden: false,
  2496. columnImage: false,
  2497. columnSortable: false,
  2498. sortLv: 0,
  2499. status: true,
  2500. fixed: '',
  2501. columnWidth: 100,
  2502. },
  2503. {
  2504. userId: this.$store.state.user.name,
  2505. functionId: 5053,
  2506. serialNumber: '5053MaintenancePlanTableStatus',
  2507. tableId: "5053MaintenancePlanTable",
  2508. tableName: "维保计划表",
  2509. columnProp: 'status',
  2510. headerAlign: "center",
  2511. align: "left",
  2512. columnLabel: '状态',
  2513. columnHidden: false,
  2514. columnImage: false,
  2515. columnSortable: false,
  2516. sortLv: 0,
  2517. status: true,
  2518. fixed: '',
  2519. columnWidth: 70,
  2520. },
  2521. {
  2522. userId: this.$store.state.user.name,
  2523. functionId: 5053,
  2524. serialNumber: '5053MaintenancePlanTablePlanStartDate',
  2525. tableId: "5053MaintenancePlanTable",
  2526. tableName: "维保计划表",
  2527. columnProp: 'planStartDate',
  2528. headerAlign: "center",
  2529. align: "left",
  2530. columnLabel: '计划开始日期',
  2531. columnHidden: false,
  2532. columnImage: false,
  2533. columnSortable: false,
  2534. sortLv: 0,
  2535. status: true,
  2536. fixed: '',
  2537. columnWidth: 140,
  2538. },
  2539. {
  2540. userId: this.$store.state.user.name,
  2541. functionId: 5053,
  2542. serialNumber: '5053MaintenancePlanTablePlanEndDate',
  2543. tableId: "5053MaintenancePlanTable",
  2544. tableName: "维保计划表",
  2545. columnProp: 'planEndDate',
  2546. headerAlign: "center",
  2547. align: "left",
  2548. columnLabel: '计划结束日期',
  2549. columnHidden: false,
  2550. columnImage: false,
  2551. columnSortable: false,
  2552. sortLv: 0,
  2553. status: true,
  2554. fixed: '',
  2555. columnWidth: 140,
  2556. },
  2557. {
  2558. userId: this.$store.state.user.name,
  2559. functionId: 5053,
  2560. serialNumber: '5053MaintenancePlanTableNextWorkDate',
  2561. tableId: "5053MaintenancePlanTable",
  2562. tableName: "维保计划表",
  2563. columnProp: 'nextWorkDate',
  2564. headerAlign: "center",
  2565. align: "left",
  2566. columnLabel: '下次执行日期',
  2567. columnHidden: false,
  2568. columnImage: false,
  2569. columnSortable: false,
  2570. sortLv: 0,
  2571. status: true,
  2572. fixed: '',
  2573. columnWidth: 140,
  2574. },
  2575. {
  2576. userId: this.$store.state.user.name,
  2577. functionId: 5053,
  2578. serialNumber: '5053MaintenancePlanTableOperator',
  2579. tableId: "5053MaintenancePlanTable",
  2580. tableName: "维保计划表",
  2581. columnProp: 'operator',
  2582. headerAlign: "center",
  2583. align: "left",
  2584. columnLabel: '计划操作员',
  2585. columnHidden: false,
  2586. columnImage: false,
  2587. columnSortable: false,
  2588. sortLv: 0,
  2589. status: true,
  2590. fixed: '',
  2591. columnWidth: 80,
  2592. },
  2593. {
  2594. userId: this.$store.state.user.name,
  2595. functionId: 5053,
  2596. serialNumber: '5053MaintenancePlanTablePlanPeriod',
  2597. tableId: "5053MaintenancePlanTable",
  2598. tableName: "维保计划表",
  2599. columnProp: 'planPeriod',
  2600. headerAlign: "center",
  2601. align: "right",
  2602. columnLabel: '维保周期',
  2603. columnHidden: false,
  2604. columnImage: false,
  2605. columnSortable: false,
  2606. sortLv: 0,
  2607. status: true,
  2608. fixed: '',
  2609. columnWidth: 80,
  2610. },
  2611. {
  2612. userId: this.$store.state.user.name,
  2613. functionId: 5053,
  2614. serialNumber: '5053MaintenancePlanTableCreatedDate',
  2615. tableId: "5053MaintenancePlanTable",
  2616. tableName: "维保计划表",
  2617. columnProp: 'createdDate',
  2618. headerAlign: "center",
  2619. align: "left",
  2620. columnLabel: '创建时间',
  2621. columnHidden: false,
  2622. columnImage: false,
  2623. columnSortable: false,
  2624. sortLv: 0,
  2625. status: true,
  2626. fixed: '',
  2627. columnWidth: 140,
  2628. },
  2629. {
  2630. userId: this.$store.state.user.name,
  2631. functionId: 5053,
  2632. serialNumber: '5053MaintenancePlanTableCreatedBy',
  2633. tableId: "5053MaintenancePlanTable",
  2634. tableName: "维保计划表",
  2635. columnProp: 'createdBy',
  2636. headerAlign: "center",
  2637. align: "left",
  2638. columnLabel: '创建人',
  2639. columnHidden: false,
  2640. columnImage: false,
  2641. columnSortable: false,
  2642. sortLv: 0,
  2643. status: true,
  2644. fixed: '',
  2645. columnWidth: 80,
  2646. },
  2647. {
  2648. userId: this.$store.state.user.name,
  2649. functionId: 5053,
  2650. serialNumber: '5053MaintenancePlanTableRemark',
  2651. tableId: "5053MaintenancePlanTable",
  2652. tableName: "维保计划表",
  2653. columnProp: 'remark',
  2654. headerAlign: "center",
  2655. align: "left",
  2656. columnLabel: '备注',
  2657. columnHidden: false,
  2658. columnImage: false,
  2659. columnSortable: false,
  2660. sortLv: 0,
  2661. status: true,
  2662. fixed: '',
  2663. columnWidth: 150,
  2664. },
  2665. ],
  2666. //设备维保计划分页新增 0315 rq ---end
  2667. //设备点检项目分页新增 0315 rq ---start
  2668. updateItemModalFlag:false,
  2669. updateItemLabel:{
  2670. itemDescLabel:'',
  2671. itemRemarkLabel:'',
  2672. },
  2673. updateItemModal:{
  2674. flag:'',
  2675. site:'',
  2676. objectID:'',
  2677. itemNo:'',
  2678. itemDesc:'',
  2679. itemType:'',
  2680. valueTypeDb:'',
  2681. itemRemark:'',
  2682. valueChooseFlag:'',
  2683. defaultValue:'',
  2684. maxValue:'',
  2685. minValue:'',
  2686. userId:'',
  2687. },
  2688. //设备点检项目分页新增 0315 rq ---end
  2689. }
  2690. },
  2691. components: {
  2692. comAddUpdateEamObject,/*新增或者修改的组件*/
  2693. Chooselist,
  2694. },
  2695. mounted () {
  2696. this.$nextTick(() => {
  2697. this.height = window.innerHeight / 2 - 30;
  2698. /*第二个表格高度的动态调整*/
  2699. this.secondHeight = window.innerHeight / 2 - 190;
  2700. })
  2701. },
  2702. created () {
  2703. this.getDataList();
  2704. },
  2705. methods: {
  2706. // 获取数据列表
  2707. getDataList () {
  2708. this.searchData.limit = this.pageSize
  2709. this.searchData.page = this.pageIndex
  2710. getEamObjectList(this.searchData).then(({data}) => {
  2711. if (data && data.code === 0) {
  2712. this.dataList = data.page.list;
  2713. this.pageIndex = data.page.currPage;
  2714. this.pageSize = data.page.pageSize;
  2715. this.totalPage = data.page.totalCount;
  2716. //判断是否全部存在数据
  2717. if(this.totalPage > 0){
  2718. //设置选中行
  2719. this.$refs.eamObjectTable.setCurrentRow(this.dataList[0]);
  2720. this.refreshCurrentTabTable();//加载当前的页签的table
  2721. }
  2722. }
  2723. this.dataListLoading = false;
  2724. })
  2725. },
  2726. // 每页数
  2727. sizeChangeHandle (val) {
  2728. this.pageSize = val
  2729. this.pageIndex = 1
  2730. this.getDataList()
  2731. },
  2732. // 当前页
  2733. currentChangeHandle (val) {
  2734. this.pageIndex = val
  2735. this.getDataList()
  2736. },
  2737. // 列表表格选择替换
  2738. tabClick (tab, event) {
  2739. // 刷新列表数据
  2740. this.refreshCurrentTabTable()
  2741. },
  2742. // 刷新页签的table数据
  2743. refreshCurrentTabTable () {
  2744. // 区分不同的页签刷新不同的列表数据
  2745. if (this.activeTable == 'file_content') {
  2746. this.getFileContentData();
  2747. } else if (this.activeTable == 'device_part') {
  2748. this.getDevicePartData();
  2749. } else if (this.activeTable == 'check_item') {
  2750. this.getCheckItemData();
  2751. } else if (this.activeTable == 'check_plan') {
  2752. this.getCheckPlanData();
  2753. } else if (this.activeTable == 'maintenance_item') {
  2754. this.getMaintenanceItemData();
  2755. } else if (this.activeTable == 'maintenance_plan') {
  2756. this.getMaintenancePlanData();
  2757. } else if (this.activeTable == 'history_order') {
  2758. this.getHistoryOrderData();
  2759. } else if (this.activeTable == 'fault_behavior') {
  2760. this.getFaultBehaviorData();
  2761. }
  2762. },
  2763. //刷新派设备文档的列表
  2764. getFileContentData() {
  2765. let currentData = {orderRef2: this.currentRow.objectID};
  2766. getFileContentList(currentData).then(({data}) => {
  2767. //区分请求成功和失败的状况
  2768. if (data && data.code == 200) {
  2769. this.fileContentList = data.rows;
  2770. } else {
  2771. this.fileContentList = [];
  2772. }
  2773. });
  2774. },
  2775. //刷新派设备设备的备件的列表
  2776. getDevicePartData() {
  2777. getDevicePartList(this.currentRow).then(({data}) => {
  2778. //区分请求成功和失败的状况
  2779. if (data && data.code == 200) {
  2780. this.devicePartList = data.rows;
  2781. } else {
  2782. this.devicePartList = [];
  2783. }
  2784. });
  2785. },
  2786. //刷新派设备的点检项目的列表
  2787. getCheckItemData() {
  2788. let inData={
  2789. site:this.currentRow.site,
  2790. objectID:this.currentRow.objectID,
  2791. itemType:'A',
  2792. }
  2793. getObjectItemList(inData).then(({data}) => {
  2794. //区分请求成功和失败的状况
  2795. if (data && data.code == 0) {
  2796. this.checkItemList = data.rows;
  2797. } else {
  2798. this.checkItemList = [];
  2799. }
  2800. });
  2801. },
  2802. //刷新派设备的维保项目的列表
  2803. getMaintenanceItemData() {
  2804. let inData={
  2805. site:this.currentRow.site,
  2806. objectID:this.currentRow.objectID,
  2807. itemType:'B',
  2808. }
  2809. getObjectItemList(inData).then(({data}) => {
  2810. //区分请求成功和失败的状况
  2811. if (data && data.code == 0) {
  2812. this.maintenanceItemList = data.rows;
  2813. } else {
  2814. this.maintenanceItemList = [];
  2815. }
  2816. });
  2817. },
  2818. //刷新派设备的维保计划的列表
  2819. getMaintenancePlanData() {
  2820. let inData={
  2821. site:this.currentRow.site,
  2822. objectID:this.currentRow.objectID,
  2823. functionType:'B',
  2824. }
  2825. getWorkPlanDataWithObjectID(inData).then(({data}) => {
  2826. //区分请求成功和失败的状况
  2827. if (data && data.code == 0) {
  2828. this.maintenancePlanList = data.rows;
  2829. } else {
  2830. this.maintenancePlanList = [];
  2831. }
  2832. });
  2833. },
  2834. //刷新派设备的历史工单的列表
  2835. getHistoryOrderData() {
  2836. getHistoryOrderList(this.searchData).then(({data}) => {
  2837. //区分请求成功和失败的状况
  2838. if (data && data.code == 200) {
  2839. this.fileContentList = data.rows;
  2840. } else {
  2841. this.fileContentList = [];
  2842. }
  2843. });
  2844. },
  2845. //刷新派设备故障现象的列表
  2846. getFaultBehaviorData() {
  2847. let inData={
  2848. site:this.currentRow.site,
  2849. objectID:this.currentRow.objectID,
  2850. }
  2851. getDefectWithObject(inData).then(({data}) => {
  2852. //区分请求成功和失败的状况
  2853. if (data && data.code == 0) {
  2854. this.faultBehaviorList = data.rows;
  2855. } else {
  2856. this.faultBehaviorList = [];
  2857. }
  2858. });
  2859. },
  2860. /*新增设备清单定义的modal*/
  2861. addEamObjectModal(){
  2862. let currentData = {
  2863. site: this.$store.state.user.site,
  2864. createBy: this.$store.state.user.name,
  2865. objectID: '',
  2866. objectDesc: '',
  2867. locationID: '',
  2868. familyID: '',
  2869. groupID: '',
  2870. supplierID: '',
  2871. manufacturerID: '',
  2872. seqNo: '',
  2873. purchessDate: '',
  2874. active: 'Y',
  2875. addFlag: 'Y'
  2876. };
  2877. //打开组件 去做新增业务
  2878. this.$nextTick(() => {
  2879. this.$refs.comAddUpdateEamObject.init(currentData);
  2880. })
  2881. },
  2882. updateEamObjectModal(row){
  2883. let currentData = row;
  2884. currentData.addFlag = 'N';
  2885. //打开组件 去做新增业务
  2886. this.$nextTick(() => {
  2887. this.$refs.comAddUpdateEamObject.init(currentData);
  2888. })
  2889. },
  2890. // 删除
  2891. deleteEamObjectConfirm (row) {
  2892. this.$confirm('确定要删除当前设备?', '提示', {
  2893. confirmButtonText: '确定',
  2894. cancelButtonText: '取消',
  2895. type: 'warning'
  2896. }).then(() => {
  2897. deleteEamObject(row).then(({data}) => {
  2898. if (data && data.code === 200) {
  2899. this.getDataList()
  2900. this.$message({
  2901. message: '操作成功',
  2902. type: 'success',
  2903. duration: 1500,
  2904. onClose: () => {
  2905. }
  2906. })
  2907. } else {
  2908. this.$alert(data.msg, '错误', {
  2909. confirmButtonText: '确定'
  2910. })
  2911. }
  2912. })
  2913. }).catch(() => {
  2914. })
  2915. },
  2916. /*设置当前的行*/
  2917. setCurrentRow(row, column, event) {
  2918. this.currentRow = JSON.parse(JSON.stringify(row));
  2919. },
  2920. /*当前值发生变化的时候修改*/
  2921. changeCurrentRow(row, oldRow){
  2922. //判断是否是获取焦点的事件
  2923. if(row){
  2924. this.currentRow = JSON.parse(JSON.stringify(row));
  2925. this.eamObjectId = row.objectID;
  2926. this.uploadUrl = this.$http.adornUrl(`/api/sys/file/upload?token=${this.$cookie.get('token')}&folder=` + this.folder + `&objectId=` + this.eamObjectId);
  2927. //刷新当前页表
  2928. this.refreshCurrentTabTable();
  2929. }
  2930. },
  2931. //---------设备备件分页新增-------
  2932. spareSelectionChangeHandle(val){
  2933. this.spareSelectionList = val
  2934. },
  2935. addSpareModal(){
  2936. this.spareModalData={
  2937. site:this.currentRow.site,
  2938. objectID:this.currentRow.objectID,
  2939. objectDesc:this.currentRow.objectDesc,
  2940. partNo: '',
  2941. partDescription: '',
  2942. spareList:[],
  2943. }
  2944. this.getSpareSelectList();
  2945. this.spareModalFlag=true;
  2946. },
  2947. getSpareSelectList(){
  2948. let indata={
  2949. site: this.spareModalData.site,
  2950. partNo: this.spareModalData.partNo,
  2951. objectID:this.currentRow.objectID,
  2952. partDescription: this.spareModalData.partDescription,
  2953. }
  2954. getSpareSelectList(indata).then(({data})=>{
  2955. this.spareList=data.rows
  2956. }
  2957. )
  2958. },
  2959. //已经存在的对应关系的备件不可选
  2960. spareSelectFlag(row,index){
  2961. if(row.objectID!=null){
  2962. return false;
  2963. }else {
  2964. return true;
  2965. }
  2966. },
  2967. saveSparesData(){
  2968. if(this.spareSelectionList.length==0){
  2969. this.$alert('请勾选配件!', '错误', {
  2970. confirmButtonText: '确定'
  2971. })
  2972. return false
  2973. }
  2974. let inList=JSON.parse(JSON.stringify(this.spareSelectionList));
  2975. for (let i = 0; i <inList.length ; i++) {
  2976. inList[i].objectID=this.currentRow.objectID;
  2977. }
  2978. saveObjectSparesData(inList).then(({data}) => {
  2979. if (data && data.code === 0) {
  2980. this.spareModalFlag=false;
  2981. this. getDevicePartData()
  2982. this.$message({
  2983. message: '操作成功',
  2984. type: 'success',
  2985. duration: 1500,
  2986. onClose: () => {
  2987. }
  2988. })
  2989. } else {
  2990. this.$alert(data.msg, '错误', {
  2991. confirmButtonText: '确定'
  2992. })
  2993. }
  2994. })
  2995. },
  2996. copySelectionChangeHandle(val){
  2997. this.objectCopySelectionList = val
  2998. },
  2999. getObjectCopyList(){
  3000. getObjectList(this.spareCopyModalData).then(({data}) => {
  3001. this.objectCopyList = data.rows
  3002. for (let i = 0; i < this.objectCopyList.length; i++) {
  3003. //删除本设备 只能选其他的设备
  3004. if(this.objectCopyList[i].objectID==this.spareCopyModalData.oldObjectID){
  3005. this.objectCopyList.splice(i,1)
  3006. }
  3007. }
  3008. })
  3009. },
  3010. copySpares(){
  3011. this.spareCopyModalData={
  3012. site: this.$store.state.user.site,
  3013. objectID:'',
  3014. objectDesc:'',
  3015. familyID:'',
  3016. oldObjectID:this.currentRow.objectID,
  3017. oldObjectDesc:this.currentRow.objectDesc,
  3018. }
  3019. this.getObjectCopyList();
  3020. this.spareCopyModalFlag=true;
  3021. },
  3022. saveSpareCopyData(){
  3023. if(this.objectCopySelectionList.length==0){
  3024. this.$alert('请勾选配件!', '错误', {
  3025. confirmButtonText: '确定'
  3026. })
  3027. return false
  3028. }
  3029. this.$confirm(`复制会删除所选设备以前的数据,是否继续?`, '提示', {
  3030. confirmButtonText: '确定',
  3031. cancelButtonText: '取消',
  3032. type: 'warning'
  3033. }).then(() => {
  3034. let inList = JSON.parse(JSON.stringify(this.objectCopySelectionList));
  3035. for (let i = 0; i < inList.length; i++) {
  3036. inList[i].oldObjectID = this.currentRow.objectID;
  3037. }
  3038. copyObjectSparesData(inList).then(({data}) => {
  3039. if (data && data.code === 0) {
  3040. this.spareCopyModalFlag = false;
  3041. this.$message({
  3042. message: '操作成功',
  3043. type: 'success',
  3044. duration: 1500,
  3045. onClose: () => {
  3046. }
  3047. })
  3048. } else {
  3049. this.$alert(data.msg, '错误', {
  3050. confirmButtonText: '确定'
  3051. })
  3052. }
  3053. })
  3054. })
  3055. },
  3056. deleteObjectSpare(row){
  3057. this.$confirm(`确定进行删除操作?`, '提示', {
  3058. confirmButtonText: '确定',
  3059. cancelButtonText: '取消',
  3060. type: 'warning'
  3061. }).then(() => {
  3062. deleteResourceSpare(row).then(({data}) => {
  3063. if (data && data.code === 0) {
  3064. this.$message.success(data.msg)
  3065. this. getDevicePartData()
  3066. } else {
  3067. this.$message.error(data.msg)
  3068. }
  3069. })
  3070. })
  3071. },
  3072. //--------------点检计划---------------------
  3073. getCheckPlanData(){
  3074. let inData={
  3075. site:this.currentRow.site,
  3076. objectID:this.currentRow.objectID,
  3077. functionType:'A',
  3078. }
  3079. getWorkPlanDataWithObjectID(inData).then(({data}) => {
  3080. //区分请求成功和失败的状况
  3081. if (data && data.code === 0) {
  3082. this.checkPlanList = data.rows;
  3083. } else {
  3084. this.checkPlanList = [];
  3085. }
  3086. });
  3087. },
  3088. //--------------项目---------------------
  3089. addItemModal(type){
  3090. if(type=='A'){
  3091. this.updateItemLabel={
  3092. itemDescLabel:'点检项目名称',
  3093. itemRemarkLabel:'点检方法说明',
  3094. }
  3095. }else {
  3096. this.updateItemLabel={
  3097. itemDescLabel:'维保项目名称',
  3098. itemRemarkLabel:'维保方法说明',
  3099. }
  3100. }
  3101. this.updateItemModal={
  3102. flag:'0',
  3103. site:this.currentRow.site,
  3104. objectID:this.currentRow.objectID,
  3105. itemNo:'',
  3106. itemDesc:'',
  3107. itemType:type,
  3108. valueTypeDb:'T',
  3109. itemRemark:'',
  3110. valueChooseFlag:'',
  3111. defaultValue:'',
  3112. maxValue:'',
  3113. minValue:'',
  3114. userId:this.$store.state.user.name,
  3115. }
  3116. this.updateItemModalFlag=true;
  3117. },
  3118. updateObjectItem(row){
  3119. if(row.itemType=='A'){
  3120. this.updateItemLabel={
  3121. itemDescLabel:'点检项目名称',
  3122. itemRemarkLabel:'点检方法说明',
  3123. }
  3124. }else {
  3125. this.updateItemLabel={
  3126. itemDescLabel:'维保项目名称',
  3127. itemRemarkLabel:'维保方法说明',
  3128. }
  3129. }
  3130. this.updateItemModal={
  3131. flag:'1',
  3132. site:this.currentRow.site,
  3133. objectID:this.currentRow.objectID,
  3134. itemNo:row.itemNo,
  3135. itemDesc:row.itemDesc,
  3136. itemType:row.itemType,
  3137. valueTypeDb:row.valueTypeDb,
  3138. itemRemark:row.itemRemark,
  3139. valueChooseFlag:row.valueChooseFlag,
  3140. defaultValue:row.defaultValue,
  3141. maxValue:row.maxValue,
  3142. minValue:row.minValue,
  3143. userId:this.$store.state.user.name,
  3144. }
  3145. this.updateItemModalFlag=true;
  3146. },
  3147. saveItemsData(){
  3148. console.log(this.updateItemModal)
  3149. if (this.updateItemModal.itemNo == '' || this.updateItemModal.itemNo == null) {
  3150. this.$alert('请选择项目编码!', '错误', {
  3151. confirmButtonText: '确定'
  3152. })
  3153. return false
  3154. }
  3155. saveObjectItemData(this.updateItemModal).then(({data}) => {
  3156. if (data && data.code == '0') {
  3157. if(this.updateItemModal.itemType=='A'){
  3158. this.getCheckItemData();
  3159. }else {
  3160. this.getMaintenanceItemData();
  3161. }
  3162. this.updateItemModalFlag=false
  3163. this.$message({
  3164. message: '操作成功',
  3165. type: 'success',
  3166. duration: 1500,
  3167. onClose: () => {
  3168. }
  3169. })
  3170. } else {
  3171. this.$alert(data.msg, '错误', {
  3172. confirmButtonText: '确定'
  3173. })
  3174. }
  3175. })
  3176. },
  3177. deleteObjectItem(row){
  3178. this.$confirm(`是否删除这个项目?`, '提示', {
  3179. confirmButtonText: '确定',
  3180. cancelButtonText: '取消',
  3181. type: 'warning'
  3182. }).then(() => {
  3183. deleteObjectItem(row).then(({data}) => {
  3184. if (data && data.code === 0) {
  3185. if(row.itemType=='A'){
  3186. this.getCheckItemData();
  3187. }else {
  3188. this.getMaintenanceItemData();
  3189. }
  3190. this.$message({
  3191. message: '操作成功',
  3192. type: 'success',
  3193. duration: 1500,
  3194. onClose: () => {
  3195. }
  3196. })
  3197. } else {
  3198. this.$alert(data.msg, '错误', {
  3199. confirmButtonText: '确定'
  3200. })
  3201. }
  3202. })
  3203. }).catch(() => {
  3204. })
  3205. },
  3206. // 获取基础数据列表S
  3207. getBaseList (val,type) {
  3208. this.tagNo = val
  3209. this.$nextTick(() => {
  3210. let strVal = ''
  3211. if (val === 1024) {
  3212. strVal = this.updateItemModal.itemNo
  3213. this.$refs.baseList.init(val, strVal)
  3214. }
  3215. if (val === 1025) {
  3216. strVal = this.updateItemModal.itemNo
  3217. this.$refs.baseList.init(val, strVal)
  3218. }
  3219. if (val === 201) {
  3220. strVal = this.modalData.operator
  3221. this.$refs.baseList.init(val, strVal)
  3222. }
  3223. })
  3224. },
  3225. /* 列表方法的回调 */
  3226. getBaseData (val) {
  3227. if (this.tagNo === 1024) {
  3228. this.updateItemModal.itemNo = val.ItemNo
  3229. this.itemNoBlur('A')
  3230. }
  3231. if (this.tagNo === 1025) {
  3232. this.updateItemModal.itemNo = val.ItemNo
  3233. this.itemNoBlur('B')
  3234. }
  3235. if (this.tagNo === 201) {
  3236. this.modalData.operator = val.AdminID
  3237. }
  3238. },
  3239. itemNoBlur(type){
  3240. let inData={
  3241. itemType:type,
  3242. itemNo:this.updateItemModal.itemNo
  3243. }
  3244. eamPropertiesItemSearch(inData).then(({data}) => {
  3245. if(data.rows.length>0){
  3246. this.updateItemModal.itemDesc=data.rows[0].itemDesc
  3247. this.updateItemModal.valueTypeDb=data.rows[0].valueTypeDb
  3248. this.updateItemModal.itemRemark=data.rows[0].itemRemark
  3249. this.updateItemModal.valueChooseFlag=data.rows[0].valueChooseFlag
  3250. this.updateItemModal.defaultValue=data.rows[0].defaultValue
  3251. this.updateItemModal.maxValue=data.rows[0].maxValue
  3252. this.updateItemModal.minValue=data.rows[0].minValue
  3253. }else {
  3254. this.detailData.itemDesc=''
  3255. }
  3256. })
  3257. },
  3258. }
  3259. }
  3260. </script>
  3261. <style scoped lang="scss">
  3262. /deep/ .customer-tab .el-tabs__content {
  3263. padding: 0px !important;
  3264. }
  3265. /*修改上传图标的样式*/
  3266. .el-upload-dragger .el-icon-upload {
  3267. font-size: 36px;
  3268. color: #c0c4cc;
  3269. margin: 10px 10px;
  3270. line-height: 20px;
  3271. }
  3272. /*修改上传框的样式*/
  3273. /deep/ .customer-upload .el-upload-dragger {
  3274. background-color: #fff;
  3275. border: 1px dashed #d9d9d9;
  3276. border-radius: 6px;
  3277. -webkit-box-sizing: border-box;
  3278. box-sizing: border-box;
  3279. margin-left: 10px;
  3280. width: 240px;
  3281. height: 42px;
  3282. text-align: left;
  3283. position: relative;
  3284. overflow: hidden;
  3285. }
  3286. /*修改上传文字的样式*/
  3287. .customer-upload .el-upload__text{
  3288. margin-top: -32px;
  3289. margin-left: 40px;
  3290. }
  3291. </style>