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.

762 lines
24 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <script>
  2. import {queryQuoteDetailBomTree} from "@/api/quote/quoteDetailBomTree";
  3. import {
  4. queryQuoteDetailRouting,
  5. queryQuoteDetailRoutingAlternative, changeQuoteDetailRoutingChange,
  6. queryQuoteDetailRoutingVersion
  7. } from "@/api/quote/quoteDetailRouting";
  8. export default {
  9. name: "quoteDetailRouting",
  10. props:{
  11. quoteDetail:{
  12. type:Object,
  13. required:true
  14. },
  15. },
  16. model:{
  17. prop: "quoteDetail",
  18. event: "update"
  19. },
  20. data(){
  21. return{
  22. isAllRouting:false,
  23. dataList:[],
  24. queryLoading:false,
  25. treeData:[],
  26. columns: [
  27. {
  28. userId: this.$store.state.user.name,
  29. functionId: 5011,
  30. serialNumber: '5011Table5OperationNo',
  31. tableId: "5011Table5",
  32. tableName: "报价工艺信息",
  33. columnProp: 'operationNo',
  34. headerAlign: "center",
  35. align: "center",
  36. columnLabel: '工序号',
  37. columnHidden: false,
  38. columnImage: false,
  39. columnSortable: false,
  40. sortLv: 0,
  41. status: true,
  42. fixed: '',
  43. columnWidth: 60,
  44. },{
  45. userId: this.$store.state.user.name,
  46. functionId: 5011,
  47. serialNumber: '5011Table5OperationName',
  48. tableId: "5011Table5",
  49. tableName: "报价工艺信息",
  50. columnProp: 'operationName',
  51. headerAlign: "center",
  52. align: "left",
  53. columnLabel: '工序名称',
  54. columnHidden: false,
  55. columnImage: false,
  56. columnSortable: false,
  57. sortLv: 0,
  58. status: true,
  59. fixed: '',
  60. columnWidth: 120,
  61. },{
  62. userId: this.$store.state.user.name,
  63. functionId: 5011,
  64. serialNumber: '5011Table5PartNo',
  65. tableId: "5011Table5",
  66. tableName: "报价工艺信息",
  67. columnProp: 'partNo',
  68. headerAlign: "center",
  69. align: "left",
  70. columnLabel: '物料编码',
  71. columnHidden: false,
  72. columnImage: false,
  73. columnSortable: false,
  74. sortLv: 0,
  75. status: true,
  76. fixed: '',
  77. columnWidth: 100,
  78. },{
  79. userId: this.$store.state.user.name,
  80. functionId: 5011,
  81. serialNumber: '5011Table5PartDesc',
  82. tableId: "5011Table5",
  83. tableName: "报价工艺信息",
  84. columnProp: 'partDesc',
  85. headerAlign: "center",
  86. align: "left",
  87. columnLabel: '物料描述',
  88. columnHidden: false,
  89. columnImage: false,
  90. columnSortable: false,
  91. sortLv: 0,
  92. status: true,
  93. fixed: '',
  94. columnWidth: 200,
  95. },{
  96. userId: this.$store.state.user.name,
  97. functionId: 5011,
  98. serialNumber: '5011Table5Version',
  99. tableId: "5011Table5",
  100. tableName: "报价工艺信息",
  101. columnProp: 'routingRevision',
  102. headerAlign: "center",
  103. align: "center",
  104. columnLabel: '版本',
  105. columnHidden: false,
  106. columnImage: false,
  107. columnSortable: false,
  108. sortLv: 0,
  109. status: true,
  110. fixed: '',
  111. columnWidth: 80,
  112. },{
  113. userId: this.$store.state.user.name,
  114. functionId: 5011,
  115. serialNumber: '5011Table5AlternativeNo',
  116. tableId: "5011Table5",
  117. tableName: "报价工艺信息",
  118. columnProp: 'alternativeNo',
  119. headerAlign: "center",
  120. align: "left",
  121. columnLabel: '替代编码',
  122. columnHidden: false,
  123. columnImage: false,
  124. columnSortable: false,
  125. sortLv: 0,
  126. status: true,
  127. fixed: '',
  128. columnWidth: 100,
  129. },{
  130. userId: this.$store.state.user.name,
  131. functionId: 5011,
  132. serialNumber: '5011Table5WorkCenterNo',
  133. tableId: "5011Table5",
  134. tableName: "报价工艺信息",
  135. columnProp: 'workCenterNo',
  136. headerAlign: "center",
  137. align: "left",
  138. columnLabel: '加工中心编码',
  139. columnHidden: false,
  140. columnImage: false,
  141. columnSortable: false,
  142. sortLv: 0,
  143. status: true,
  144. fixed: '',
  145. columnWidth: 100,
  146. },{
  147. userId: this.$store.state.user.name,
  148. functionId: 5011,
  149. serialNumber: '5011Table5WorkCenterDesc',
  150. tableId: "5011Table5",
  151. tableName: "报价工艺信息",
  152. columnProp: 'workCenterDesc',
  153. headerAlign: "center",
  154. align: "left",
  155. columnLabel: '加工中心名称',
  156. columnHidden: false,
  157. columnImage: false,
  158. columnSortable: false,
  159. sortLv: 0,
  160. status: true,
  161. fixed: '',
  162. columnWidth: 200,
  163. },{
  164. userId: this.$store.state.user.name,
  165. functionId: 5011,
  166. serialNumber: '5011Table5WorkCenterCost',
  167. tableId: "5011Table5",
  168. tableName: "报价工艺信息",
  169. columnProp: 'workCenterCost',
  170. headerAlign: "center",
  171. align: "left",
  172. columnLabel: '加工中心成本',
  173. columnHidden: false,
  174. columnImage: false,
  175. columnSortable: false,
  176. sortLv: 0,
  177. status: true,
  178. fixed: '',
  179. columnWidth: 100,
  180. },{
  181. userId: this.$store.state.user.name,
  182. functionId: 5011,
  183. serialNumber: '5011Table5EfficiencyFactor',
  184. tableId: "5011Table5",
  185. tableName: "报价工艺信息",
  186. columnProp: 'efficiencyFactor',
  187. headerAlign: "center",
  188. align: "right",
  189. columnLabel: '效率%',
  190. columnHidden: false,
  191. columnImage: false,
  192. columnSortable: false,
  193. sortLv: 0,
  194. status: true,
  195. fixed: '',
  196. columnWidth: 100,
  197. },{
  198. userId: this.$store.state.user.name,
  199. functionId: 5011,
  200. serialNumber: '5011Table5MachRunFactor',
  201. tableId: "5011Table5",
  202. tableName: "报价工艺信息",
  203. columnProp: 'machRunFactor',
  204. headerAlign: "center",
  205. align: "right",
  206. columnLabel: '机器单位产出',
  207. columnHidden: false,
  208. columnImage: false,
  209. columnSortable: false,
  210. sortLv: 0,
  211. status: true,
  212. fixed: '',
  213. columnWidth: 100,
  214. },{
  215. userId: this.$store.state.user.name,
  216. functionId: 5011,
  217. serialNumber: '5011Table5MachSetupTime',
  218. tableId: "5011Table5",
  219. tableName: "报价工艺信息",
  220. columnProp: 'machSetupTime',
  221. headerAlign: "center",
  222. align: "right",
  223. columnLabel: '调机时间',
  224. columnHidden: false,
  225. columnImage: false,
  226. columnSortable: false,
  227. sortLv: 0,
  228. status: true,
  229. fixed: '',
  230. columnWidth: 100,
  231. },
  232. {
  233. userId: this.$store.state.user.name,
  234. functionId: 5011,
  235. serialNumber: '5011Table5LaborRunFactor',
  236. tableId: "5011Table5",
  237. tableName: "报价工艺信息",
  238. columnProp: 'laborRunFactor',
  239. headerAlign: "center",
  240. align: "right",
  241. columnLabel: '人工单位产出',
  242. columnHidden: false,
  243. columnImage: false,
  244. columnSortable: false,
  245. sortLv: 0,
  246. status: true,
  247. fixed: '',
  248. columnWidth: 120,
  249. },{
  250. userId: this.$store.state.user.name,
  251. functionId: 5011,
  252. serialNumber: '5011Table5LaborSetupTime',
  253. tableId: "5011Table5",
  254. tableName: "报价工艺信息",
  255. columnProp: 'laborSetupTime',
  256. headerAlign: "center",
  257. align: "right",
  258. columnLabel: '人工调机时间',
  259. columnHidden: false,
  260. columnImage: false,
  261. columnSortable: false,
  262. sortLv: 0,
  263. status: true,
  264. fixed: '',
  265. columnWidth: 100,
  266. },
  267. {
  268. userId: this.$store.state.user.name,
  269. functionId: 5011,
  270. serialNumber: '5011Table5RunTimeDesc',
  271. tableId: "5011Table5",
  272. tableName: "报价工艺信息",
  273. columnProp: 'runTimeDesc',
  274. headerAlign: "center",
  275. align: "center",
  276. columnLabel: '产出单位',
  277. columnHidden: false,
  278. columnImage: false,
  279. columnSortable: false,
  280. sortLv: 0,
  281. status: true,
  282. fixed: '',
  283. columnWidth: 100,
  284. },
  285. {
  286. userId: this.$store.state.user.name,
  287. functionId: 5011,
  288. serialNumber: '5011Table5MachCycleTime',
  289. tableId: "5011Table5",
  290. tableName: "报价工艺信息",
  291. columnProp: 'machCycleTime',
  292. headerAlign: "center",
  293. align: "right",
  294. columnLabel: '机器处理时间',
  295. columnHidden: false,
  296. columnImage: false,
  297. columnSortable: false,
  298. sortLv: 0,
  299. status: true,
  300. fixed: '',
  301. columnWidth: 100,
  302. },
  303. {
  304. userId: this.$store.state.user.name,
  305. functionId: 5011,
  306. serialNumber: '5011Table5LaborCycleTime',
  307. tableId: "5011Table5",
  308. tableName: "报价工艺信息",
  309. columnProp: 'laborCycleTime',
  310. headerAlign: "center",
  311. align: "right",
  312. columnLabel: '人工处理时间',
  313. columnHidden: false,
  314. columnImage: false,
  315. columnSortable: false,
  316. sortLv: 0,
  317. status: true,
  318. fixed: '',
  319. columnWidth: 100,
  320. },
  321. {
  322. userId: this.$store.state.user.name,
  323. functionId: 5011,
  324. serialNumber: '5011Table5ResourceNum',
  325. tableId: "5011Table5",
  326. tableName: "报价工艺信息",
  327. columnProp: 'resourceNum',
  328. headerAlign: "center",
  329. align: "right",
  330. columnLabel: '机台数量',
  331. columnHidden: false,
  332. columnImage: false,
  333. columnSortable: false,
  334. sortLv: 0,
  335. status: true,
  336. fixed: '',
  337. columnWidth: 100,
  338. },
  339. {
  340. userId: this.$store.state.user.name,
  341. functionId: 5011,
  342. serialNumber: '5011Table5CrewSize',
  343. tableId: "5011Table5",
  344. tableName: "报价工艺信息",
  345. columnProp: 'crewSize',
  346. headerAlign: "center",
  347. align: "right",
  348. columnLabel: '生产过程人数',
  349. columnHidden: false,
  350. columnImage: false,
  351. columnSortable: false,
  352. sortLv: 0,
  353. status: true,
  354. fixed: '',
  355. columnWidth: 100,
  356. },{
  357. userId: this.$store.state.user.name,
  358. functionId: 5011,
  359. serialNumber: '5011Table5SetupCrewSize',
  360. tableId: "5011Table5",
  361. tableName: "报价工艺信息",
  362. columnProp: 'setupCrewSize',
  363. headerAlign: "center",
  364. align: "right",
  365. columnLabel: '调机过程人数',
  366. columnHidden: false,
  367. columnImage: false,
  368. columnSortable: false,
  369. sortLv: 0,
  370. status: true,
  371. fixed: '',
  372. columnWidth: 100,
  373. },{
  374. userId: this.$store.state.user.name,
  375. functionId: 5011,
  376. serialNumber: '5011Table5LaborClassNo',
  377. tableId: "5011Table5",
  378. tableName: "报价工艺信息",
  379. columnProp: 'laborClassNo',
  380. headerAlign: "center",
  381. align: "left",
  382. columnLabel: '人员等级',
  383. columnHidden: false,
  384. columnImage: false,
  385. columnSortable: false,
  386. sortLv: 0,
  387. status: true,
  388. fixed: '',
  389. columnWidth: 100,
  390. },{
  391. userId: this.$store.state.user.name,
  392. functionId: 5011,
  393. serialNumber: '5011Table5SetupLaborClassNo',
  394. tableId: "5011Table5",
  395. tableName: "报价工艺信息",
  396. columnProp: 'setupLaborClassNo',
  397. headerAlign: "center",
  398. align: "left",
  399. columnLabel: '调机过程中人员等级',
  400. columnHidden: false,
  401. columnImage: false,
  402. columnSortable: false,
  403. sortLv: 0,
  404. status: true,
  405. fixed: '',
  406. columnWidth: 140,
  407. },{
  408. userId: this.$store.state.user.name,
  409. functionId: 5011,
  410. serialNumber: '5011Table5LaborClassCost',
  411. tableId: "5011Table5",
  412. tableName: "报价工艺信息",
  413. columnProp: 'laborClassCost',
  414. headerAlign: "center",
  415. align: "left",
  416. columnLabel: '人员等级成本',
  417. columnHidden: false,
  418. columnImage: false,
  419. columnSortable: false,
  420. sortLv: 0,
  421. status: true,
  422. fixed: '',
  423. columnWidth: 120,
  424. },{
  425. userId: this.$store.state.user.name,
  426. functionId: 5011,
  427. serialNumber: '5011Table5SetupLaborClassCost',
  428. tableId: "5011Table5",
  429. tableName: "报价工艺信息",
  430. columnProp: 'setupLaborClassCost',
  431. headerAlign: "center",
  432. align: "left",
  433. columnLabel: '调机人员等级成本',
  434. columnHidden: false,
  435. columnImage: false,
  436. columnSortable: false,
  437. sortLv: 0,
  438. status: true,
  439. fixed: '',
  440. columnWidth: 120,
  441. },{
  442. userId: this.$store.state.user.name,
  443. functionId: 5011,
  444. serialNumber: '5011Table5MachineCost',
  445. tableId: "5011Table5",
  446. tableName: "报价工艺信息",
  447. columnProp: 'machineCost',
  448. headerAlign: "center",
  449. align: "right",
  450. columnLabel: '单位机器成本',
  451. columnHidden: false,
  452. columnImage: false,
  453. columnSortable: false,
  454. sortLv: 0,
  455. status: true,
  456. fixed: '',
  457. columnWidth: 140,
  458. },{
  459. userId: this.$store.state.user.name,
  460. functionId: 5011,
  461. serialNumber: '5011Table5MachineCost',
  462. tableId: "5011Table5",
  463. tableName: "报价工艺信息",
  464. columnProp: 'unitManufacturingCosts',
  465. headerAlign: "center",
  466. align: "right",
  467. columnLabel: '单位制造成本',
  468. columnHidden: false,
  469. columnImage: false,
  470. columnSortable: false,
  471. sortLv: 0,
  472. status: true,
  473. fixed: '',
  474. columnWidth: 140,
  475. },{
  476. userId: this.$store.state.user.name,
  477. functionId: 5011,
  478. serialNumber: '5011Table5LaborCosts',
  479. tableId: "5011Table5",
  480. tableName: "报价工艺信息",
  481. columnProp: 'laborCosts',
  482. headerAlign: "center",
  483. align: "right",
  484. columnLabel: '单位人工成本',
  485. columnHidden: false,
  486. columnImage: false,
  487. columnSortable: false,
  488. sortLv: 0,
  489. status: true,
  490. fixed: '',
  491. columnWidth: 140,
  492. },{
  493. userId: this.$store.state.user.name,
  494. functionId: 5011,
  495. serialNumber: '5011Table5QuoteUnitCost',
  496. tableId: "5011Table5",
  497. tableName: "报价工艺信息",
  498. columnProp: 'quoteUnitCost',
  499. headerAlign: "center",
  500. align: "right",
  501. columnLabel: '单位报价成本',
  502. columnHidden: false,
  503. columnImage: false,
  504. columnSortable: false,
  505. sortLv: 0,
  506. status: true,
  507. fixed: 'right',
  508. columnWidth: 120,
  509. },
  510. ],
  511. props:{
  512. children: 'list',
  513. label: (data,node)=>{
  514. return `${data.partNo}-${data.engChgLevel}-${data.alternativeNo}-${data.bomType}`;
  515. },
  516. },
  517. queryTreeLoading:false,
  518. versionVisible:false,
  519. versionList:[],
  520. alternativeList:[],
  521. routing:{
  522. }
  523. }
  524. },
  525. methods:{
  526. handleQueryQuoteDetailBomTree(){
  527. let params = {
  528. id: this.quoteDetail.id,
  529. }
  530. this.queryTreeLoading = true;
  531. queryQuoteDetailBomTree(params).then(({data})=>{
  532. if (data && data.code === 0){
  533. this.treeData = data.rows;
  534. if (this.treeData.length > 0){
  535. this.$nextTick(()=>{
  536. this.$refs.tree.setCurrentKey(this.treeData[0].id);
  537. this.handleQueryDetailRouting();
  538. })
  539. }
  540. this.queryTreeLoading = false;
  541. }else {
  542. this.$message.warning(data.msg);
  543. this.queryTreeLoading = false;
  544. }
  545. }).catch((error)=>{
  546. this.$message.error(error);
  547. })
  548. },
  549. nodeClick(data){
  550. this.handleQueryDetailRouting();
  551. },
  552. handleQueryDetailRouting(){
  553. let node = this.$refs.tree.getCurrentNode();
  554. let params = {
  555. treeId:node.id,
  556. quoteDetailId: this.quoteDetail.id,
  557. isAllRouting: this.isAllRouting,
  558. }
  559. this.queryLoading = true;
  560. queryQuoteDetailRouting(params).then(({data})=>{
  561. if (data && data.code === 0){
  562. this.dataList = data.rows;
  563. }else {
  564. this.$message.warning(data.msg);
  565. }
  566. this.queryLoading = false;
  567. }).catch((error)=>{
  568. this.$message.error(error);
  569. this.queryLoading = false;
  570. })
  571. },
  572. handleChangeVersion(){
  573. let node = this.$refs.tree.getCurrentNode();
  574. let row = {
  575. routingRevision:null,
  576. alternativeNo: '',
  577. routingType: null,
  578. }
  579. if (this.dataList.length > 0){
  580. row = this.dataList[0];
  581. }else {
  582. this.$message.warning("为维护BOM结构")
  583. return;
  584. }
  585. if (node){
  586. this.routing = {
  587. partNo: node.partNo,
  588. buNo: node.buNo,
  589. site: node.site,
  590. routingType: row.routingType,
  591. routingRevision: row.routingRevision,
  592. alternativeNo: row.alternativeNo,
  593. }
  594. }
  595. this.handleQueryVersionList();
  596. this.versionVisible = true;
  597. },
  598. versionRowStyle({row}){
  599. if (row.routingRevision === this.routing.routingRevision){
  600. return { 'background-color': '#E8F7F6' };
  601. }
  602. },
  603. handleQueryVersionList(){
  604. let node = this.$refs.tree.getCurrentNode();
  605. let params = {
  606. treeId: node.id,
  607. routingType: this.routing.routingType,
  608. }
  609. queryQuoteDetailRoutingVersion(params).then(({data})=>{
  610. if (data && data.code === 0){
  611. this.versionList = data.rows;
  612. if (this.versionList.length > 0){
  613. this.handleQueryAlternativeList();
  614. }
  615. }else {
  616. this.$message.warning(data.msg);
  617. }
  618. }).catch((error)=>{
  619. this.$message.error(error);
  620. })
  621. },
  622. handleQueryAlternativeList(){
  623. let params = {
  624. ...this.routing,
  625. }
  626. queryQuoteDetailRoutingAlternative(params).then(({data})=>{
  627. if (data && data.code === 0){
  628. this.alternativeList = data.rows;
  629. }else {
  630. this.$message.warning(data.msg);
  631. }
  632. }).catch((error)=>{
  633. this.$message.error(error);
  634. })
  635. },
  636. versionRowClick(row){
  637. this.routing.routingRevision = row.routingRevision;
  638. },
  639. alternativeRowStyle({row}){
  640. if (this.dataList.length > 0){
  641. if (this.dataList[0].alternativeNo === row.alternativeNo && this.dataList[0].routingRevision === row.routingRevision){
  642. return { 'background-color': '#E8F7F6' };
  643. }
  644. }
  645. },
  646. changeRouting(row){
  647. let params = {
  648. quoteId: this.quoteDetail.quoteId,
  649. quoteDetailId: this.quoteDetail.id,
  650. quoteDetailItemNo:this.quoteDetail.itemNo,
  651. site: row.site,
  652. partNo: row.partNo,
  653. buNo: row.buNo,
  654. quoteNo: this.quoteDetail.quoteNo,
  655. routingType: row.routingType,
  656. routingRevision: row.routingRevision,
  657. alternativeNo: row.alternativeNo,
  658. treeId: this.$refs.tree.getCurrentNode().id,
  659. createBy: this.$store.state.user.name,
  660. }
  661. changeQuoteDetailRoutingChange(params).then(({data})=>{
  662. if (data && data.code === 0){
  663. this.$message.success(data.msg);
  664. this.versionVisible = false;
  665. this.handleQueryDetailRouting();
  666. }else {
  667. this.$message.warning(data.msg);
  668. }
  669. }).catch((error)=>{
  670. this.$message.error(error)
  671. })
  672. }
  673. },
  674. created() {
  675. if (this.quoteDetail && this.quoteDetail.id){
  676. this.handleQueryQuoteDetailBomTree();
  677. }
  678. },
  679. watch:{
  680. 'quoteDetail.id'(newVal,oldVal){
  681. this.handleQueryQuoteDetailBomTree();
  682. },
  683. isAllRouting(newVal,oldVal){
  684. this.handleQueryDetailRouting();
  685. },
  686. 'routing.routingRevision'(newVal,oldVal){
  687. this.handleQueryAlternativeList();
  688. }
  689. }
  690. }
  691. </script>
  692. <template>
  693. <div>
  694. <div style="margin-bottom: 10px">
  695. <el-link style="margin-right: 20px;cursor:pointer;" @click="handleChangeVersion">切换版本</el-link>
  696. <el-checkbox v-model="isAllRouting">全级Routing结构</el-checkbox>
  697. </div>
  698. <el-container>
  699. <el-aside width="300px" v-loading="queryTreeLoading">
  700. <el-tree
  701. :data="treeData"
  702. :props="props"
  703. :default-expand-all="true"
  704. :expand-on-click-node="false"
  705. node-key="id"
  706. highlight-current
  707. @node-click="nodeClick" ref="tree">
  708. </el-tree>
  709. </el-aside>
  710. <el-main style="padding: 0">
  711. <el-table :data="dataList" v-loading="queryLoading" border style="width: 100%" :height="420">
  712. <el-table-column
  713. v-for="(item,index) in columns" :key="index"
  714. :sortable="item.columnSortable"
  715. :prop="item.columnProp"
  716. :header-align="item.headerAlign"
  717. :show-overflow-tooltip="item.showOverflowTooltip"
  718. :align="item.align"
  719. :fixed="item.fixed===''?false:item.fixed"
  720. :min-width="item.columnWidth"
  721. :label="item.columnLabel">
  722. <template slot-scope="scope">
  723. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  724. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  725. </template>
  726. </el-table-column>
  727. </el-table>
  728. </el-main>
  729. </el-container>
  730. <el-dialog title="切换版本" :visible.sync="versionVisible" width="1000px" v-drag :close-on-click-modal="false" append-to-body>
  731. <el-table :data="versionList" :row-style="versionRowStyle" ref="routingVersionTable" style="margin-top: 8px" border :height="240" @row-click="versionRowClick">
  732. <el-table-column label="物料编码" prop="partNo" header-align="center" align="center" show-overflow-tooltip min-width="140"/>
  733. <el-table-column label="物料描述" prop="partDesc" header-align="center" align="left" show-overflow-tooltip min-width="200"/>
  734. <el-table-column label="版本" prop="routingRevision" header-align="center" align="center" show-overflow-tooltip min-width="60"/>
  735. <el-table-column label="类型" prop="routingType" header-align="center" align="center" show-overflow-tooltip min-width="100"/>
  736. </el-table>
  737. <el-table :data="alternativeList" :row-style="alternativeRowStyle" ref="routingAlternativeTable" border :height="240" style="margin-top: 8px">
  738. <el-table-column label="物料编码" prop="partNo" header-align="center" align="center" show-overflow-tooltip min-width="140"/>
  739. <el-table-column label="物料描述" prop="partDesc" header-align="center" align="left" show-overflow-tooltip min-width="200"/>
  740. <el-table-column label="版本" prop="routingRevision" header-align="center" align="center" show-overflow-tooltip min-width="60"/>
  741. <el-table-column label="替代编码" prop="alternativeNo" header-align="center" align="left" show-overflow-tooltip min-width="60"/>
  742. <el-table-column label="类型" prop="routingRevision" header-align="center" align="center" show-overflow-tooltip min-width="100"/>
  743. <el-table-column label="操作" min-width="80" header-align="center" align="center">
  744. <template slot-scope="{row,$index}">
  745. <a @click="changeRouting(row)">选择</a>
  746. </template>
  747. </el-table-column>
  748. </el-table>
  749. </el-dialog>
  750. </div>
  751. </template>
  752. <style scoped>
  753. </style>