finishedProductManagement.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <!--成单样品详情-->
  2. <template>
  3. <div class="content">
  4. <div class="menu-wrapper">
  5. <div class="a-list">
  6. <a class="boxColor" :class="tabIndex === 1 ? 'active' : ''" @click="changeBack(1)" href="#secondTitle">{{ titlePrice }}</a>
  7. <a class="boxColor" :class="tabIndex === 2 ? 'active' : ''" @click="changeBack(2)" href="#thirdTitle">{{ titleAttribute }}</a>
  8. <a class="boxColor" :class="tabIndex === 3 ? 'active' : ''" @click="changeBack(3)" href="#forthTitle">{{ titleDescription }}</a>
  9. <!--<a class="boxColor" :class="tabIndex === 4 ? 'active' : ''" @click="changeBack(4)" href="#fifthTitle">{{ titleMaterial }}</a>-->
  10. <a class="boxColor" :class="tabIndex === 5 ? 'active' : ''" @click="changeBack(5)" href="#sixthTitle">{{ titleCharge }}</a>
  11. <a class="boxColor" :class="tabIndex === 6 ? 'active' : ''" @click="changeBack(6)" href="#seventhTitle">{{ titlePayment }}</a>
  12. <a class="boxColor" :class="tabIndex === 7 ? 'active' : ''" @click="changeBack(7)" href="#eighthTitle">{{ titleAccount }}</a>
  13. <a class="boxColor" :class="tabIndex === 8 ? 'active' : ''" @click="changeBack(8)" href="#ninthTitle">{{ titleDetail }}</a>
  14. </div>
  15. </div>
  16. <div class="item-wrapper">
  17. <div class="form-list">
  18. <el-form ref="form" :model="detailsData" :rules="rules" label-width="150px" style="margin-left: 20px; margin-top: 25px">
  19. <!--贸易信息-->
  20. <a class="target-fix" id="secondTitle"></a>
  21. <div id="secondTitle">
  22. <label-template :title="titlePrice"></label-template>
  23. <counter-info :counterInfo="detailsData"></counter-info>
  24. </div>
  25. <!--云服务信息-->
  26. <a class="target-fix" id="thirdTitle"></a>
  27. <div id="thirdTitle">
  28. <label-template :title="titleAttribute"></label-template>
  29. <!--<sample-table :simpleTable="detailsData.products"></sample-table>-->
  30. <sample-table></sample-table>
  31. </div>
  32. <!--付款信息-->
  33. <a class="target-fix" id="forthTitle"></a>
  34. <div id="forthTitle">
  35. <label-template :title="titleDescription"></label-template>
  36. <pay-info :infoData="detailsData"></pay-info>
  37. </div>
  38. <!--扩展属性-->
  39. <!--<a class="target-fix" id="fifthTitle"></a>-->
  40. <!--<div id="fifthTitle" v-if="(show = false)">-->
  41. <!--<label-template :title="titleMaterial"></label-template>-->
  42. <!--</div>-->
  43. <!--其他收费项目-->
  44. <a class="target-fix" id="sixthTitle"></a>
  45. <div id="sixthTitle">
  46. <label-template :title="titleCharge"></label-template>
  47. <add-table :additionData="detailsData.projects"></add-table>
  48. </div>
  49. <!--款项金额-->
  50. <a class="target-fix" id="seventhTitle"></a>
  51. <div id="seventhTitle">
  52. <label-template :title="titlePayment"></label-template>
  53. <contract :contractData="detailsData"></contract>
  54. </div>
  55. <!--收款账户-->
  56. <a class="target-fix" id="eighthTitle"></a>
  57. <div id="eighthTitle">
  58. <label-template :title="titleAccount"></label-template>
  59. <pay-account></pay-account>
  60. </div>
  61. <!--出货明细-->
  62. <a class="target-fix" id="ninthTitle"></a>
  63. <div id="ninthTitle">
  64. <label-template :title="titleDetail"></label-template>
  65. <ShipmentDetails :dataList="detailsData.shipments" style="width: 91%; margin-left: 39px"></ShipmentDetails>
  66. </div>
  67. <el-row>
  68. <el-col :span="24" style="text-align: center; padding: 1vw; margin-top: 40px">
  69. <el-button @click="queryDetails">预 览</el-button>
  70. <el-button @click="cancelClick">关 闭</el-button>
  71. </el-col>
  72. </el-row>
  73. </el-form>
  74. </div>
  75. </div>
  76. </div>
  77. </template>
  78. <script>
  79. import LabelTemplate from '@/components/LabelTemplate'
  80. import ShipmentDetails from '@/components/details-collection/shipmentDetails'
  81. import counterInfo from '@/components/details-collection/counterpartyInformation'
  82. import sampleTable from '@/components/details-collection/sampleQuoaTable'
  83. import payInfo from '@/components/details-collection/sampleQuoaPaymentInformation'
  84. import addTable from '@/components/details-collection/sampleQuoaAddition'
  85. import contract from '@/components/details-collection/sampleQuoaContract'
  86. import payAccount from '@/components/details-collection/paymentAccount'
  87. import progressBar from '@/components/details-collection/progressBar'
  88. export default {
  89. name: 'Addproduct',
  90. components: {
  91. LabelTemplate,
  92. ShipmentDetails,
  93. counterInfo,
  94. sampleTable,
  95. payInfo,
  96. addTable,
  97. contract,
  98. payAccount,
  99. progressBar,
  100. },
  101. props: {
  102. rowData: Object,
  103. },
  104. data() {
  105. return {
  106. tabIndex: '',
  107. titlePrice: '贸易信息',
  108. titleAttribute: '云服务信息',
  109. titleDescription: '付款信息',
  110. // titleMaterial: '扩展属性',
  111. titleCharge: '其他收费项目',
  112. titlePayment: '款项金额',
  113. titleAccount: '收款账户',
  114. titleDetail: '出货明细',
  115. pathPrefix: process.env.VUE_APP_IMG_URL,
  116. detailsData: {
  117. company: {},
  118. shipments: [],
  119. products: [],
  120. projects: [],
  121. pdfAttachment: {},
  122. },
  123. }
  124. },
  125. created() {
  126. this.loadTheData()
  127. },
  128. methods: {
  129. loadTheData() {
  130. // if (this.rowData.processDefinitionKey === 'SAMPLE') {
  131. // API.sampleDetails({ id: this.rowData.id }).then((response) => {
  132. // console.log(response, 'SAMPLE')
  133. // this.detailsData = response.data.data.details
  134. // })
  135. // } else {
  136. // API.makeoffersDetails({ id: this.rowData.id }).then((response) => {
  137. // console.log(response, 'quo')
  138. // this.detailsData = response.data.data.details
  139. // })
  140. // }
  141. },
  142. changeBack(index) {
  143. this.tabIndex = index
  144. },
  145. //查看
  146. handleUpdate() {},
  147. cancelClick() {
  148. this.$emit('cancelClick', true)
  149. },
  150. },
  151. }
  152. </script>
  153. <style lang="scss" scoped>
  154. /deep/ .el-step__title.is-process {
  155. font-size: 12px !important;
  156. }
  157. /deep/ .el-step__title {
  158. font-size: 12px !important;
  159. }
  160. .content {
  161. display: flex;
  162. height: 1800px;
  163. background-color: white;
  164. .menu-wrapper {
  165. height: 1888px;
  166. box-shadow: 0 0 7px rgb(215, 215, 215);
  167. margin-left: -20px;
  168. margin-top: -60px;
  169. flex: 0 0 130px;
  170. .a-list {
  171. display: flex;
  172. flex-direction: column;
  173. align-items: center;
  174. margin-top: 30px;
  175. .boxColor {
  176. line-height: 30px;
  177. padding: 0 25px;
  178. text-align: center;
  179. margin-top: 20px;
  180. }
  181. }
  182. }
  183. .item-wrapper {
  184. margin-top: -60px;
  185. flex: 1;
  186. /*overflow-y: auto;*/
  187. .form-list {
  188. width: 90%;
  189. }
  190. }
  191. }
  192. .target-fix {
  193. position: relative;
  194. top: -100px; //偏移值
  195. display: block;
  196. height: 0;
  197. overflow: hidden;
  198. }
  199. .boxColor {
  200. &.active {
  201. color: #6c88f1;
  202. }
  203. }
  204. * {
  205. font-size: 12px;
  206. }
  207. .avatar-uploader .el-upload {
  208. border: 1px dashed #d9d9d9;
  209. border-radius: 6px;
  210. cursor: pointer;
  211. position: relative;
  212. overflow: hidden;
  213. }
  214. .avatar-uploader .el-upload:hover {
  215. border-color: #409eff;
  216. }
  217. .avatar-uploader-icon {
  218. font-size: 28px;
  219. color: #8c939d;
  220. background-color: #f9f9f9;
  221. width: 148px;
  222. height: 148px;
  223. line-height: 148px;
  224. text-align: center;
  225. }
  226. .avatar {
  227. width: 148px;
  228. height: 148px;
  229. display: block;
  230. }
  231. ::v-deep {
  232. .el-input__inner {
  233. border-radius: 1px;
  234. }
  235. .el-button--mini {
  236. border-radius: 1px;
  237. }
  238. .tableHeader th {
  239. background-color: #edf0f5;
  240. height: 35px;
  241. padding: 0;
  242. }
  243. .el-dialog__footer {
  244. text-align: center;
  245. padding-bottom: 50px;
  246. .el-button {
  247. border-radius: 1px;
  248. }
  249. }
  250. }
  251. .totalPrice {
  252. width: 90%;
  253. display: flex;
  254. color: #6c88f1;
  255. font-weight: bold;
  256. margin-left: 90px;
  257. border: 1px solid lightskyblue;
  258. border-radius: 1px;
  259. padding: 15px 0 15px 10px;
  260. background-color: rgb(233, 245, 251);
  261. }
  262. .text {
  263. flex: 1;
  264. }
  265. .container {
  266. width: 90%;
  267. margin-left: 90px;
  268. border: 1px solid lightskyblue;
  269. border-radius: 1px;
  270. padding: 15px 0 15px 10px;
  271. background-color: rgb(233, 245, 251);
  272. }
  273. </style>