receiptInfo.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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: 160,
  143. prop: 'productBrand',
  144. label: '牌号',
  145. slot: 'productBrand',
  146. align: 'center'
  147. },
  148. {
  149. width: 120,
  150. prop: 'modelType',
  151. label: '型号',
  152. slot: 'modelType',
  153. align: 'center'
  154. },
  155. {
  156. width: 120,
  157. prop: 'produceType',
  158. align: 'center',
  159. label: '属性类型',
  160. showOverflowTooltip: true,
  161. formatter: (row, column) => {
  162. if (row.produceType) {
  163. return row.produceType
  164. .map((item) => {
  165. return lbjtList[item];
  166. })
  167. .toString();
  168. }
  169. }
  170. },
  171. {
  172. width: 120,
  173. prop: 'packingSpecification',
  174. align: 'center',
  175. label: '包装规格',
  176. showOverflowTooltip: true
  177. },
  178. {
  179. width: 120,
  180. prop: 'supplierMark',
  181. label: '供应商代号',
  182. slot: 'supplierMark',
  183. align: 'center'
  184. },
  185. {
  186. width: 120,
  187. prop: 'specification',
  188. label: '规格',
  189. slot: 'specification',
  190. align: 'center'
  191. },
  192. {
  193. width: 200,
  194. prop: 'warehouseName',
  195. label: '仓库名称',
  196. slot: 'warehouseName',
  197. align: 'center'
  198. },
  199. {
  200. width: 80,
  201. prop: 'totalCount',
  202. label: '进货数量',
  203. slot: 'totalCount',
  204. align: 'center'
  205. },
  206. {
  207. width: 120,
  208. prop: 'orderTotalCount',
  209. label: '总数量',
  210. slot: 'orderTotalCount',
  211. align: 'center'
  212. },
  213. {
  214. minWidth: 120,
  215. prop: 'taskName',
  216. label: '工序',
  217. slot: 'taskName',
  218. align: 'center'
  219. },
  220. {
  221. width: 80,
  222. prop: 'measuringUnit',
  223. label: '计量单位',
  224. slot: 'measuringUnit',
  225. align: 'center'
  226. },
  227. {
  228. width: 120,
  229. prop: 'singleWeight',
  230. label: '单重',
  231. slot: 'singleWeight',
  232. align: 'center'
  233. },
  234. {
  235. width: 200,
  236. prop: 'sendTotalWeight',
  237. label: '发货总重',
  238. slot: 'sendTotalWeight',
  239. align: 'center',
  240. headerSlot: 'headerTotalCount'
  241. },
  242. {
  243. width: 100,
  244. prop: 'receiveTotalWeight',
  245. label: '收货总重',
  246. slot: 'receiveTotalWeight',
  247. align: 'center'
  248. },
  249. {
  250. width: 100,
  251. prop: 'increaseTotalWeight',
  252. label: '增重重量',
  253. slot: 'increaseTotalWeight',
  254. align: 'center'
  255. },
  256. {
  257. width: 100,
  258. prop: 'weightUnit',
  259. label: '重量单位',
  260. slot: 'weightUnit',
  261. align: 'center'
  262. },
  263. {
  264. width: 160,
  265. prop: 'pricingWay',
  266. label: '计价方式',
  267. slot: 'pricingWay',
  268. align: 'center',
  269. formatter: (row, column) => {
  270. return row.pricingWay == 1
  271. ? '按数量计费'
  272. : row.pricingWay == 2
  273. ? '按重量计费'
  274. : '';
  275. }
  276. },
  277. {
  278. minWidth: 120,
  279. prop: 'goodsLevel',
  280. label: '物品级别',
  281. formatter: (_row, _column, cellValue) => {
  282. return levelList.find((item) => item.value == _row.goodsLevel)
  283. ?.label;
  284. },
  285. align: 'center'
  286. },
  287. {
  288. width: 160,
  289. prop: 'singlePrice',
  290. label: '单价',
  291. slot: 'singlePrice',
  292. align: 'center'
  293. },
  294. {
  295. width: 120,
  296. prop: 'taxRate',
  297. label: '税率',
  298. formatter: (_row, _column, cellValue) => {
  299. return _row.taxRate ? _row.taxRate + '%' : '';
  300. },
  301. align: 'center'
  302. },
  303. {
  304. width: 150,
  305. prop: 'notaxSinglePrice',
  306. label: '不含税单价',
  307. align: 'center'
  308. },
  309. {
  310. width: 160,
  311. prop: 'discountSinglePrice',
  312. label: '折后单价',
  313. slot: 'discountSinglePrice',
  314. align: 'center'
  315. },
  316. {
  317. width: 120,
  318. prop: 'totalPrice',
  319. label: '合计',
  320. slot: 'totalPrice',
  321. align: 'center'
  322. },
  323. {
  324. width: 160,
  325. prop: 'discountTotalPrice',
  326. label: '折后合计',
  327. slot: 'discountTotalPrice',
  328. align: 'center'
  329. },
  330. {
  331. prop: 'provenance',
  332. label: '产地',
  333. slot: 'provenance',
  334. align: 'center',
  335. minWidth: 200,
  336. showOverflowTooltip: true,
  337. formatter: (row, column) => {
  338. return row.provenance && row.provenance.length
  339. ? row.provenance
  340. .map((item) => this.getDictValue('产地', item))
  341. .join(',')
  342. : '';
  343. }
  344. },
  345. // {
  346. // width: 80,
  347. // prop: 'deliveryDays',
  348. // label: '交期(天)',
  349. // slot: 'deliveryDays',
  350. // align: 'center'
  351. // },
  352. {
  353. width: 160,
  354. prop: 'deliveryDeadline',
  355. label: '交期截止日期',
  356. slot: 'deliveryDeadline',
  357. align: 'center'
  358. },
  359. {
  360. width: 200,
  361. prop: 'guaranteePeriod',
  362. label: '有效期',
  363. slot: 'guaranteePeriod',
  364. align: 'center',
  365. formatter: (_row, _column, cellValue) => {
  366. return (
  367. (_row.guaranteePeriod || '') + _row.guaranteePeriodUnitName
  368. );
  369. }
  370. },
  371. {
  372. width: 160,
  373. prop: 'guaranteePeriodDeadline',
  374. label: '有效期截止日期',
  375. slot: 'guaranteePeriodDeadline',
  376. align: 'center'
  377. },
  378. {
  379. width: 130,
  380. prop: 'technicalAnswerName',
  381. label: '技术答疑人',
  382. slot: 'technicalAnswerName',
  383. align: 'center'
  384. },
  385. {
  386. width: 220,
  387. prop: 'technicalParams',
  388. label: '技术参数',
  389. slot: 'technicalParams',
  390. align: 'center'
  391. },
  392. {
  393. width: 240,
  394. prop: 'technicalDrawings',
  395. label: '技术图纸',
  396. slot: 'technicalDrawings',
  397. align: 'center'
  398. },
  399. {
  400. width: 220,
  401. prop: 'remark',
  402. label: '备注',
  403. slot: 'remark',
  404. align: 'center'
  405. }
  406. ]
  407. };
  408. },
  409. created() {
  410. console.log(this.detailData, 'detailData');
  411. this.requestDict('产地');
  412. this.requestDict('生产类型');
  413. },
  414. methods: {}
  415. };
  416. </script>
  417. <style scoped lang="scss">
  418. .fontSize {
  419. font-size: 14px;
  420. font-weight: bold;
  421. }
  422. </style>