receiptInfo.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  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
  81. ref="table"
  82. :needPage="false"
  83. :columns="columns"
  84. :toolkit="[]"
  85. :datasource="detailData.productList"
  86. row-key="id"
  87. max-height="500px"
  88. >
  89. <template v-slot:technicalDrawings="{ row }">
  90. <fileMain v-model="row.receiveFiles" type="view"></fileMain>
  91. </template>
  92. </ele-pro-table>
  93. <!-- </el-card> -->
  94. </div>
  95. </template>
  96. <script>
  97. import { reviewStatusEnum } from '@/enum/dict';
  98. import dictMixins from '@/mixins/dictMixins';
  99. import { lbjtList } from '@/enum/dict.js';
  100. import { levelList } from '@/enum/dict.js';
  101. // import fileMain from '@/components/addDoc/index.vue';
  102. export default {
  103. // components: { fileMain },
  104. mixins: [dictMixins],
  105. props: {
  106. form: { type: Object, default: () => {} },
  107. detailData: { type: Object, default: () => {} }
  108. },
  109. data() {
  110. return {
  111. reviewStatusEnum,
  112. columns: [
  113. {
  114. width: 45,
  115. type: 'index',
  116. columnKey: 'index',
  117. align: 'center',
  118. fixed: 'left'
  119. },
  120. {
  121. width: 200,
  122. prop: 'productName',
  123. label: '名称',
  124. slot: 'productName',
  125. align: 'center'
  126. },
  127. {
  128. width: 120,
  129. prop: 'productCode',
  130. label: '编码',
  131. slot: 'productCode',
  132. align: 'center'
  133. },
  134. {
  135. width: 200,
  136. prop: 'productCategoryName',
  137. label: '类型',
  138. slot: 'productCategoryName',
  139. align: 'center'
  140. },
  141. {
  142. width: 110,
  143. prop: 'batchNo',
  144. label: '批次号',
  145. align: 'center'
  146. },
  147. {
  148. width: 160,
  149. prop: 'productBrand',
  150. label: '牌号',
  151. slot: 'productBrand',
  152. align: 'center'
  153. },
  154. {
  155. width: 120,
  156. prop: 'modelType',
  157. label: '型号',
  158. slot: 'modelType',
  159. align: 'center'
  160. },
  161. {
  162. width: 120,
  163. prop: 'produceType',
  164. align: 'center',
  165. label: '属性类型',
  166. showOverflowTooltip: true,
  167. formatter: (row, column) => {
  168. if (row.produceType) {
  169. return row.produceType
  170. .map((item) => {
  171. return lbjtList[item];
  172. })
  173. .toString();
  174. }
  175. }
  176. },
  177. {
  178. width: 120,
  179. prop: 'packingSpecification',
  180. align: 'center',
  181. label: '包装规格',
  182. showOverflowTooltip: true
  183. },
  184. {
  185. width: 120,
  186. prop: 'supplierMark',
  187. label: '供应商代号',
  188. slot: 'supplierMark',
  189. align: 'center'
  190. },
  191. {
  192. width: 120,
  193. prop: 'specification',
  194. label: '规格',
  195. slot: 'specification',
  196. align: 'center'
  197. },
  198. {
  199. width: 200,
  200. prop: 'warehouseName',
  201. label: '仓库名称',
  202. slot: 'warehouseName',
  203. align: 'center'
  204. },
  205. {
  206. width: 150,
  207. prop: 'purchaseCount',
  208. label: '收货数量',
  209. slot: 'purchaseCount',
  210. headerSlot: 'headerTotalCount',
  211. align: 'center'
  212. },
  213. {
  214. width: 150,
  215. prop: 'purchaseUnit',
  216. label: '单位',
  217. slot: 'purchaseUnit',
  218. headerSlot: 'headerTotalCount',
  219. align: 'center'
  220. },
  221. {
  222. width: 120,
  223. prop: 'packingSpecification',
  224. align: 'center',
  225. label: '包装规格',
  226. showOverflowTooltip: true
  227. },
  228. {
  229. width: 80,
  230. prop: 'totalCount',
  231. label: '计量数量',
  232. slot: 'totalCount',
  233. align: 'center'
  234. },
  235. {
  236. width: 120,
  237. prop: 'orderTotalCount',
  238. label: '总数量',
  239. slot: 'orderTotalCount',
  240. align: 'center'
  241. },
  242. {
  243. minWidth: 120,
  244. prop: 'taskName',
  245. label: '工序',
  246. slot: 'taskName',
  247. align: 'center'
  248. },
  249. {
  250. width: 80,
  251. prop: 'measuringUnit',
  252. label: '计量单位',
  253. slot: 'measuringUnit',
  254. align: 'center'
  255. },
  256. {
  257. width: 120,
  258. prop: 'singleWeight',
  259. label: '单重',
  260. slot: 'singleWeight',
  261. align: 'center'
  262. },
  263. {
  264. width: 200,
  265. prop: 'sendTotalWeight',
  266. label: '发货总重',
  267. slot: 'sendTotalWeight',
  268. align: 'center',
  269. headerSlot: 'headerTotalCount'
  270. },
  271. {
  272. width: 100,
  273. prop: 'receiveTotalWeight',
  274. label: '收货总重',
  275. slot: 'receiveTotalWeight',
  276. align: 'center'
  277. },
  278. {
  279. width: 100,
  280. prop: 'increaseTotalWeight',
  281. label: '增重重量',
  282. slot: 'increaseTotalWeight',
  283. align: 'center'
  284. },
  285. {
  286. width: 100,
  287. prop: 'weightUnit',
  288. label: '重量单位',
  289. slot: 'weightUnit',
  290. align: 'center'
  291. },
  292. // {
  293. // width: 160,
  294. // prop: 'pricingWay',
  295. // label: '计价方式',
  296. // slot: 'pricingWay',
  297. // align: 'center',
  298. // formatter: (row, column) => {
  299. // return row.pricingWay == 1
  300. // ? '按数量计费'
  301. // : row.pricingWay == 2
  302. // ? '按重量计费'
  303. // : '';
  304. // }
  305. // },
  306. {
  307. minWidth: 120,
  308. prop: 'goodsLevel',
  309. label: '物品级别',
  310. formatter: (_row, _column, cellValue) => {
  311. return levelList.find((item) => item.value == _row.goodsLevel)
  312. ?.label;
  313. },
  314. align: 'center'
  315. },
  316. {
  317. width: 160,
  318. prop: 'singlePrice',
  319. label: '单价',
  320. slot: 'singlePrice',
  321. align: 'center'
  322. },
  323. {
  324. width: 120,
  325. prop: 'taxRate',
  326. label: '税率',
  327. formatter: (_row, _column, cellValue) => {
  328. return _row.taxRate ? _row.taxRate + '%' : '';
  329. },
  330. align: 'center'
  331. },
  332. {
  333. width: 150,
  334. prop: 'notaxSinglePrice',
  335. label: '不含税单价',
  336. align: 'center'
  337. },
  338. {
  339. width: 160,
  340. prop: 'discountSinglePrice',
  341. label: '折后单价',
  342. slot: 'discountSinglePrice',
  343. align: 'center'
  344. },
  345. {
  346. width: 120,
  347. prop: 'totalPrice',
  348. label: '合计',
  349. slot: 'totalPrice',
  350. align: 'center'
  351. },
  352. {
  353. width: 160,
  354. prop: 'discountTotalPrice',
  355. label: '折后合计',
  356. slot: 'discountTotalPrice',
  357. align: 'center'
  358. },
  359. {
  360. prop: 'provenance',
  361. label: '产地',
  362. slot: 'provenance',
  363. align: 'center',
  364. minWidth: 200,
  365. showOverflowTooltip: true,
  366. formatter: (row, column) => {
  367. return row.provenance && row.provenance.length
  368. ? row.provenance
  369. .map((item) => this.getDictValue('产地', item))
  370. .join(',')
  371. : '';
  372. }
  373. },
  374. {
  375. prop: 'productionDate',
  376. label: '生产日期',
  377. slot: 'productionDate',
  378. align: 'center',
  379. showOverflowTooltip: true,
  380. minWidth: 200
  381. },
  382. {
  383. width: 160,
  384. prop: 'deliveryDeadline',
  385. label: '交期截止日期',
  386. slot: 'deliveryDeadline',
  387. align: 'center'
  388. },
  389. {
  390. width: 200,
  391. prop: 'guaranteePeriod',
  392. label: '有效期',
  393. slot: 'guaranteePeriod',
  394. align: 'center',
  395. formatter: (_row, _column, cellValue) => {
  396. return (
  397. (_row.guaranteePeriod || '') + _row.guaranteePeriodUnitName
  398. );
  399. }
  400. },
  401. {
  402. width: 160,
  403. prop: 'guaranteePeriodDeadline',
  404. label: '有效期截止日期',
  405. slot: 'guaranteePeriodDeadline',
  406. align: 'center'
  407. },
  408. {
  409. width: 130,
  410. prop: 'technicalAnswerName',
  411. label: '技术答疑人',
  412. slot: 'technicalAnswerName',
  413. align: 'center'
  414. },
  415. {
  416. width: 220,
  417. prop: 'technicalParams',
  418. label: '技术参数',
  419. slot: 'technicalParams',
  420. align: 'center'
  421. },
  422. {
  423. width: 240,
  424. prop: 'technicalDrawings',
  425. label: '技术图纸',
  426. slot: 'technicalDrawings',
  427. align: 'center'
  428. },
  429. {
  430. width: 220,
  431. prop: 'remark',
  432. label: '备注',
  433. slot: 'remark',
  434. align: 'center'
  435. }
  436. ]
  437. };
  438. },
  439. created() {
  440. console.log(this.detailData, 'detailData');
  441. this.requestDict('产地');
  442. this.requestDict('生产类型');
  443. },
  444. methods: {}
  445. };
  446. </script>
  447. <style scoped lang="scss">
  448. .fontSize {
  449. font-size: 14px;
  450. font-weight: bold;
  451. }
  452. </style>