receiptInfo.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <template>
  2. <div class="ele-body">
  3. <!-- <el-card shadow="never"> -->
  4. <el-form ref="form" :model="form" label-width="130px">
  5. <!-- <headerTitle title="收货信息"></headerTitle> -->
  6. <el-row>
  7. <el-col :span="8">
  8. <el-form-item label="供应商名称:" prop="supplierName">
  9. {{ form.supplierName }}
  10. </el-form-item>
  11. </el-col>
  12. <el-col :span="8">
  13. <el-form-item label="供应商联系人:" prop="linkName">
  14. {{ form.linkName }}
  15. </el-form-item>
  16. </el-col>
  17. <el-col :span="8">
  18. <el-form-item label="供应商电话:" prop="linkPhone">
  19. {{ form.linkPhone }}
  20. </el-form-item>
  21. </el-col>
  22. <!-- <el-form-item
  23. label="客户地址:"
  24. prop="partaAddress"
  25. style="margin-bottom: 16px"
  26. >
  27. {{ form.receiveAddress }}
  28. </el-form-item> -->
  29. <el-col :span="8">
  30. <el-form-item label="车牌号:" prop="carNo">
  31. {{ form.carNo }}
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="8">
  35. <el-form-item prop="receiveDate" label="收货日期:">
  36. {{ form.receiveDate }}
  37. </el-form-item>
  38. </el-col>
  39. <el-col :span="8">
  40. <el-form-item label="收货单编码:" prop="receiveNo">
  41. {{ form.receiveNo }}
  42. </el-form-item>
  43. </el-col>
  44. <el-col :span="8">
  45. <el-form-item prop="orderNo" label="订单编码:">
  46. {{ form.orderNo }}
  47. </el-form-item>
  48. </el-col>
  49. <el-col :span="8">
  50. <el-form-item prop="outsourceSendCode" label="委外发货单编码:">
  51. {{ form.outsourceSendCode }}
  52. </el-form-item>
  53. </el-col>
  54. <el-col :span="8">
  55. <el-form-item prop="pricingWay" label="计价方式:">
  56. {{ form.pricingWay == 1 ? '按数量计费' : '按重量计费' }}
  57. </el-form-item>
  58. </el-col>
  59. <el-col :span="8">
  60. <el-form-item label="制单人:" prop="makerName">
  61. {{ form.makerName }}
  62. </el-form-item>
  63. </el-col>
  64. <el-col :span="8">
  65. <el-form-item label="审核状态:" prop="reviewStatus">
  66. {{ reviewStatusEnum[form.reviewStatus]?.label }}
  67. </el-form-item>
  68. </el-col>
  69. <el-col :span="8">
  70. <el-form-item label="附件:" prop="receiveFiles">
  71. <fileMain v-model="form.receiveFiles" type="view"></fileMain>
  72. </el-form-item>
  73. </el-col>
  74. <!-- <el-form-item prop="replied" label="是否回执:">
  75. {{ form.replied == 1 ? '是' : '否' }}
  76. </el-form-item> -->
  77. </el-row>
  78. </el-form>
  79. <div class="fontSize" style="margin-bottom: 12px;">产品清单</div>
  80. <ele-pro-table ref="table" :needPage="false" :columns="columns" :toolkit="[]" :datasource="detailData.productList"
  81. row-key="id">
  82. <template v-slot:technicalDrawings="{ row }">
  83. <fileMain v-model="row.receiveFiles" type="view"></fileMain>
  84. </template>
  85. </ele-pro-table>
  86. <!-- </el-card> -->
  87. </div>
  88. </template>
  89. <script>
  90. import { reviewStatusEnum } from '@/enum/dict';
  91. import fileMain from '@/components/addDoc/index.vue';
  92. export default {
  93. components: { fileMain },
  94. props: {
  95. form: { type: Object, default: () => { } },
  96. detailData: { type: Object, default: () => { } },
  97. },
  98. data() {
  99. return {
  100. reviewStatusEnum,
  101. columns: [
  102. {
  103. width: 45,
  104. type: 'index',
  105. columnKey: 'index',
  106. align: 'center',
  107. fixed: 'left'
  108. },
  109. {
  110. width: 200,
  111. prop: 'productName',
  112. label: '名称',
  113. slot: 'productName',
  114. align: 'center'
  115. },
  116. {
  117. width: 120,
  118. prop: 'productCode',
  119. label: '编码',
  120. slot: 'productCode',
  121. align: 'center'
  122. },
  123. {
  124. width: 200,
  125. prop: 'productCategoryName',
  126. label: '类型',
  127. slot: 'productCategoryName',
  128. align: 'center'
  129. },
  130. {
  131. width: 160,
  132. prop: 'productBrand',
  133. label: '牌号',
  134. slot: 'productBrand',
  135. align: 'center'
  136. },
  137. {
  138. width: 120,
  139. prop: 'modelType',
  140. label: '型号',
  141. slot: 'modelType',
  142. align: 'center'
  143. },
  144. {
  145. width: 120,
  146. prop: 'supplierMark',
  147. label: '供应商代号',
  148. slot: 'supplierMark',
  149. align: 'center'
  150. },
  151. {
  152. width: 120,
  153. prop: 'specification',
  154. label: '规格',
  155. slot: 'specification',
  156. align: 'center'
  157. },
  158. {
  159. width: 200,
  160. prop: 'warehouseName',
  161. label: '仓库名称',
  162. slot: 'warehouseName',
  163. align: 'center'
  164. },
  165. {
  166. width: 80,
  167. prop: 'totalCount',
  168. label: '进货数量',
  169. slot: 'totalCount',
  170. align: 'center'
  171. },
  172. {
  173. width: 120,
  174. prop: 'orderTotalCount',
  175. label: '总数量',
  176. slot: 'orderTotalCount',
  177. align: 'center'
  178. },
  179. {
  180. width: 80,
  181. prop: 'measuringUnit',
  182. label: '计量单位',
  183. slot: 'measuringUnit',
  184. align: 'center'
  185. },
  186. {
  187. width: 120,
  188. prop: 'singleWeight',
  189. label: '单重',
  190. slot: 'singleWeight',
  191. align: 'center'
  192. },
  193. {
  194. width: 200,
  195. prop: 'sendTotalWeight',
  196. label: '发货总重',
  197. slot: 'sendTotalWeight',
  198. align: 'center',
  199. headerSlot: 'headerTotalCount'
  200. },
  201. {
  202. width: 100,
  203. prop: 'receiveTotalWeight',
  204. label: '收货总重',
  205. slot: 'receiveTotalWeight',
  206. align: 'center'
  207. },
  208. {
  209. width: 100,
  210. prop: 'increaseTotalWeight',
  211. label: '增重重量',
  212. slot: 'increaseTotalWeight',
  213. align: 'center'
  214. },
  215. {
  216. width: 100,
  217. prop: 'weightUnit',
  218. label: '重量单位',
  219. slot: 'weightUnit',
  220. align: 'center'
  221. },
  222. {
  223. width: 160,
  224. prop: 'pricingWay',
  225. label: '计价方式',
  226. slot: 'pricingWay',
  227. align: 'center',
  228. formatter: (row, column) => {
  229. return row.pricingWay == 1
  230. ? '按数量计费'
  231. : row.pricingWay == 2
  232. ? '按重量计费'
  233. : '';
  234. }
  235. },
  236. {
  237. width: 160,
  238. prop: 'singlePrice',
  239. label: '单价',
  240. slot: 'singlePrice',
  241. align: 'center'
  242. },
  243. {
  244. width: 120,
  245. prop: 'taxRate',
  246. label: '税率',
  247. slot: 'taxRate',
  248. align: 'center'
  249. },
  250. {
  251. width: 160,
  252. prop: 'discountSinglePrice',
  253. label: '折后单价',
  254. slot: 'discountSinglePrice',
  255. align: 'center'
  256. },
  257. {
  258. width: 120,
  259. prop: 'totalPrice',
  260. label: '合计',
  261. slot: 'totalPrice',
  262. align: 'center'
  263. },
  264. {
  265. width: 160,
  266. prop: 'discountTotalPrice',
  267. label: '折后合计',
  268. slot: 'discountTotalPrice',
  269. align: 'center'
  270. },
  271. {
  272. width: 80,
  273. prop: 'deliveryDays',
  274. label: '交期(天)',
  275. slot: 'deliveryDays',
  276. align: 'center'
  277. },
  278. {
  279. width: 160,
  280. prop: 'deliveryDeadline',
  281. label: '交期截止日期',
  282. slot: 'deliveryDeadline',
  283. align: 'center'
  284. },
  285. {
  286. width: 200,
  287. prop: 'guaranteePeriod',
  288. label: '质保期',
  289. slot: 'guaranteePeriod',
  290. align: 'center'
  291. },
  292. {
  293. width: 160,
  294. prop: 'guaranteePeriodDeadline',
  295. label: '质保截止日期',
  296. slot: 'guaranteePeriodDeadline',
  297. align: 'center'
  298. },
  299. {
  300. width: 130,
  301. prop: 'technicalAnswerName',
  302. label: '技术答疑人',
  303. slot: 'technicalAnswerName',
  304. align: 'center'
  305. },
  306. {
  307. width: 220,
  308. prop: 'technicalParams',
  309. label: '技术参数',
  310. slot: 'technicalParams',
  311. align: 'center'
  312. },
  313. {
  314. width: 240,
  315. prop: 'technicalDrawings',
  316. label: '技术图纸',
  317. slot: 'technicalDrawings',
  318. align: 'center'
  319. },
  320. {
  321. width: 220,
  322. prop: 'remark',
  323. label: '备注',
  324. slot: 'remark',
  325. align: 'center'
  326. }
  327. ]
  328. };
  329. },
  330. created() {
  331. console.log(this.detailData, 'detailData')
  332. },
  333. methods: {
  334. }
  335. };
  336. </script>
  337. <style scoped lang="scss">
  338. .fontSize {
  339. font-size: 14px;
  340. font-weight: bold;
  341. }
  342. </style>