plm前端
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.

5000 lines
202 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
8 months ago
8 months ago
2 years ago
11 months ago
8 months ago
11 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
8 months ago
8 months ago
2 years ago
11 months ago
8 months ago
11 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
8 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
8 months ago
8 months ago
8 months ago
2 years ago
11 months ago
8 months ago
11 months ago
2 years ago
2 years ago
2 years ago
2 years ago
8 months ago
8 months ago
8 months ago
8 months ago
2 years ago
9 months ago
12 months ago
12 months ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
8 months ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
11 months ago
8 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12 months ago
2 years ago
2 years ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
9 months ago
2 years ago
2 years ago
2 years ago
9 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
2 years ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
12 months ago
11 months ago
2 years ago
2 years ago
2 years ago
12 months ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
11 months ago
8 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
11 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="mod-config">
  3. <!-- 查询条件 -->
  4. <el-form :inline="true" label-position="top" :model="searchData">
  5. <el-form-item label="BU">
  6. <el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 130px">
  7. <el-option
  8. v-for = "i in buList"
  9. :key = "i.buNo"
  10. :label = "i.buNo"
  11. :value = "i.buNo">
  12. </el-option>
  13. </el-select>
  14. </el-form-item>
  15. <el-form-item label="申请编码">
  16. <el-input v-model="searchData.changeNo" clearable style="width: 120px"></el-input>
  17. </el-form-item>
  18. <el-form-item label="变更单状态">
  19. <el-select v-model="searchData.changeStatus" clearable style="width: 100px">
  20. <el-option label="草稿" value="草稿"></el-option>
  21. <el-option label="审批中" value="审批中"></el-option>
  22. <el-option label="已完成" value="已完成"></el-option>
  23. </el-select>
  24. </el-form-item>
  25. <el-form-item :label="' '">
  26. <el-button v-if="authSearch" @click="getDataList">查询</el-button>
  27. <download-excel
  28. :fields="fields()"
  29. :data="exportData"
  30. type="xls"
  31. :name="exportName"
  32. :header="exportHeader"
  33. :footer="exportFooter"
  34. :fetch="createExportData"
  35. :before-generate="startDownload"
  36. :before-finish="finishDownload"
  37. worksheet="导出信息"
  38. class="el-button el-button--primary el-button--medium">
  39. {{ "导出" }}
  40. </download-excel>
  41. </el-form-item>
  42. </el-form>
  43. <!-- 变更记录列表 -->
  44. <el-table
  45. :height="height"
  46. :data="dataList"
  47. border
  48. :row-style="rowStyle"
  49. ref="changeTable"
  50. @row-click="changeClickRow"
  51. @current-change="currentChange"
  52. style="width: 100%;">
  53. <el-table-column
  54. v-for="(item,index) in columnList" :key="index"
  55. :sortable="item.columnSortable"
  56. :prop="item.columnProp"
  57. :header-align="item.headerAlign"
  58. :show-overflow-tooltip="item.showOverflowTooltip"
  59. :align="item.align"
  60. :fixed="item.fixed === ''?false:item.fixed"
  61. :min-width="item.columnWidth"
  62. :label="item.columnLabel">
  63. <template slot-scope="scope">
  64. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  65. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column
  69. fixed="right"
  70. header-align="center"
  71. align="center"
  72. width="100"
  73. label="操作">
  74. <template slot-scope="scope">
  75. <el-link v-if="authUpdate && scope.row.changeStatus !== '已完成'" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
  76. <el-link v-if="authIssue && scope.row.changeStatus === '草稿'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link>
  77. </template>
  78. </el-table-column>
  79. </el-table>
  80. <!-- 分页插件 -->
  81. <el-pagination style="margin-top: 0px"
  82. @size-change="sizeChangeHandle"
  83. @current-change="currentChangeHandle"
  84. :current-page="pageIndex"
  85. :page-sizes="[20, 50, 100, 200, 500]"
  86. :page-size="pageSize"
  87. :total="totalPage"
  88. layout="total, sizes, prev, pager, next, jumper">
  89. </el-pagination>
  90. <!-- 变更单模态框 -->
  91. <el-dialog :title="changeTitle" :close-on-click-modal="false" top="10vh" v-drag :visible.sync="modalFlag" width="1060px" :showClose="false">
  92. <el-tabs tab-position="left" type="border-card" v-model="activeName" @tab-click="refreshChangeTab" style="width: 100%;height: 720px;">
  93. <el-tab-pane label="基本信息" name="basicInformation">
  94. <div style="height: 675px">
  95. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
  96. <el-form-item prop="applicantId" :rules="rules.applicantId">
  97. <span v-if="changeRequestFlag('applicantId') === 'N'" slot="label">申请人/Applicant</span>
  98. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 1)"><a herf="#">申请人/Applicant</a></span>
  99. <el-input v-model="modalData.applicantId" @blur="applicantBlur(103)" :disabled="changeRequestFlag('applicantId') === 'N'" style="width: 120px"></el-input>
  100. <el-input v-model="modalData.applicantName" disabled style="width: 293px"></el-input>
  101. </el-form-item>
  102. <el-form-item label="申请部门/Department">
  103. <el-input v-model="modalData.applicationDepartmentId" disabled style="width: 120px"></el-input>
  104. <el-input v-model="modalData.applicationDepartmentName" disabled style="width: 293px"></el-input>
  105. </el-form-item>
  106. </el-form>
  107. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  108. <el-form-item label="申请日期/Apply Date" prop="applyDate" :rules="rules.applyDate">
  109. <el-date-picker
  110. :disabled="changeRequestFlag('applyDate') === 'N'"
  111. style="width: 205px"
  112. v-model="modalData.applyDate"
  113. type="date"
  114. value-format="yyyy-MM-dd"
  115. placeholder="请选择日期"
  116. :editable=false>
  117. </el-date-picker>
  118. </el-form-item>
  119. <!-- <el-form-item label="ECN变更影响" prop="changeImpact" :rules="rules.changeImpact">-->
  120. <!-- <dict-data-select v-model="modalData.changeImpact" :disabled="changeRequestFlag('changeImpact') === 'N'" style="width: 205px" dict-type="change_change_Impact"></dict-data-select>-->
  121. <!-- </el-form-item>-->
  122. <el-form-item label="变更影响描述/Description" prop="changeImpactDesc">
  123. <el-input v-model="modalData.changeImpactDesc" :disabled="changeRequestFlag('changeImpactDesc') === 'N'" style="width: 629px"></el-input>
  124. </el-form-item>
  125. </el-form>
  126. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  127. <el-form-item label="ECN阶段/Stage" prop="ecnStage" :rules="rules.ecnStage">
  128. <dict-data-select v-model="modalData.ecnStage" :disabled="changeRequestFlag('ecnStage') === 'N'" style="width: 95px" dict-type="change_ecn_stage"></dict-data-select>
  129. </el-form-item>
  130. <el-form-item label="变更类别/Change Category" prop="changeType" :rules="rules.changeType">
  131. <dict-data-select v-model="modalData.changeType" :disabled="changeRequestFlag('changeType') === 'N'" style="width: 160px" dict-type="change_change_type"></dict-data-select>
  132. </el-form-item>
  133. <el-form-item label="ECN种类/ECN Category" prop="ecnType" :rules="rules.ecnType">
  134. <dict-data-select v-model="modalData.ecnType" :disabled="changeRequestFlag('ecnType') === 'N'" style="width: 160px" dict-type="change_ecn_type"></dict-data-select>
  135. </el-form-item>
  136. <el-form-item label=" " style="margin-left: -10px">
  137. <el-button :disabled="changeRequestFlag('ecnType') === 'N'" type="primary" @click="chooseEcnTypeModal" style="width: 70px">ECN种类</el-button>
  138. </el-form-item>
  139. <el-form-item label="变更生效日期/Change Effictive Date" prop="changePhaseInDate" :rules="rules.changePhaseInDate" style="margin-left: -10px">
  140. <el-date-picker
  141. :disabled="changeRequestFlag('changePhaseInDate') === 'N'"
  142. style="width: 205px"
  143. v-model="modalData.changePhaseInDate"
  144. type="date"
  145. value-format="yyyy-MM-dd"
  146. placeholder="请选择日期"
  147. :editable=false>
  148. </el-date-picker>
  149. </el-form-item>
  150. <!-- <el-form-item label="印刷方式" prop="printing" :rules="rules.printing">-->
  151. <!-- <dict-data-select v-model="modalData.printing" style="width: 205px" dict-type="change_printing"></dict-data-select>-->
  152. <!-- </el-form-item>-->
  153. <el-form-item label="是否DF产品/DF(Y/N)" prop="dfIsProduct" :rules="rules.dfIsProduct">
  154. <dict-data-select v-model="modalData.dfIsProduct" :disabled="changeRequestFlag('dfIsProduct') === 'N'" style="width: 108px" dict-type="change_df_is_product"></dict-data-select>
  155. </el-form-item>
  156. </el-form>
  157. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  158. <el-form-item prop="tpEngineerId" :rules="rules.tpEngineerId">
  159. <span v-if="changeRequestFlag('tpEngineerId') === 'N'" slot="label">TP工程师/TP Engineer</span>
  160. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2005)"><a herf="#">TP工程师</a></span>
  161. <el-input v-model="modalData.tpEngineerId" @blur="tpEngineerBlur(2005)" :disabled="changeRequestFlag('tpEngineerId') === 'N'" style="width: 120px"></el-input>
  162. <el-input v-model="modalData.tpEngineerName" disabled style="width: 293px"></el-input>
  163. </el-form-item>
  164. <el-form-item label=" " :required="modalData.dfIsProduct === 'I'" prop="industrialEngineerId" :show-message="false">
  165. <span v-if="changeRequestFlag('industrialEngineerId') === 'N'" slot="label">关务人员/Customs</span>
  166. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2006)"><a herf="#">关务人员/Customs</a></span>
  167. <el-input v-model="modalData.industrialEngineerId" @blur="industrialEngineerBlur(2006)" :disabled="changeRequestFlag('industrialEngineerId') === 'N'" style="width: 120px"></el-input>
  168. <el-input v-model="modalData.industrialEngineerName" disabled style="width: 293px"></el-input>
  169. </el-form-item>
  170. <!-- <el-form-item label="制造成本是否变更" prop="manufacturingCostIsChange" :rules="rules.manufacturingCostIsChange">-->
  171. <!-- <dict-data-select v-model="modalData.manufacturingCostIsChange" style="width: 205px" dict-type="change_manufacturing_cost_is_change"></dict-data-select>-->
  172. <!-- </el-form-item>-->
  173. </el-form>
  174. <el-form :inline="true" label-position="top" :model="modalData">
  175. <el-form-item label=" ">
  176. <span v-if="changeRequestFlag('cqcOperatorId') === 'N'" slot="label">质检人员/CQC</span>
  177. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2007)"><a herf="#">质检人员/CQC</a></span>
  178. <el-input v-model="modalData.cqcOperatorId" @blur="cqcOperatorBlur(2007)" :disabled="changeRequestFlag('cqcOperatorId') === 'N'" style="width: 120px"></el-input>
  179. <el-input v-model="modalData.cqcOperatorName" disabled style="width: 293px"></el-input>
  180. </el-form-item>
  181. <el-form-item label=" ">
  182. <span v-if="changeRequestFlag('faiOperatorId') === 'N'" slot="label">首件检测/FAI</span>
  183. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2008)"><a herf="#">首件检测/FAI</a></span>
  184. <el-input v-model="modalData.faiOperatorId" @blur="faiOperatorBlur(2008)" :disabled="changeRequestFlag('faiOperatorId') === 'N'" style="width: 120px"></el-input>
  185. <el-input v-model="modalData.faiOperatorName" disabled style="width: 293px"></el-input>
  186. </el-form-item>
  187. </el-form>
  188. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  189. <el-form-item label="变更要求描述/Requirements Desc." prop="changeRequestDesc" :rules="rules.changeRequestDesc">
  190. <el-input type="textarea" v-model="modalData.changeRequestDesc" :disabled="changeRequestFlag('changeRequestDesc') === 'N'" :rows="3" resize='none' show-word-limit style="width: 636px;height: 30px"></el-input>
  191. </el-form-item>
  192. <!-- <el-form-item label="是否重新报价" prop="isReQuote" :rules="rules.isReQuote">-->
  193. <!-- <dict-data-select v-model="modalData.isReQuote" style="width: 205px" dict-type="change_is_re_quote"></dict-data-select>-->
  194. <!-- </el-form-item>-->
  195. <el-form-item label="印刷方式/Print Type" prop="printing" :rules="rules.printing">
  196. <dict-data-select v-model="modalData.printing" :disabled="changeRequestFlag('printing') === 'N'" style="width: 198px" dict-type="change_printing"></dict-data-select>
  197. </el-form-item>
  198. </el-form>
  199. <!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: 50px">-->
  200. <!-- <el-form-item label="原产品是否UL认证要求" prop="ulCertificationRequirements" :rules="rules.ulCertificationRequirements">-->
  201. <!-- <dict-data-select v-model="modalData.ulCertificationRequirements" style="width: 423px" dict-type="change_ul_certification_requirements"></dict-data-select>-->
  202. <!-- </el-form-item>-->
  203. <!-- <el-form-item label="如果有,变更后能否继续满足此需求" prop="ulContinueToMeetDemand" :rules="rules.ulContinueToMeetDemand">-->
  204. <!-- <dict-data-select v-model="modalData.ulContinueToMeetDemand" style="width: 423px" dict-type="change_ul_continue_to_meet_demand"></dict-data-select>-->
  205. <!-- </el-form-item>-->
  206. <!-- </el-form>-->
  207. <!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">-->
  208. <!-- <el-form-item label="原产品是否GP要求" prop="gpCertificationRequirements" :rules="rules.gpCertificationRequirements">-->
  209. <!-- <dict-data-select v-model="modalData.gpCertificationRequirements" style="width: 423px" dict-type="change_gp_certification_requirements"></dict-data-select>-->
  210. <!-- </el-form-item>-->
  211. <!-- <el-form-item label="如果有,变更后能否继续满足此需求" prop="gpContinueToMeetDemand" :rules="rules.gpContinueToMeetDemand">-->
  212. <!-- <dict-data-select v-model="modalData.gpContinueToMeetDemand" style="width: 423px" dict-type="change_gp_continue_to_meet_demand"></dict-data-select>-->
  213. <!-- </el-form-item>-->
  214. <!-- </el-form>-->
  215. <el-form :inline="true" label-position="top" style="margin-top: 50px">
  216. <el-button type="primary" @click="addChangeDetail">新增</el-button>
  217. <div class="rq">
  218. <el-table
  219. :data="chooseDataList"
  220. height="320px"
  221. border
  222. style="width:100%">
  223. <!-- <el-table-column-->
  224. <!-- v-for="(item,index) in columnChooseDataList" :key="index"-->
  225. <!-- :sortable="item.columnSortable"-->
  226. <!-- :prop="item.columnProp"-->
  227. <!-- :header-align="item.headerAlign"-->
  228. <!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
  229. <!-- :align="item.align"-->
  230. <!-- :fixed="item.fixed == ''?false:item.fixed"-->
  231. <!-- :min-width="item.columnWidth"-->
  232. <!-- :label="item.columnLabel">-->
  233. <!-- <template slot-scope="scope">-->
  234. <!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>-->
  235. <!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
  236. <!-- </template>-->
  237. <!-- </el-table-column>-->
  238. <el-table-column label="PLM物料编码" header-align="center">
  239. <el-table-column
  240. prop="plmPartNo"
  241. header-align="center"
  242. align="left"
  243. min-width="120"
  244. label="PLM Part No.">
  245. </el-table-column>
  246. </el-table-column>
  247. <el-table-column label="IFS物料编码" header-align="center">
  248. <el-table-column
  249. prop="ifsPartNo"
  250. header-align="center"
  251. align="left"
  252. min-width="120"
  253. label="IFS Part No.">
  254. </el-table-column>
  255. </el-table-column>
  256. <el-table-column label="物料名称" header-align="center">
  257. <el-table-column
  258. prop="partDesc"
  259. header-align="center"
  260. align="left"
  261. min-width="180"
  262. label="Part Desc.">
  263. </el-table-column>
  264. </el-table-column>
  265. <el-table-column label="图纸编码" header-align="center">
  266. <el-table-column
  267. prop="drawingNo"
  268. header-align="center"
  269. align="center"
  270. min-width="100"
  271. label="Drawing No.">
  272. </el-table-column>
  273. </el-table-column>
  274. <el-table-column label="图稿编码" header-align="center">
  275. <el-table-column
  276. prop="draftNo"
  277. header-align="center"
  278. align="center"
  279. min-width="100"
  280. label="Proof No.">
  281. </el-table-column>
  282. </el-table-column>
  283. <el-table-column label="IFS料号" header-align="center">
  284. <el-table-column
  285. prop=""
  286. header-align="center"
  287. align="center"
  288. min-width="170"
  289. label="New IFS Part No.">
  290. <template slot-scope="scope">
  291. <el-input :disabled="changeRequestDetailFlag('newPartNo') === 'N'" @input="(val)=>partInput(scope.row, val)" :ref="`newPartNo${scope.$index}`" v-model="scope.row.newPartNo" @keyup.enter.native="focusNextInput(scope.$index, 'newPartNo')" style="width:77%"></el-input>
  292. <el-button :disabled="changeRequestDetailFlag('newPartNo') === 'N'" type="primary" @click="choosePartNo(scope.row)" style="width:18%;padding: 3px 7px">·&nbsp;·&nbsp;·</el-button>
  293. </template>
  294. </el-table-column>
  295. </el-table-column>
  296. <el-table-column label="新图纸编码" header-align="center">
  297. <el-table-column
  298. prop=""
  299. header-align="center"
  300. align="center"
  301. min-width="110"
  302. label="New Drawing No.">
  303. <template slot-scope="scope">
  304. <el-input :disabled="changeRequestDetailFlag('newDrawingNo') === 'N'" :ref="`newDrawingNo${scope.$index}`" v-model="scope.row.newDrawingNo" @keyup.enter.native="focusNextInput(scope.$index, 'newDrawingNo')" style="width:98%"></el-input>
  305. </template>
  306. </el-table-column>
  307. </el-table-column>
  308. <el-table-column label="新图稿编码" header-align="center">
  309. <el-table-column
  310. prop=""
  311. header-align="center"
  312. align="center"
  313. min-width="100"
  314. label="New Proof No.">
  315. <template slot-scope="scope">
  316. <el-input :disabled="changeRequestDetailFlag('newDraftNo') === 'N'" :ref="`newDraftNo${scope.$index}`" v-model="scope.row.newDraftNo" @keyup.enter.native="focusNextInput(scope.$index, 'newDraftNo')" style="width:98%"></el-input>
  317. </template>
  318. </el-table-column>
  319. </el-table-column>
  320. <el-table-column
  321. fixed="right"
  322. header-align="center"
  323. align="center"
  324. width="60"
  325. label="操作">
  326. <template slot-scope="scope">
  327. <el-link style="cursor: pointer" @click="deleteChooseDataModal(scope.row)">删除</el-link>
  328. </template>
  329. </el-table-column>
  330. </el-table>
  331. </div>
  332. </el-form>
  333. </div>
  334. <el-footer style="height:25px;text-align:center">
  335. <template v-if="modalData.changeStatus === '草稿' || (modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2) && modalData.changeStatus === '审批中')">
  336. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  337. </template>
  338. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  339. <template v-if="modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2)">
  340. <template v-if="authSubmit">
  341. <el-button v-if="modalData.changeStatus === '审批中' && modalData.tpProcessControl !== 'Y' && modalData.csProcessControl !== 'Y'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  342. </template>
  343. <template v-if="authReject">
  344. <el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  345. </template>
  346. </template>
  347. </el-footer>
  348. </el-tab-pane>
  349. <el-tab-pane label="库存成本影响" name="inventoryCostImpact">
  350. <div style="height: 675px">
  351. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: -5px;">
  352. <el-form-item style="margin-top: 7px;width: 155px">
  353. <el-checkbox :disabled="changeCostImpactFlag('productionProductFlag') === 'N'" v-model="costImpactData.productionProductFlag" true-label="Y">在制品<br>On-line product</el-checkbox>
  354. </el-form-item>
  355. <el-form-item style="margin-left: 50px" label="数量/Qty.">
  356. <el-input class="inlineNumber numInput" v-model="costImpactData.productionProductNumber" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductNumber') === 'N'" type="number" style="width: 100px"></el-input>
  357. </el-form-item>
  358. <el-form-item label="处理意见/Disposition">
  359. <!-- <dict-data-select v-model="costImpactData.productionProductOpinions" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductOpinions') === 'N'" style="width: 200px" dict-type="change_production_product_opinions"></dict-data-select>-->
  360. <el-input v-model="costImpactData.productionProductOpinions" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductOpinions') === 'N'" style="width: 200px"></el-input>
  361. </el-form-item>
  362. <el-form-item label="报废金额/Scrap Amount">
  363. <el-input class="inlineNumber numInput" v-model="costImpactData.productionProductScrapAmount" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductScrapAmount') === 'N'" @input="handleInput(costImpactData.productionProductScrapAmount,1)" type="number" style="width: 140px"></el-input>
  364. </el-form-item>
  365. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  366. <!-- <el-input v-model="costImpactData.productionProductRemark" :disabled="costImpactData.productionProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  367. <!-- </el-form-item>-->
  368. <el-form-item>
  369. <span v-if="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductExecutor') === 'N'" slot="label">执行人/Executor</span>
  370. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 3)"><a herf="#">执行人/Executor</a></span>
  371. <el-input v-model="costImpactData.productionProductExecutorName" readonly :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductExecutor') === 'N'" style="width: 130px"></el-input>
  372. </el-form-item>
  373. </el-form>
  374. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  375. <el-form-item style="margin-top: 7px;width: 155px">
  376. <el-checkbox :disabled="changeCostImpactFlag('inventoryProductFlag') === 'N'" v-model="costImpactData.inventoryProductFlag" true-label="Y">成品库存<br>FG Stock</el-checkbox>
  377. </el-form-item>
  378. <el-form-item style="margin-left: 50px" label="数量/Qty.">
  379. <el-input class="inlineNumber numInput" v-model="costImpactData.inventoryProductNumber" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductNumber') === 'N'" type="number" style="width: 100px"></el-input>
  380. </el-form-item>
  381. <el-form-item label="处理意见/Disposition">
  382. <!-- <dict-data-select v-model="costImpactData.inventoryProductOpinions" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductOpinions') === 'N'" style="width: 200px" dict-type="change_inventory_product_opinions"></dict-data-select>-->
  383. <el-input v-model="costImpactData.inventoryProductOpinions" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductOpinions') === 'N'" style="width: 200px"></el-input>
  384. </el-form-item>
  385. <el-form-item label="报废金额/Scrap Amount">
  386. <el-input class="inlineNumber numInput" v-model="costImpactData.inventoryProductScrapAmount" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductScrapAmount') === 'N'" @input="handleInput(costImpactData.inventoryProductScrapAmount,2)" type="number" style="width: 140px"></el-input>
  387. </el-form-item>
  388. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  389. <!-- <el-input v-model="costImpactData.inventoryProductRemark" :disabled="costImpactData.inventoryProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  390. <!-- </el-form-item>-->
  391. <el-form-item>
  392. <span v-if="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductExecutor') === 'N'" slot="label">执行人/Executor</span>
  393. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 4)"><a herf="#">执行人/Executor</a></span>
  394. <el-input v-model="costImpactData.inventoryProductExecutorName" readonly :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductExecutor') === 'N'" style="width: 130px"></el-input>
  395. </el-form-item>
  396. </el-form>
  397. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  398. <el-form-item style="margin-top: 7px;width: 155px">
  399. <el-checkbox :disabled="changeCostImpactFlag('newOrderFlag') === 'N'" v-model="costImpactData.newOrderFlag" true-label="Y">新订单<br>New Order</el-checkbox>
  400. </el-form-item>
  401. <el-form-item style="margin-left: 50px" label="数量/Qty.">
  402. <el-input class="inlineNumber numInput" v-model="costImpactData.newOrderNumber" :disabled="costImpactData.newOrderFlag !== 'Y' || changeCostImpactFlag('newOrderNumber') === 'N'" type="number" style="width: 100px"></el-input>
  403. </el-form-item>
  404. </el-form>
  405. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  406. <el-form-item style="margin-top: 7px;width: 155px">
  407. <el-checkbox :disabled="changeCostImpactFlag('affectedFlag') === 'N'" v-model="costImpactData.affectedFlag" true-label="Y">影响的原材料及其库存量<br>Raw material influencing and stock</el-checkbox>
  408. </el-form-item>
  409. <el-form-item style="margin-left: 50px" label="数量/Qty.">
  410. <el-input class="inlineNumber numInput" v-model="costImpactData.affectedNumber" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedNumber') === 'N'" type="number" style="width: 100px"></el-input>
  411. </el-form-item>
  412. <el-form-item label="处理意见/Disposition">
  413. <!-- <dict-data-select v-model="costImpactData.affectedOpinions" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedOpinions') === 'N'" style="width: 200px" dict-type="change_affected_opinions"></dict-data-select>-->
  414. <el-input v-model="costImpactData.affectedOpinions" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedOpinions') === 'N'" style="width: 200px"></el-input>
  415. </el-form-item>
  416. <el-form-item label="报废金额/Scrap Amount">
  417. <el-input class="inlineNumber numInput" v-model="costImpactData.affectedScrapAmount" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedScrapAmount') === 'N'" @input="handleInput(costImpactData.affectedScrapAmount,3)" type="number" style="width: 140px"></el-input>
  418. </el-form-item>
  419. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  420. <!-- <el-input v-model="costImpactData.affectedRemark" :disabled="costImpactData.affectedFlag !== 'Y'" style="width: 300px"></el-input>-->
  421. <!-- </el-form-item>-->
  422. <el-form-item>
  423. <span v-if="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedExecutor') === 'N'" slot="label">执行人/Executor</span>
  424. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 5)"><a herf="#">执行人/Executor</a></span>
  425. <el-input v-model="costImpactData.affectedExecutorName" readonly :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedExecutor') === 'N'" style="width: 130px"></el-input>
  426. </el-form-item>
  427. </el-form>
  428. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  429. <el-form-item label="ECN变更总成本/Total ECN Cost">
  430. <el-input class="inlineNumber numInput" v-model="totalCost" type="number" readonly style="width: 205px"></el-input>
  431. </el-form-item>
  432. <el-form-item label="备注/Remark">
  433. <el-input v-model="costImpactData.remark" :disabled="changeCostImpactFlag('remark') === 'N'" style="width: 611px"></el-input>
  434. </el-form-item>
  435. </el-form>
  436. </div>
  437. <el-footer style="height:25px;text-align:center">
  438. <template v-if="modalData.changeStatus === '草稿' || (modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2) && modalData.changeStatus === '审批中')">
  439. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  440. </template>
  441. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  442. <template v-if="modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2)">
  443. <template v-if="authSubmit">
  444. <el-button v-if="modalData.changeStatus === '审批中' && modalData.tpProcessControl !== 'Y' && modalData.csProcessControl !== 'Y'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  445. </template>
  446. <template v-if="authReject">
  447. <el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  448. </template>
  449. </template>
  450. </el-footer>
  451. </el-tab-pane>
  452. <el-tab-pane label="TP&执行信息" name="actionInformation">
  453. <div style="height: 670px">
  454. <el-button type="primary" @click="chooseFeasibilityAssessmentModel">选择评估信息</el-button>
  455. <div class="rq">
  456. <el-table
  457. :data="chooseItemList2"
  458. height="230px"
  459. border
  460. style="width: 100%">
  461. <el-table-column
  462. v-for="(item,index) in columnChooseItemList2" :key="index"
  463. :sortable="item.columnSortable"
  464. :prop="item.columnProp"
  465. :header-align="item.headerAlign"
  466. :show-overflow-tooltip="item.showOverflowTooltip"
  467. :align="item.align"
  468. :fixed="item.fixed == ''?false:item.fixed"
  469. :min-width="item.columnWidth"
  470. :label="item.columnLabel">
  471. <template slot-scope="scope">
  472. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  473. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  474. </template>
  475. </el-table-column>
  476. <el-table-column
  477. header-align="center"
  478. align="center"
  479. min-width="60"
  480. label="可选值">
  481. <template slot-scope="scope">
  482. <el-select :disabled="changeFAItemFlag('chooseValue') === 'N'" v-model="scope.row.chooseValue" placeholder="请选择">
  483. <el-option v-for="item in scope.row.availableValueList" :key="item.availableValue" :label="item.availableValue" :value="item.availableValue"></el-option>
  484. </el-select>
  485. </template>
  486. </el-table-column>
  487. <el-table-column
  488. header-align="center"
  489. align="center"
  490. min-width="120"
  491. label="备注">
  492. <template slot-scope="scope">
  493. <el-input :disabled="changeFAItemFlag('itemRemark') === 'N'" v-model="scope.row.itemRemark"></el-input>
  494. </template>
  495. </el-table-column>
  496. <!-- <el-table-column-->
  497. <!-- fixed="right"-->
  498. <!-- header-align="center"-->
  499. <!-- align="center"-->
  500. <!-- width="60"-->
  501. <!-- label="操作">-->
  502. <!-- <template slot-scope="scope">-->
  503. <!-- <el-link v-if="scope.row.executeFlag !== 'Y'" style="cursor: pointer" @click="executeModal2(scope.row)">执行</el-link>-->
  504. <!-- </template>-->
  505. <!-- </el-table-column>-->
  506. </el-table>
  507. </div>
  508. <div style="text-align: center;font-size: 11px;margin-top: 5px">
  509. <span> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- </span>
  510. </div>
  511. <el-form :inline="true" label-position="top" :model="executionInfoData">
  512. <el-form-item label="原菲林编号/Original Film No.">
  513. <el-input :disabled="changeExecutionInfoFlag('originalFilmNo') === 'N'" v-model="executionInfoData.originalFilmNo" style="width: 226px"></el-input>
  514. </el-form-item>
  515. <el-form-item label="原碑刀编号/Original Cutter No.">
  516. <el-input :disabled="changeExecutionInfoFlag('originalDieCuttingRuleNo') === 'N'" v-model="executionInfoData.originalDieCuttingRuleNo" style="width: 226px"></el-input>
  517. </el-form-item>
  518. <el-form-item label="原网板/印版编号/Original Plate No.">
  519. <el-input :disabled="changeExecutionInfoFlag('originalStencilNo') === 'N'" v-model="executionInfoData.originalStencilNo" style="width: 226px"></el-input>
  520. </el-form-item>
  521. <el-form-item label="ECN执行日期/Exec Date">
  522. <el-date-picker :disabled="changeExecutionInfoFlag('executionDate') === 'N'" style="width: 135px" v-model="executionInfoData.executionDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" :editable=false></el-date-picker>
  523. </el-form-item>
  524. </el-form>
  525. <el-form :inline="true" label-position="top" :model="executionInfoData" style="margin-top: -5px;">
  526. <el-form-item label="新菲林编号/New Film No.">
  527. <el-input :disabled="changeExecutionInfoFlag('newFilmNo') === 'N'" v-model="executionInfoData.newFilmNo" style="width: 226px"></el-input>
  528. </el-form-item>
  529. <el-form-item label="新碑刀编号/New Cutter No.">
  530. <el-input :disabled="changeExecutionInfoFlag('newDieCuttingRuleNo') === 'N'" v-model="executionInfoData.newDieCuttingRuleNo" style="width: 226px"></el-input>
  531. </el-form-item>
  532. <el-form-item label="新网板/印版编号/New Plate No.">
  533. <el-input :disabled="changeExecutionInfoFlag('newStencilNo') === 'N'" v-model="executionInfoData.newStencilNo" style="width: 226px"></el-input>
  534. </el-form-item>
  535. </el-form>
  536. <div style="text-align: center ;font-size: 11px">
  537. <span> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- </span>
  538. </div>
  539. <el-button type="primary" @click="chooseModel">选择执行信息</el-button>
  540. <div class="rq">
  541. <el-table
  542. :data="chooseItemList"
  543. height="230px"
  544. border
  545. style="width: 100%">
  546. <el-table-column
  547. v-for="(item,index) in columnChooseItemList" :key="index"
  548. :sortable="item.columnSortable"
  549. :prop="item.columnProp"
  550. :header-align="item.headerAlign"
  551. :show-overflow-tooltip="item.showOverflowTooltip"
  552. :align="item.align"
  553. :fixed="item.fixed == ''?false:item.fixed"
  554. :min-width="item.columnWidth"
  555. :label="item.columnLabel">
  556. <template slot-scope="scope">
  557. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  558. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  559. </template>
  560. </el-table-column>
  561. <el-table-column
  562. prop=""
  563. header-align="center"
  564. align="center"
  565. min-width="130"
  566. label="执行人">
  567. <template slot-scope="scope">
  568. <el-input :disabled="changeItemFlag('executor') === 'N'" @input="(val)=>executorInput(scope.row, val)" v-model="scope.row.executor" style="width:77%"></el-input>
  569. <el-button :disabled="changeItemFlag('executor') === 'N'" type="primary" @click="chooseExecutor(scope.row)" style="width:18%;padding: 3px 7px">·&nbsp;·&nbsp;·</el-button>
  570. </template>
  571. </el-table-column>
  572. <el-table-column
  573. prop=""
  574. header-align="center"
  575. align="center"
  576. min-width="150"
  577. label="备注">
  578. <template slot-scope="scope">
  579. <el-input :disabled="changeItemFlag('itemRemark') === 'N'" v-model="scope.row.itemRemark" style="width:98%"></el-input>
  580. </template>
  581. </el-table-column>
  582. <el-table-column
  583. header-align="center"
  584. align="center"
  585. min-width="50"
  586. label="操作">
  587. <template slot-scope="scope">
  588. <el-link v-if="scope.row.executeFlag !== 'Y' && $store.state.user.name === scope.row.executor && modalData.changeStatus === '审批中'" style="cursor: pointer" @click="executeModal(scope.row)">执行</el-link>
  589. </template>
  590. </el-table-column>
  591. </el-table>
  592. </div>
  593. </div>
  594. <el-footer style="height:25px;text-align:center">
  595. <template v-if="modalData.changeStatus === '草稿' || (modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2) && modalData.changeStatus === '审批中')">
  596. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  597. </template>
  598. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  599. <template v-if="modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2)">
  600. <template v-if="authSubmit">
  601. <el-button v-if="modalData.changeStatus === '审批中' && modalData.tpProcessControl !== 'Y' && modalData.csProcessControl !== 'Y'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  602. </template>
  603. <template v-if="authReject">
  604. <el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  605. </template>
  606. </template>
  607. </el-footer>
  608. </el-tab-pane>
  609. <el-tab-pane label="会签信息" name="countersignature">
  610. <div style="height: 670px">
  611. <el-button type="primary" @click="chooseCSModel">选择会签信息</el-button>
  612. <div class="rq">
  613. <el-table
  614. :data="chooseCSItemList"
  615. height="600px"
  616. border
  617. style="width: 100%">
  618. <el-table-column
  619. v-for="(item,index) in columnCSChooseItemList" :key="index"
  620. :sortable="item.columnSortable"
  621. :prop="item.columnProp"
  622. :header-align="item.headerAlign"
  623. :show-overflow-tooltip="item.showOverflowTooltip"
  624. :align="item.align"
  625. :fixed="item.fixed == ''?false:item.fixed"
  626. :min-width="item.columnWidth"
  627. :label="item.columnLabel">
  628. <template slot-scope="scope">
  629. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  630. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  631. </template>
  632. </el-table-column>
  633. <el-table-column
  634. header-align="center"
  635. align="center"
  636. min-width="200"
  637. label="备注">
  638. <template slot-scope="scope">
  639. <el-input :disabled="changeCountersignatureItemFlag('itemRemark') === 'N'" v-model="scope.row.itemRemark" style="width:98%"></el-input>
  640. </template>
  641. </el-table-column>
  642. <el-table-column
  643. fixed="right"
  644. header-align="center"
  645. align="center"
  646. width="60"
  647. label="操作">
  648. <template slot-scope="scope">
  649. <el-link v-if="scope.row.executeFlag !== 'Y' && $store.state.user.name === scope.row.itemDesc && modalData.changeStatus === '审批中'" style="cursor: pointer" @click="executeCSModal(scope.row)">会签</el-link>
  650. </template>
  651. </el-table-column>
  652. </el-table>
  653. </div>
  654. </div>
  655. <el-footer style="height:25px;text-align:center">
  656. <template v-if="modalData.changeStatus === '草稿' || (modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2) && modalData.changeStatus === '审批中')">
  657. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  658. </template>
  659. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  660. <template v-if="modalData.createBy2 && modalData.createBy2.split(';').includes(createBy2)">
  661. <template v-if="authSubmit">
  662. <el-button v-if="modalData.changeStatus === '审批中' && modalData.tpProcessControl !== 'Y' && modalData.csProcessControl !== 'Y'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  663. </template>
  664. <template v-if="authReject">
  665. <el-button v-if="modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  666. </template>
  667. </template>
  668. </el-footer>
  669. </el-tab-pane>
  670. </el-tabs>
  671. </el-dialog>
  672. <!-- 页签 -->
  673. <el-tabs v-model="activeTable" style="width: 100%; height: 100%;" type="border-card" @tab-click="refreshCurrentTabTable" class="customer-tab">
  674. <!-- 基本信息页签 -->
  675. <el-tab-pane label="基本信息" name="basicInformation">
  676. <el-table
  677. :data="detailList"
  678. :height="secondHeight"
  679. border
  680. ref="detailTable"
  681. style="width: 100%;">
  682. <el-table-column
  683. v-for="(item,index) in detailColumnList" :key="index"
  684. :sortable="item.columnSortable"
  685. :prop="item.columnProp"
  686. :header-align="item.headerAlign"
  687. :show-overflow-tooltip="item.showOverflowTooltip"
  688. :align="item.align"
  689. :fixed="item.fixed === '' ? false : item.fixed"
  690. :min-width="item.columnWidth"
  691. :label="item.columnLabel">
  692. <template slot-scope="scope">
  693. <div v-if="item.columnProp === 'oriCodeNo'">
  694. <el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toMenu(scope.row)"> {{ scope.row[item.columnProp] }}</el-link>
  695. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  696. </div>
  697. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  698. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  699. </template>
  700. </el-table-column>
  701. </el-table>
  702. </el-tab-pane>
  703. <!-- 库存成本影响页签 -->
  704. <el-tab-pane label="库存成本影响" name="inventoryCostImpact">
  705. <div :style="{height: secondHeight - 15 + 'px'}" style="margin-left: 20px;margin-top: 15px">
  706. <el-form :inline="true" label-position="top" :model="currentCostImpactData">
  707. <el-form-item style="margin-top: 20px;width: 155px">
  708. <el-checkbox v-model="currentCostImpactData.productionProductFlag" disabled true-label="Y">在生产品</el-checkbox>
  709. </el-form-item>
  710. <el-form-item label="数量">
  711. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.productionProductNumber" readonly :disabled="currentCostImpactData.productionProductFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  712. </el-form-item>
  713. <el-form-item label="处理意见">
  714. <!-- <dict-data-select v-model="currentCostImpactData.productionProductOpinions" :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 130px" dict-type="change_production_product_opinions"></dict-data-select>-->
  715. <el-input v-model="currentCostImpactData.productionProductOpinions" :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 130px"></el-input>
  716. </el-form-item>
  717. <el-form-item label="报废金额">
  718. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.productionProductScrapAmount" :disabled="currentCostImpactData.productionProductFlag !== 'Y'" type="number" style="width: 140px"></el-input>
  719. </el-form-item>
  720. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  721. <!-- <el-input v-model="currentCostImpactData.productionProductRemark" readonly :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  722. <!-- </el-form-item>-->
  723. <el-form-item label="执行人">
  724. <el-input v-model="currentCostImpactData.productionProductExecutorName" readonly :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 130px"></el-input>
  725. </el-form-item>
  726. </el-form>
  727. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  728. <el-form-item style="margin-top: 20px;width: 155px">
  729. <el-checkbox v-model="currentCostImpactData.inventoryProductFlag" disabled true-label="Y">成品库存</el-checkbox>
  730. </el-form-item>
  731. <el-form-item label="数量">
  732. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.inventoryProductNumber" readonly :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  733. </el-form-item>
  734. <el-form-item label="处理意见">
  735. <!-- <dict-data-select v-model="currentCostImpactData.inventoryProductOpinions" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 130px" dict-type="change_inventory_product_opinions"></dict-data-select>-->
  736. <el-input v-model="currentCostImpactData.inventoryProductOpinions" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 130px"></el-input>
  737. </el-form-item>
  738. <el-form-item label="报废金额">
  739. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.inventoryProductScrapAmount" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" type="number" style="width: 140px"></el-input>
  740. </el-form-item>
  741. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  742. <!-- <el-input v-model="currentCostImpactData.inventoryProductRemark" readonly :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  743. <!-- </el-form-item>-->
  744. <el-form-item label="执行人">
  745. <el-input v-model="currentCostImpactData.inventoryProductExecutorName" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 130px"></el-input>
  746. </el-form-item>
  747. </el-form>
  748. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  749. <el-form-item style="margin-top: 20px;width: 155px">
  750. <el-checkbox v-model="currentCostImpactData.newOrderFlag" disabled true-label="Y">新订单</el-checkbox>
  751. </el-form-item>
  752. <el-form-item label="数量">
  753. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.newOrderNumber" readonly :disabled="currentCostImpactData.newOrderFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  754. </el-form-item>
  755. </el-form>
  756. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  757. <el-form-item style="margin-top: 20px;width: 155px">
  758. <el-checkbox v-model="currentCostImpactData.affectedFlag" disabled true-label="Y">影响的原材料及其库存量</el-checkbox>
  759. </el-form-item>
  760. <el-form-item label="数量">
  761. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.affectedNumber" readonly :disabled="currentCostImpactData.affectedFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  762. </el-form-item>
  763. <el-form-item label="处理意见">
  764. <!-- <dict-data-select v-model="currentCostImpactData.affectedOpinions" :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 130px" dict-type="change_affected_opinions"></dict-data-select>-->
  765. <el-input v-model="currentCostImpactData.affectedOpinions" :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 130px"></el-input>
  766. </el-form-item>
  767. <el-form-item label="报废金额">
  768. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.affectedScrapAmount" :disabled="currentCostImpactData.affectedFlag !== 'Y'" type="number" style="width: 140px"></el-input>
  769. </el-form-item>
  770. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  771. <!-- <el-input v-model="currentCostImpactData.affectedRemark" readonly :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 300px"></el-input>-->
  772. <!-- </el-form-item>-->
  773. <el-form-item label="执行人">
  774. <el-input v-model="currentCostImpactData.affectedExecutorName" :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 130px"></el-input>
  775. </el-form-item>
  776. </el-form>
  777. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  778. <el-form-item label="ECN变更总成本" style="width: 155px">
  779. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.changeTotalCost" readonly type="number" style="width: 125px"></el-input>
  780. </el-form-item>
  781. <el-form-item label="备注">
  782. <el-input v-model="currentCostImpactData.remark" readonly style="width: 300px"></el-input>
  783. </el-form-item>
  784. </el-form>
  785. </div>
  786. </el-tab-pane>
  787. <!-- TP&执行信息 -->
  788. <el-tab-pane label="TP&执行信息" name="actionInformation">
  789. <el-row :gutter="5">
  790. <el-col :span="9">
  791. <div >
  792. <el-table
  793. :data="currentChooseItemList2"
  794. :height="secondHeight"
  795. border>
  796. <el-table-column
  797. v-for="(item,index) in columnChooseItemList2" :key="index"
  798. :sortable="item.columnSortable"
  799. :prop="item.columnProp"
  800. :header-align="item.headerAlign"
  801. :show-overflow-tooltip="item.showOverflowTooltip"
  802. :align="item.align"
  803. :fixed="item.fixed == ''?false:item.fixed"
  804. :min-width="item.columnWidth"
  805. :label="item.columnLabel">
  806. <template slot-scope="scope">
  807. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  808. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  809. </template>
  810. </el-table-column>
  811. <el-table-column
  812. prop="chooseValue"
  813. header-align="center"
  814. align="center"
  815. min-width="60"
  816. label="可选值">
  817. </el-table-column>
  818. <el-table-column
  819. prop="itemRemark"
  820. header-align="center"
  821. align="center"
  822. min-width="120"
  823. label="备注">
  824. </el-table-column>
  825. </el-table>
  826. </div>
  827. </el-col>
  828. <el-col :span="4">
  829. <div>
  830. <el-form label-position="top" :model="currentExecutionInfoData">
  831. <el-row :gutter="5">
  832. <el-col :span="12">
  833. <el-form-item label="原菲林编号">
  834. <el-input disabled v-model="currentExecutionInfoData.originalFilmNo" ></el-input>
  835. </el-form-item>
  836. </el-col>
  837. <el-col :span="12">
  838. <el-form-item label="新菲林编号">
  839. <el-input disabled v-model="currentExecutionInfoData.newFilmNo" ></el-input>
  840. </el-form-item>
  841. </el-col>
  842. <el-col :span="12">
  843. <el-form-item label="原碑刀编号">
  844. <el-input disabled v-model="currentExecutionInfoData.originalDieCuttingRuleNo" ></el-input>
  845. </el-form-item>
  846. </el-col>
  847. <el-col :span="12">
  848. <el-form-item label="新碑刀编号">
  849. <el-input disabled v-model="currentExecutionInfoData.newDieCuttingRuleNo" ></el-input>
  850. </el-form-item>
  851. </el-col>
  852. <el-col :span="12">
  853. <el-form-item label="原网板/印版编号">
  854. <el-input disabled v-model="currentExecutionInfoData.originalStencilNo" ></el-input>
  855. </el-form-item>
  856. </el-col>
  857. <el-col :span="12">
  858. <el-form-item label="新网板/印版编号">
  859. <el-input disabled v-model="currentExecutionInfoData.newStencilNo" ></el-input>
  860. </el-form-item>
  861. </el-col>
  862. <el-col :span="12">
  863. <el-form-item label="ECN执行日期">
  864. <el-date-picker disabled style="width: 100%" v-model="currentExecutionInfoData.executionDate" type="date" value-format="yyyy-MM-dd" :editable=false></el-date-picker>
  865. </el-form-item>
  866. </el-col>
  867. </el-row>
  868. </el-form>
  869. </div>
  870. </el-col>
  871. <el-col :span="11">
  872. <div>
  873. <el-table
  874. :data="currentChooseItemList"
  875. :height="secondHeight"
  876. border>
  877. <el-table-column
  878. v-for="(item,index) in columnChooseItemList" :key="index"
  879. :sortable="item.columnSortable"
  880. :prop="item.columnProp"
  881. :header-align="item.headerAlign"
  882. :show-overflow-tooltip="item.showOverflowTooltip"
  883. :align="item.align"
  884. :fixed="item.fixed == ''?false:item.fixed"
  885. :min-width="item.columnWidth"
  886. :label="item.columnLabel">
  887. <template slot-scope="scope">
  888. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  889. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  890. </template>
  891. </el-table-column>
  892. <el-table-column
  893. prop="executor"
  894. header-align="center"
  895. align="center"
  896. min-width="130"
  897. label="执行人">
  898. </el-table-column>
  899. <el-table-column
  900. prop="itemRemark"
  901. header-align="center"
  902. align="center"
  903. min-width="150"
  904. label="备注">
  905. </el-table-column>
  906. </el-table>
  907. </div>
  908. </el-col>
  909. </el-row>
  910. </el-tab-pane>
  911. <!-- 会签信息 -->
  912. <el-tab-pane label="会签信息" name="countersignature">
  913. <el-table
  914. :data="currentChooseCSItemList"
  915. :height="secondHeight"
  916. border
  917. style="width: 100%">
  918. <el-table-column
  919. v-for="(item,index) in columnCSChooseItemList" :key="index"
  920. :sortable="item.columnSortable"
  921. :prop="item.columnProp"
  922. :header-align="item.headerAlign"
  923. :show-overflow-tooltip="item.showOverflowTooltip"
  924. :align="item.align"
  925. :fixed="item.fixed == ''?false:item.fixed"
  926. :min-width="item.columnWidth"
  927. :label="item.columnLabel">
  928. <template slot-scope="scope">
  929. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  930. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  931. </template>
  932. </el-table-column>
  933. <el-table-column
  934. prop="itemRemark"
  935. header-align="center"
  936. align="center"
  937. min-width="200"
  938. label="备注">
  939. </el-table-column>
  940. </el-table>
  941. </el-tab-pane>
  942. <!-- 附件信息页签 -->
  943. <el-tab-pane label="附件信息" name="fileInformation">
  944. <oss-components
  945. :save-visible="authFileSave"
  946. :download-visible="authFileDownLoad"
  947. :remove-visible="authFileRemove"
  948. :preview-visible="authFilePreview"
  949. :disabled="currentRow.changeStatus === '已完成'"
  950. label="变更单号"
  951. :height="secondHeight - 25"
  952. style="margin-top: 2px"
  953. :columns="fileColumnList"
  954. :order-ref2="currentRow.changeNo"
  955. :order-ref1="currentRow.site">
  956. </oss-components>
  957. </el-tab-pane>
  958. <!-- 审批信息 -->
  959. <el-tab-pane label="审批信息" name="approvalInformation">
  960. <approval-information ref="approvalTable" v-model:data-list="approvalList" :height="secondHeight"></approval-information>
  961. </el-tab-pane>
  962. </el-tabs>
  963. <!-- ECN种类模态框 -->
  964. <el-dialog title="ECN种类" :close-on-click-modal="false" v-drag :visible.sync="ecnTypeModalFlag" width="900px">
  965. <el-form ref="dataForm" label-position="right">
  966. <el-row v-for="(item, index) in form" :key="index" style="padding-top: 10px;" :style="{borderTop:index === 0?'':'1px solid #ccc'}">
  967. <el-col :span="8">
  968. <el-form-item :prop="'input.'+index+'.value'">
  969. <el-checkbox v-model="item.flag" @change="(val)=>ecnTypeHeaderChange(val,index)" :indeterminate="item.list.filter(a => a.flag === 'Y').length !== 0 && item.list.filter(a => a.flag === 'Y').length !== item.list.length" true-label="Y">{{item.value}}</el-checkbox>
  970. </el-form-item>
  971. </el-col>
  972. <el-col :span="16">
  973. <div v-for="i in item.list">
  974. <el-form-item :prop="'input.'+index+'.value'">
  975. <el-checkbox v-model="i.flag" @change="(val)=>ecnTypeDetailChange(val,index)" true-label="Y">{{i.value}}</el-checkbox>
  976. </el-form-item>
  977. </div>
  978. </el-col>
  979. </el-row>
  980. </el-form>
  981. <el-footer style="height:30px;text-align:center">
  982. <el-button type="primary" @click="saveEcnTypeData">保存</el-button>
  983. <el-button type="primary" @click="ecnTypeModalFlag = false">关闭</el-button>
  984. </el-footer>
  985. </el-dialog>
  986. <!-- ECN模板属性清单 -->
  987. <el-dialog title="属性清单" :close-on-click-modal="false" v-drag :visible.sync="chooseModelFlag" width="820px">
  988. <div class="rq">
  989. <el-form :inline="true" label-position="top" :model="chooseModelData">
  990. <el-form-item :label="'模板'">
  991. <el-select value="roleName" v-model="chooseModelData.codeNo" placeholder="请选择" style="width: 120px">
  992. <el-option
  993. v-for = "i in modelList"
  994. :key = "i.codeNo"
  995. :label = "i.codeDesc"
  996. :value = "i.codeNo">
  997. </el-option>
  998. </el-select>
  999. </el-form-item>
  1000. <el-form-item label="属性编码">
  1001. <el-input v-model="chooseModelData.itemNo" clearable style="width: 120px"></el-input>
  1002. </el-form-item>
  1003. <el-form-item label="属性名称">
  1004. <el-input v-model="chooseModelData.itemDesc" clearable style="width: 120px"></el-input>
  1005. </el-form-item>
  1006. <el-form-item :label="' '">
  1007. <el-button type="primary" @click="searchItemList">查询</el-button>
  1008. </el-form-item>
  1009. </el-form>
  1010. <el-table
  1011. :height="300"
  1012. :data="itemList"
  1013. ref="itemTable"
  1014. @row-click="itemClickRow"
  1015. @selection-change="selectionItem"
  1016. border
  1017. style="width: 100%;">
  1018. <el-table-column
  1019. type="selection"
  1020. header-align="center"
  1021. align="center"
  1022. width="50">
  1023. </el-table-column>
  1024. <el-table-column
  1025. v-for="(item,index) in columnItemList" :key="index"
  1026. :sortable="item.columnSortable"
  1027. :prop="item.columnProp"
  1028. :header-align="item.headerAlign"
  1029. :show-overflow-tooltip="item.showOverflowTooltip"
  1030. :align="item.align"
  1031. :fixed="item.fixed==''?false:item.fixed"
  1032. :min-width="item.columnWidth"
  1033. :label="item.columnLabel">
  1034. <template slot-scope="scope">
  1035. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  1036. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1037. </template>
  1038. </el-table-column>
  1039. </el-table>
  1040. </div>
  1041. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  1042. <el-button type="primary" @click="confirmItem">确认</el-button>
  1043. <el-button type="primary" @click="chooseModelFlag = false">关闭</el-button>
  1044. </el-footer>
  1045. </el-dialog>
  1046. <!-- ECN模板属性清单 -->
  1047. <el-dialog title="属性清单" :close-on-click-modal="false" v-drag :visible.sync="chooseModelFlag2" width="820px">
  1048. <div class="rq">
  1049. <el-form :inline="true" label-position="top" :model="chooseModelData2">
  1050. <el-form-item :label="'模板'">
  1051. <el-select v-model="chooseModelData2.codeNo" placeholder="请选择" style="width: 120px">
  1052. <el-option
  1053. v-for = "i in modelList2"
  1054. :key = "i.codeNo"
  1055. :label = "i.codeDesc"
  1056. :value = "i.codeNo">
  1057. </el-option>
  1058. </el-select>
  1059. </el-form-item>
  1060. <el-form-item label="属性编码">
  1061. <el-input v-model="chooseModelData2.itemNo" clearable style="width: 120px"></el-input>
  1062. </el-form-item>
  1063. <el-form-item label="属性名称">
  1064. <el-input v-model="chooseModelData2.itemDesc" clearable style="width: 120px"></el-input>
  1065. </el-form-item>
  1066. <el-form-item :label="' '">
  1067. <el-button type="primary" @click="searchItemList2">查询</el-button>
  1068. </el-form-item>
  1069. </el-form>
  1070. <el-table
  1071. :height="300"
  1072. :data="itemList2"
  1073. ref="itemTable2"
  1074. @row-click="itemClickRow2"
  1075. @selection-change="selectionItem2"
  1076. border
  1077. style="width: 100%;">
  1078. <el-table-column
  1079. type="selection"
  1080. header-align="center"
  1081. align="center"
  1082. width="50">
  1083. </el-table-column>
  1084. <el-table-column
  1085. v-for="(item,index) in columnItemList2" :key="index"
  1086. :sortable="item.columnSortable"
  1087. :prop="item.columnProp"
  1088. :header-align="item.headerAlign"
  1089. :show-overflow-tooltip="item.showOverflowTooltip"
  1090. :align="item.align"
  1091. :fixed="item.fixed==''?false:item.fixed"
  1092. :min-width="item.columnWidth"
  1093. :label="item.columnLabel">
  1094. <template slot-scope="scope">
  1095. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  1096. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1097. </template>
  1098. </el-table-column>
  1099. </el-table>
  1100. </div>
  1101. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  1102. <el-button type="primary" @click="confirmItem2">确认</el-button>
  1103. <el-button type="primary" @click="chooseModelFlag2 = false">关闭</el-button>
  1104. </el-footer>
  1105. </el-dialog>
  1106. <!-- 会签模板属性清单 -->
  1107. <el-dialog title="属性清单" :close-on-click-modal="false" v-drag :visible.sync="chooseCSModelFlag" width="820px">
  1108. <div class="rq">
  1109. <el-form :inline="true" label-position="top" :model="chooseCSModelData">
  1110. <el-form-item :label="'模板'">
  1111. <el-select value="roleName" v-model="chooseCSModelData.codeNo" placeholder="请选择" style="width: 120px">
  1112. <el-option
  1113. v-for = "i in modelCSList"
  1114. :key = "i.codeNo"
  1115. :label = "i.codeDesc"
  1116. :value = "i.codeNo">
  1117. </el-option>
  1118. </el-select>
  1119. </el-form-item>
  1120. <el-form-item label="属性编码">
  1121. <el-input v-model="chooseCSModelData.itemNo" clearable style="width: 120px"></el-input>
  1122. </el-form-item>
  1123. <el-form-item label="属性名称">
  1124. <el-input v-model="chooseCSModelData.itemDesc" clearable style="width: 120px"></el-input>
  1125. </el-form-item>
  1126. <el-form-item :label="' '">
  1127. <el-button type="primary" @click="searchCSItemList()">查询</el-button>
  1128. </el-form-item>
  1129. </el-form>
  1130. <el-table
  1131. :height="300"
  1132. :data="itemCSList"
  1133. ref="itemCSTable"
  1134. @row-click="itemCSClickRow"
  1135. @selection-change="selectionCSItem"
  1136. border
  1137. style="width: 100%;">
  1138. <el-table-column
  1139. type="selection"
  1140. header-align="center"
  1141. align="center"
  1142. width="50">
  1143. </el-table-column>
  1144. <el-table-column
  1145. v-for="(item,index) in columnCSItemList" :key="index"
  1146. :sortable="item.columnSortable"
  1147. :prop="item.columnProp"
  1148. :header-align="item.headerAlign"
  1149. :show-overflow-tooltip="item.showOverflowTooltip"
  1150. :align="item.align"
  1151. :fixed="item.fixed==''?false:item.fixed"
  1152. :min-width="item.columnWidth"
  1153. :label="item.columnLabel">
  1154. <template slot-scope="scope">
  1155. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  1156. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1157. </template>
  1158. </el-table-column>
  1159. </el-table>
  1160. </div>
  1161. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  1162. <el-button type="primary" @click="confirmCSItem">确认</el-button>
  1163. <el-button type="primary" @click="chooseCSModelFlag = false">关闭</el-button>
  1164. </el-footer>
  1165. </el-dialog>
  1166. <!-- 提交 -->
  1167. <el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag" width="500px">
  1168. <el-form :inline="true" label-position="top">
  1169. <el-form-item :label="'驳回意见'">
  1170. <el-input type="textarea" v-model="rejectOpinion" :rows="3" resize='none' show-word-limit style="width: 479px;height: 30px"></el-input>
  1171. </el-form-item>
  1172. </el-form>
  1173. <el-footer style="height:30px;margin-top: 50px;text-align:center">
  1174. <el-button type="primary" @click="rejectSubmit">确定</el-button>
  1175. <el-button type="primary" @click="submitModalFlag = false">取消</el-button>
  1176. </el-footer>
  1177. </el-dialog>
  1178. <!-- 可选技术参数卡清单 -->
  1179. <el-dialog title="技术参数卡清单" :close-on-click-modal="false" v-drag :visible.sync="addDetailModal" width="881px">
  1180. <div class="rq">
  1181. <el-form :inline="true" label-position="top" :model="searchData2">
  1182. <el-form-item :label="'BU'">
  1183. <el-select v-model="searchData2.buNo" disabled style="width: 70px">
  1184. <el-option
  1185. v-for = "i in buList"
  1186. :key = "i.buNo"
  1187. :label = "i.buNo"
  1188. :value = "i.buNo">
  1189. </el-option>
  1190. </el-select>
  1191. </el-form-item>
  1192. <el-form-item label="技术参数卡编码">
  1193. <el-input v-model="searchData2.codeNo" clearable style="width: 120px"></el-input>
  1194. </el-form-item>
  1195. <el-form-item label="PLM物料编码">
  1196. <el-input v-model="searchData2.testPartNo" clearable style="width: 120px"></el-input>
  1197. </el-form-item>
  1198. <el-form-item label="IFS物料编码">
  1199. <el-input v-model="searchData2.partNo" clearable style="width: 120px"></el-input>
  1200. </el-form-item>
  1201. <el-form-item label="客户编码">
  1202. <el-input v-model="searchData2.customerId" clearable style="width: 120px"></el-input>
  1203. </el-form-item>
  1204. <el-form-item label="项目号">
  1205. <el-input v-model="searchData2.projectId" clearable style="width: 120px"></el-input>
  1206. </el-form-item>
  1207. <el-form-item :label="' '">
  1208. <el-button type="primary" @click="addChangeDetail()">查询</el-button>
  1209. </el-form-item>
  1210. </el-form>
  1211. <el-table
  1212. :height="300"
  1213. :data="dataList2"
  1214. @selection-change="selectionData2"
  1215. border
  1216. style="width: 100%;">
  1217. <el-table-column
  1218. type="selection"
  1219. header-align="center"
  1220. align="center"
  1221. width="50">
  1222. </el-table-column>
  1223. <el-table-column
  1224. v-for="(item,index) in columnList2" :key="index"
  1225. :sortable="item.columnSortable"
  1226. :prop="item.columnProp"
  1227. :header-align="item.headerAlign"
  1228. :show-overflow-tooltip="item.showOverflowTooltip"
  1229. :align="item.align"
  1230. :fixed="item.fixed==''?false:item.fixed"
  1231. :min-width="item.columnWidth"
  1232. :label="item.columnLabel">
  1233. <template slot-scope="scope">
  1234. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  1235. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1236. </template>
  1237. </el-table-column>
  1238. </el-table>
  1239. </div>
  1240. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  1241. <el-button type="primary" @click="addDetail">确认</el-button>
  1242. <el-button type="primary" @click="addDetailModal = false">关闭</el-button>
  1243. </el-footer>
  1244. </el-dialog>
  1245. <!-- 物料模态框 -->
  1246. <el-dialog title="物料清单" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="940px">
  1247. <div class="rq">
  1248. <el-form :inline="true" label-position="top" :model="partData">
  1249. <el-form-item :label="'IFS物料编码'">
  1250. <el-input v-model="partData.finalPartNo" clearable style="width: 120px"></el-input>
  1251. </el-form-item>
  1252. <el-form-item :label="'PLM物料编码'">
  1253. <el-input v-model="partData.testPartNo" clearable style="width: 120px"></el-input>
  1254. </el-form-item>
  1255. <el-form-item :label="'客户料号'">
  1256. <el-input v-model="partData.customerPartNo" clearable style="width: 120px"></el-input>
  1257. </el-form-item>
  1258. <el-form-item :label="'物料名称'">
  1259. <el-input v-model="partData.partDesc" clearable style="width: 120px"></el-input>
  1260. </el-form-item>
  1261. <el-form-item :label="' '">
  1262. <el-button type="primary" @click="queryPartList()">查询</el-button>
  1263. </el-form-item>
  1264. </el-form>
  1265. <el-table
  1266. :height="300"
  1267. :data="partList"
  1268. @row-dblclick="getRowData"
  1269. border
  1270. style="width: 100%;">
  1271. <el-table-column
  1272. v-for="(item,index) in partColumnList" :key="index"
  1273. :sortable="item.columnSortable"
  1274. :prop="item.columnProp"
  1275. :header-align="item.headerAlign"
  1276. :show-overflow-tooltip="item.showOverflowTooltip"
  1277. :align="item.align"
  1278. :fixed="item.fixed==''?false:item.fixed"
  1279. :min-width="item.columnWidth"
  1280. :label="item.columnLabel">
  1281. <template slot-scope="scope">
  1282. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  1283. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1284. </template>
  1285. </el-table-column>
  1286. </el-table>
  1287. <!-- 分页插件 -->
  1288. <el-pagination
  1289. style="margin-top: 5px"
  1290. @size-change="sizeChangeHandle2"
  1291. @current-change="currentChangeHandle2"
  1292. :current-page="pageIndex2"
  1293. :page-sizes="[20, 50, 100, 200, 500]"
  1294. :page-size="pageSize2"
  1295. :total="totalPage2"
  1296. layout="total, sizes, prev, pager, next, jumper">
  1297. </el-pagination>
  1298. </div>
  1299. <el-footer style="height:35px;margin-top: 10px;text-align:center">
  1300. <el-button type="primary" @click="partModelFlag=false">关闭</el-button>
  1301. </el-footer>
  1302. </el-dialog>
  1303. <ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList>
  1304. <!-- 上传文件的modal -->
  1305. <changeUploadFile ref="changeUploadFile" @refreshPageTables="getChangeFileList" v-drag></changeUploadFile>
  1306. <upload-file-list title="工程变更文件上传" :label="'变更单号'" :no="currentRow.changeNo" :file-list.sync="chooseFileList" :upload-dialog.sync="uploadDialog" path="/upload/test"></upload-file-list>
  1307. </div>
  1308. </template>
  1309. <script>
  1310. import {
  1311. changeRecordSearch, // 获取工程变更记录列表
  1312. changeDetailSearch, // 变更单详情的列表
  1313. changeFileSearch, // 变更单文件的列表
  1314. deleteChangeFile, // 删除变更单文件
  1315. costImpactSearch, // 查询库存成本影响
  1316. costImpactUpdate, // 编辑库存成本影响
  1317. executionInfoSearch, // 查询执行信息
  1318. requestDetailSearch, // 查询变更明细
  1319. deleteChangeDetail, // 删除变更明细
  1320. getDepartmentByUserName, // 根据用户编码获得用户部门
  1321. changeRequestUpdate, // 编辑变更单基础信息
  1322. getEcnModel, // 查询ECN的模板
  1323. getChooseEcnType, // 查询所选择的ECN种类
  1324. getItemList, // 查询模板属性
  1325. executionUpdate, // 修改执行信息
  1326. countersignatureSearch, // 查询会签信息
  1327. countersignatureUpdate, // 编辑会签信息
  1328. issueChange, // 下达
  1329. submitChange, // 提交
  1330. tpExecute, // TP执行
  1331. csExecute, // 会签执行
  1332. getNodeAuthority, // 获取节点权限
  1333. getApprovalList, // 查询审批信息
  1334. getBuBySite, // 根据site查bu
  1335. technicalSpecificationSearch2, // 获取技术参数卡列表
  1336. choosePartNoList, // 根据视图查物料计划
  1337. } from '@/api/changeManagement/changeManagement.js'
  1338. import ChooseList from '@/views/modules/common/Chooselist'
  1339. import {verifyData} from "@/api/chooselist/chooselist.js"
  1340. import changeUploadFile from "../base/upload_file.vue"
  1341. import {downLoadQuotationFile} from '@/api/quotation/quotationInformation.js'
  1342. import DictDataSelect from "../sys/dict-data-select.vue"
  1343. import UploadFileList from "../common/uploadFileList.vue"
  1344. import ApprovalInformation from "./approvalInformation.vue";
  1345. import OssComponents from "../oss/ossComponents.vue";
  1346. export default {
  1347. components: {
  1348. OssComponents,
  1349. ApprovalInformation,
  1350. UploadFileList,
  1351. DictDataSelect,
  1352. changeUploadFile,
  1353. ChooseList,
  1354. },
  1355. computed: {
  1356. totalCost: {
  1357. get () {
  1358. let total = 0
  1359. if (this.costImpactData.productionProductFlag === 'Y') {
  1360. total += +this.costImpactData.productionProductScrapAmount
  1361. }
  1362. if (this.costImpactData.inventoryProductFlag === 'Y') {
  1363. total += +this.costImpactData.inventoryProductScrapAmount
  1364. }
  1365. if (this.costImpactData.affectedFlag === 'Y') {
  1366. total += +this.costImpactData.affectedScrapAmount
  1367. }
  1368. return total
  1369. }
  1370. },
  1371. changeRequestFlag () {
  1372. return (value) => {
  1373. if (!this.plmChangeRequestArr){
  1374. return 'N'
  1375. }
  1376. let arr = this.plmChangeRequestArr.filter(a => a.fieldId === value)
  1377. if (arr.length > 0) {
  1378. return arr[0].updateFlag
  1379. }
  1380. return 'N'
  1381. }
  1382. },
  1383. changeRequestDetailFlag () {
  1384. return (value) => {
  1385. if (!this.plmChangeRequestDetailArr){
  1386. return 'N'
  1387. }
  1388. let arr = this.plmChangeRequestDetailArr.filter(a => a.fieldId === value)
  1389. if (arr.length > 0) {
  1390. return arr[0].updateFlag
  1391. }
  1392. return 'N'
  1393. }
  1394. },
  1395. changeCostImpactFlag () {
  1396. return (value) => {
  1397. if (!this.plmChangeCostImpactArr){
  1398. return 'N'
  1399. }
  1400. let arr = this.plmChangeCostImpactArr.filter(a => a.fieldId === value)
  1401. if (arr.length > 0) {
  1402. return arr[0].updateFlag
  1403. }
  1404. return 'N'
  1405. }
  1406. },
  1407. changeFAItemFlag () {
  1408. return (value) => {
  1409. if (!this.plmChangeFAItemArr){
  1410. return 'N'
  1411. }
  1412. let arr = this.plmChangeFAItemArr.filter(a => a.fieldId === value)
  1413. if (arr.length > 0) {
  1414. return arr[0].updateFlag
  1415. }
  1416. return 'N'
  1417. }
  1418. },
  1419. changeExecutionInfoFlag () {
  1420. return (value) => {
  1421. if (!this.plmChangeExecutionInfoArr){
  1422. return 'N'
  1423. }
  1424. let arr = this.plmChangeExecutionInfoArr.filter(a => a.fieldId === value)
  1425. if (arr.length > 0) {
  1426. return arr[0].updateFlag
  1427. }
  1428. return 'N'
  1429. }
  1430. },
  1431. changeItemFlag () {
  1432. return (value) => {
  1433. if (!this.plmChangeItemArr){
  1434. return 'N'
  1435. }
  1436. let arr = this.plmChangeItemArr.filter(a => a.fieldId === value)
  1437. if (arr.length > 0) {
  1438. return arr[0].updateFlag
  1439. }
  1440. return 'N'
  1441. }
  1442. },
  1443. changeCountersignatureItemFlag () {
  1444. return (value) => {
  1445. if (!this.plmChangeCountersignatureItemArr){
  1446. return 'N'
  1447. }
  1448. let arr = this.plmChangeCountersignatureItemArr.filter(a => a.fieldId === value)
  1449. if (arr.length > 0) {
  1450. return arr[0].updateFlag
  1451. }
  1452. return 'N'
  1453. }
  1454. },
  1455. },
  1456. watch: {
  1457. modalData: {
  1458. deep: true,
  1459. handler: function (newV, oldV) {
  1460. if (this.modalData.tpEngineerId === '' || this.modalData.tpEngineerId == null) {
  1461. this.modalData.tpEngineerName = ''
  1462. }
  1463. if (this.modalData.industrialEngineerId === '' || this.modalData.industrialEngineerId == null) {
  1464. this.modalData.industrialEngineerName = ''
  1465. }
  1466. if (this.modalData.cqcOperatorId === '' || this.modalData.cqcOperatorId == null) {
  1467. this.modalData.cqcOperatorName = ''
  1468. }
  1469. if (this.modalData.faiOperatorId === '' || this.modalData.faiOperatorId == null) {
  1470. this.modalData.faiOperatorName = ''
  1471. }
  1472. }
  1473. },
  1474. uploadDialog (newValue,oldValue) {
  1475. if (newValue === false) {
  1476. this.getChangeFileList()
  1477. }
  1478. },
  1479. 'costImpactData.productionProductFlag': function(newVal) {
  1480. if (newVal !== 'Y') {
  1481. this.costImpactData.productionProductNumber = ''
  1482. this.costImpactData.productionProductOpinions = ''
  1483. this.costImpactData.productionProductScrapAmount = 0
  1484. this.costImpactData.productionProductExecutor = ''
  1485. this.costImpactData.productionProductExecutorName = ''
  1486. }
  1487. },
  1488. 'costImpactData.inventoryProductFlag': function(newVal) {
  1489. if (newVal !== 'Y') {
  1490. this.costImpactData.inventoryProductNumber = ''
  1491. this.costImpactData.inventoryProductOpinions = ''
  1492. this.costImpactData.inventoryProductScrapAmount = 0
  1493. this.costImpactData.inventoryProductExecutor = ''
  1494. this.costImpactData.inventoryProductExecutorName = ''
  1495. }
  1496. },
  1497. 'costImpactData.newOrderFlag': function(newVal) {
  1498. if (newVal !== 'Y') {
  1499. this.costImpactData.newOrderNumber = ''
  1500. }
  1501. },
  1502. 'costImpactData.affectedFlag': function(newVal) {
  1503. if (newVal !== 'Y') {
  1504. this.costImpactData.affectedNumber = ''
  1505. this.costImpactData.affectedOpinions = ''
  1506. this.costImpactData.affectedScrapAmount = 0
  1507. this.costImpactData.affectedExecutor = ''
  1508. this.costImpactData.affectedExecutorName = ''
  1509. }
  1510. },
  1511. },
  1512. data () {
  1513. return {
  1514. buList: [],
  1515. // 导出
  1516. exportData: [],
  1517. exportName: '工程变更记录' + this.dayjs().format('YYYYMMDDHHmmss'),
  1518. exportHeader: ['工程变更记录'],
  1519. exportFooter: [],
  1520. resultList: [],
  1521. // ======== 行高 ========
  1522. height: 200,
  1523. secondHeight: 200,
  1524. // ======== 分页 ========
  1525. pageIndex: 1,
  1526. pageSize: 50,
  1527. totalPage: 0,
  1528. pageIndex2: 1,
  1529. pageSize2: 20,
  1530. totalPage2: 0,
  1531. // 条件查询
  1532. searchData: {
  1533. site: this.$store.state.user.site,
  1534. changeNo: '',
  1535. changeStatus: '',
  1536. menuId: this.$route.meta.menuId,
  1537. buNo: '',
  1538. page: 1,
  1539. limit: 10
  1540. },
  1541. searchData2: {
  1542. site: this.$store.state.user.site,
  1543. partNo: '',
  1544. testPartNo: '',
  1545. partDesc: '',
  1546. customerId: '',
  1547. customerDesc: '',
  1548. projectId: '',
  1549. projectDesc: '',
  1550. codeNo: '',
  1551. buNo: '',
  1552. },
  1553. // 初始页签
  1554. activeTable: 'basicInformation',
  1555. activeName: 'basicInformation',
  1556. rejectOpinion: '',
  1557. tempPartRow: {},
  1558. tempExecutorRow: {},
  1559. changeTitle: '',
  1560. plmChangeRequestArr: [],
  1561. plmChangeRequestDetailArr: [],
  1562. plmChangeCostImpactArr: [],
  1563. plmChangeFAItemArr: [],
  1564. plmChangeExecutionInfoArr: [],
  1565. plmChangeItemArr: [],
  1566. plmChangeCountersignatureItemArr: [],
  1567. // ======== 数据对象 ========
  1568. modalData: {
  1569. site: this.$store.state.user.site,
  1570. changeNo: '',
  1571. applicantId: '',
  1572. applicantName: '',
  1573. applicationDepartmentId: '',
  1574. applicationDepartmentName: '',
  1575. applyDate: '',
  1576. ecnType: '',
  1577. changeImpact: '',
  1578. changeImpactDesc: '',
  1579. ecnStage: '',
  1580. changeType: '',
  1581. tpEngineerId: '',
  1582. tpEngineerName: '',
  1583. changePhaseInDate: '',
  1584. dfIsProduct: '',
  1585. printing: '',
  1586. manufacturingCostIsChange: '',
  1587. changeRequestDesc: '',
  1588. isReQuote: '',
  1589. ulCertificationRequirements: '',
  1590. ulContinueToMeetDemand: '',
  1591. gpCertificationRequirements: '',
  1592. gpContinueToMeetDemand: '',
  1593. detailList: [],
  1594. ecnTypeData: [],
  1595. industrialEngineerId: '',
  1596. industrialEngineerName: '',
  1597. changeStatus: '',
  1598. cqcOperatorId: '',
  1599. cqcOperatorName: '',
  1600. faiOperatorId: '',
  1601. faiOperatorName: '',
  1602. nodeConclusion: '',
  1603. stepId: '',
  1604. rejectFlag: '',
  1605. rejectStepId: '',
  1606. isReject: '',
  1607. menuId: this.$route.meta.menuId,
  1608. userName: this.$store.state.user.name,
  1609. rejectOpinion: '',
  1610. nodeId: '',
  1611. buNo: '',
  1612. createBy2: '',
  1613. tpProcessControl: '',
  1614. csProcessControl: ''
  1615. },
  1616. costImpactData: {
  1617. site: this.$store.state.user.site,
  1618. changeNo: '',
  1619. productionProductFlag: '',
  1620. inventoryProductFlag: '',
  1621. newOrderFlag: '',
  1622. affectedFlag: '',
  1623. productionProductNumber: '',
  1624. productionProductOpinions: '',
  1625. productionProductScrapAmount: 0,
  1626. productionProductRemark: '',
  1627. productionProductExecutor: '',
  1628. productionProductExecutorName: '',
  1629. inventoryProductNumber: '',
  1630. inventoryProductOpinions: '',
  1631. inventoryProductScrapAmount: 0,
  1632. inventoryProductRemark: '',
  1633. inventoryProductExecutor: '',
  1634. inventoryProductExecutorName: '',
  1635. newOrderNumber: '',
  1636. affectedNumber: '',
  1637. affectedOpinions: '',
  1638. affectedScrapAmount: 0,
  1639. affectedRemark: '',
  1640. affectedExecutor: '',
  1641. affectedExecutorName: '',
  1642. changeTotalCost: '',
  1643. remark: '',
  1644. createBy: '',
  1645. updateBy: ''
  1646. },
  1647. executionInfoData: {
  1648. site: this.$store.state.user.site,
  1649. changeNo: '',
  1650. originalFilmNo: '',
  1651. newFilmNo: '',
  1652. originalDieCuttingRuleNo: '',
  1653. newDieCuttingRuleNo: '',
  1654. originalStencilNo: '',
  1655. newStencilNo: '',
  1656. executionDate: '',
  1657. createBy: '',
  1658. updateBy: '',
  1659. chooseItemList: [],
  1660. chooseItemList2: []
  1661. },
  1662. chooseModelData: {
  1663. site: this.$store.state.user.site,
  1664. functionType: 'ECN',
  1665. itemNo: '',
  1666. itemDesc: '',
  1667. codeNo: ''
  1668. },
  1669. chooseModelData2: {
  1670. site: this.$store.state.user.site,
  1671. functionType: 'ECN',
  1672. itemNo: '',
  1673. itemDesc: '',
  1674. codeNo: ''
  1675. },
  1676. chooseCSModelData: {
  1677. site: this.$store.state.user.site,
  1678. functionType: 'ECN',
  1679. itemNo: '',
  1680. itemDesc: '',
  1681. codeNo: ''
  1682. },
  1683. countersignatureData: {
  1684. site: this.$store.state.user.site,
  1685. changeNo: '',
  1686. createBy: '',
  1687. updateBy: '',
  1688. chooseCSItemList: []
  1689. },
  1690. partData: {
  1691. site: '',
  1692. buNo: '',
  1693. finalPartNo: '',
  1694. testPartNo: '',
  1695. customerPartNo: '',
  1696. partDesc: '',
  1697. page: 1,
  1698. limit: 10
  1699. },
  1700. // ======== 数据列表 ========
  1701. dataList: [],
  1702. dataList2: [],
  1703. detailList: [],
  1704. fileList: [],
  1705. chooseItemList: [],
  1706. chooseItemList2: [],
  1707. chooseCSItemList: [],
  1708. chooseDataList: [],
  1709. form: [],
  1710. modelList: [],
  1711. modelList2: [],
  1712. modelCSList: [],
  1713. itemList: [],
  1714. itemList2: [],
  1715. itemCSList: [],
  1716. chooseFileList: [],
  1717. approvalList: [],
  1718. partList: [],
  1719. // ======== 列表表头 ========
  1720. columnList: [
  1721. {
  1722. userId: this.$store.state.user.name,
  1723. functionId: 108002,
  1724. serialNumber: '108002Table1BuNo',
  1725. tableId: '108002Table1',
  1726. tableName: '工程变更记录表',
  1727. columnProp: 'buNo',
  1728. headerAlign: 'center',
  1729. align: 'center',
  1730. columnLabel: 'BU',
  1731. columnHidden: false,
  1732. columnImage: false,
  1733. status: true,
  1734. fixed: '',
  1735. columnWidth: 80
  1736. },
  1737. {
  1738. userId: this.$store.state.user.name,
  1739. functionId: 108002,
  1740. serialNumber: '108002Table1ChangeNo',
  1741. tableId: '108002Table1',
  1742. tableName: '工程变更记录表',
  1743. columnProp: 'changeNo',
  1744. headerAlign: 'center',
  1745. align: 'left',
  1746. columnLabel: '申请编号',
  1747. columnHidden: false,
  1748. columnImage: false,
  1749. status: true,
  1750. fixed: '',
  1751. columnWidth: 120
  1752. },
  1753. {
  1754. userId: this.$store.state.user.name,
  1755. functionId: 108002,
  1756. serialNumber: '108002Table1ApplicantName',
  1757. tableId: '108002Table1',
  1758. tableName: '工程变更记录表',
  1759. columnProp: 'applicantName',
  1760. headerAlign: 'center',
  1761. align: 'left',
  1762. columnLabel: '申请人',
  1763. columnHidden: false,
  1764. columnImage: false,
  1765. status: true,
  1766. fixed: '',
  1767. columnWidth: 120
  1768. },
  1769. {
  1770. userId: this.$store.state.user.name,
  1771. functionId: 108002,
  1772. serialNumber: '108002Table1DepartmentName',
  1773. tableId: '108002Table1',
  1774. tableName: '工程变更记录表',
  1775. columnProp: 'applicationDepartmentName',
  1776. headerAlign: 'center',
  1777. align: 'left',
  1778. columnLabel: '申请部门',
  1779. columnHidden: false,
  1780. columnImage: false,
  1781. status: true,
  1782. fixed: '',
  1783. columnWidth: 120
  1784. },
  1785. {
  1786. userId: this.$store.state.user.name,
  1787. functionId: 108002,
  1788. serialNumber: '108002Table1ChangeStatus',
  1789. tableId: '108002Table1',
  1790. tableName: '工程变更记录表',
  1791. columnProp: 'changeStatus',
  1792. headerAlign: 'center',
  1793. align: 'left',
  1794. columnLabel: '变更单状态',
  1795. columnHidden: false,
  1796. columnImage: false,
  1797. status: true,
  1798. fixed: '',
  1799. columnWidth: 100
  1800. },
  1801. {
  1802. userId: this.$store.state.user.name,
  1803. functionId: 108002,
  1804. serialNumber: '108002Table1NodeName',
  1805. tableId: '108002Table1',
  1806. tableName: '工程变更记录表',
  1807. columnProp: 'nodeName',
  1808. headerAlign: 'center',
  1809. align: 'left',
  1810. columnLabel: '当前节点',
  1811. columnHidden: false,
  1812. columnImage: false,
  1813. status: true,
  1814. fixed: '',
  1815. columnWidth: 150
  1816. },
  1817. {
  1818. userId: this.$store.state.user.name,
  1819. functionId: 108002,
  1820. serialNumber: '108002Table1EcnStage',
  1821. tableId: '108002Table1',
  1822. tableName: '工程变更记录表',
  1823. columnProp: 'ecnStage',
  1824. headerAlign: 'center',
  1825. align: 'left',
  1826. columnLabel: 'ECN阶段',
  1827. columnHidden: false,
  1828. columnImage: false,
  1829. status: true,
  1830. fixed: '',
  1831. columnWidth: 100
  1832. },
  1833. {
  1834. userId: this.$store.state.user.name,
  1835. functionId: 108002,
  1836. serialNumber: '108002Table1ChangeType',
  1837. tableId: '108002Table1',
  1838. tableName: '工程变更记录表',
  1839. columnProp: 'changeType',
  1840. headerAlign: 'center',
  1841. align: 'left',
  1842. columnLabel: '变更类别',
  1843. columnHidden: false,
  1844. columnImage: false,
  1845. status: true,
  1846. fixed: '',
  1847. columnWidth: 100
  1848. },
  1849. {
  1850. userId: this.$store.state.user.name,
  1851. functionId: 108002,
  1852. serialNumber: '108002Table1EcnType',
  1853. tableId: '108002Table1',
  1854. tableName: '工程变更记录表',
  1855. columnProp: 'ecnType',
  1856. headerAlign: 'center',
  1857. align: 'left',
  1858. columnLabel: 'ECN种类',
  1859. columnHidden: false,
  1860. columnImage: false,
  1861. status: true,
  1862. fixed: '',
  1863. columnWidth: 100
  1864. },
  1865. {
  1866. userId: this.$store.state.user.name,
  1867. functionId: 108002,
  1868. serialNumber: '108002Table1ApplyDate',
  1869. tableId: '108002Table1',
  1870. tableName: '工程变更记录表',
  1871. columnProp: 'applyDate',
  1872. headerAlign: 'center',
  1873. align: 'center',
  1874. columnLabel: '申请日期',
  1875. columnHidden: false,
  1876. columnImage: false,
  1877. status: true,
  1878. fixed: '',
  1879. columnWidth: 100
  1880. },
  1881. {
  1882. userId: this.$store.state.user.name,
  1883. functionId: 108002,
  1884. serialNumber: '108002Table1ChangePhaseInDate',
  1885. tableId: '108002Table1',
  1886. tableName: '工程变更记录表',
  1887. columnProp: 'changePhaseInDate',
  1888. headerAlign: 'center',
  1889. align: 'center',
  1890. columnLabel: '变更生效日期',
  1891. columnHidden: false,
  1892. columnImage: false,
  1893. status: true,
  1894. fixed: '',
  1895. columnWidth: 100
  1896. },
  1897. {
  1898. userId: this.$store.state.user.name,
  1899. functionId: 108002,
  1900. serialNumber: '108002Table1xxx',
  1901. tableId: '108002Table1',
  1902. tableName: '工程变更记录表',
  1903. columnProp: 'xxx',
  1904. headerAlign: 'center',
  1905. align: 'center',
  1906. columnLabel: 'ECN执行日期',
  1907. columnHidden: false,
  1908. columnImage: false,
  1909. status: true,
  1910. fixed: '',
  1911. columnWidth: 100
  1912. },
  1913. {
  1914. userId: this.$store.state.user.name,
  1915. functionId: 108002,
  1916. serialNumber: '108002Table1CreateBy2',
  1917. tableId: '108002Table1',
  1918. tableName: '工程变更记录表',
  1919. columnProp: 'createBy2',
  1920. headerAlign: 'center',
  1921. align: 'left',
  1922. columnLabel: '当前节点审批人',
  1923. columnHidden: false,
  1924. columnImage: false,
  1925. status: true,
  1926. fixed: '',
  1927. columnWidth: 100
  1928. },
  1929. ],
  1930. columnList2: [
  1931. {
  1932. columnProp: 'buNo',
  1933. headerAlign: 'center',
  1934. align: 'center',
  1935. columnLabel: 'BU',
  1936. columnHidden: false,
  1937. columnImage: false,
  1938. status: true,
  1939. fixed: '',
  1940. columnWidth: 70
  1941. },
  1942. {
  1943. columnProp: 'testPartNo',
  1944. headerAlign: 'center',
  1945. align: 'left',
  1946. columnLabel: 'PLM物料编码',
  1947. columnHidden: false,
  1948. columnImage: false,
  1949. status: true,
  1950. fixed: '',
  1951. columnWidth: 120
  1952. },
  1953. {
  1954. columnProp: 'partNo',
  1955. headerAlign: 'center',
  1956. align: 'left',
  1957. columnLabel: 'IFS物料编码',
  1958. columnHidden: false,
  1959. columnImage: false,
  1960. status: true,
  1961. fixed: '',
  1962. columnWidth: 120
  1963. },
  1964. {
  1965. columnProp: 'partDesc',
  1966. headerAlign: 'center',
  1967. align: 'left',
  1968. columnLabel: '物料名称',
  1969. columnHidden: false,
  1970. columnImage: false,
  1971. status: true,
  1972. fixed: '',
  1973. columnWidth: 200
  1974. },
  1975. {
  1976. columnProp: 'projectId',
  1977. headerAlign: 'center',
  1978. align: 'center',
  1979. columnLabel: '项目号',
  1980. columnHidden: false,
  1981. columnImage: false,
  1982. status: true,
  1983. fixed: '',
  1984. columnWidth: 120
  1985. },
  1986. {
  1987. columnProp: 'projectDesc',
  1988. headerAlign: 'center',
  1989. align: 'left',
  1990. columnLabel: '项目名称',
  1991. columnHidden: false,
  1992. columnImage: false,
  1993. status: true,
  1994. fixed: '',
  1995. columnWidth: 180
  1996. },
  1997. {
  1998. columnProp: 'customerId',
  1999. headerAlign: 'center',
  2000. align: 'center',
  2001. columnLabel: '客户编码',
  2002. columnHidden: false,
  2003. columnImage: false,
  2004. status: true,
  2005. fixed: '',
  2006. columnWidth: 120
  2007. },
  2008. {
  2009. columnProp: 'customerDesc',
  2010. headerAlign: 'center',
  2011. align: 'left',
  2012. columnLabel: '客户名称',
  2013. columnHidden: false,
  2014. columnImage: false,
  2015. status: true,
  2016. fixed: '',
  2017. columnWidth: 180
  2018. },
  2019. {
  2020. columnProp: 'oriCodeNo',
  2021. headerAlign: 'center',
  2022. align: 'center',
  2023. columnLabel: '技术参数卡',
  2024. columnHidden: false,
  2025. columnImage: false,
  2026. status: true,
  2027. fixed: '',
  2028. columnWidth: 120
  2029. },
  2030. {
  2031. columnProp: 'ecnFlag',
  2032. headerAlign: 'center',
  2033. align: 'center',
  2034. columnLabel: '状态',
  2035. columnHidden: false,
  2036. columnImage: false,
  2037. status: true,
  2038. fixed: '',
  2039. columnWidth: 100
  2040. },
  2041. {
  2042. columnProp: 'revNo',
  2043. headerAlign: 'center',
  2044. align: 'center',
  2045. columnLabel: '版本号',
  2046. columnHidden: false,
  2047. columnImage: false,
  2048. status: true,
  2049. fixed: '',
  2050. columnWidth: 80
  2051. },
  2052. ],
  2053. detailColumnList: [
  2054. {
  2055. userId: this.$store.state.user.name,
  2056. functionId: 108002,
  2057. serialNumber: '108002Table2PlmPartNo',
  2058. tableId: '108002Table2',
  2059. tableName: '变更单基本信息表',
  2060. columnProp: 'plmPartNo',
  2061. headerAlign: 'center',
  2062. align: 'left',
  2063. columnLabel: 'PLM物料编码',
  2064. columnHidden: false,
  2065. columnImage: false,
  2066. status: true,
  2067. fixed: '',
  2068. columnWidth: 120
  2069. },
  2070. {
  2071. userId: this.$store.state.user.name,
  2072. functionId: 108002,
  2073. serialNumber: '108002Table2PartNo',
  2074. tableId: '108002Table2',
  2075. tableName: '变更单基本信息表',
  2076. columnProp: 'partNo',
  2077. headerAlign: 'center',
  2078. align: 'left',
  2079. columnLabel: 'IFS物料编码',
  2080. columnHidden: false,
  2081. columnImage: false,
  2082. status: true,
  2083. fixed: '',
  2084. columnWidth: 120
  2085. },
  2086. {
  2087. userId: this.$store.state.user.name,
  2088. functionId: 108002,
  2089. serialNumber: '108002Table2PartDesc',
  2090. tableId: '108002Table2',
  2091. tableName: '变更单基本信息表',
  2092. columnProp: 'partDesc',
  2093. headerAlign: 'center',
  2094. align: 'left',
  2095. columnLabel: '物料名称',
  2096. columnHidden: false,
  2097. columnImage: false,
  2098. status: true,
  2099. fixed: '',
  2100. columnWidth: 200
  2101. },
  2102. {
  2103. userId: this.$store.state.user.name,
  2104. functionId: 108002,
  2105. serialNumber: '108002Table2NewPartNo',
  2106. tableId: '108002Table2',
  2107. tableName: '变更单基本信息表',
  2108. columnProp: 'newPartNo',
  2109. headerAlign: 'center',
  2110. align: 'left',
  2111. columnLabel: 'IFS料号',
  2112. columnHidden: false,
  2113. columnImage: false,
  2114. status: true,
  2115. fixed: '',
  2116. columnWidth: 120
  2117. },
  2118. {
  2119. userId: this.$store.state.user.name,
  2120. functionId: 108002,
  2121. serialNumber: '108002Table2NewDrawingNo',
  2122. tableId: '108002Table2',
  2123. tableName: '变更单基本信息表',
  2124. columnProp: 'newDrawingNo',
  2125. headerAlign: 'center',
  2126. align: 'center',
  2127. columnLabel: '新图纸编码',
  2128. columnHidden: false,
  2129. columnImage: false,
  2130. status: true,
  2131. fixed: '',
  2132. columnWidth: 100
  2133. },
  2134. {
  2135. userId: this.$store.state.user.name,
  2136. functionId: 108002,
  2137. serialNumber: '108002Table2NewDraftNo',
  2138. tableId: '108002Table2',
  2139. tableName: '变更单基本信息表',
  2140. columnProp: 'newDraftNo',
  2141. headerAlign: 'center',
  2142. align: 'center',
  2143. columnLabel: '新图稿编码',
  2144. columnHidden: false,
  2145. columnImage: false,
  2146. status: true,
  2147. fixed: '',
  2148. columnWidth: 100
  2149. },
  2150. {
  2151. userId: this.$store.state.user.name,
  2152. functionId: 108002,
  2153. serialNumber: '108002Table2OriCodeNo',
  2154. tableId: '108002Table2',
  2155. tableName: '变更单基本信息表',
  2156. columnProp: 'oriCodeNo',
  2157. headerAlign: 'center',
  2158. align: 'center',
  2159. columnLabel: '技术参数卡编码',
  2160. columnHidden: false,
  2161. columnImage: false,
  2162. status: true,
  2163. fixed: '',
  2164. columnWidth: 120
  2165. },
  2166. {
  2167. userId: this.$store.state.user.name,
  2168. functionId: 108002,
  2169. serialNumber: '108002Table2RevNo',
  2170. tableId: '108002Table2',
  2171. tableName: '变更单基本信息表',
  2172. columnProp: 'revNo',
  2173. headerAlign: 'center',
  2174. align: 'right',
  2175. columnLabel: '版本号',
  2176. columnHidden: false,
  2177. columnImage: false,
  2178. status: true,
  2179. fixed: '',
  2180. columnWidth: 60
  2181. },
  2182. ],
  2183. fileColumnList: [
  2184. {
  2185. userId: this.$store.state.user.name,
  2186. functionId: 108002,
  2187. serialNumber: '108002Table3FileName',
  2188. tableId: '108002Table2',
  2189. tableName: '文件信息表',
  2190. columnProp: 'fileName',
  2191. headerAlign: 'center',
  2192. align: 'center',
  2193. columnLabel: '文件名称',
  2194. columnHidden: false,
  2195. columnImage: false,
  2196. columnSortable: false,
  2197. sortLv: 0,
  2198. status: true,
  2199. fixed: '',
  2200. columnWidth: 140
  2201. },
  2202. {
  2203. userId: this.$store.state.user.name,
  2204. functionId: 108002,
  2205. serialNumber: '108002Table3FileRemark',
  2206. tableId: '108002Table2',
  2207. tableName: '文件信息表',
  2208. columnProp: 'fileRemark',
  2209. headerAlign: 'center',
  2210. align: 'center',
  2211. columnLabel: '备注',
  2212. columnHidden: false,
  2213. columnImage: false,
  2214. columnSortable: false,
  2215. sortLv: 0,
  2216. status: true,
  2217. fixed: '',
  2218. columnWidth: 240
  2219. },
  2220. // {
  2221. // userId: this.$store.state.user.name,
  2222. // functionId: 108002,
  2223. // serialNumber: '108002Table2OrderRef3',
  2224. // tableId: '108002Table2',
  2225. // tableName: '文件信息表',
  2226. // columnProp: 'orderRef3',
  2227. // headerAlign: 'center',
  2228. // align: 'center',
  2229. // columnLabel: '文件描述',
  2230. // columnHidden: false,
  2231. // columnImage: false,
  2232. // columnSortable: false,
  2233. // sortLv: 0,
  2234. // status: true,
  2235. // fixed: '',
  2236. // columnWidth: 120
  2237. // },
  2238. {
  2239. userId: this.$store.state.user.name,
  2240. functionId: 108002,
  2241. serialNumber: '108002Table3CreateDate',
  2242. tableId: '108002Table2',
  2243. tableName: '文件信息表',
  2244. columnProp: 'createDate',
  2245. headerAlign: 'center',
  2246. align: 'center',
  2247. columnLabel: '上传时间',
  2248. columnHidden: false,
  2249. columnImage: false,
  2250. columnSortable: false,
  2251. sortLv: 0,
  2252. status: true,
  2253. fixed: '',
  2254. columnWidth: 140
  2255. },
  2256. {
  2257. userId: this.$store.state.user.name,
  2258. functionId: 108002,
  2259. serialNumber: '108002Table3CreatedBy',
  2260. tableId: '108002Table2',
  2261. tableName: '文件信息表',
  2262. columnProp: 'createBy',
  2263. headerAlign: 'center',
  2264. align: 'center',
  2265. columnLabel: '上传人',
  2266. columnHidden: false,
  2267. columnImage: false,
  2268. columnSortable: false,
  2269. sortLv: 0,
  2270. status: true,
  2271. fixed: '',
  2272. columnWidth: 140
  2273. },
  2274. ],
  2275. columnChooseDataList: [
  2276. {
  2277. userId: this.$store.state.user.name,
  2278. functionId: 108002,
  2279. serialNumber: '108002Table4PlmPartNo',
  2280. tableId: '108002Table4',
  2281. tableName: '所选变更列表',
  2282. columnProp: 'plmPartNo',
  2283. headerAlign: 'center',
  2284. align: 'left',
  2285. columnLabel: 'PLM物料编码/PLM Part No.',
  2286. columnHidden: false,
  2287. columnImage: false,
  2288. status: true,
  2289. fixed: '',
  2290. columnWidth: 120
  2291. },
  2292. {
  2293. userId: this.$store.state.user.name,
  2294. functionId: 108002,
  2295. serialNumber: '108002Table4PartNo',
  2296. tableId: '108002Table4',
  2297. tableName: '所选变更列表',
  2298. columnProp: 'partNo',
  2299. headerAlign: 'center',
  2300. align: 'left',
  2301. columnLabel: 'IFS物料编码/IFS Part No.',
  2302. columnHidden: false,
  2303. columnImage: false,
  2304. status: true,
  2305. fixed: '',
  2306. columnWidth: 120
  2307. },
  2308. {
  2309. userId: this.$store.state.user.name,
  2310. functionId: 108002,
  2311. serialNumber: '108002Table4PartDesc',
  2312. tableId: '108002Table4',
  2313. tableName: '所选变更列表',
  2314. columnProp: 'partDesc',
  2315. headerAlign: 'center',
  2316. align: 'left',
  2317. columnLabel: '物料名称/Part Desc.',
  2318. columnHidden: false,
  2319. columnImage: false,
  2320. status: true,
  2321. fixed: '',
  2322. columnWidth: 180
  2323. },
  2324. {
  2325. userId: this.$store.state.user.name,
  2326. functionId: 108002,
  2327. serialNumber: '108002Table4DrawingNo',
  2328. tableId: '108002Table4',
  2329. tableName: '所选变更列表',
  2330. columnProp: 'drawingNo',
  2331. headerAlign: 'center',
  2332. align: 'center',
  2333. columnLabel: '图纸编码/Drawing No.',
  2334. columnHidden: false,
  2335. columnImage: false,
  2336. status: true,
  2337. fixed: '',
  2338. columnWidth: 90
  2339. },
  2340. {
  2341. userId: this.$store.state.user.name,
  2342. functionId: 108002,
  2343. serialNumber: '108002Table4DraftNo',
  2344. tableId: '108002Table4',
  2345. tableName: '所选变更列表',
  2346. columnProp: 'draftNo',
  2347. headerAlign: 'center',
  2348. align: 'center',
  2349. columnLabel: '图稿编码/Proof No.',
  2350. columnHidden: false,
  2351. columnImage: false,
  2352. status: true,
  2353. fixed: '',
  2354. columnWidth: 90
  2355. },
  2356. ],
  2357. columnChooseItemList: [
  2358. {
  2359. columnProp: 'itemNo',
  2360. headerAlign: 'center',
  2361. align: 'center',
  2362. columnLabel: '属性编码',
  2363. columnHidden: false,
  2364. columnImage: false,
  2365. status: true,
  2366. fixed: '',
  2367. columnWidth: 80
  2368. },
  2369. {
  2370. columnProp: 'itemDesc',
  2371. headerAlign: 'center',
  2372. align: 'center',
  2373. columnLabel: '属性名称',
  2374. columnHidden: false,
  2375. columnImage: false,
  2376. status: true,
  2377. fixed: '',
  2378. columnWidth: 150
  2379. },
  2380. {
  2381. columnProp: 'itemExecutionDate',
  2382. headerAlign: 'center',
  2383. align: 'center',
  2384. columnLabel: '执行时间',
  2385. columnHidden: false,
  2386. columnImage: false,
  2387. status: true,
  2388. fixed: '',
  2389. columnWidth: 130
  2390. }
  2391. ],
  2392. columnChooseItemList2: [
  2393. {
  2394. columnProp: 'itemNo',
  2395. headerAlign: 'center',
  2396. align: 'center',
  2397. columnLabel: '属性编码',
  2398. columnHidden: false,
  2399. columnImage: false,
  2400. status: true,
  2401. fixed: '',
  2402. columnWidth: 80
  2403. },
  2404. {
  2405. columnProp: 'itemDesc',
  2406. headerAlign: 'center',
  2407. align: 'center',
  2408. columnLabel: '属性名称',
  2409. columnHidden: false,
  2410. columnImage: false,
  2411. status: true,
  2412. fixed: '',
  2413. columnWidth: 150
  2414. },
  2415. // {
  2416. // columnProp: 'executeFlag',
  2417. // headerAlign: 'center',
  2418. // align: 'center',
  2419. // columnLabel: '是否执行',
  2420. // columnHidden: false,
  2421. // columnImage: false,
  2422. // status: true,
  2423. // fixed: '',
  2424. // columnWidth: 80
  2425. // },
  2426. // {
  2427. // columnProp: 'executor',
  2428. // headerAlign: 'center',
  2429. // align: 'center',
  2430. // columnLabel: '执行人',
  2431. // columnHidden: false,
  2432. // columnImage: false,
  2433. // status: true,
  2434. // fixed: '',
  2435. // columnWidth: 100
  2436. // },
  2437. // {
  2438. // columnProp: 'itemExecutionDate',
  2439. // headerAlign: 'center',
  2440. // align: 'center',
  2441. // columnLabel: '执行时间',
  2442. // columnHidden: false,
  2443. // columnImage: false,
  2444. // status: true,
  2445. // fixed: '',
  2446. // columnWidth: 150
  2447. // }
  2448. ],
  2449. columnItemList: [
  2450. {
  2451. userId: this.$store.state.user.name,
  2452. functionId: 108002,
  2453. serialNumber: '108002Table6ItemNo',
  2454. tableId: '108002Table6',
  2455. tableName: '执行属性表',
  2456. columnProp: 'itemNo',
  2457. headerAlign: 'center',
  2458. align: 'center',
  2459. columnLabel: '属性编码',
  2460. columnHidden: false,
  2461. columnImage: false,
  2462. status: true,
  2463. fixed: '',
  2464. columnWidth: 80
  2465. },
  2466. {
  2467. userId: this.$store.state.user.name,
  2468. functionId: 108002,
  2469. serialNumber: '108002Table6ItemDesc',
  2470. tableId: '108002Table6',
  2471. tableName: '执行属性表',
  2472. columnProp: 'itemDesc',
  2473. headerAlign: 'center',
  2474. align: 'center',
  2475. columnLabel: '属性名称',
  2476. columnHidden: false,
  2477. columnImage: false,
  2478. status: true,
  2479. fixed: '',
  2480. columnWidth: 150
  2481. },
  2482. ],
  2483. columnItemList2: [
  2484. {
  2485. columnProp: 'itemNo',
  2486. headerAlign: 'center',
  2487. align: 'center',
  2488. columnLabel: '属性编码',
  2489. columnHidden: false,
  2490. columnImage: false,
  2491. status: true,
  2492. fixed: '',
  2493. columnWidth: 80
  2494. },
  2495. {
  2496. columnProp: 'itemDesc',
  2497. headerAlign: 'center',
  2498. align: 'center',
  2499. columnLabel: '属性名称',
  2500. columnHidden: false,
  2501. columnImage: false,
  2502. status: true,
  2503. fixed: '',
  2504. columnWidth: 150
  2505. },
  2506. ],
  2507. columnCSItemList: [
  2508. {
  2509. userId: this.$store.state.user.name,
  2510. functionId: 108001,
  2511. serialNumber: '108001Table5ItemNo',
  2512. tableId: '108001Table5',
  2513. tableName: '执行属性表',
  2514. columnProp: 'itemNo',
  2515. headerAlign: 'center',
  2516. align: 'center',
  2517. columnLabel: '属性编码',
  2518. columnHidden: false,
  2519. columnImage: false,
  2520. status: true,
  2521. fixed: '',
  2522. columnWidth: 80
  2523. },
  2524. {
  2525. userId: this.$store.state.user.name,
  2526. functionId: 108001,
  2527. serialNumber: '108001Table5ItemDesc',
  2528. tableId: '108001Table5',
  2529. tableName: '执行属性表',
  2530. columnProp: 'itemDesc',
  2531. headerAlign: 'center',
  2532. align: 'center',
  2533. columnLabel: '属性名称',
  2534. columnHidden: false,
  2535. columnImage: false,
  2536. status: true,
  2537. fixed: '',
  2538. columnWidth: 150
  2539. },
  2540. ],
  2541. columnCSChooseItemList: [
  2542. {
  2543. userId: this.$store.state.user.name,
  2544. functionId: 108002,
  2545. serialNumber: '108002Table7ItemNo',
  2546. tableId: '108002Table7',
  2547. tableName: '执行属性表',
  2548. columnProp: 'itemNo',
  2549. headerAlign: 'center',
  2550. align: 'left',
  2551. columnLabel: '属性编码',
  2552. columnHidden: false,
  2553. columnImage: false,
  2554. status: true,
  2555. fixed: '',
  2556. columnWidth: 100
  2557. },
  2558. {
  2559. userId: this.$store.state.user.name,
  2560. functionId: 108002,
  2561. serialNumber: '108002Table7ItemDesc',
  2562. tableId: '108002Table7',
  2563. tableName: '执行属性表',
  2564. columnProp: 'itemDesc',
  2565. headerAlign: 'center',
  2566. align: 'left',
  2567. columnLabel: '属性名称',
  2568. columnHidden: false,
  2569. columnImage: false,
  2570. status: true,
  2571. fixed: '',
  2572. columnWidth: 150
  2573. },
  2574. {
  2575. userId: this.$store.state.user.name,
  2576. functionId: 108002,
  2577. serialNumber: '108002Table7ExecuteDate',
  2578. tableId: '108002Table7',
  2579. tableName: '执行属性表',
  2580. columnProp: 'itemExecutionDate',
  2581. headerAlign: 'center',
  2582. align: 'center',
  2583. columnLabel: '会签时间',
  2584. columnHidden: false,
  2585. columnImage: false,
  2586. status: true,
  2587. fixed: '',
  2588. columnWidth: 150
  2589. },
  2590. ],
  2591. approvalColumnList: [
  2592. {
  2593. userId: this.$store.state.user.name,
  2594. functionId: 108002,
  2595. serialNumber: '108002Table8ClassificationNo',
  2596. tableId: '108002Table8',
  2597. tableName: '审批信息',
  2598. columnProp: 'classificationNo',
  2599. headerAlign: 'center',
  2600. align: 'center',
  2601. columnLabel: '流程分类编码',
  2602. columnHidden: false,
  2603. columnImage: false,
  2604. status: true,
  2605. fixed: '',
  2606. columnWidth: 120
  2607. },
  2608. {
  2609. userId: this.$store.state.user.name,
  2610. functionId: 108002,
  2611. serialNumber: '108002Table8ItemDesc',
  2612. tableId: '108002Table8',
  2613. tableName: '审批信息',
  2614. columnProp: 'nodeName',
  2615. headerAlign: 'center',
  2616. align: 'left',
  2617. columnLabel: '节点名称',
  2618. columnHidden: false,
  2619. columnImage: false,
  2620. status: true,
  2621. fixed: '',
  2622. columnWidth: 200
  2623. },
  2624. {
  2625. userId: this.$store.state.user.name,
  2626. functionId: 108002,
  2627. serialNumber: '108002Table8RejectFlag',
  2628. tableId: '108002Table8',
  2629. tableName: '审批信息',
  2630. columnProp: 'rejectFlagDesc',
  2631. headerAlign: 'center',
  2632. align: 'center',
  2633. columnLabel: '是否被驳回',
  2634. columnHidden: false,
  2635. columnImage: false,
  2636. status: true,
  2637. fixed: '',
  2638. columnWidth: 100
  2639. },
  2640. {
  2641. userId: this.$store.state.user.name,
  2642. functionId: 108002,
  2643. serialNumber: '108002Table8RejectNodeName',
  2644. tableId: '108002Table8',
  2645. tableName: '审批信息',
  2646. columnProp: 'rejectNodeName',
  2647. headerAlign: 'center',
  2648. align: 'center',
  2649. columnLabel: '被驳回节点名称',
  2650. columnHidden: false,
  2651. columnImage: false,
  2652. status: true,
  2653. fixed: '',
  2654. columnWidth: 200
  2655. },
  2656. {
  2657. userId: this.$store.state.user.name,
  2658. functionId: 108002,
  2659. serialNumber: '108002Table8NodeConclusionDesc',
  2660. tableId: '108002Table8',
  2661. tableName: '审批信息',
  2662. columnProp: 'nodeConclusionDesc',
  2663. headerAlign: 'center',
  2664. align: 'center',
  2665. columnLabel: '节点结论',
  2666. columnHidden: false,
  2667. columnImage: false,
  2668. status: true,
  2669. fixed: '',
  2670. columnWidth: 100
  2671. },
  2672. {
  2673. userId: this.$store.state.user.name,
  2674. functionId: 108002,
  2675. serialNumber: '108002Table8CreateDate',
  2676. tableId: '108002Table8',
  2677. tableName: '审批信息',
  2678. columnProp: 'createDate',
  2679. headerAlign: 'center',
  2680. align: 'center',
  2681. columnLabel: '提交时间',
  2682. columnHidden: false,
  2683. columnImage: false,
  2684. status: true,
  2685. fixed: '',
  2686. columnWidth: 170
  2687. },
  2688. {
  2689. userId: this.$store.state.user.name,
  2690. functionId: 108002,
  2691. serialNumber: '108002Table8CreateBy',
  2692. tableId: '108002Table8',
  2693. tableName: '审批信息',
  2694. columnProp: 'createBy',
  2695. headerAlign: 'center',
  2696. align: 'center',
  2697. columnLabel: '提交人员',
  2698. columnHidden: false,
  2699. columnImage: false,
  2700. status: true,
  2701. fixed: '',
  2702. columnWidth: 100
  2703. },
  2704. {
  2705. userId: this.$store.state.user.name,
  2706. functionId: 108002,
  2707. serialNumber: '108002Table8RejectOpinion',
  2708. tableId: '108002Table8',
  2709. tableName: '审批信息',
  2710. columnProp: 'rejectOpinion',
  2711. headerAlign: 'center',
  2712. align: 'left',
  2713. columnLabel: '驳回意见',
  2714. columnHidden: false,
  2715. columnImage: false,
  2716. status: true,
  2717. fixed: '',
  2718. columnWidth: 300
  2719. },
  2720. ],
  2721. partColumnList: [
  2722. {
  2723. columnProp: 'testPartNo',
  2724. headerAlign: "center",
  2725. align: "left",
  2726. columnLabel: 'PLM物料编码',
  2727. columnHidden: false,
  2728. columnImage: false,
  2729. columnSortable: false,
  2730. sortLv: 0,
  2731. status: true,
  2732. fixed: '',
  2733. columnWidth: 120
  2734. },
  2735. {
  2736. columnProp: 'finalPartNo',
  2737. headerAlign: "center",
  2738. align: "left",
  2739. columnLabel: 'IFS物料编码',
  2740. columnHidden: false,
  2741. columnImage: false,
  2742. columnSortable: false,
  2743. sortLv: 0,
  2744. status: true,
  2745. fixed: '',
  2746. columnWidth: 120
  2747. },
  2748. {
  2749. columnProp: 'customerPartNo',
  2750. headerAlign: "center",
  2751. align: "left",
  2752. columnLabel: '客户料号',
  2753. columnHidden: false,
  2754. columnImage: false,
  2755. columnSortable: false,
  2756. sortLv: 0,
  2757. status: true,
  2758. fixed: '',
  2759. columnWidth: 120
  2760. },
  2761. {
  2762. columnProp: 'partDesc',
  2763. headerAlign: "center",
  2764. align: "left",
  2765. columnLabel: '物料名称',
  2766. columnHidden: false,
  2767. columnImage: false,
  2768. status: true,
  2769. fixed: '',
  2770. columnWidth: 200
  2771. },
  2772. ],
  2773. // ======== 必填规则 ========
  2774. rules: {
  2775. applicantId: [
  2776. {
  2777. required: true,
  2778. message: ' ',
  2779. trigger: ['blur','change']
  2780. }
  2781. ],
  2782. applyDate: [
  2783. {
  2784. required: true,
  2785. message: ' ',
  2786. trigger: ['blur','change']
  2787. }
  2788. ],
  2789. changeImpact: [
  2790. {
  2791. required: true,
  2792. message: ' ',
  2793. trigger: ['blur','change']
  2794. }
  2795. ],
  2796. changeImpactDesc: [
  2797. {
  2798. required: true,
  2799. message: ' ',
  2800. trigger: ['blur','change']
  2801. }
  2802. ],
  2803. ecnStage: [
  2804. {
  2805. required: true,
  2806. message: ' ',
  2807. trigger: ['blur','change']
  2808. }
  2809. ],
  2810. changeType: [
  2811. {
  2812. required: true,
  2813. message: ' ',
  2814. trigger: ['blur','change']
  2815. }
  2816. ],
  2817. tpEngineerId: [
  2818. {
  2819. required: true,
  2820. message: ' ',
  2821. trigger: ['blur','change']
  2822. }
  2823. ],
  2824. changePhaseInDate: [
  2825. {
  2826. required: true,
  2827. message: ' ',
  2828. trigger: ['blur','change']
  2829. }
  2830. ],
  2831. dfIsProduct: [
  2832. {
  2833. required: true,
  2834. message: ' ',
  2835. trigger: ['blur','change']
  2836. }
  2837. ],
  2838. printing: [
  2839. {
  2840. required: true,
  2841. message: ' ',
  2842. trigger: ['blur','change']
  2843. }
  2844. ],
  2845. manufacturingCostIsChange: [
  2846. {
  2847. required: true,
  2848. message: ' ',
  2849. trigger: ['blur','change']
  2850. }
  2851. ],
  2852. changeRequestDesc: [
  2853. {
  2854. required: true,
  2855. message: ' ',
  2856. trigger: ['blur','change']
  2857. }
  2858. ],
  2859. isReQuote: [
  2860. {
  2861. required: true,
  2862. message: ' ',
  2863. trigger: ['blur','change']
  2864. }
  2865. ],
  2866. ulCertificationRequirements: [
  2867. {
  2868. required: true,
  2869. message: ' ',
  2870. trigger: ['blur','change']
  2871. }
  2872. ],
  2873. ulContinueToMeetDemand: [
  2874. {
  2875. required: true,
  2876. message: ' ',
  2877. trigger: ['blur','change']
  2878. }
  2879. ],
  2880. gpCertificationRequirements: [
  2881. {
  2882. required: true,
  2883. message: ' ',
  2884. trigger: ['blur','change']
  2885. }
  2886. ],
  2887. gpContinueToMeetDemand: [
  2888. {
  2889. required: true,
  2890. message: ' ',
  2891. trigger: ['blur','change']
  2892. }
  2893. ],
  2894. ecnType: [
  2895. {
  2896. required: true,
  2897. message: ' ',
  2898. trigger: ['blur','change']
  2899. }
  2900. ],
  2901. },
  2902. // ======== 复选数据集 ========
  2903. fileSelections: [],
  2904. itemSelections: [],
  2905. dataSelections2: [],
  2906. // ======== 选中的当前行数据 ========
  2907. currentRow: {},
  2908. currentCostImpactData: {},
  2909. currentExecutionInfoData: {},
  2910. currentChooseItemList: [],
  2911. currentChooseItemList2: [],
  2912. currentChooseCSItemList: [],
  2913. // ======== 模态框开关控制 ========
  2914. modalFlag: false,
  2915. modalDisableFlag: false,
  2916. ecnTypeModalFlag: false,
  2917. chooseModelFlag: false,
  2918. chooseModelFlag2: false,
  2919. chooseCSModelFlag: false,
  2920. uploadDialog: false,
  2921. submitModalFlag: false,
  2922. addDetailModal: false,
  2923. saveLoading: false,
  2924. submitLoading: false,
  2925. menuId: this.$route.meta.menuId,
  2926. authSearch: false,
  2927. authUpdate: false,
  2928. authIssue: false,
  2929. authSubmit: false,
  2930. authReject: false,
  2931. authFileSave: false,
  2932. authFileDownLoad: false,
  2933. authFileRemove: false,
  2934. authFilePreview: false,
  2935. partModelFlag: false,
  2936. createBy2: this.$store.state.user.name,
  2937. }
  2938. },
  2939. mounted () {
  2940. this.$nextTick(() => {
  2941. this.height = window.innerHeight / 2 - 30
  2942. /*第二个表格高度的动态调整*/
  2943. this.secondHeight = window.innerHeight / 2 - 186
  2944. })
  2945. },
  2946. activated () {
  2947. if (this.authSearch) {
  2948. if (this.$route.params.type === 'tokenLogin') {
  2949. if (this.$route.params.docNo) {
  2950. this.searchData.changeNo = this.$route.params.docNo
  2951. }
  2952. this.searchData.limit = this.pageSize
  2953. this.searchData.page = this.pageIndex
  2954. changeRecordSearch(this.searchData).then(({data}) => {
  2955. if (data.code === 0) {
  2956. this.dataList = data.page.list
  2957. this.pageIndex = data.page.currPage
  2958. this.pageSize = data.page.pageSize
  2959. this.totalPage = data.page.totalCount
  2960. // 判断是否全部存在数据
  2961. if (this.dataList.length > 0) {
  2962. // 设置选中行
  2963. this.$refs.changeTable.setCurrentRow(this.dataList[0])
  2964. this.updateModal(this.dataList[0])
  2965. } else {
  2966. this.currentRow = {}
  2967. }
  2968. }
  2969. })
  2970. } else {
  2971. if (this.$route.params.changeNo) {
  2972. this.searchData.changeNo = this.$route.params.changeNo
  2973. }
  2974. this.getDataList()
  2975. }
  2976. }
  2977. },
  2978. created () {
  2979. // 按钮控制
  2980. this.getButtonAuthData()
  2981. this.getEcnModel()
  2982. this.getEcnModel2()
  2983. this.getEcnCSModel()
  2984. this.getBuBySite()
  2985. },
  2986. methods: {
  2987. // 获取用户的bu
  2988. getBuBySite () {
  2989. let tempData = {
  2990. site: this.$store.state.user.site,
  2991. }
  2992. getBuBySite(tempData).then(({data}) => {
  2993. if (data.code === 0) {
  2994. this.buList = data.rows
  2995. }
  2996. })
  2997. },
  2998. // 查询ECN的评估模板
  2999. getEcnModel2 () {
  3000. let tempData = {
  3001. site: this.$store.state.user.site,
  3002. functionType: 'ECN',
  3003. codeNo: 'E002'
  3004. }
  3005. getEcnModel(tempData).then(({data}) => {
  3006. if (data.code === 0) {
  3007. this.modelList2 = data.rows
  3008. }
  3009. })
  3010. },
  3011. // 查询会签的模板
  3012. getEcnCSModel () {
  3013. let tempData = {
  3014. site: this.$store.state.user.site,
  3015. functionType: 'ECN',
  3016. codeNo: 'E003'
  3017. }
  3018. getEcnModel(tempData).then(({data}) => {
  3019. if (data.code === 0) {
  3020. this.modelCSList = data.rows
  3021. }
  3022. })
  3023. },
  3024. // 选择模板属性
  3025. chooseFeasibilityAssessmentModel () {
  3026. this.chooseModelData2 = {
  3027. site: this.$store.state.user.site,
  3028. itemNo: '',
  3029. itemDesc: '',
  3030. functionType: 'ECN',
  3031. codeNo: this.modelList2.length > 0 ? this.modelList2[0].codeNo : ''
  3032. }
  3033. // 先清空缓存选中
  3034. //this.$nextTick(() => this.$refs.itemTable2.clearSelection())
  3035. getItemList(this.chooseModelData2).then(({data}) => {
  3036. if (data && data.code === 0) {
  3037. this.itemList2 = data.rows
  3038. this.itemList2.forEach(val => {
  3039. // 回显选中
  3040. if (this.chooseItemList2.map(val => val.itemNo).includes(val.itemNo)) {
  3041. this.$nextTick(() => this.$refs.itemTable2.toggleRowSelection(val, true))
  3042. }
  3043. })
  3044. } else {
  3045. this.$alert(data.msg, '错误', {
  3046. confirmButtonText: '确定'
  3047. })
  3048. }
  3049. })
  3050. this.chooseModelFlag2 = true
  3051. },
  3052. // 选择会签模板属性
  3053. chooseCSModel () {
  3054. this.chooseCSModelData = {
  3055. site: this.$store.state.user.site,
  3056. itemNo: '',
  3057. itemDesc: '',
  3058. functionType: 'ECN',
  3059. codeNo: this.modelCSList.length > 0 ? this.modelCSList[0].codeNo : ''
  3060. }
  3061. // 先清空缓存选中
  3062. this.$nextTick(() => this.$refs.itemCSTable.clearSelection())
  3063. // 查询所有属性
  3064. getItemList(this.chooseCSModelData).then(({data}) => {
  3065. if (data && data.code === 0) {
  3066. this.itemCSList = data.rows
  3067. this.itemCSList.forEach(val => {
  3068. // 回显选中的部门
  3069. if (this.chooseCSItemList.map(val => val.itemNo).includes(val.itemNo)) {
  3070. this.$nextTick(() => this.$refs.itemCSTable.toggleRowSelection(val, true))
  3071. }
  3072. })
  3073. } else {
  3074. this.$alert(data.msg, '错误', {
  3075. confirmButtonText: '确定'
  3076. })
  3077. }
  3078. })
  3079. this.chooseCSModelFlag = true
  3080. },
  3081. // 确认多选属性
  3082. confirmItem2 () {
  3083. if (this.itemSelections2.length === 0) {
  3084. this.$message.warning("请勾选属性!")
  3085. return
  3086. }
  3087. // 临时集合
  3088. let temp = []
  3089. // 首先,遍历a,检查每个对象的名字是否在b中也存在
  3090. this.chooseItemList2.forEach(itemA => {
  3091. if (this.itemSelections2.some(itemB => itemB.itemNo === itemA.itemNo)) {
  3092. // 如果存在,则将a中的对象添加到结果中(这里直接用a的原对象,因为要求是保留a中对象)
  3093. temp.push(itemA)
  3094. }
  3095. })
  3096. // 然后,遍历b,检查是否有对象的名字不在结果中已存在的名字中
  3097. this.itemSelections2.forEach(itemB => {
  3098. if (!temp.some(itemR => itemR.itemNo === itemB.itemNo)) {
  3099. // 如果b中的对象名字不在结果中,则添加到结果中
  3100. temp.push(itemB)
  3101. }
  3102. })
  3103. this.chooseItemList2 = temp.map(item => {
  3104. if (item.availableValueList.length > 0) {
  3105. item.chooseValue = item.availableValueList[0].availableValue
  3106. }
  3107. return item
  3108. })
  3109. this.chooseModelFlag2 = false
  3110. },
  3111. // 确认多选CS属性
  3112. confirmCSItem () {
  3113. if (this.itemCSSelections.length === 0) {
  3114. this.$message.warning("请勾选属性!")
  3115. return
  3116. }
  3117. // 临时集合
  3118. let temp = []
  3119. // 首先,遍历a,检查每个对象的名字是否在b中也存在
  3120. this.chooseCSItemList.forEach(itemA => {
  3121. if (this.itemCSSelections.some(itemB => itemB.itemNo === itemA.itemNo)) {
  3122. // 如果存在,则将a中的对象添加到结果中(这里直接用a的原对象,因为要求是保留a中对象)
  3123. temp.push(itemA)
  3124. }
  3125. })
  3126. // 然后,遍历b,检查是否有对象的名字不在结果中已存在的名字中
  3127. this.itemCSSelections.forEach(itemB => {
  3128. if (!temp.some(itemR => itemR.itemNo === itemB.itemNo)) {
  3129. // 如果b中的对象名字不在结果中,则添加到结果中
  3130. temp.push(itemB)
  3131. }
  3132. })
  3133. this.chooseCSItemList = temp
  3134. this.chooseCSModelFlag = false
  3135. },
  3136. // 查询属性
  3137. searchItemList2 () {
  3138. getItemList(this.chooseModelData2).then(({data}) => {
  3139. if (data.code === 0) {
  3140. this.itemList2 = data.rows
  3141. }
  3142. })
  3143. },
  3144. // 查询CS属性
  3145. searchCSItemList () {
  3146. getItemList(this.chooseCSModelData).then(({data}) => {
  3147. if (data.code === 0) {
  3148. this.itemCSList = data.rows
  3149. }
  3150. })
  3151. },
  3152. // 单机选择
  3153. itemClickRow2 (row) {
  3154. this.$refs.itemTable2.toggleRowSelection(row)
  3155. },
  3156. // 单击选择
  3157. itemCSClickRow (row) {
  3158. this.$refs.itemCSTable.toggleRowSelection(row)
  3159. },
  3160. // 复选属性
  3161. selectionItem2 (val) {
  3162. this.itemSelections2 = val
  3163. },
  3164. // 复选CS属性
  3165. selectionCSItem (val) {
  3166. this.itemCSSelections = val
  3167. },
  3168. // 获取流程的配置权限
  3169. async getNodeAuthority (row) {
  3170. let tempData = {
  3171. site: row.site,
  3172. changeNo: row.changeNo,
  3173. stepId: row.stepId,
  3174. menuId: this.$route.meta.menuId
  3175. }
  3176. await getNodeAuthority(tempData).then(({data}) => {
  3177. if (data && data.code === 0) {
  3178. this.plmChangeRequestArr = data.rows.plm_change_request
  3179. this.plmChangeRequestDetailArr = data.rows.plm_change_request_detail
  3180. this.plmChangeCostImpactArr = data.rows.plm_change_cost_impact
  3181. this.plmChangeFAItemArr = data.rows.plm_change_FA_item
  3182. this.plmChangeExecutionInfoArr = data.rows.plm_change_execution_info
  3183. this.plmChangeItemArr = data.rows.plm_change_item
  3184. this.plmChangeCountersignatureItemArr = data.rows.plm_change_countersignature_item
  3185. }
  3186. })
  3187. },
  3188. // ======= 正则校验 =======
  3189. handleInput (value, type) {
  3190. // 大于等于0,且只能输入16位小数
  3191. let val = value.replace(/^\D*([0-9]\d*\.?\d{0,16})?.*$/,'$1')
  3192. if (val === null || val === undefined || val === '') {
  3193. val = 0
  3194. }
  3195. if (type === 1) {
  3196. this.costImpactData.productionProductScrapAmount = val
  3197. } else if (type === 2) {
  3198. this.costImpactData.inventoryProductScrapAmount = val
  3199. } else if (type === 3) {
  3200. this.costImpactData.affectedScrapAmount = val
  3201. }
  3202. },
  3203. partInput (row, val) {
  3204. row.newPartNo = val.toUpperCase()
  3205. },
  3206. executorInput (row, val) {
  3207. //row.executor = val.toUpperCase()
  3208. },
  3209. choosePartNo (row) {
  3210. this.partData.site = row.site
  3211. this.partData.buNo = row.buNo
  3212. this.tempPartRow = row
  3213. if (this.tempPartRow.newPartNo == null) {
  3214. this.tempPartRow.newPartNo = ''
  3215. }
  3216. this.queryPartList()
  3217. //this.getBaseList(133)
  3218. },
  3219. // 查询物料
  3220. queryPartList () {
  3221. this.partData.limit = this.pageSize2
  3222. this.partData.page = this.pageIndex2
  3223. choosePartNoList(this.partData).then(({data}) => {
  3224. if (data && data.code === 0) {
  3225. this.partList = data.page.list
  3226. this.pageIndex2 = data.page.currPage
  3227. this.pageSize2 = data.page.pageSize
  3228. this.totalPage2 = data.page.totalCount
  3229. this.partModelFlag = true
  3230. } else {
  3231. this.partList = []
  3232. }
  3233. })
  3234. },
  3235. // 双击选中物料
  3236. getRowData (row) {
  3237. this.$set(this.tempPartRow,'newPartNo', row.testPartNo)
  3238. this.partModelFlag = false
  3239. },
  3240. // 每页数
  3241. sizeChangeHandle2 (val) {
  3242. this.pageSize2 = val
  3243. this.pageIndex2 = 1
  3244. this.queryPartList()
  3245. },
  3246. // 当前页
  3247. currentChangeHandle2 (val) {
  3248. this.pageIndex2 = val
  3249. this.queryPartList()
  3250. },
  3251. chooseExecutor (row) {
  3252. this.tempExecutorRow = row
  3253. if (this.tempExecutorRow.executor == null) {
  3254. this.tempExecutorRow.executor = ''
  3255. }
  3256. this.getBaseList(2010)
  3257. },
  3258. ecnTypeHeaderChange (val,index) {
  3259. if (val === 'Y') {
  3260. for (let i = 0; i < this.form[index].list.length; i++) {
  3261. this.form[index].list[i].flag = 'Y'
  3262. }
  3263. } else {
  3264. for (let i = 0; i < this.form[index].list.length; i++) {
  3265. this.form[index].list[i].flag = 'N'
  3266. }
  3267. }
  3268. },
  3269. ecnTypeDetailChange (val,index) {
  3270. if (this.form[index].list.every(x => x.flag === 'Y')) {
  3271. this.form[index].flag = 'Y'
  3272. }else {
  3273. this.form[index].flag = 'N'
  3274. }
  3275. },
  3276. // ======== 分页相关方法 ========
  3277. // 每页数
  3278. sizeChangeHandle (val) {
  3279. this.pageSize = val
  3280. this.pageIndex = 1
  3281. this.getDataList()
  3282. },
  3283. // 当前页
  3284. currentChangeHandle (val) {
  3285. this.pageIndex = val
  3286. this.getDataList()
  3287. },
  3288. // ======== 列表选择相关方法 ========
  3289. selectFlag () {
  3290. return true
  3291. },
  3292. // ======== 页签切换相关方法 ========
  3293. // 单机选中询价信息
  3294. changeClickRow (row) {
  3295. this.$refs.changeTable.toggleRowSelection(row)
  3296. this.currentRow = JSON.parse(JSON.stringify(row))
  3297. },
  3298. // // 列表表格选择替换
  3299. // tabClick (tab, event) {
  3300. // // 刷新列表数据
  3301. // this.refreshCurrentTabTable()
  3302. // },
  3303. // 当前值发生变化的时候修改
  3304. currentChange (row, oldRow) {
  3305. // 判断是否是获取焦点的事件
  3306. if (row) {
  3307. this.currentRow = JSON.parse(JSON.stringify(row))
  3308. // 刷新当前页表
  3309. this.refreshCurrentTabTable()
  3310. }
  3311. },
  3312. // 刷新页签的table数据
  3313. refreshChangeTab () {},
  3314. // 新增库存成本影响
  3315. inventoryCostImpactSave () {
  3316. if (this.costImpactData.productionProductFlag === 'Y') { // 在生产品
  3317. if (this.costImpactData.productionProductNumber == null || this.costImpactData.productionProductNumber === '') {
  3318. this.$message.warning('请填写在生产品数量!')
  3319. return
  3320. }
  3321. if (this.costImpactData.productionProductNumber <= 0) {
  3322. this.$message.warning('在生产品数量不能小于等于0!')
  3323. return
  3324. }
  3325. if (this.costImpactData.productionProductOpinions == null || this.costImpactData.productionProductOpinions === '') {
  3326. this.$message.warning('请填写在生产品处理意见!')
  3327. return
  3328. }
  3329. if (this.costImpactData.productionProductScrapAmount === 0) {
  3330. this.$message.warning('请填写在生产品报废金额!')
  3331. return
  3332. }
  3333. if (this.costImpactData.productionProductExecutor == null || this.costImpactData.productionProductExecutor === '') {
  3334. this.$message.warning('请填写在生产品执行人!')
  3335. return
  3336. }
  3337. }
  3338. if (this.costImpactData.inventoryProductFlag === 'Y') { // 成品库存
  3339. if (this.costImpactData.inventoryProductNumber == null || this.costImpactData.inventoryProductNumber === '') {
  3340. this.$message.warning('请填写成品库存数量!')
  3341. return
  3342. }
  3343. if (this.costImpactData.inventoryProductNumber <= 0) {
  3344. this.$message.warning('成品库存数量不能小于等于0!')
  3345. return
  3346. }
  3347. if (this.costImpactData.inventoryProductOpinions == null || this.costImpactData.inventoryProductOpinions === '') {
  3348. this.$message.warning('请填写成品库存处理意见!')
  3349. return
  3350. }
  3351. if (this.costImpactData.inventoryProductScrapAmount === 0) {
  3352. this.$message.warning('请填写成品库存报废金额!')
  3353. return
  3354. }
  3355. if (this.costImpactData.inventoryProductExecutor == null || this.costImpactData.inventoryProductExecutor === '') {
  3356. this.$message.warning('请填写成品库存执行人!')
  3357. return
  3358. }
  3359. }
  3360. if (this.costImpactData.newOrderFlag === 'Y') { // 新订单
  3361. if (this.costImpactData.newOrderNumber == null || this.costImpactData.newOrderNumber === '') {
  3362. this.$message.warning('请填写新订单数量!')
  3363. return
  3364. }
  3365. if (this.costImpactData.newOrderNumber <= 0) {
  3366. this.$message.warning('新订单数量不能小于等于0!')
  3367. return
  3368. }
  3369. }
  3370. if (this.costImpactData.affectedFlag === 'Y') { // 影响的原材料及其库存量
  3371. if (this.costImpactData.affectedNumber == null || this.costImpactData.affectedNumber === '') {
  3372. this.$message.warning('请填写影响的原材料及其库存量数量!')
  3373. return
  3374. }
  3375. if (this.costImpactData.affectedNumber <= 0) {
  3376. this.$message.warning('影响的原材料及其库存量数量不能小于等于0!')
  3377. return
  3378. }
  3379. if (this.costImpactData.affectedOpinions == null || this.costImpactData.affectedOpinions === '') {
  3380. this.$message.warning('请填写影响的原材料及其库存量处理意见!')
  3381. return
  3382. }
  3383. if (this.costImpactData.affectedScrapAmount === 0) {
  3384. this.$message.warning('请填写影响的原材料及其库存量报废金额!')
  3385. return
  3386. }
  3387. if (this.costImpactData.affectedExecutor == null || this.costImpactData.affectedExecutor === '') {
  3388. this.$message.warning('请填写影响的原材料及其库存量执行人!')
  3389. return
  3390. }
  3391. }
  3392. this.costImpactData.changeTotalCost = this.totalCost
  3393. costImpactUpdate(this.costImpactData).then(({data}) => {
  3394. if (data && data.code === 0) {
  3395. this.costImpactData = data.rows.costImpactData
  3396. this.getDataList()
  3397. this.$message({
  3398. message: '操作成功',
  3399. type: 'success',
  3400. duration: 1500,
  3401. onClose: () => {}
  3402. })
  3403. } else {
  3404. this.$alert(data.msg, '错误', {
  3405. confirmButtonText: '确定'
  3406. })
  3407. }
  3408. })
  3409. },
  3410. // 刷新页签的table数据
  3411. refreshCurrentTabTable () {
  3412. if (this.activeTable === 'basicInformation') {
  3413. this.getChangeDetailList()
  3414. } else if (this.activeTable === 'fileInformation') {
  3415. this.getChangeFileList()
  3416. } else if (this.activeTable === 'inventoryCostImpact') {
  3417. this.inventoryCostImpactSearch2()
  3418. } else if (this.activeTable === 'actionInformation') {
  3419. this.tpExecutionInfoSearch2()
  3420. } else if (this.activeTable === 'countersignature') {
  3421. this.countersignatureSearch2()
  3422. } else if (this.activeTable === 'approvalInformation') {
  3423. this.getApprovalList()
  3424. }
  3425. },
  3426. // ======== 列表数据刷新方法 ========
  3427. // 获取数据列表
  3428. getDataList () {
  3429. if(localStorage.getItem('ecnData')!=undefined){
  3430. let data=JSON.parse(localStorage.getItem('ecnData'));
  3431. this.searchData.changeNo=data.ecnNo
  3432. localStorage.removeItem('ecnData');
  3433. }
  3434. this.searchData.limit = this.pageSize
  3435. this.searchData.page = this.pageIndex
  3436. changeRecordSearch(this.searchData).then(({data}) => {
  3437. if (data.code === 0) {
  3438. this.dataList = data.page.list
  3439. this.pageIndex = data.page.currPage
  3440. this.pageSize = data.page.pageSize
  3441. this.totalPage = data.page.totalCount
  3442. // 判断是否全部存在数据
  3443. if (this.dataList.length > 0) {
  3444. // 设置选中行
  3445. this.$refs.changeTable.setCurrentRow(this.dataList[0])
  3446. } else {
  3447. this.currentRow = {}
  3448. }
  3449. }
  3450. })
  3451. },
  3452. // 变更单详情的列表
  3453. getChangeDetailList () {
  3454. let tempData = {
  3455. site: this.$store.state.user.site,
  3456. changeNo: this.currentRow.changeNo
  3457. }
  3458. changeDetailSearch(tempData).then(({data}) => {
  3459. if (data && data.code === 0) {
  3460. this.detailList = data.rows
  3461. } else {
  3462. this.detailList = []
  3463. }
  3464. })
  3465. },
  3466. // 变更单文件的列表
  3467. getChangeFileList () {
  3468. let tempData = {
  3469. orderRef1: this.$store.state.user.site,
  3470. orderRef2: this.currentRow.changeNo
  3471. }
  3472. changeFileSearch(tempData).then(({data}) => {
  3473. if (data && data.code === 0) {
  3474. this.fileList = data.rows
  3475. } else {
  3476. this.fileList = []
  3477. }
  3478. })
  3479. },
  3480. // 复选变更单文件
  3481. selectionFile (val) {
  3482. this.fileSelections = val
  3483. },
  3484. // 上传文件
  3485. uploadFileModal () {
  3486. let currentData = {
  3487. titleCon: '工程变更文件上传',
  3488. site: this.currentRow.site,
  3489. createBy: this.$store.state.user.name,
  3490. dataNo: this.currentRow.changeNo,
  3491. fileRemark: '',
  3492. folder: 'change',
  3493. }
  3494. this.uploadDialog = true
  3495. //打开组件 去做新增业务
  3496. // this.$nextTick(() => {
  3497. // this.$refs.changeUploadFile.init(currentData);
  3498. // })
  3499. },
  3500. // 删除变更单文件
  3501. deleteChangeFile () {
  3502. if (this.fileSelections.length === 0) {
  3503. this.$message.warning('请选择要删除的文件!')
  3504. return
  3505. }
  3506. let tempData = {
  3507. fileList: this.fileSelections
  3508. }
  3509. this.$confirm('确定删除文件?', '提示', {
  3510. confirmButtonText: '确定',
  3511. cancelButtonText: '取消',
  3512. type: 'warning'
  3513. }).then(() => {
  3514. deleteChangeFile(tempData).then(({data}) => {
  3515. if (data && data.code === 0) {
  3516. this.getChangeFileList()
  3517. this.$message({
  3518. message: '操作成功',
  3519. type: 'success',
  3520. duration: 1500,
  3521. onClose: () => {}
  3522. })
  3523. } else {
  3524. this.$alert(data.msg, '错误', {
  3525. confirmButtonText: '确定'
  3526. })
  3527. }
  3528. })
  3529. })
  3530. },
  3531. // 下载
  3532. downloadFile (row) {
  3533. downLoadQuotationFile(row)
  3534. .then(({data}) => {
  3535. // 不限制文件下载类型
  3536. const blob = new Blob([data], {type:'application/octet-stream;charset=utf-8'})
  3537. // 下载文件名称
  3538. const fileName = row.fileName
  3539. // a标签下载
  3540. const linkNode = document.createElement('a')
  3541. linkNode.download = fileName // a标签的download属性规定下载文件的名称
  3542. linkNode.style.display = 'none'
  3543. linkNode.href = URL.createObjectURL(blob) // 生成一个Blob URL
  3544. document.body.appendChild(linkNode)
  3545. linkNode.click() // 模拟在按钮上的一次鼠标单击
  3546. URL.revokeObjectURL(linkNode.href) // 释放URL 对象
  3547. document.body.removeChild(linkNode)
  3548. })
  3549. },
  3550. // 修改变更单模态框
  3551. async updateModal (row) {
  3552. await this.getNodeAuthority(row)
  3553. this.modalData = {
  3554. site: row.site,
  3555. changeNo: row.changeNo,
  3556. applicantId: row.applicantId,
  3557. applicantName: row.applicantName,
  3558. applicationDepartmentId: row.applicationDepartmentId,
  3559. applicationDepartmentName: row.applicationDepartmentName,
  3560. applyDate: row.applyDate,
  3561. ecnType: row.ecnType,
  3562. changeImpact: row.changeImpact,
  3563. changeImpactDesc: row.changeImpactDesc,
  3564. ecnStage: row.ecnStage,
  3565. changeType: row.changeType,
  3566. tpEngineerId: row.tpEngineerId,
  3567. tpEngineerName: row.tpEngineerName,
  3568. changePhaseInDate: row.changePhaseInDate,
  3569. dfIsProduct: row.dfIsProduct,
  3570. printing: row.printing,
  3571. manufacturingCostIsChange: row.manufacturingCostIsChange,
  3572. changeRequestDesc: row.changeRequestDesc,
  3573. isReQuote: row.isReQuote,
  3574. ulCertificationRequirements: row.ulCertificationRequirements,
  3575. ulContinueToMeetDemand: row.ulContinueToMeetDemand,
  3576. gpCertificationRequirements: row.gpCertificationRequirements,
  3577. gpContinueToMeetDemand: row.gpContinueToMeetDemand,
  3578. updateBy: this.$store.state.user.name,
  3579. detailList: [],
  3580. ecnTypeData: [],
  3581. industrialEngineerId: row.industrialEngineerId,
  3582. industrialEngineerName: row.industrialEngineerName,
  3583. changeStatus: row.changeStatus,
  3584. cqcOperatorId: row.cqcOperatorId,
  3585. cqcOperatorName: row.cqcOperatorName,
  3586. faiOperatorId: row.faiOperatorId,
  3587. faiOperatorName: row.faiOperatorName,
  3588. nodeConclusion: '',
  3589. rejectOpinion: '',
  3590. stepId: row.stepId,
  3591. rejectFlag: row.rejectFlag,
  3592. rejectStepId: row.rejectStepId,
  3593. isReject: row.isReject,
  3594. menuId: this.$route.meta.menuId,
  3595. userName: this.$store.state.user.name,
  3596. nodeId: row.nodeId,
  3597. buNo: row.buNo,
  3598. createBy2: row.createBy2,
  3599. tpProcessControl: row.tpProcessControl,
  3600. csProcessControl: row.csProcessControl
  3601. }
  3602. this.changeTitle = '变更申请-' + this.modalData.changeNo
  3603. // 查选择的ECN种类
  3604. this.getChangeChooseEcnType()
  3605. // 查变更单明细
  3606. this.changeRequestDetailSearch()
  3607. // 查变更单库存成本影响
  3608. this.inventoryCostImpactSearch()
  3609. // 查变更单TP&执行信息
  3610. this.tpExecutionInfoSearch()
  3611. // 查变更单会签信息
  3612. this.countersignatureSearch()
  3613. this.activeName = 'basicInformation'
  3614. this.modalFlag = true
  3615. this.modalDisableFlag = true
  3616. },
  3617. // 下达
  3618. issueModal (row) {
  3619. this.$confirm(`是否确认下达?`, '提示', {
  3620. confirmButtonText: '确定',
  3621. cancelButtonText: '取消',
  3622. type: 'warning'
  3623. }).then(() => {
  3624. let tempData = {
  3625. site: row.site,
  3626. userName: this.$store.state.user.name,
  3627. changeNo: row.changeNo,
  3628. menuId: this.$route.meta.menuId
  3629. }
  3630. issueChange(tempData).then(({data}) => {
  3631. if (data && data.code === 0) {
  3632. this.getDataList()
  3633. this.$message({message: '操作成功', type: 'success'})
  3634. } else {
  3635. this.$alert(data.msg, '错误', {
  3636. confirmButtonText: '确定'
  3637. })
  3638. }
  3639. })
  3640. })
  3641. },
  3642. // 打开提交模态框
  3643. submitDataModal () {
  3644. this.rejectOpinion = ''
  3645. this.submitModalFlag = true
  3646. },
  3647. // 同意提交
  3648. agreeSubmit () {
  3649. this.$confirm(`是否确认提交?`, '提示', {
  3650. confirmButtonText: '确定',
  3651. cancelButtonText: '取消',
  3652. type: 'warning'
  3653. }).then(() => {
  3654. this.modalData.nodeConclusion = 'Y'
  3655. this.submitData()
  3656. })
  3657. },
  3658. // 驳回提交
  3659. rejectSubmit () {
  3660. this.$confirm(`是否确认驳回?`, '提示', {
  3661. confirmButtonText: '确定',
  3662. cancelButtonText: '取消',
  3663. type: 'warning'
  3664. }).then(() => {
  3665. this.modalData.rejectOpinion = this.rejectOpinion
  3666. this.modalData.nodeConclusion = 'N'
  3667. this.submitData()
  3668. })
  3669. },
  3670. // 提交
  3671. submitData () {
  3672. if (this.plmChangeRequestArr) {
  3673. for (let i = 0; i < this.plmChangeRequestArr.length; i++) {
  3674. if (!this.modalData[this.plmChangeRequestArr[i].fieldId] && this.plmChangeRequestArr[i].required === 'Y') {
  3675. this.$message.warning(this.plmChangeRequestArr[i].fieldName + '不能为空!')
  3676. return
  3677. }
  3678. }
  3679. }
  3680. if (this.plmChangeRequestDetailArr) { // 所选技术参数卡
  3681. for (let i = 0; i < this.plmChangeRequestDetailArr.length; i++) {
  3682. // 判断集合中的该属性是否都有值
  3683. let val = this.chooseDataList.every(item => {
  3684. const value = item[this.plmChangeRequestDetailArr[i].fieldId]
  3685. return value !== null && value !== ''
  3686. })
  3687. // 如果没有值 且该字段为必填
  3688. if (!val && this.plmChangeRequestDetailArr[i].required === 'Y') {
  3689. this.$message.warning(this.plmChangeRequestDetailArr[i].fieldName + '不能为空!')
  3690. return
  3691. }
  3692. }
  3693. }
  3694. if (this.plmChangeCostImpactArr) { // 库存成本影响
  3695. for (let i = 0; i < this.plmChangeCostImpactArr.length; i++) {
  3696. if (!this.costImpactData[this.plmChangeCostImpactArr[i].fieldId] && this.plmChangeCostImpactArr[i].required === 'Y') {
  3697. this.$message.warning(this.plmChangeCostImpactArr[i].fieldName + '不能为空!')
  3698. return
  3699. }
  3700. }
  3701. }
  3702. if (this.plmChangeFAItemArr) { // 评估信息
  3703. for (let i = 0; i < this.plmChangeFAItemArr.length; i++) {
  3704. let val = this.chooseItemList2.every(item => {
  3705. const value = item[this.plmChangeFAItemArr[i].fieldId]
  3706. return value !== null && value !== ''
  3707. })
  3708. if (!val && this.plmChangeFAItemArr[i].required === 'Y') {
  3709. this.$message.warning(this.plmChangeFAItemArr[i].fieldName + '不能为空!')
  3710. return
  3711. }
  3712. }
  3713. }
  3714. if (this.plmChangeExecutionInfoArr) {
  3715. for (let i = 0; i < this.plmChangeExecutionInfoArr.length; i++) {
  3716. if (!this.executionInfoData[this.plmChangeExecutionInfoArr[i].fieldId] && this.plmChangeExecutionInfoArr[i].required === 'Y') {
  3717. this.$message.warning(this.plmChangeExecutionInfoArr[i].fieldName + '不能为空!')
  3718. return
  3719. }
  3720. }
  3721. }
  3722. if (this.plmChangeItemArr) { // 执行信息
  3723. for (let i = 0; i < this.plmChangeItemArr.length; i++) {
  3724. let val = this.chooseItemList.every(item => {
  3725. const value = item[this.plmChangeItemArr[i].fieldId]
  3726. return value !== null && value !== ''
  3727. })
  3728. if (!val && this.plmChangeItemArr[i].required === 'Y') {
  3729. this.$message.warning(this.plmChangeItemArr[i].fieldName + '不能为空!')
  3730. return
  3731. }
  3732. }
  3733. }
  3734. if (this.plmChangeCountersignatureItemArr) { // 会签信息
  3735. for (let i = 0; i < this.plmChangeCountersignatureItemArr.length; i++) {
  3736. let val = this.currentChooseCSItemList.every(item => {
  3737. const value = item[this.plmChangeCountersignatureItemArr[i].fieldId]
  3738. return value !== null && value !== ''
  3739. })
  3740. if (!val && this.plmChangeCountersignatureItemArr[i].required === 'Y') {
  3741. this.$message.warning(this.plmChangeCountersignatureItemArr[i].fieldName + '不能为空!')
  3742. return
  3743. }
  3744. }
  3745. }
  3746. if (this.chooseDataList.length === 0) {
  3747. this.$message.warning('请添加需要变更的技术参数卡!')
  3748. return
  3749. }
  3750. this.costImpactData.changeTotalCost = this.totalCost
  3751. this.executionInfoData.chooseItemList = this.chooseItemList
  3752. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  3753. this.countersignatureData.changeNo = this.modalData.changeNo
  3754. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  3755. this.modalData.userName = this.$store.state.user.name
  3756. this.modalData.menuId = this.$route.meta.menuId
  3757. this.modalData.detailList = this.chooseDataList
  3758. this.modalData.ecnTypeData = this.form
  3759. this.modalData.costImpactData = this.costImpactData
  3760. this.modalData.executionInfoData = this.executionInfoData
  3761. this.modalData.countersignatureData = this.countersignatureData
  3762. this.submitLoading = true
  3763. submitChange(this.modalData).then(({data}) => {
  3764. if (data && data.code === 0) {
  3765. this.getDataList()
  3766. this.$message({message: '操作成功', type: 'success'})
  3767. this.submitModalFlag = false
  3768. this.modalFlag = false
  3769. } else {
  3770. this.$alert(data.msg, '错误', {
  3771. confirmButtonText: '确定'
  3772. })
  3773. }
  3774. this.submitLoading = false
  3775. }).catch(()=>{
  3776. this.submitLoading = false
  3777. })
  3778. },
  3779. // 获取选择的ECN种类
  3780. getChangeChooseEcnType () {
  3781. getChooseEcnType(this.modalData).then(({data}) => {
  3782. if (data && data.code === 0) {
  3783. this.form = data.rows
  3784. } else {
  3785. this.$alert(data.msg, '错误', {
  3786. confirmButtonText: '确定'
  3787. })
  3788. }
  3789. })
  3790. },
  3791. // 打开ECN种类模态框
  3792. chooseEcnTypeModal () {
  3793. this.ecnTypeModalFlag = true
  3794. },
  3795. // 保存ECN种类
  3796. saveEcnTypeData () {
  3797. this.ecnTypeModalFlag = false
  3798. },
  3799. // 查询ECN的模板
  3800. getEcnModel () {
  3801. let tempData = {
  3802. site: this.$store.state.user.site,
  3803. functionType: 'ECN',
  3804. codeNo: 'E001'
  3805. }
  3806. getEcnModel(tempData).then(({data}) => {
  3807. if (data.code === 0) {
  3808. this.modelList = data.rows
  3809. }
  3810. })
  3811. },
  3812. // 查询变更明细表
  3813. changeRequestDetailSearch () {
  3814. requestDetailSearch(this.modalData).then(({data}) => {
  3815. if (data && data.code === 0) {
  3816. this.chooseDataList = data.rows
  3817. } else {
  3818. this.$alert(data.msg, '错误', {
  3819. confirmButtonText: '确定'
  3820. })
  3821. }
  3822. })
  3823. },
  3824. // 查询库存成本影响对象
  3825. inventoryCostImpactSearch () {
  3826. costImpactSearch(this.modalData).then(({data}) => {
  3827. if (data && data.code === 0) {
  3828. this.costImpactData = data.rows
  3829. } else {
  3830. this.$alert(data.msg, '错误', {
  3831. confirmButtonText: '确定'
  3832. })
  3833. }
  3834. })
  3835. },
  3836. // 查询库存成本影响对象
  3837. inventoryCostImpactSearch2 () {
  3838. costImpactSearch(this.currentRow).then(({data}) => {
  3839. if (data && data.code === 0) {
  3840. this.currentCostImpactData = data.rows
  3841. } else {
  3842. this.$alert(data.msg, '错误', {
  3843. confirmButtonText: '确定'
  3844. })
  3845. }
  3846. })
  3847. },
  3848. // 查询审批信息
  3849. getApprovalList () {
  3850. let tempData = {
  3851. site: this.$store.state.user.site,
  3852. menuId: this.$route.meta.menuId,
  3853. documentNo: this.currentRow.changeNo
  3854. }
  3855. getApprovalList(tempData).then(({data}) => {
  3856. if (data && data.code === 0) {
  3857. this.approvalList = data.rows
  3858. } else {
  3859. this.approvalList = []
  3860. }
  3861. })
  3862. },
  3863. // 查询执行信息
  3864. tpExecutionInfoSearch () {
  3865. executionInfoSearch(this.modalData).then(({data}) => {
  3866. if (data && data.code === 0) {
  3867. this.executionInfoData = data.rows.executionInfoData
  3868. this.executionInfoData.createBy = this.$store.state.user.name
  3869. this.chooseItemList = data.rows.chooseItemList
  3870. this.chooseItemList2 = data.rows.chooseItemList2
  3871. } else {
  3872. this.$alert(data.msg, '错误', {
  3873. confirmButtonText: '确定'
  3874. })
  3875. }
  3876. })
  3877. },
  3878. tpExecutionInfoSearch2 () {
  3879. executionInfoSearch(this.currentRow).then(({data}) => {
  3880. if (data && data.code === 0) {
  3881. this.currentExecutionInfoData = data.rows.executionInfoData
  3882. this.currentExecutionInfoData.createBy = this.$store.state.user.name
  3883. this.currentChooseItemList = data.rows.chooseItemList
  3884. this.currentChooseItemList2 = data.rows.chooseItemList2
  3885. } else {
  3886. this.$alert(data.msg, '错误', {
  3887. confirmButtonText: '确定'
  3888. })
  3889. }
  3890. })
  3891. },
  3892. // 查询会签信息
  3893. countersignatureSearch () {
  3894. countersignatureSearch(this.modalData).then(({data}) => {
  3895. if (data && data.code === 0) {
  3896. this.chooseCSItemList = data.rows.chooseCSItemList
  3897. } else {
  3898. this.$alert(data.msg, '错误', {
  3899. confirmButtonText: '确定'
  3900. })
  3901. }
  3902. })
  3903. },
  3904. countersignatureSearch2 () {
  3905. countersignatureSearch(this.currentRow).then(({data}) => {
  3906. if (data && data.code === 0) {
  3907. this.currentChooseCSItemList = data.rows.chooseCSItemList
  3908. } else {
  3909. this.$alert(data.msg, '错误', {
  3910. confirmButtonText: '确定'
  3911. })
  3912. }
  3913. })
  3914. },
  3915. // 删除所选技术参数卡
  3916. deleteChooseDataModal (row) {
  3917. this.$confirm(`是否删除该技术参数卡的变更?`, '提示', {
  3918. confirmButtonText: '确定',
  3919. cancelButtonText: '取消',
  3920. type: 'warning'
  3921. }).then(() => {
  3922. deleteChangeDetail(row).then(({data}) => {
  3923. if (data && data.code === 0) {
  3924. this.changeRequestDetailSearch()
  3925. this.$message({
  3926. message: '操作成功',
  3927. type: 'success',
  3928. duration: 1500,
  3929. onClose: () => {}
  3930. })
  3931. } else {
  3932. this.$alert(data.msg, '错误', {
  3933. confirmButtonText: '确定'
  3934. })
  3935. }
  3936. })
  3937. })
  3938. },
  3939. // 修改变更申请
  3940. saveData () {
  3941. if (this.modalData.applicantId === '' || this.modalData.applicantId == null) {
  3942. this.$message.warning('请选择申请人员!')
  3943. return
  3944. }
  3945. if (this.modalData.applyDate === '' || this.modalData.applyDate == null) {
  3946. this.$message.warning('请选择申请日期!')
  3947. return
  3948. }
  3949. // if (this.modalData.changeImpact === '' || this.modalData.changeImpact == null) {
  3950. // this.$message.warning('请选择ECN变更影响!')
  3951. // return
  3952. // }
  3953. // if ((this.modalData.changeImpactDesc === '' || this.modalData.changeImpactDesc == null) && this.modalData.changeImpact === 'Y') {
  3954. // this.$message.warning('请填写变更影响描述!')
  3955. // return
  3956. // }
  3957. if (this.modalData.ecnStage === '' || this.modalData.ecnStage == null) {
  3958. this.$message.warning('请选择ECN阶段!')
  3959. return
  3960. }
  3961. if (this.modalData.changeType === '' || this.modalData.changeType == null) {
  3962. this.$message.warning('请选择变更类别!')
  3963. return
  3964. }
  3965. if (this.form.length === 0) {
  3966. this.$message.warning('请选择ECN种类!')
  3967. return
  3968. }
  3969. if (this.modalData.tpEngineerId === '' || this.modalData.tpEngineerId == null) {
  3970. this.$message.warning('请选择审批人员!')
  3971. return
  3972. }
  3973. if (this.modalData.changePhaseInDate === '' || this.modalData.changePhaseInDate == null) {
  3974. this.$message.warning('请选择变更生效日期!')
  3975. return
  3976. }
  3977. if (this.modalData.dfIsProduct === '' || this.modalData.dfIsProduct == null) {
  3978. this.$message.warning('请选择是否DF产品!')
  3979. return
  3980. }
  3981. if ((this.modalData.industrialEngineerId === '' || this.modalData.industrialEngineerId == null) && this.modalData.dfIsProduct === 'Y') {
  3982. this.$message.warning('请选择I/E!')
  3983. return
  3984. }
  3985. if (this.modalData.changeRequestDesc === '' || this.modalData.changeRequestDesc == null) {
  3986. this.$message.warning('请填写变更要求描述!')
  3987. return
  3988. }
  3989. if (this.modalData.printing === '' || this.modalData.printing == null) {
  3990. this.$message.warning('请选择印刷方式!')
  3991. return
  3992. }
  3993. // if ((this.modalData.cqcOperatorId === '' || this.modalData.cqcOperatorId == null) && (this.modalData.faiOperatorId === '' || this.modalData.faiOperatorId == null)) {
  3994. // this.$message.warning('请选择CQC或者FAI人员!')
  3995. // return
  3996. // }
  3997. if (this.costImpactData.productionProductFlag === 'Y') { // 在生产品
  3998. if (this.costImpactData.productionProductNumber == null || this.costImpactData.productionProductNumber === '') {
  3999. this.$message.warning('请填写在生产品数量!')
  4000. return
  4001. }
  4002. if (this.costImpactData.productionProductOpinions == null || this.costImpactData.productionProductOpinions === '') {
  4003. this.$message.warning('请填写在生产品处理意见!')
  4004. return
  4005. }
  4006. if (this.costImpactData.productionProductExecutor == null || this.costImpactData.productionProductExecutor === '') {
  4007. this.$message.warning('请填写在生产品执行人!')
  4008. return
  4009. }
  4010. }
  4011. if (this.costImpactData.inventoryProductFlag === 'Y') { // 成品库存
  4012. if (this.costImpactData.inventoryProductNumber == null || this.costImpactData.inventoryProductNumber === '') {
  4013. this.$message.warning('请填写成品库存数量!')
  4014. return
  4015. }
  4016. if (this.costImpactData.inventoryProductOpinions == null || this.costImpactData.inventoryProductOpinions === '') {
  4017. this.$message.warning('请填写成品库存处理意见!')
  4018. return
  4019. }
  4020. if (this.costImpactData.inventoryProductExecutor == null || this.costImpactData.inventoryProductExecutor === '') {
  4021. this.$message.warning('请填写成品库存执行人!')
  4022. return
  4023. }
  4024. }
  4025. if (this.costImpactData.newOrderFlag === 'Y') { // 新订单
  4026. if (this.costImpactData.newOrderNumber == null || this.costImpactData.newOrderNumber === '') {
  4027. this.$message.warning('请填写新订单数量!')
  4028. return
  4029. }
  4030. }
  4031. if (this.costImpactData.affectedFlag === 'Y') { // 影响的原材料及其库存量
  4032. if (this.costImpactData.affectedNumber == null || this.costImpactData.affectedNumber === '') {
  4033. this.$message.warning('请填写影响的原材料及其库存量数量!')
  4034. return
  4035. }
  4036. if (this.costImpactData.affectedOpinions == null || this.costImpactData.affectedOpinions === '') {
  4037. this.$message.warning('请填写影响的原材料及其库存量处理意见!')
  4038. return
  4039. }
  4040. if (this.costImpactData.affectedExecutor == null || this.costImpactData.affectedExecutor === '') {
  4041. this.$message.warning('请填写影响的原材料及其库存量执行人!')
  4042. return
  4043. }
  4044. }
  4045. if (this.executionInfoData.originalDieCuttingRuleNo == null || this.executionInfoData.originalDieCuttingRuleNo === '') {
  4046. this.$message.warning('请填写原碑刀编号!')
  4047. return;
  4048. }
  4049. if (this.executionInfoData.newDieCuttingRuleNo == null || this.executionInfoData.newDieCuttingRuleNo === '') {
  4050. this.$message.warning('请填写新碑刀编号!')
  4051. return;
  4052. }
  4053. if (this.executionInfoData.originalStencilNo == null || this.executionInfoData.originalStencilNo === '') {
  4054. this.$message.warning('请填写原网板/印版编号!')
  4055. return;
  4056. }
  4057. if (this.executionInfoData.newStencilNo == null || this.executionInfoData.newStencilNo === '') {
  4058. this.$message.warning('请填写新网板/印版编号!')
  4059. return;
  4060. }
  4061. if (this.executionInfoData.executionDate == null || this.executionInfoData.executionDate === '') {
  4062. this.$message.warning('请选择ECN执行日期!')
  4063. return;
  4064. }
  4065. if (this.chooseDataList.length === 0) {
  4066. this.$message.warning('请添加需要变更的技术参数卡!')
  4067. return
  4068. }
  4069. this.costImpactData.changeTotalCost = this.totalCost
  4070. this.executionInfoData.chooseItemList = this.chooseItemList
  4071. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  4072. this.countersignatureData.changeNo = this.modalData.changeNo
  4073. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  4074. this.modalData.detailList = this.chooseDataList
  4075. this.modalData.ecnTypeData = this.form
  4076. this.modalData.costImpactData = this.costImpactData
  4077. this.modalData.executionInfoData = this.executionInfoData
  4078. this.modalData.countersignatureData = this.countersignatureData
  4079. this.saveLoading = true
  4080. changeRequestUpdate(this.modalData).then(({data}) => {
  4081. if (data && data.code === 0) {
  4082. this.modalData = data.rows.modalData
  4083. this.modalData.menuId = this.$route.meta.menuId
  4084. this.changeTitle = '变更申请-' + this.modalData.changeNo
  4085. this.form = data.rows.form
  4086. this.chooseDataList = data.rows.chooseDataList
  4087. this.costImpactData = data.rows.costImpactData
  4088. this.executionInfoData = data.rows.executionInfoData
  4089. this.executionInfoData.createBy = this.$store.state.user.name
  4090. this.chooseItemList = data.rows.chooseItemList
  4091. this.chooseItemList2 = data.rows.chooseItemList2
  4092. this.chooseCSItemList = data.rows.chooseCSItemList
  4093. this.getDataList()
  4094. this.$message({
  4095. message: '操作成功',
  4096. type: 'success',
  4097. duration: 1500,
  4098. onClose: () => {}
  4099. })
  4100. } else {
  4101. this.$alert(data.msg, '错误', {
  4102. confirmButtonText: '确定'
  4103. })
  4104. }
  4105. this.saveLoading = false
  4106. }).catch(()=>{
  4107. this.saveLoading = false
  4108. })
  4109. },
  4110. // 选择模板属性
  4111. chooseModel () {
  4112. this.chooseModelData = {
  4113. site: this.$store.state.user.site,
  4114. itemNo: '',
  4115. itemDesc: '',
  4116. functionType: 'ECN',
  4117. codeNo: this.modelList.length > 0 ? this.modelList[0].codeNo : ''
  4118. }
  4119. // 先清空缓存选中
  4120. //this.$nextTick(() => this.$refs.itemTable.clearSelection())
  4121. // 查询所有属性
  4122. getItemList(this.chooseModelData).then(({data}) => {
  4123. if (data && data.code === 0) {
  4124. this.itemList = data.rows
  4125. this.itemList.forEach(val => {
  4126. // 回显选中的部门
  4127. if (this.chooseItemList.map(val => val.itemNo).includes(val.itemNo)) {
  4128. this.$nextTick(() => this.$refs.itemTable.toggleRowSelection(val, true))
  4129. }
  4130. })
  4131. } else {
  4132. this.$alert(data.msg, '错误', {
  4133. confirmButtonText: '确定'
  4134. })
  4135. }
  4136. })
  4137. this.chooseModelFlag = true
  4138. },
  4139. // 查询属性
  4140. searchItemList () {
  4141. getItemList(this.chooseModelData).then(({data}) => {
  4142. if (data.code === 0) {
  4143. this.itemList = data.rows
  4144. }
  4145. })
  4146. },
  4147. // 单机选择
  4148. itemClickRow (row) {
  4149. this.$refs.itemTable.toggleRowSelection(row)
  4150. },
  4151. // 复选属性
  4152. selectionItem (val) {
  4153. this.itemSelections = val
  4154. },
  4155. // 确认多选属性
  4156. confirmItem () {
  4157. if (this.itemSelections.length === 0) {
  4158. this.$message.warning("请勾选属性!")
  4159. return
  4160. }
  4161. // 临时集合
  4162. let temp = []
  4163. // 首先,遍历a,检查每个对象的名字是否在b中也存在
  4164. this.chooseItemList.forEach(itemA => {
  4165. if (this.itemSelections.some(itemB => itemB.itemNo === itemA.itemNo)) {
  4166. // 如果存在,则将a中的对象添加到结果中(这里直接用a的原对象,因为要求是保留a中对象)
  4167. temp.push(itemA)
  4168. }
  4169. })
  4170. // 然后,遍历b,检查是否有对象的名字不在结果中已存在的名字中
  4171. this.itemSelections.forEach(itemB => {
  4172. if (!temp.some(itemR => itemR.itemNo === itemB.itemNo)) {
  4173. // 如果b中的对象名字不在结果中,则添加到结果中
  4174. temp.push(itemB)
  4175. }
  4176. })
  4177. this.chooseItemList = temp
  4178. this.chooseModelFlag = false
  4179. },
  4180. // 执行所选属性
  4181. executeModal (row) {
  4182. this.$confirm(`是否确认提交?`, '提示', {
  4183. confirmButtonText: '确定',
  4184. cancelButtonText: '取消',
  4185. type: 'warning'
  4186. }).then(() => {
  4187. if (this.plmChangeRequestArr) { // 主信息
  4188. for (let i = 0; i < this.plmChangeRequestArr.length; i++) {
  4189. if (!this.modalData[this.plmChangeRequestArr[i].fieldId] && this.plmChangeRequestArr[i].required === 'Y') {
  4190. this.$message.warning(this.plmChangeRequestArr[i].fieldName + '不能为空!')
  4191. return
  4192. }
  4193. }
  4194. }
  4195. if (this.plmChangeRequestDetailArr) { // 所选技术参数卡
  4196. for (let i = 0; i < this.plmChangeRequestDetailArr.length; i++) {
  4197. // 判断集合中的该属性是否都有值
  4198. let val = this.chooseDataList.every(item => {
  4199. const value = item[this.plmChangeRequestDetailArr[i].fieldId]
  4200. return value !== null && value !== ''
  4201. })
  4202. // 如果没有值 且该字段为必填
  4203. if (!val && this.plmChangeRequestDetailArr[i].required === 'Y') {
  4204. this.$message.warning(this.plmChangeRequestDetailArr[i].fieldName + '不能为空!')
  4205. return
  4206. }
  4207. }
  4208. }
  4209. if (this.plmChangeCostImpactArr) { // 库存成本影响
  4210. for (let i = 0; i < this.plmChangeCostImpactArr.length; i++) {
  4211. if (!this.costImpactData[this.plmChangeCostImpactArr[i].fieldId] && this.plmChangeCostImpactArr[i].required === 'Y') {
  4212. this.$message.warning(this.plmChangeCostImpactArr[i].fieldName + '不能为空!')
  4213. return
  4214. }
  4215. }
  4216. }
  4217. if (this.plmChangeFAItemArr) { // 评估信息
  4218. for (let i = 0; i < this.plmChangeFAItemArr.length; i++) {
  4219. let val = this.chooseItemList2.every(item => {
  4220. const value = item[this.plmChangeFAItemArr[i].fieldId]
  4221. return value !== null && value !== ''
  4222. })
  4223. if (!val && this.plmChangeFAItemArr[i].required === 'Y') {
  4224. this.$message.warning(this.plmChangeFAItemArr[i].fieldName + '不能为空!')
  4225. return
  4226. }
  4227. }
  4228. }
  4229. if (this.plmChangeExecutionInfoArr) {
  4230. for (let i = 0; i < this.plmChangeExecutionInfoArr.length; i++) {
  4231. if (!this.executionInfoData[this.plmChangeExecutionInfoArr[i].fieldId] && this.plmChangeExecutionInfoArr[i].required === 'Y') {
  4232. this.$message.warning(this.plmChangeExecutionInfoArr[i].fieldName + '不能为空!')
  4233. return
  4234. }
  4235. }
  4236. }
  4237. if (this.plmChangeItemArr) { // 执行信息
  4238. for (let i = 0; i < this.plmChangeItemArr.length; i++) {
  4239. let val = this.chooseItemList.every(item => {
  4240. const value = item[this.plmChangeItemArr[i].fieldId]
  4241. return value !== null && value !== ''
  4242. })
  4243. if (!val && this.plmChangeItemArr[i].required === 'Y') {
  4244. this.$message.warning(this.plmChangeItemArr[i].fieldName + '不能为空!')
  4245. return
  4246. }
  4247. }
  4248. }
  4249. if (this.plmChangeCountersignatureItemArr) { // 会签信息
  4250. for (let i = 0; i < this.plmChangeCountersignatureItemArr.length; i++) {
  4251. let val = this.currentChooseCSItemList.every(item => {
  4252. const value = item[this.plmChangeCountersignatureItemArr[i].fieldId]
  4253. return value !== null && value !== ''
  4254. })
  4255. if (!val && this.plmChangeCountersignatureItemArr[i].required === 'Y') {
  4256. this.$message.warning(this.plmChangeCountersignatureItemArr[i].fieldName + '不能为空!')
  4257. return
  4258. }
  4259. }
  4260. }
  4261. if (this.chooseDataList.length === 0) {
  4262. this.$message.warning('请添加需要变更的技术参数卡!')
  4263. return
  4264. }
  4265. row.executeFlag = 'Y'
  4266. row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  4267. this.costImpactData.changeTotalCost = this.totalCost
  4268. this.executionInfoData.chooseItemList = this.chooseItemList
  4269. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  4270. this.countersignatureData.changeNo = this.modalData.changeNo
  4271. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  4272. this.modalData.userName = this.$store.state.user.name
  4273. this.modalData.menuId = this.$route.meta.menuId
  4274. this.modalData.detailList = this.chooseDataList
  4275. this.modalData.ecnTypeData = this.form
  4276. this.modalData.costImpactData = this.costImpactData
  4277. this.modalData.executionInfoData = this.executionInfoData
  4278. this.modalData.countersignatureData = this.countersignatureData
  4279. this.modalData.nodeConclusion = 'Y'
  4280. this.submitLoading = true
  4281. tpExecute(this.modalData).then(({data}) => {
  4282. if (data && data.code === 0) {
  4283. this.getDataList()
  4284. this.$message({message: '操作成功', type: 'success'})
  4285. this.submitModalFlag = false
  4286. this.modalFlag = false
  4287. } else {
  4288. this.$alert(data.msg, '错误', {
  4289. confirmButtonText: '确定'
  4290. })
  4291. row.executeFlag = ''
  4292. row.itemExecutionDate = ''
  4293. }
  4294. this.submitLoading = false
  4295. }).catch(()=>{
  4296. this.submitLoading = false
  4297. })
  4298. })
  4299. // row.executeFlag = 'Y'
  4300. // row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  4301. // row.executor = this.$store.state.user.name
  4302. // // 执行时调用同意提交方法 // 2025-04-15 海波要求修改 一定会是审批中状态
  4303. // if (this.modalData.changeStatus === '审批中') {
  4304. // this.agreeSubmit()
  4305. // }
  4306. },
  4307. // 执行所选属性
  4308. executeCSModal (row) {
  4309. this.$confirm(`是否确认会签?`, '提示', {
  4310. confirmButtonText: '确定',
  4311. cancelButtonText: '取消',
  4312. type: 'warning'
  4313. }).then(() => {
  4314. if (this.plmChangeRequestArr) { // 主信息
  4315. for (let i = 0; i < this.plmChangeRequestArr.length; i++) {
  4316. if (!this.modalData[this.plmChangeRequestArr[i].fieldId] && this.plmChangeRequestArr[i].required === 'Y') {
  4317. this.$message.warning(this.plmChangeRequestArr[i].fieldName + '不能为空!')
  4318. return
  4319. }
  4320. }
  4321. }
  4322. if (this.plmChangeRequestDetailArr) { // 所选技术参数卡
  4323. for (let i = 0; i < this.plmChangeRequestDetailArr.length; i++) {
  4324. // 判断集合中的该属性是否都有值
  4325. let val = this.chooseDataList.every(item => {
  4326. const value = item[this.plmChangeRequestDetailArr[i].fieldId]
  4327. return value !== null && value !== ''
  4328. })
  4329. // 如果没有值 且该字段为必填
  4330. if (!val && this.plmChangeRequestDetailArr[i].required === 'Y') {
  4331. this.$message.warning(this.plmChangeRequestDetailArr[i].fieldName + '不能为空!')
  4332. return
  4333. }
  4334. }
  4335. }
  4336. if (this.plmChangeCostImpactArr) { // 库存成本影响
  4337. for (let i = 0; i < this.plmChangeCostImpactArr.length; i++) {
  4338. if (!this.costImpactData[this.plmChangeCostImpactArr[i].fieldId] && this.plmChangeCostImpactArr[i].required === 'Y') {
  4339. this.$message.warning(this.plmChangeCostImpactArr[i].fieldName + '不能为空!')
  4340. return
  4341. }
  4342. }
  4343. }
  4344. if (this.plmChangeFAItemArr) { // 评估信息
  4345. for (let i = 0; i < this.plmChangeFAItemArr.length; i++) {
  4346. let val = this.chooseItemList2.every(item => {
  4347. const value = item[this.plmChangeFAItemArr[i].fieldId]
  4348. return value !== null && value !== ''
  4349. })
  4350. if (!val && this.plmChangeFAItemArr[i].required === 'Y') {
  4351. this.$message.warning(this.plmChangeFAItemArr[i].fieldName + '不能为空!')
  4352. return
  4353. }
  4354. }
  4355. }
  4356. if (this.plmChangeExecutionInfoArr) {
  4357. for (let i = 0; i < this.plmChangeExecutionInfoArr.length; i++) {
  4358. if (!this.executionInfoData[this.plmChangeExecutionInfoArr[i].fieldId] && this.plmChangeExecutionInfoArr[i].required === 'Y') {
  4359. this.$message.warning(this.plmChangeExecutionInfoArr[i].fieldName + '不能为空!')
  4360. return
  4361. }
  4362. }
  4363. }
  4364. if (this.plmChangeItemArr) { // 执行信息
  4365. for (let i = 0; i < this.plmChangeItemArr.length; i++) {
  4366. let val = this.chooseItemList.every(item => {
  4367. const value = item[this.plmChangeItemArr[i].fieldId]
  4368. return value !== null && value !== ''
  4369. })
  4370. if (!val && this.plmChangeItemArr[i].required === 'Y') {
  4371. this.$message.warning(this.plmChangeItemArr[i].fieldName + '不能为空!')
  4372. return
  4373. }
  4374. }
  4375. }
  4376. if (this.plmChangeCountersignatureItemArr) { // 会签信息
  4377. for (let i = 0; i < this.plmChangeCountersignatureItemArr.length; i++) {
  4378. let val = this.currentChooseCSItemList.every(item => {
  4379. const value = item[this.plmChangeCountersignatureItemArr[i].fieldId]
  4380. return value !== null && value !== ''
  4381. })
  4382. if (!val && this.plmChangeCountersignatureItemArr[i].required === 'Y') {
  4383. this.$message.warning(this.plmChangeCountersignatureItemArr[i].fieldName + '不能为空!')
  4384. return
  4385. }
  4386. }
  4387. }
  4388. if (this.chooseDataList.length === 0) {
  4389. this.$message.warning('请添加需要变更的技术参数卡!')
  4390. return
  4391. }
  4392. row.executeFlag = 'Y'
  4393. row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  4394. this.costImpactData.changeTotalCost = this.totalCost
  4395. this.executionInfoData.chooseItemList = this.chooseItemList
  4396. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  4397. this.countersignatureData.changeNo = this.modalData.changeNo
  4398. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  4399. this.modalData.userName = this.$store.state.user.name
  4400. this.modalData.menuId = this.$route.meta.menuId
  4401. this.modalData.detailList = this.chooseDataList
  4402. this.modalData.ecnTypeData = this.form
  4403. this.modalData.costImpactData = this.costImpactData
  4404. this.modalData.executionInfoData = this.executionInfoData
  4405. this.modalData.countersignatureData = this.countersignatureData
  4406. this.modalData.nodeConclusion = 'Y'
  4407. this.submitLoading = true
  4408. csExecute(this.modalData).then(({data}) => {
  4409. if (data && data.code === 0) {
  4410. this.getDataList()
  4411. this.$message({message: '操作成功', type: 'success'})
  4412. this.submitModalFlag = false
  4413. this.modalFlag = false
  4414. } else {
  4415. this.$alert(data.msg, '错误', {
  4416. confirmButtonText: '确定'
  4417. })
  4418. row.executeFlag = ''
  4419. row.itemExecutionDate = ''
  4420. }
  4421. this.submitLoading = false
  4422. }).catch(()=>{
  4423. this.submitLoading = false
  4424. })
  4425. })
  4426. },
  4427. // 执行所选属性
  4428. executeModal2 (row) {
  4429. row.executeFlag = 'Y'
  4430. row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  4431. row.executor = this.$store.state.user.name
  4432. },
  4433. // 编辑执行信息
  4434. executionInformationSave () {
  4435. this.executionInfoData.chooseItemList = this.chooseItemList
  4436. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  4437. if (this.executionInfoData.originalDieCuttingRuleNo == null || this.executionInfoData.originalDieCuttingRuleNo === '') {
  4438. this.$message.warning('请填写原碑刀编号!')
  4439. return;
  4440. }
  4441. if (this.executionInfoData.newDieCuttingRuleNo == null || this.executionInfoData.newDieCuttingRuleNo === '') {
  4442. this.$message.warning('请填写新碑刀编号!')
  4443. return;
  4444. }
  4445. if (this.executionInfoData.originalStencilNo == null || this.executionInfoData.originalStencilNo === '') {
  4446. this.$message.warning('请填写原网板/印版编号!')
  4447. return;
  4448. }
  4449. if (this.executionInfoData.newStencilNo == null || this.executionInfoData.newStencilNo === '') {
  4450. this.$message.warning('请填写新网板/印版编号!')
  4451. return;
  4452. }
  4453. if (this.executionInfoData.executionDate == null || this.executionInfoData.executionDate === '') {
  4454. this.$message.warning('请选择ECN执行日期!')
  4455. return;
  4456. }
  4457. executionUpdate(this.executionInfoData).then(({data}) => {
  4458. if (data && data.code === 0) {
  4459. this.executionInfoData = data.rows.executionInfoData
  4460. this.executionInfoData.createBy = this.$store.state.user.name
  4461. this.chooseItemList = data.rows.chooseItemList
  4462. this.chooseItemList2 = data.rows.chooseItemList2
  4463. this.getDataList()
  4464. this.$message({
  4465. message: '操作成功',
  4466. type: 'success',
  4467. duration: 1500,
  4468. onClose: () => {}
  4469. })
  4470. } else {
  4471. this.$alert(data.msg, '错误', {
  4472. confirmButtonText: '确定'
  4473. })
  4474. }
  4475. })
  4476. },
  4477. // 编辑会签信息
  4478. countersignatureSave () {
  4479. this.countersignatureData.changeNo = this.modalData.changeNo
  4480. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  4481. countersignatureUpdate(this.countersignatureData).then(({data}) => {
  4482. if (data && data.code === 0) {
  4483. this.chooseCSItemList = data.rows.chooseCSItemList
  4484. this.getDataList()
  4485. this.$message({
  4486. message: '操作成功',
  4487. type: 'success',
  4488. duration: 1500,
  4489. onClose: () => {}
  4490. })
  4491. } else {
  4492. this.$alert(data.msg, '错误', {
  4493. confirmButtonText: '确定'
  4494. })
  4495. }
  4496. })
  4497. },
  4498. // 新增技术参数卡
  4499. addChangeDetail () {
  4500. this.searchData2.buNo = this.modalData.buNo
  4501. technicalSpecificationSearch2(this.searchData2).then(({data}) => {
  4502. if (data.code === 0) {
  4503. this.dataList2 = data.rows
  4504. const shouldExclude = (item) => {
  4505. return this.chooseDataList.some(cdItem =>
  4506. cdItem.site === item.site && cdItem.codeNo === item.codeNo
  4507. )
  4508. }
  4509. this.dataList2 = this.dataList2.filter(item => !shouldExclude(item))
  4510. this.addDetailModal = true
  4511. } else {
  4512. this.dataList2 = []
  4513. }
  4514. })
  4515. },
  4516. // 复选物料信息
  4517. selectionData2 (val) {
  4518. this.dataSelections2 = val
  4519. },
  4520. // 确认选择技术参数卡
  4521. addDetail () {
  4522. if (this.dataSelections2.length === 0) {
  4523. this.$message.warning("请勾选技术参数卡!")
  4524. return
  4525. }
  4526. this.dataSelections2.forEach(item => {
  4527. // 确保没有重复的元素
  4528. if (!this.chooseDataList.some(cdItem => cdItem.site === item.site && cdItem.codeNo === item.codeNo)) {
  4529. this.chooseDataList.push(item)
  4530. }
  4531. })
  4532. this.addDetailModal = false
  4533. this.dataSelections2 = []
  4534. },
  4535. // 回车换行
  4536. focusNextInput (index, type) {
  4537. let aaa = ''
  4538. if (this.chooseDataList.length - 1 === index) {
  4539. aaa = `${type}0`
  4540. } else {
  4541. aaa = `${type}${index + 1}`
  4542. }
  4543. this.$nextTick(() => {
  4544. this.$refs[aaa].focus()
  4545. })
  4546. },
  4547. // 根据人员编码查人员部门
  4548. getDepartmentByUserName () {
  4549. let tempData = {
  4550. site: this.$store.state.user.site,
  4551. username: this.modalData.applicantId
  4552. }
  4553. getDepartmentByUserName(tempData).then(({data}) => {
  4554. if (data.code === 0) {
  4555. this.modalData.applicationDepartmentId = data.rows[0].departmentNo
  4556. this.modalData.applicationDepartmentName = data.rows[0].departmentName
  4557. }
  4558. })
  4559. },
  4560. // 预览
  4561. previewFile (row) {
  4562. // 预览文件
  4563. let image = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
  4564. let type = ''
  4565. if (image.includes(row.fileType.toLowerCase())) {
  4566. type = 'image/' + row.fileType
  4567. }
  4568. let video = ['mp4', 'avi', 'mov', 'wmv', 'flv']
  4569. if (video.includes(row.fileType.toLowerCase())) {
  4570. type = 'video/' + row.fileType
  4571. }
  4572. let txt = ['txt']
  4573. if (txt.includes(row.fileType.toLowerCase())) {
  4574. type = 'text/plain'
  4575. }
  4576. let office = ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx']
  4577. if (office.includes(row.fileType.toLowerCase())) {
  4578. this.$message.warning(`暂不支持预览${row.fileType.toLowerCase()}文件`)
  4579. return
  4580. }
  4581. let pdf = ['pdf']
  4582. if (pdf.includes(row.fileType.toLowerCase())) {
  4583. type = 'application/pdf'
  4584. }
  4585. if (type === ''){
  4586. this.$message.warning(`暂不支持预览${row.fileType.toLowerCase()}文件`)
  4587. return;
  4588. }
  4589. downLoadQuotationFile(row).then(({data}) => {
  4590. const blob = new Blob([data], { type: type });
  4591. // 创建URL来生成预览
  4592. const fileURL = URL.createObjectURL(blob);
  4593. // 在新标签页中打开文件预览
  4594. const newTab = window.open(fileURL, '_blank')
  4595. })
  4596. },
  4597. // ======== chooseList相关方法 ========
  4598. // 获取基础数据列表S
  4599. getBaseList (val, type) {
  4600. this.tagNo = val
  4601. this.tagNo1 = type
  4602. this.$nextTick(() => {
  4603. let strVal = ''
  4604. let conSql = ''
  4605. if (val === 103) {
  4606. if (type === 1) {
  4607. strVal = this.modalData.applicantId
  4608. } else if (type === 3) {
  4609. strVal = this.costImpactData.productionProductExecutor
  4610. } else if (type === 4) {
  4611. strVal = this.costImpactData.inventoryProductExecutor
  4612. } else if (type === 5) {
  4613. strVal = this.costImpactData.affectedExecutor
  4614. }
  4615. // else if (type === 7) {
  4616. // strVal = this.tempExecutorRow.executor
  4617. // }
  4618. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4619. }
  4620. if (val === 133) {
  4621. strVal = this.tempPartRow.newPartNo
  4622. }
  4623. if (val === 2005) {
  4624. strVal = this.modalData.tpEngineerId
  4625. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4626. }
  4627. if (val === 2006) {
  4628. strVal = this.modalData.industrialEngineerId
  4629. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4630. }
  4631. if (val === 2007) {
  4632. strVal = this.modalData.cqcOperatorId
  4633. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4634. }
  4635. if (val === 2008) {
  4636. strVal = this.modalData.faiOperatorId
  4637. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4638. }
  4639. if (val === 2010) {
  4640. strVal = this.tempExecutorRow.executor
  4641. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4642. }
  4643. this.$refs.baseList.init(val, strVal, conSql)
  4644. })
  4645. },
  4646. // 列表方法的回调
  4647. getBaseData (val) {
  4648. if (this.tagNo === 103) {
  4649. if (this.tagNo1 === 1) {
  4650. this.modalData.applicantId = val.username
  4651. this.modalData.applicantName = val.user_display
  4652. this.getDepartmentByUserName()
  4653. } else if (this.tagNo1 === 3) {
  4654. this.costImpactData.productionProductExecutor = val.username
  4655. this.costImpactData.productionProductExecutorName = val.user_display
  4656. //this.$set(this.costImpactData,'productionProductExecutorName',val.user_display)
  4657. } else if (this.tagNo1 === 4) {
  4658. this.costImpactData.inventoryProductExecutor = val.username
  4659. this.costImpactData.inventoryProductExecutorName = val.user_display
  4660. //this.$set(this.costImpactData,'inventoryProductExecutorName',val.user_display)
  4661. } else if (this.tagNo1 === 5) {
  4662. this.costImpactData.affectedExecutor = val.username
  4663. this.costImpactData.affectedExecutorName = val.user_display
  4664. //this.$set(this.costImpactData,'affectedExecutorName',val.user_display)
  4665. }
  4666. // else if (this.tagNo1 === 7) {
  4667. // this.$set(this.tempExecutorRow,'executor',val.username)
  4668. // }
  4669. }
  4670. if (this.tagNo === 133) {
  4671. //this.tempPartRow.newPartNo = val.part_no
  4672. this.$set(this.tempPartRow,'newPartNo',val.part_no)
  4673. }
  4674. if (this.tagNo === 2005) {
  4675. this.modalData.tpEngineerId = val.username
  4676. this.modalData.tpEngineerName = val.user_display
  4677. }
  4678. if (this.tagNo === 2006) {
  4679. this.modalData.industrialEngineerId = val.username
  4680. this.modalData.industrialEngineerName = val.user_display
  4681. }
  4682. if (this.tagNo === 2007) {
  4683. this.modalData.cqcOperatorId = val.username
  4684. this.modalData.cqcOperatorName = val.user_display
  4685. }
  4686. if (this.tagNo === 2008) {
  4687. this.modalData.faiOperatorId = val.username
  4688. this.modalData.faiOperatorName = val.user_display
  4689. }
  4690. if (this.tagNo === 2010) {
  4691. this.$set(this.tempExecutorRow,'executor',val.username)
  4692. }
  4693. },
  4694. // 申请人输入校验
  4695. applicantBlur (tagNo) {
  4696. if (this.modalData.applicantId != null && this.modalData.applicantId !== '') {
  4697. let tempData = {
  4698. tagno: tagNo,
  4699. conditionSql: " and username = '" + this.modalData.applicantId + "'" + " and site = '" + this.modalData.site + "'"
  4700. }
  4701. verifyData(tempData).then(({data}) => {
  4702. if (data && data.code === 0) {
  4703. if (data.baseListData.length > 0) {
  4704. this.modalData.applicantId = data.baseListData[0].username
  4705. this.modalData.applicantName = data.baseListData[0].user_display
  4706. this.getDepartmentByUserName()
  4707. return
  4708. }
  4709. }
  4710. })
  4711. }
  4712. this.modalData.applicantName = ''
  4713. this.modalData.applicationDepartmentId = ''
  4714. this.modalData.applicationDepartmentName = ''
  4715. },
  4716. // 审批人员输入校验
  4717. tpEngineerBlur (tagNo) {
  4718. if (this.modalData.tpEngineerId != null && this.modalData.tpEngineerId !== '') {
  4719. let tempData = {
  4720. tagno: tagNo,
  4721. conditionSql: " and a.username = '" + this.modalData.tpEngineerId + "'" + " and b.site = '" + this.modalData.site + "'"
  4722. }
  4723. verifyData(tempData).then(({data}) => {
  4724. if (data && data.code === 0) {
  4725. if (data.baseListData.length > 0) {
  4726. this.modalData.tpEngineerId = data.baseListData[0].username
  4727. this.modalData.tpEngineerName = data.baseListData[0].user_display
  4728. return
  4729. }
  4730. }
  4731. })
  4732. }
  4733. this.modalData.tpEngineerName = ''
  4734. },
  4735. // I/E输入校验
  4736. industrialEngineerBlur (tagNo) {
  4737. if (this.modalData.industrialEngineerId != null && this.modalData.industrialEngineerId !== '') {
  4738. let tempData = {
  4739. tagno: tagNo,
  4740. conditionSql: " and a.username = '" + this.modalData.industrialEngineerId + "'" + " and b.site = '" + this.modalData.site + "'"
  4741. }
  4742. verifyData(tempData).then(({data}) => {
  4743. if (data && data.code === 0) {
  4744. if (data.baseListData.length > 0) {
  4745. this.modalData.industrialEngineerId = data.baseListData[0].username
  4746. this.modalData.industrialEngineerName = data.baseListData[0].user_display
  4747. return
  4748. }
  4749. }
  4750. })
  4751. }
  4752. this.modalData.industrialEngineerName = ''
  4753. },
  4754. // CQC输入校验
  4755. cqcOperatorBlur (tagNo) {
  4756. if (this.modalData.cqcOperatorId != null && this.modalData.cqcOperatorId !== '') {
  4757. let tempData = {
  4758. tagno: tagNo,
  4759. conditionSql: " and a.username = '" + this.modalData.cqcOperatorId + "'" + " and b.site = '" + this.modalData.site + "'"
  4760. }
  4761. verifyData(tempData).then(({data}) => {
  4762. if (data && data.code === 0) {
  4763. if (data.baseListData.length > 0) {
  4764. this.modalData.cqcOperatorId = data.baseListData[0].username
  4765. this.modalData.cqcOperatorName = data.baseListData[0].user_display
  4766. return
  4767. }
  4768. }
  4769. })
  4770. }
  4771. this.modalData.cqcOperatorName = ''
  4772. },
  4773. // FAI输入校验
  4774. faiOperatorBlur (tagNo) {
  4775. if (this.modalData.faiOperatorId != null && this.modalData.faiOperatorId !== '') {
  4776. let tempData = {
  4777. tagno: tagNo,
  4778. conditionSql: " and a.username = '" + this.modalData.faiOperatorId + "'" + " and b.site = '" + this.modalData.site + "'"
  4779. }
  4780. verifyData(tempData).then(({data}) => {
  4781. if (data && data.code === 0) {
  4782. if (data.baseListData.length > 0) {
  4783. this.modalData.faiOperatorId = data.baseListData[0].username
  4784. this.modalData.faiOperatorName = data.baseListData[0].user_display
  4785. return
  4786. }
  4787. }
  4788. })
  4789. }
  4790. this.modalData.faiOperatorName = ''
  4791. },
  4792. toMenu (row) {
  4793. if (this.$router.resolve(`/sampleManagement-technicalSpecificationList`).resolved.name === '404') {
  4794. this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
  4795. } else {
  4796. this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{nowCodeNo: row.oriCodeNo},})
  4797. }
  4798. },
  4799. // ======== 导出相关方法 ========
  4800. /**
  4801. * 导出excel
  4802. */
  4803. async createExportData () {
  4804. this.searchData.limit = -1
  4805. this.searchData.page = 1
  4806. await changeRecordSearch(this.searchData).then(({data}) => {
  4807. this.resultList = data.page.list
  4808. })
  4809. return this.resultList
  4810. },
  4811. startDownload () {},
  4812. finishDownload () {},
  4813. fields () {
  4814. let json = '{'
  4815. this.columnList.forEach((item, index) => {
  4816. if (index === this.columnList.length - 1) {
  4817. json += '"' + item.columnLabel + '"' + ':' + '"' + item.columnProp + '"'
  4818. } else {
  4819. json += '"' + item.columnLabel + '"' + ':' + '"' + item.columnProp + '"' + ','
  4820. }
  4821. })
  4822. json += '}'
  4823. let s = eval('(' + json + ')')
  4824. return s
  4825. },
  4826. rowStyle ({row}) {
  4827. if (this.currentRow.changeNo === row.changeNo) {
  4828. return { 'background-color': '#E8F7F6', cursor: 'pointer' };
  4829. }
  4830. },
  4831. // 获取按钮的权限数据
  4832. getButtonAuthData () {
  4833. this.authSearch = this.isAuth(this.menuId+":search")
  4834. this.authUpdate = this.isAuth(this.menuId+":update")
  4835. this.authIssue = this.isAuth(this.menuId+":issue")
  4836. this.authSubmit = this.isAuth(this.menuId+":submit")
  4837. this.authReject = this.isAuth(this.menuId+":reject")
  4838. this.authFileSave = this.isAuth(this.menuId+":fileSave")
  4839. this.authFileDownLoad = this.isAuth(this.menuId+":fileDownLoad")
  4840. this.authFileRemove = this.isAuth(this.menuId+":fileRemove")
  4841. this.authFilePreview = this.isAuth(this.menuId+":filePreview")
  4842. },
  4843. }
  4844. }
  4845. </script>
  4846. <style scoped lang="scss">
  4847. /deep/ .customer-tab .el-tabs__content {
  4848. padding: 0px !important;
  4849. }
  4850. .numInput /deep/ .el-input__inner{
  4851. text-align: right;
  4852. }
  4853. /deep/ .inlineNumber input::-webkit-outer-spin-button,
  4854. /deep/ .inlineNumber input::-webkit-inner-spin-button {
  4855. -webkit-appearance: none;
  4856. }
  4857. /deep/ .inlineNumber input[type="number"]{
  4858. -moz-appearance: textfield;
  4859. padding-right: 5px !important;
  4860. }
  4861. </style>