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.

737 lines
25 KiB

2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="mod-config">
  3. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
  4. <el-form-item :label="'BU'">
  5. <el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 100px">
  6. <el-option
  7. v-for = "i in buList"
  8. :key = "i.buNo"
  9. :label = "i.buNo"
  10. :value = "i.buNo">
  11. </el-option>
  12. </el-select>
  13. </el-form-item>
  14. <el-form-item :label="'项目编号'">
  15. <el-input v-model="searchData.projectId" clearable style="width: 160px"></el-input>
  16. </el-form-item>
  17. <el-form-item label="物料编码">
  18. <el-input v-model="searchData.testPartNo" clearable style="width: 160px"></el-input>
  19. </el-form-item>
  20. <el-form-item label="客户料号">
  21. <el-input v-model="searchData.customerPartNo" clearable style="width: 160px"></el-input>
  22. </el-form-item>
  23. <el-form-item label="IFS物料编码">
  24. <el-input v-model="searchData.finalPartNo" clearable style="width: 160px"></el-input>
  25. </el-form-item>
  26. <el-form-item label=" ">
  27. <el-button @click="search()" type="primary" style="margin-left: 2px;margin-top:0px">查询</el-button>
  28. <download-excel
  29. :fields="fields()"
  30. :data="exportData"
  31. type="xls"
  32. :name="exportName"
  33. :header="exportHeader"
  34. :footer="exportFooter"
  35. :fetch="createExportData"
  36. :before-generate="startDownload"
  37. :before-finish="finishDownload"
  38. worksheet="导出信息"
  39. class="el-button el-button--primary el-button--medium">
  40. {{ '导出' }}
  41. </download-excel>
  42. </el-form-item>
  43. </el-form>
  44. <el-table
  45. :height="height"
  46. :data="dataList1"
  47. border
  48. ref="mainTable"
  49. @row-click="changeData"
  50. highlight-current-row
  51. v-loading="dataListLoading"
  52. style="width: 100%;">
  53. <el-table-column
  54. v-for="(item,index) in columnList1" :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]"
  66. style="width: 100px; height: 80px"/></span>
  67. </template>
  68. </el-table-column>
  69. </el-table>
  70. <el-pagination
  71. @size-change="sizeChangeHandle"
  72. @current-change="currentChangeHandle"
  73. :current-page="pageIndex"
  74. :page-sizes="[20, 50, 100, 1000]"
  75. :page-size="pageSize"
  76. :total="totalPage"
  77. layout="total, sizes, prev, pager, next, jumper">
  78. </el-pagination>
  79. <el-tabs style="font-size: 12px;min-height: 330px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick">
  80. <el-tab-pane label="项目信息" name="project">
  81. <el-form label-position="top" style="margin-top: 0px; margin-left: 0px;">
  82. <el-row :gutter="20">
  83. <el-col :span="5"><div class="grid-content bg-purple">
  84. <el-form-item :label="'项目号'">
  85. <el-input v-model="projectData.projectId" readonly ></el-input>
  86. </el-form-item>
  87. </div></el-col>
  88. <el-col :span="5"><div class="grid-content bg-purple">
  89. <el-form-item :label="'项目类型'">
  90. <el-input v-model="projectData.projectType" readonly ></el-input>
  91. </el-form-item>
  92. </div></el-col>
  93. <el-col :span="5"><div class="grid-content bg-purple">
  94. <el-form-item :label="'项目来源'">
  95. <el-input v-model="projectData.projectSourceDesc" readonly ></el-input>
  96. </el-form-item>
  97. </div></el-col>
  98. <el-col :span="5"><div class="grid-content bg-purple">
  99. <el-form-item :label="'优先级'">
  100. <el-input v-model="projectData.priorityDesc" readonly></el-input>
  101. </el-form-item>
  102. </div></el-col>
  103. <el-col :span="4"><div class="grid-content bg-purple">
  104. <el-form-item :label="'需求日期'">
  105. <el-input v-model="projectData.needDate" readonly ></el-input>
  106. </el-form-item>
  107. </div></el-col>
  108. </el-row>
  109. <el-row :gutter="20">
  110. <el-col :span="5"><div class="grid-content bg-purple">
  111. <el-form-item :label="'BU'">
  112. <el-input v-model="projectData.buDesc" readonly style="" ></el-input>
  113. </el-form-item>
  114. </div></el-col>
  115. <el-col :span="5"><div class="grid-content bg-purple">
  116. <el-form-item :label="'项目名称'">
  117. <el-input v-model="projectData.projectName" readonly style="" ></el-input>
  118. </el-form-item>
  119. </div></el-col>
  120. <el-col :span="14"><div class="grid-content bg-purple">
  121. <el-form-item :label="'项目描述'">
  122. <el-input v-model="projectData.projectDesc" readonly style="" ></el-input>
  123. </el-form-item>
  124. </div></el-col>
  125. </el-row>
  126. <el-row :gutter="20">
  127. <el-col :span="8"><div class="grid-content bg-purple">
  128. <el-form-item :label="'项目经理'">
  129. <el-input v-model="projectData.projectManagerName" readonly style="" ></el-input>
  130. </el-form-item>
  131. </div></el-col>
  132. <el-col :span="8"><div class="grid-content bg-purple">
  133. <el-form-item :label="'项目责任人'">
  134. <el-input v-model="projectData.projectOwnerName" readonly style="" ></el-input>
  135. </el-form-item>
  136. </div></el-col>
  137. <el-col :span="8"><div class="grid-content bg-purple">
  138. <el-form-item :label="'项目权限'">
  139. <el-input v-model="projectData.userRoleName" readonly style="" ></el-input>
  140. </el-form-item>
  141. </div></el-col>
  142. </el-row>
  143. <el-row :gutter="20">
  144. <el-col :span="24"><div class="grid-content bg-purple">
  145. <el-form-item :label="'客户应用/要求'">
  146. <el-input v-model="projectData.customerRemark" readonly style="" ></el-input>
  147. </el-form-item>
  148. </div></el-col>
  149. </el-row>
  150. <el-row :gutter="20">
  151. <el-col :span="24"><div class="grid-content bg-purple">
  152. <el-form-item :label="'其他特殊要求'">
  153. <el-input v-model="projectData.remark" readonly style="" ></el-input>
  154. </el-form-item>
  155. </div></el-col>
  156. </el-row>
  157. </el-form>
  158. </el-tab-pane>
  159. <el-tab-pane label="询价信息" name="projectQuotation">
  160. <projectQuotation ref="projectQuotation" ></projectQuotation>
  161. </el-tab-pane>
  162. <el-tab-pane label="报价信息" name="quotationHeader">
  163. <project-part-quote :part="currentRow"></project-part-quote>
  164. </el-tab-pane>
  165. <el-tab-pane label="打样信息" name="sample">
  166. <sample ref="sample" ></sample>
  167. </el-tab-pane>
  168. <el-tab-pane label="测试记录" name="test">
  169. <test ref="test" ></test>
  170. </el-tab-pane>
  171. <el-tab-pane label="刀模申请" name="purchase">
  172. </el-tab-pane>
  173. <el-tab-pane label="技术参数卡" name="technicalSpecification">
  174. <technicalSpecification ref="technicalSpecification" ></technicalSpecification>
  175. </el-tab-pane>
  176. </el-tabs>
  177. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  178. </div>
  179. </template>
  180. <script>
  181. import {
  182. projectInfoPartSearch,
  183. projectInfoSearch,
  184. } from "@/api/project/project.js"
  185. import {getBuBySite} from "@/api/changeManagement/changeManagement.js"
  186. import Chooselist from '@/views/modules/common/Chooselist'
  187. import projectQuotation from "../projectInfo/com_project_puotation.vue";/*組件*/
  188. import technicalSpecification from "./com_projectPart_technicalSpecification";
  189. import sample from "../projectInfo/com_project_sample";
  190. import test from "../projectInfo/com_project_test";
  191. import quotationHeader from "../projectInfo/com_project_info_quotation";
  192. import ProjectPartQuote from "./projectPartQuote.vue";
  193. export default {
  194. components: {
  195. ProjectPartQuote,
  196. Chooselist,
  197. technicalSpecification,
  198. projectQuotation,
  199. sample,
  200. test,
  201. quotationHeader,
  202. },
  203. name: "searchProjectPart",
  204. data() {
  205. return{
  206. buList: [],
  207. currentRow:{},
  208. activeName: 'project',
  209. tagNo:'',
  210. tagNo2:'',
  211. pageIndex: 1,
  212. pageSize: 100,
  213. totalPage: 0,
  214. height: 200,
  215. dataListLoading: false,
  216. // 导出 start
  217. exportData: [],
  218. exportName: "项目物料清单" + this.dayjs().format('YYYYMMDDHHmmss'),
  219. exportHeader: ["项目物料清单"],
  220. exportFooter: [],
  221. exportList:[],
  222. // 导出 start
  223. dataList1:[],
  224. columnList1:[
  225. {
  226. userId: this.$store.state.user.name,
  227. functionId: 101002002,
  228. serialNumber: '101002002Table1BuNo',
  229. tableId: "101002002Table1",
  230. tableName: "项目物料",
  231. columnProp: "buNo",
  232. headerAlign: "center",
  233. align: "left",
  234. columnLabel: "BU",
  235. columnHidden: false,
  236. columnImage: false,
  237. columnSortable: false,
  238. sortLv: 0,
  239. status: true,
  240. fixed: '',
  241. columnWidth: 100
  242. },
  243. {
  244. userId: this.$store.state.user.name,
  245. functionId: 101002002,
  246. serialNumber: '101002002Table1TestPartNo',
  247. tableId: "101002002Table1",
  248. tableName: "项目物料",
  249. columnProp: "testPartNo",
  250. headerAlign: "center",
  251. align: "left",
  252. columnLabel: "物料编码",
  253. columnHidden: false,
  254. columnImage: false,
  255. columnSortable: false,
  256. sortLv: 0,
  257. status: true,
  258. fixed: '',
  259. columnWidth: 120
  260. },
  261. {
  262. userId: this.$store.state.user.name,
  263. functionId: 101002002,
  264. serialNumber: '101002002Table1CustomerPartNo',
  265. tableId: "101002002Table1",
  266. tableName: "项目物料",
  267. columnProp: "customerPartNo",
  268. headerAlign: "center",
  269. align: "left",
  270. columnLabel: "客户料号",
  271. columnHidden: false,
  272. columnImage: false,
  273. columnSortable: false,
  274. sortLv: 0,
  275. status: true,
  276. fixed: '',
  277. columnWidth: 120
  278. },
  279. {
  280. userId: this.$store.state.user.name,
  281. functionId: 101002002,
  282. serialNumber: '101002002Table1FinalPartNo',
  283. tableId: "101002002Table1",
  284. tableName: "项目物料",
  285. columnProp: "finalPartNo",
  286. headerAlign: "center",
  287. align: "left",
  288. columnLabel: "IFS物料编码",
  289. columnHidden: false,
  290. columnImage: false,
  291. columnSortable: false,
  292. sortLv: 0,
  293. status: true,
  294. fixed: '',
  295. columnWidth: 120
  296. },
  297. {
  298. userId: this.$store.state.user.name,
  299. functionId: 101002002,
  300. serialNumber: '101002002Table1PartDesc',
  301. tableId: "101002002Table1",
  302. tableName: "项目物料",
  303. columnProp: "partDesc",
  304. headerAlign: "center",
  305. align: "left",
  306. columnLabel: "物料描述",
  307. columnHidden: false,
  308. columnImage: false,
  309. columnSortable: false,
  310. sortLv: 0,
  311. status: true,
  312. fixed: '',
  313. columnWidth: 200
  314. },
  315. {
  316. userId: this.$store.state.user.name,
  317. functionId: 101002002,
  318. serialNumber: '101002002Table1PartType',
  319. tableId: "101002002Table1",
  320. tableName: "项目物料",
  321. columnProp: "projectId",
  322. headerAlign: "center",
  323. align: "center",
  324. columnLabel: "项目编码",
  325. columnHidden: false,
  326. columnImage: false,
  327. columnSortable: false,
  328. sortLv: 0,
  329. status: true,
  330. fixed: '',
  331. columnWidth: 120
  332. },
  333. {
  334. userId: this.$store.state.user.name,
  335. functionId: 101002002,
  336. serialNumber: '101002002Table1PartType',
  337. tableId: "101002002Table1",
  338. tableName: "项目物料",
  339. columnProp: "partType",
  340. headerAlign: "center",
  341. align: "center",
  342. columnLabel: "产品大类编码",
  343. columnHidden: false,
  344. columnImage: false,
  345. columnSortable: false,
  346. sortLv: 0,
  347. status: true,
  348. fixed: '',
  349. columnWidth: 100
  350. },
  351. {
  352. userId: this.$store.state.user.name,
  353. functionId: 101002002,
  354. serialNumber: '101002002Table1PartTypeDesc',
  355. tableId: "101002002Table1",
  356. tableName: "项目物料",
  357. columnProp: "partTypeDesc",
  358. headerAlign: "center",
  359. align: "left",
  360. columnLabel: "产品大类名称",
  361. columnHidden: false,
  362. columnImage: false,
  363. columnSortable: false,
  364. sortLv: 0,
  365. status: true,
  366. fixed: '',
  367. columnWidth: 200
  368. },
  369. {
  370. userId: this.$store.state.user.name,
  371. functionId: 101002002,
  372. serialNumber: '101002002Table1CodeNo',
  373. tableId: "101002002Table1",
  374. tableName: "项目物料",
  375. columnProp: "codeNo",
  376. headerAlign: "center",
  377. align: "center",
  378. columnLabel: "属性模板编码",
  379. columnHidden: false,
  380. columnImage: false,
  381. columnSortable: false,
  382. sortLv: 0,
  383. status: true,
  384. fixed: '',
  385. columnWidth: 100
  386. },
  387. {
  388. userId: this.$store.state.user.name,
  389. functionId: 101002002,
  390. serialNumber: '101002002Table1CodeDesc',
  391. tableId: "101002002Table1",
  392. tableName: "项目物料",
  393. columnProp: "codeDesc",
  394. headerAlign: "center",
  395. align: "left",
  396. columnLabel: "属性模板名称",
  397. columnHidden: false,
  398. columnImage: false,
  399. columnSortable: false,
  400. sortLv: 0,
  401. status: true,
  402. fixed: '',
  403. columnWidth: 150
  404. },{
  405. userId: this.$store.state.user.name,
  406. functionId: 101002002,
  407. serialNumber: '101002002Table1Remark',
  408. tableId: "101002002Table1",
  409. tableName: "项目物料",
  410. columnProp: "remark",
  411. headerAlign: "center",
  412. align: "left",
  413. columnLabel: "备注",
  414. columnHidden: false,
  415. columnImage: false,
  416. columnSortable: false,
  417. sortLv: 0,
  418. status: true,
  419. fixed: '',
  420. columnWidth: 200
  421. },{
  422. userId: this.$store.state.user.name,
  423. functionId: 101002002,
  424. serialNumber: '101002002Table1CreateDate',
  425. tableId: "101002002Table1",
  426. tableName: "项目物料",
  427. columnProp: "createDate",
  428. headerAlign: "center",
  429. align: "center",
  430. columnLabel: "创建时间",
  431. columnHidden: false,
  432. columnImage: false,
  433. columnSortable: false,
  434. sortLv: 0,
  435. status: true,
  436. fixed: '',
  437. columnWidth: 140
  438. },{
  439. userId: this.$store.state.user.name,
  440. functionId: 101002002,
  441. serialNumber: '101002002Table1CreateBy',
  442. tableId: "101002002Table1",
  443. tableName: "项目物料",
  444. columnProp: "createBy",
  445. headerAlign: "center",
  446. align: "left",
  447. columnLabel: "创建人",
  448. columnHidden: false,
  449. columnImage: false,
  450. columnSortable: false,
  451. sortLv: 0,
  452. status: true,
  453. fixed: '',
  454. columnWidth: 80
  455. },{
  456. userId: this.$store.state.user.name,
  457. functionId: 101002002,
  458. serialNumber: '101002002Table1UpdateDate',
  459. tableId: "101002002Table1",
  460. tableName: "项目物料",
  461. columnProp: "updateDate",
  462. headerAlign: "center",
  463. align: "center",
  464. columnLabel: "上次修改日期",
  465. columnHidden: false,
  466. columnImage: false,
  467. columnSortable: false,
  468. sortLv: 0,
  469. status: true,
  470. fixed: '',
  471. columnWidth: 140
  472. },{
  473. userId: this.$store.state.user.name,
  474. functionId: 101002002,
  475. serialNumber: '101002002Table1UpdateBy',
  476. tableId: "101002002Table1",
  477. tableName: "项目物料",
  478. columnProp: "updateBy",
  479. headerAlign: "center",
  480. align: "left",
  481. columnLabel: "修改人",
  482. columnHidden: false,
  483. columnImage: false,
  484. columnSortable: false,
  485. sortLv: 0,
  486. status: true,
  487. fixed: '',
  488. columnWidth: 80
  489. },
  490. ],
  491. searchData:{
  492. page: 1,
  493. limit: 100,
  494. site: this.$store.state.user.site,
  495. buNo: '',
  496. projectId: '',
  497. testPartNo: '',
  498. userName: this.$store.state.user.name,
  499. finalPartNo: '',
  500. customerPartNo: ''
  501. },
  502. projectData: {
  503. id: 0,
  504. site:this.$store.state.user.site,
  505. projectLevel:'',
  506. projectId:'',
  507. projectTypeDb:'',
  508. projectType:'',
  509. customerName:'',
  510. customerId:'',
  511. projectName:'',
  512. projectDesc:'',
  513. needDate:'',
  514. priority:'',
  515. projectSource:'',
  516. priorityDesc:'',
  517. projectSourceDesc:'',
  518. projectManagerName:'',
  519. projectOwnerName:'',
  520. customerRemark:'',
  521. remark:'',
  522. userRoleName:'',
  523. buDesc:'',
  524. buNo:'',
  525. },
  526. }
  527. },
  528. mounted() {
  529. this.$nextTick(() => {
  530. this.height = window.innerHeight - 520;
  531. })
  532. },
  533. created() {
  534. this.getBuBySite()
  535. },
  536. methods: {
  537. // 获取用户的bu
  538. getBuBySite () {
  539. let tempData = {
  540. site: this.$store.state.user.site,
  541. }
  542. getBuBySite(tempData).then(({data}) => {
  543. if (data.code === 0) {
  544. this.buList = data.rows
  545. }
  546. })
  547. },
  548. // 获取基础数据列表S
  549. getBaseList(val, type) {
  550. this.tagNo = val
  551. this.tagNo2 = type
  552. this.$nextTick(() => {
  553. let strVal = ''
  554. if (val === 1010) {
  555. if (type == 1) {
  556. strVal = this.searchData.projectType
  557. }
  558. }
  559. this.$refs.baseList.init(val, strVal)
  560. })
  561. },
  562. /* 列表方法的回调 */
  563. getBaseData(val) {
  564. if (this.tagNo === 1010) {
  565. if (this.tagNo2 == 1) {
  566. this.searchData.projectType = val.Base_desc
  567. }
  568. }
  569. },
  570. //导出excel
  571. async createExportData() {
  572. this.searchData.limit = -1
  573. this.searchData.page = 1
  574. await projectInfoSearch(this.searchData).then(({data}) => {
  575. this.exportList= data.page.list;
  576. })
  577. return this.exportList;
  578. },
  579. startDownload() {
  580. // this.exportData = this.dataList
  581. },
  582. finishDownload() {
  583. },
  584. fields() {
  585. let json = "{"
  586. this.columnList1.forEach((item, index) => {
  587. if (index == this.columnList1.length - 1) {
  588. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  589. } else {
  590. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  591. }
  592. })
  593. json += "}"
  594. let s = eval("(" + json + ")")
  595. return s
  596. },
  597. //导出excel
  598. async createExportData2() {
  599. return this.contactList;
  600. },
  601. startDownload2() {
  602. // this.exportData = this.dataList
  603. },
  604. finishDownload2() {
  605. },
  606. fields2() {
  607. let json = "{"
  608. this.columnList2.forEach((item, index) => {
  609. if (index == this.columnList2.length - 1) {
  610. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  611. } else {
  612. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  613. }
  614. })
  615. json += "}"
  616. let s = eval("(" + json + ")")
  617. return s
  618. },
  619. // 导出 end
  620. // 每页数
  621. sizeChangeHandle (val) {
  622. this.pageSize = val
  623. this.pageIndex = 1
  624. this.search()
  625. },
  626. // 当前页
  627. currentChangeHandle (val) {
  628. this.pageIndex = val
  629. this.search()
  630. },
  631. //单击切换订单
  632. changeData(row) {
  633. this.currentRow = JSON.parse(JSON.stringify(row));
  634. let inData= {
  635. site:row.site,
  636. projectId:row.projectId,
  637. page: 1,
  638. limit: 10,
  639. }
  640. projectInfoSearch(inData).then(({data}) => {
  641. if (data.code == 0) {
  642. if(data.page.list.length>0){
  643. this.projectData=data.page.list[0]
  644. }
  645. }
  646. this.dataListLoading = false
  647. })
  648. this.refreshCurrentTabTable()
  649. },
  650. search () {
  651. this.searchData.limit = this.pageSize
  652. this.searchData.page = this.pageIndex
  653. projectInfoPartSearch(this.searchData).then(({data}) => {
  654. if (data.code === 0) {
  655. this.dataList1 = data.page.list
  656. this.pageIndex = data.page.currPage
  657. this.pageSize = data.page.pageSize
  658. this.totalPage = data.page.totalCount
  659. if(this.dataList1.length>0){
  660. this.$refs.mainTable.setCurrentRow(this.dataList1[0]);
  661. this.changeData(this.dataList1[0])
  662. }
  663. }
  664. this.dataListLoading = false
  665. })
  666. },
  667. tabClick (tab, event) {
  668. // 刷新列表数据
  669. this.refreshCurrentTabTable()
  670. },
  671. // 刷新页签的table数据
  672. refreshCurrentTabTable () {
  673. if (this.activeName === 'technicalSpecification') {
  674. this.refreshTable('technicalSpecification');
  675. }
  676. if (this.activeName === 'projectQuotation') {
  677. this.refreshTable('projectQuotation');
  678. }
  679. if (this.activeName == 'quotationHeader') {
  680. this.refreshTable('quotationHeader');
  681. }
  682. if (this.activeName == 'sample') {
  683. this.refreshTable('sample');
  684. }
  685. if (this.activeName == 'test') {
  686. this.refreshTable('test');
  687. }
  688. },
  689. refreshTable(type){
  690. let inData={
  691. site: this.currentRow.site,
  692. testPartNo: this.currentRow.testPartNo,
  693. page: 1,
  694. limit: 1000
  695. }
  696. if(type==='technicalSpecification'){
  697. this.$refs.technicalSpecification.init(inData)
  698. }
  699. if(type==='projectQuotation'){
  700. this.$refs.projectQuotation.init(inData)
  701. }
  702. // if(type==='quotationHeader'){
  703. // this.$refs.quotationHeader.init(inData)
  704. // }
  705. if(type==='sample'){
  706. this.$refs.sample.init(inData)
  707. }
  708. if(type==='test'){
  709. this.$refs.test.init(inData)
  710. }
  711. },
  712. }
  713. }
  714. </script>
  715. <style scoped>
  716. </style>