Purchase.vue 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216
  1. <template>
  2. <div style="width: 100%; padding: 0px 15px">
  3. <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
  4. <template #buyer>
  5. <div style="width: 100%">
  6. <el-form-item prop="buyCorporationId">
  7. <el-select v-model="formData.data.buyCorporationId" style="width: 100%" @change="changeBuyCorporation">
  8. <el-option v-for="item in corporationList" :key="item.value" :label="item.label" :value="item.value" />
  9. </el-select>
  10. </el-form-item>
  11. <el-row style="margin-top: 20px; width: 100%">
  12. <el-col :span="8">
  13. <el-form-item label="地址" prop="buyCountryName">
  14. <el-input v-model="formData.data.buyCountryName" placeholder="请输入国家" @change="changeAddress" />
  15. </el-form-item>
  16. </el-col>
  17. <el-col :span="8">
  18. <el-form-item label=" " prop="buyProvinceName">
  19. <el-input v-model="formData.data.buyProvinceName" placeholder="请输入省/州" @change="changeAddress" />
  20. </el-form-item>
  21. </el-col>
  22. <el-col :span="8">
  23. <el-form-item label=" " prop="buyCityName">
  24. <el-input v-model="formData.data.buyCityName" placeholder="请输入城市" @change="changeAddress" />
  25. </el-form-item>
  26. </el-col>
  27. </el-row>
  28. <el-row style="margin-top: 20px; width: 100%">
  29. <el-col :span="24">
  30. <el-form-item prop="buyAddress">
  31. <el-input v-model="formData.data.buyAddress" type="textarea" @change="changeAddress" />
  32. </el-form-item>
  33. </el-col>
  34. </el-row>
  35. <el-row style="margin-top: 20px; width: 100%">
  36. <el-col :span="8">
  37. <el-form-item label="联系人" prop="buyContactName">
  38. <el-input v-model="formData.data.buyContactName" placeholder="请输入联系人" />
  39. </el-form-item>
  40. </el-col>
  41. <el-col :span="16">
  42. <el-form-item label=" " prop="buyContactNumber">
  43. <el-input v-model="formData.data.buyContactNumber" placeholder="请输入联系人电话" />
  44. </el-form-item>
  45. </el-col>
  46. </el-row>
  47. </div>
  48. </template>
  49. <template #seller>
  50. <div style="width: 100%">
  51. <div style="width: 100%">
  52. <el-form-item prop="sellCorporationId">
  53. <el-select v-model="formData.data.sellCorporationId" style="width: 100%" @change="changeSupplier">
  54. <el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value" />
  55. </el-select>
  56. </el-form-item>
  57. <el-row style="margin-top: 20px; width: 100%">
  58. <el-col :span="6">
  59. <el-form-item label="地址" prop="countryId">
  60. <el-select v-model="formData.data.countryId" placeholder="国家" filterable @change="(val) => changeSellAddress(val, '20')">
  61. <el-option v-for="item in countryData" :label="item.chineseName" :value="item.id"> </el-option>
  62. </el-select>
  63. </el-form-item>
  64. </el-col>
  65. <el-col :span="6">
  66. <el-form-item label=" " prop="provinceName">
  67. <selectCity
  68. placeholder="省/洲"
  69. @change="(val) => changeSellAddress(val, '30')"
  70. addressId="provinceId"
  71. addressName="provinceName"
  72. v-model="formData.data"
  73. :data="provinceData">
  74. </selectCity>
  75. </el-form-item>
  76. </el-col>
  77. <el-col :span="6">
  78. <el-form-item label=" " prop="cityName">
  79. <selectCity placeholder="城市" addressId="cityId" addressName="cityName" v-model="formData.data" :data="cityData" @change="changeAddress">
  80. </selectCity>
  81. </el-form-item>
  82. </el-col>
  83. <el-col :span="6">
  84. <el-form-item label=" " prop="sellPostalCode">
  85. <el-input v-model="formData.data.sellPostalCode" placeholder="请输入邮编" />
  86. </el-form-item>
  87. </el-col>
  88. </el-row>
  89. <el-row style="margin-top: 20px; width: 100%">
  90. <el-col :span="24">
  91. <el-form-item prop="sellAddress">
  92. <el-input v-model="formData.data.sellAddress" type="textarea" @change="changeAddress" />
  93. </el-form-item>
  94. </el-col>
  95. </el-row>
  96. <el-row style="margin-top: 20px; width: 100%">
  97. <el-col :span="8">
  98. <el-form-item label="联系人" prop="sellContactName">
  99. <el-input v-model="formData.data.sellContactName" placeholder="请输入联系人" />
  100. </el-form-item>
  101. </el-col>
  102. <el-col :span="16">
  103. <el-form-item label=" " prop="sellContactNumber">
  104. <el-input v-model="formData.data.sellContactNumber" placeholder="请输入联系人电话" />
  105. </el-form-item>
  106. </el-col>
  107. </el-row>
  108. </div>
  109. </div>
  110. </template>
  111. <template #payment>
  112. <div style="width: 100%">
  113. <el-row style="margin-top: 20px; width: 100%">
  114. <el-col :span="6">
  115. <el-form-item label="付款方式" prop="paymentMethod">
  116. <el-select v-model="formData.data.paymentMethod" placeholder="请选择付款方式" style="width: 100%">
  117. <el-option v-for="item in fundsPaymentMethod" :key="item.value" :label="item.label" :value="item.value" />
  118. </el-select>
  119. </el-form-item>
  120. </el-col>
  121. <el-col :span="6">
  122. <el-form-item label="发票类型" prop="invoiceType">
  123. <el-select v-model="formData.data.invoiceType" placeholder="请选择发票类型" style="width: 100%">
  124. <el-option v-for="item in invoiceType" :key="item.value" :label="item.label" :value="item.value" />
  125. </el-select>
  126. </el-form-item>
  127. </el-col>
  128. </el-row>
  129. </div>
  130. </template>
  131. <template #delivery>
  132. <div style="width: 100%">
  133. <el-row style="margin-top: 20px; width: 100%">
  134. <el-col :span="12">
  135. <el-form-item label="交货类型" prop="deliveryType">
  136. <el-radio-group v-model="formData.data.deliveryType" @change="changeAddress">
  137. <el-radio v-for="(item, index) in deliveryType" :key="index" :label="item.value" border>{{ item.label }}</el-radio>
  138. </el-radio-group>
  139. </el-form-item>
  140. </el-col>
  141. </el-row>
  142. <el-row style="margin-top: 20px; width: 100%">
  143. <el-col :span="12">
  144. <el-form-item label="详细地址" prop="address">
  145. <el-input v-model="formData.data.address" :rows="2" type="textarea" placeholder="请输入详细地址" />
  146. </el-form-item>
  147. </el-col>
  148. </el-row>
  149. <el-row style="margin-top: 20px; width: 100%">
  150. <el-col :span="6">
  151. <el-form-item label="交付日期" prop="deliveryTime">
  152. <el-date-picker v-model="formData.data.deliveryTime" type="date" placeholder="请选择交付日期" value-format="YYYY-MM-DD" />
  153. </el-form-item>
  154. </el-col>
  155. <el-col :span="6">
  156. <el-form-item label="质保期 (天)" prop="warranty">
  157. <el-input-number
  158. onmousewheel="return false;"
  159. v-model="formData.data.warranty"
  160. placeholder="请输入质保期"
  161. style="width: 100%"
  162. :precision="0"
  163. :controls="false"
  164. :min="0" />
  165. </el-form-item>
  166. </el-col>
  167. </el-row>
  168. </div>
  169. </template>
  170. <template #commodity>
  171. <div style="width: 100%" v-if="formData.data.purchaseProductList && formData.data.purchaseProductList.length > 0">
  172. <div
  173. :style="index !== formData.data.purchaseProductList.length - 1 ? 'margin-bottom: 20px' : ''"
  174. v-for="(item, index) in formData.data.purchaseProductList"
  175. :key="item.dataResourceId">
  176. <div style="border: 1px solid #ccc; padding: 20px 10px 0 10px; width: 100%">
  177. <el-row style="width: 100%" :gutter="5" type="flex" align="middle">
  178. <el-col :span="2" style="text-align: center">
  179. <img v-if="item.fileUrl" :src="item.fileUrl" class="pic" @click="onPicture(item.fileUrl)" />
  180. </el-col>
  181. <el-col :span="5">
  182. <span>产品名称: {{ item.productName }}</span>
  183. </el-col>
  184. <el-col :span="4">
  185. <span>尺寸: {{ item.productModel }}</span>
  186. </el-col>
  187. <el-col :span="3">
  188. <span>数量: {{ item.quantity }}</span>
  189. </el-col>
  190. <el-col :span="3">
  191. <span>单价: {{ item.price }}</span>
  192. </el-col>
  193. <el-col :span="2">
  194. <el-button type="primary" text @click="handleHandover(item, index)">编辑备注</el-button>
  195. </el-col>
  196. <el-col :span="2">
  197. <el-button type="primary" text @click="handleMaterial(index)">添加配件</el-button>
  198. </el-col>
  199. <el-col :span="3">
  200. <span>金额小计: {{ item.amount }}</span>
  201. </el-col>
  202. </el-row>
  203. <el-collapse v-model="item.activeName" class="hideCollapse" accordion>
  204. <el-collapse-item title="" :name="true">
  205. <div style="padding: 0 40px">
  206. <el-table :data="item.purchaseProductMountingsList" style="width: 100%">
  207. <el-table-column label="图片" align="center" width="80">
  208. <template #default="{ row }">
  209. <img v-if="row.fileUrl" :src="row.fileUrl" class="pic" @click="onPicture(row.fileUrl)" />
  210. </template>
  211. </el-table-column>
  212. <el-table-column label="类型" align="center" width="80">
  213. <template #default="{ row }">
  214. <div>{{ dictValueLabel(row.productType, productType) }}</div>
  215. </template>
  216. </el-table-column>
  217. <el-table-column label="产品名称" prop="productName" min-width="180" />
  218. <el-table-column label="尺寸" prop="productModel" min-width="140" />
  219. <el-table-column label="单价" width="140">
  220. <template #default="{ row, $index }">
  221. <div style="width: 100%" class="removePadding">
  222. <el-form-item
  223. :prop="'purchaseProductList.' + index + '.purchaseProductMountingsList.' + $index + '.price'"
  224. :rules="rules.price"
  225. :inline-message="true"
  226. @change="
  227. () => {
  228. return changeProductMaterial(index, $index);
  229. }
  230. ">
  231. <el-input-number
  232. onmousewheel="return false;"
  233. v-model="row.price"
  234. placeholder="请输入单价"
  235. :precision="2"
  236. :controls="false"
  237. :min="0" />
  238. </el-form-item>
  239. </div>
  240. </template>
  241. </el-table-column>
  242. <el-table-column label="数量" width="140">
  243. <template #default="{ row, $index }">
  244. <div style="width: 100%" class="removePadding">
  245. <el-form-item
  246. :prop="'purchaseProductList.' + index + '.purchaseProductMountingsList.' + $index + '.quantity'"
  247. :rules="rules.quantity"
  248. :inline-message="true"
  249. @change="
  250. () => {
  251. return changeProductMaterial(index, $index);
  252. }
  253. ">
  254. <el-input-number
  255. onmousewheel="return false;"
  256. v-model="row.quantity"
  257. placeholder="请输入数量"
  258. :precision="0"
  259. :controls="false"
  260. :min="0" />
  261. </el-form-item>
  262. </div>
  263. </template>
  264. </el-table-column>
  265. <el-table-column label="金额" prop="amount" width="100" />
  266. <el-table-column label="操作" align="center" width="80" fixed="right">
  267. <template #default="{ $index }">
  268. <el-button type="primary" v-if="$index !== 0" link @click="handleRemove(index, $index)">删除</el-button>
  269. </template>
  270. </el-table-column>
  271. </el-table>
  272. </div>
  273. </el-collapse-item>
  274. </el-collapse>
  275. <div style="text-align: center; margin-top: -18px">
  276. <el-button type="primary" @click="item.activeName = !item.activeName" style="margin-bottom: -28px" text>
  277. <span v-if="item.activeName">
  278. <span style="vertical-align: middle">收起明细</span>
  279. <el-icon style="margin-left: 8px; transform: rotate(-90deg); vertical-align: middle"><DArrowRight /></el-icon>
  280. </span>
  281. <span v-else>
  282. <span style="vertical-align: middle">查看明细</span>
  283. <el-icon style="margin-left: 8px; transform: rotate(90deg); vertical-align: middle"><DArrowRight /></el-icon>
  284. </span>
  285. </el-button>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. </template>
  291. <template #otherCharge>
  292. <div style="width: 100%">
  293. <el-button type="primary" @click="clickAdd()">添加行</el-button>
  294. <el-table :data="formData.data.purchaseProjectList" style="width: 100%; margin-top: 16px">
  295. <el-table-column label="收费项目" width="220">
  296. <template #default="{ row, $index }">
  297. <div style="width: 100%">
  298. <el-form-item :prop="'purchaseProjectList.' + $index + '.payName'" :rules="rules.payName" :inline-message="true">
  299. <el-autocomplete v-model="row.payName" :fetch-suggestions="querySearch" clearable class="inline-input w-50" placeholder="请输入收费项目" />
  300. </el-form-item>
  301. </div>
  302. </template>
  303. </el-table-column>
  304. <el-table-column label="备注">
  305. <template #default="{ row, $index }">
  306. <div style="width: 100%">
  307. <el-form-item :prop="'purchaseProjectList.' + $index + '.remark'">
  308. <el-input v-model="row.remark" placeholder="请输入备注" />
  309. </el-form-item>
  310. </div>
  311. </template>
  312. </el-table-column>
  313. <el-table-column label="金额" width="130">
  314. <template #default="{ row, $index }">
  315. <div style="width: 100%">
  316. <el-form-item
  317. :prop="'purchaseProjectList.' + $index + '.amount'"
  318. :rules="rules.amount"
  319. :inline-message="true"
  320. class="shrinkPadding"
  321. @change="changeProject">
  322. <el-input-number
  323. onmousewheel="return false;"
  324. v-model="row.amount"
  325. placeholder="请输入金额"
  326. style="width: 100%"
  327. :precision="2"
  328. :controls="false"
  329. :min="0" />
  330. </el-form-item>
  331. </div>
  332. </template>
  333. </el-table-column>
  334. <el-table-column label="操作" width="60" align="center" fixed="right">
  335. <template #default="{ $index }">
  336. <el-button type="primary" link @click="handleDelete($index)">删除</el-button>
  337. </template>
  338. </el-table-column>
  339. </el-table>
  340. </div>
  341. </template>
  342. <template #offerMoney>
  343. <div style="width: 100%; display: flex">
  344. <div style="width: calc(100% - 190px)"></div>
  345. <div style="width: 130px; padding: 0 12px">
  346. <el-form-item label="合同总金额" prop="amount" class="shrinkPadding">
  347. <el-input v-model="formData.data.amount" placeholder="合同总金额" disabled />
  348. </el-form-item>
  349. </div>
  350. </div>
  351. </template>
  352. <template #contractClause>
  353. <div style="width: 100%">
  354. <el-row style="margin-top: 20px; width: 100%">
  355. <el-col :span="8">
  356. <el-form-item label="合同模板" prop="contractTemplateId">
  357. <el-select v-model="formData.data.contractTemplateId" style="width: 100%" @change="changeContractTemplate">
  358. <el-option v-for="item in templateList" :key="item.value" :label="item.label" :value="item.value" />
  359. </el-select>
  360. </el-form-item>
  361. </el-col>
  362. </el-row>
  363. <div style="margin-top: 20px; width: 100%">
  364. <el-form-item label="条款内容" prop="remark">
  365. <div v-if="judgeStatus()">
  366. <div v-html="getStyle(formData.data.remark)"></div>
  367. </div>
  368. <Editor v-else style="width: 100%" :value="formData.data.remark" @updateValue="updateContent" ref="remarkEditor" />
  369. </el-form-item>
  370. </div>
  371. </div>
  372. </template>
  373. <template #shipment>
  374. <div style="width: 100%">
  375. <el-table :data="formData.data.purchaseArrivalList" style="width: 100%; margin-top: 16px">
  376. <el-table-column prop="code" label="商品编码" width="120" />
  377. <el-table-column prop="productName" label="商品名称" />
  378. <el-table-column label="到货日期" width="220">
  379. <template #default="{ row, $index }">
  380. <div style="width: 100%">
  381. <el-form-item :prop="'purchaseArrivalList.' + $index + '.arrivalTime'" :rules="rules.arrivalTime" :inline-message="true">
  382. <el-date-picker v-model="row.arrivalTime" type="date" placeholder="请选择到货日期" value-format="YYYY-MM-DD" />
  383. </el-form-item>
  384. </div>
  385. </template>
  386. </el-table-column>
  387. <el-table-column label="到货数量" width="160">
  388. <template #default="{ row, $index }">
  389. <div style="width: 100%">
  390. <el-form-item :prop="'purchaseArrivalList.' + $index + '.quantity'" :inline-message="true">
  391. <el-input-number
  392. onmousewheel="return false;"
  393. v-model="row.quantity"
  394. placeholder="请输入到货数量"
  395. style="width: 100%"
  396. :precision="0"
  397. :controls="false"
  398. :min="0" />
  399. </el-form-item>
  400. </div>
  401. </template>
  402. </el-table-column>
  403. <el-table-column align="center" label="操作" width="120" fixed="right">
  404. <template #default="{ row, $index }">
  405. <el-button type="primary" link @click="clickSplit(row)">拆分</el-button>
  406. <el-button type="primary" link @click="clickDelete($index)">删除</el-button>
  407. </template>
  408. </el-table-column>
  409. </el-table>
  410. </div>
  411. </template>
  412. </byForm>
  413. <el-dialog v-if="openMaterialCompany" v-model="openMaterialCompany" title="公司产品库" width="90%" append-to-body>
  414. <ProductMaterial :selectStatus="true" @selectMaterial="selectMaterial"></ProductMaterial>
  415. </el-dialog>
  416. <el-dialog title="备注" v-if="openHandover" v-model="openHandover" width="800">
  417. <byForm :formConfig="formHandoverConfig" :formOption="formOption" v-model="productRow.data">
  418. <template #file>
  419. <div style="width: 100%">
  420. <el-upload
  421. v-model:fileList="fileList"
  422. action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
  423. :data="uploadData"
  424. multiple
  425. :before-upload="uploadFile"
  426. :on-success="handleSuccess"
  427. :on-preview="onPreviewFile">
  428. <el-button>选择</el-button>
  429. </el-upload>
  430. </div>
  431. </template>
  432. <template #remark>
  433. <div style="width: 100%">
  434. <Editor :value="productRow.data.remark" @updateValue="updateHandover" />
  435. </div>
  436. </template>
  437. </byForm>
  438. <template #footer>
  439. <el-button @click="openHandover = false" size="large">取 消</el-button>
  440. <el-button type="primary" @click="submitHandoverForm()" size="large">确 定</el-button>
  441. </template>
  442. </el-dialog>
  443. </div>
  444. </template>
  445. <script setup>
  446. import byForm from "@/components/byForm/index";
  447. import ProductMaterial from "@/views/product/material/index";
  448. import { ElMessage } from "element-plus";
  449. import selectCity from "@/components/selectCity/index.vue";
  450. import Editor from "@/components/Editor/index.vue";
  451. const { proxy } = getCurrentInstance();
  452. const invoiceType = ref([]);
  453. const fundsPaymentMethod = ref([]);
  454. const templateList = ref([]);
  455. const corporationList = ref([]);
  456. const supplierList = ref([]);
  457. const countryData = ref([]);
  458. const provinceData = ref([]);
  459. const cityData = ref([]);
  460. const openMaterialCompany = ref(false);
  461. const formData = reactive({
  462. data: {
  463. deliveryType: 1,
  464. remark: "",
  465. amount: undefined,
  466. purchaseArrivalList: [],
  467. purchaseProductList: [],
  468. purchaseProjectList: [],
  469. },
  470. });
  471. const submit = ref(null);
  472. const deliveryType = ref([
  473. {
  474. label: "买方地址",
  475. value: 1,
  476. },
  477. {
  478. label: "工厂交付",
  479. value: 2,
  480. },
  481. {
  482. label: "其他",
  483. value: 3,
  484. },
  485. ]);
  486. const productType = ref([
  487. {
  488. label: "产品",
  489. value: 1,
  490. },
  491. {
  492. label: "物料",
  493. value: 2,
  494. },
  495. ]);
  496. const judgeStatus = () => {
  497. if (props.queryData.recordList && props.queryData.recordList.length > 0) {
  498. let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
  499. if (data && data.length > 0) {
  500. return true;
  501. }
  502. }
  503. return false;
  504. };
  505. const formOption = reactive({
  506. inline: true,
  507. labelWidth: 100,
  508. itemWidth: 100,
  509. rules: [],
  510. disabled: judgeStatus(),
  511. });
  512. const formConfig = computed(() => {
  513. return [
  514. {
  515. type: "slot",
  516. slotName: "buyer",
  517. label: "买方信息",
  518. itemWidth: 50,
  519. },
  520. {
  521. type: "slot",
  522. slotName: "seller",
  523. label: "卖方信息",
  524. itemWidth: 50,
  525. },
  526. {
  527. type: "slot",
  528. slotName: "payment",
  529. label: "付款信息",
  530. },
  531. {
  532. type: "slot",
  533. slotName: "delivery",
  534. label: "交付信息",
  535. },
  536. {
  537. type: "slot",
  538. slotName: "commodity",
  539. label: "采购明细",
  540. },
  541. {
  542. type: "slot",
  543. slotName: "otherCharge",
  544. label: "其他收费项目",
  545. },
  546. {
  547. type: "slot",
  548. slotName: "offerMoney",
  549. },
  550. {
  551. type: "slot",
  552. slotName: "contractClause",
  553. label: "合同条款",
  554. },
  555. {
  556. type: "slot",
  557. slotName: "shipment",
  558. label: "到货要求",
  559. },
  560. ];
  561. });
  562. const rules = ref({
  563. buyCorporationId: [{ required: true, message: "请选择买方公司", trigger: "change" }],
  564. sellCorporationId: [{ required: true, message: "请选择卖方公司", trigger: "change" }],
  565. countryId: [{ required: true, message: "请选择国家", trigger: "change" }],
  566. sellAddress: [{ required: true, message: "请输入详细地址", trigger: "blur" }],
  567. buyAddress: [{ required: true, message: "请输入详细地址", trigger: "blur" }],
  568. sellContactName: [{ required: true, message: "请输入联系人", trigger: "blur" }],
  569. sellContactNumber: [{ required: true, message: "请输入联系电话", trigger: "blur" }],
  570. quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
  571. price: [{ required: true, message: "请输入单价", trigger: "blur" }],
  572. amount: [{ required: true, message: "请输入金额", trigger: "blur" }],
  573. payName: [{ required: true, message: "请输入收费项目", trigger: ["change", "blur"] }],
  574. warranty: [{ required: true, message: "请输入质保期", trigger: "blur" }],
  575. deliveryType: [{ required: true, message: "请选择交货类型", trigger: "change" }],
  576. address: [{ required: true, message: "请输入详细地址", trigger: "blur" }],
  577. deliveryTime: [{ required: true, message: "请选择交付日期", trigger: "change" }],
  578. paymentMethod: [{ required: true, message: "请选择付款方式", trigger: "change" }],
  579. invoiceType: [{ required: true, message: "请选择付款方式", trigger: "change" }],
  580. contractTemplateId: [{ required: true, message: "请选择合同模板", trigger: "change" }],
  581. remark: [{ required: true, message: "请输入条款内容", trigger: "change" }],
  582. });
  583. const getDict = () => {
  584. proxy.getDictOne(["invoice_type", "funds_payment_method"]).then((res) => {
  585. invoiceType.value = res["invoice_type"].map((x) => ({
  586. label: x.dictValue,
  587. value: x.dictKey,
  588. }));
  589. fundsPaymentMethod.value = res["funds_payment_method"].map((x) => ({
  590. label: x.dictValue,
  591. value: x.dictKey,
  592. }));
  593. });
  594. proxy.post("/contractTemplate/page", { pageNum: 1, pageSize: 999 }).then((res) => {
  595. templateList.value = res.rows.map((item) => {
  596. return {
  597. ...item,
  598. label: item.templateName,
  599. value: item.id,
  600. };
  601. });
  602. });
  603. proxy.post("/corporation/page", { pageNum: 1, pageSize: 999 }).then((res) => {
  604. corporationList.value = res.rows.map((item) => {
  605. return {
  606. ...item,
  607. label: item.name,
  608. value: item.id,
  609. };
  610. });
  611. });
  612. proxy.post("/supplierInfo/page", { pageNum: 1, pageSize: 999 }).then((res) => {
  613. supplierList.value = res.rows.map((item) => {
  614. return {
  615. ...item,
  616. label: item.name,
  617. value: item.id,
  618. };
  619. });
  620. });
  621. };
  622. getDict();
  623. const getCityData = (id, type, isChange) => {
  624. return proxy.post("/customizeArea/list", { parentId: id }).then((res) => {
  625. if (type === "20") {
  626. provinceData.value = res;
  627. if (isChange) {
  628. formData.data.provinceId = "";
  629. formData.data.provinceName = "";
  630. formData.data.cityId = "";
  631. formData.data.cityName = "";
  632. }
  633. } else if (type === "30") {
  634. cityData.value = res;
  635. if (isChange) {
  636. formData.data.cityId = "";
  637. formData.data.cityName = "";
  638. }
  639. } else {
  640. countryData.value = res;
  641. }
  642. });
  643. };
  644. getCityData("0");
  645. const changeBuyCorporation = (val) => {
  646. formData.data.buyCountryName = "";
  647. formData.data.buyProvinceName = "";
  648. formData.data.buyCityName = "";
  649. formData.data.buyAddress = "";
  650. if (val) {
  651. proxy.post("/corporation/detail", { id: val }).then((res) => {
  652. formData.data.buyAddress = res.address;
  653. Promise.all([getBuyCountryName(res.countryId), getBuyProvinceName(res.provinceId, res.countryId), getBuyCityName(res.cityId, res.provinceId)]).then(
  654. () => {
  655. changeAddress();
  656. }
  657. );
  658. });
  659. }
  660. };
  661. const changeAddress = () => {
  662. if (formData.data.deliveryType === 1) {
  663. let buyCountryName = "";
  664. if (formData.data.buyCountryName) {
  665. buyCountryName = formData.data.buyCountryName;
  666. }
  667. let buyProvinceName = "";
  668. if (formData.data.buyProvinceName) {
  669. buyProvinceName = formData.data.buyProvinceName;
  670. }
  671. let buyCityName = "";
  672. if (formData.data.buyCityName) {
  673. buyCityName = formData.data.buyCityName;
  674. }
  675. let buyAddress = "";
  676. if (formData.data.buyAddress) {
  677. buyAddress = formData.data.buyAddress;
  678. }
  679. formData.data.address = buyCountryName + ", " + buyProvinceName + ", " + buyCityName + "," + buyAddress;
  680. } else if (formData.data.deliveryType === 2) {
  681. let countryName = "";
  682. if (formData.data.countryId) {
  683. let data = countryData.value.filter((item) => item.id === formData.data.countryId);
  684. if (data && data.length > 0) countryName = data[0].chineseName;
  685. }
  686. let provinceName = "";
  687. if (formData.data.provinceId) {
  688. let data = provinceData.value.filter((item) => item.id === formData.data.provinceId);
  689. if (data && data.length > 0) provinceName = data[0].name;
  690. } else {
  691. if (formData.data.provinceName) {
  692. provinceName = formData.data.provinceName;
  693. }
  694. }
  695. let cityName = "";
  696. if (formData.data.cityId) {
  697. let data = cityData.value.filter((item) => item.id === formData.data.cityId);
  698. if (data && data.length > 0) cityName = data[0].name;
  699. } else {
  700. if (formData.data.cityName) {
  701. cityName = formData.data.cityName;
  702. }
  703. }
  704. let sellAddress = "";
  705. if (formData.data.sellAddress) {
  706. sellAddress = formData.data.sellAddress;
  707. }
  708. formData.data.address = countryName + ", " + provinceName + ", " + cityName + "," + sellAddress;
  709. }
  710. };
  711. const changeSellAddress = (val, index) => {
  712. Promise.all([getCityData(val, index, true)]).then(() => {
  713. changeAddress();
  714. });
  715. };
  716. const getBuyCountryName = (val) => {
  717. return proxy.post("/customizeArea/list", { parentId: "0" }).then((resCountry) => {
  718. let buyCountryData = resCountry.filter((item) => item.id === val);
  719. if (buyCountryData && buyCountryData.length > 0) {
  720. formData.data.buyCountryName = buyCountryData[0].chineseName;
  721. } else {
  722. formData.data.buyCountryName = "";
  723. }
  724. });
  725. };
  726. const getBuyProvinceName = (val, countryId) => {
  727. if (val) {
  728. return proxy.post("/customizeArea/list", { parentId: countryId }).then((resProvince) => {
  729. let buyProvinceData = resProvince.filter((item) => item.id === val);
  730. if (buyProvinceData && buyProvinceData.length > 0) {
  731. formData.data.buyProvinceName = buyProvinceData[0].name;
  732. } else {
  733. formData.data.buyProvinceName = "";
  734. }
  735. });
  736. } else {
  737. formData.data.buyProvinceName = "";
  738. return;
  739. }
  740. };
  741. const getBuyCityName = (val, provinceId) => {
  742. if (val) {
  743. return proxy.post("/customizeArea/list", { parentId: provinceId }).then((resCity) => {
  744. let buyCityData = resCity.filter((item) => item.id === val);
  745. if (buyCityData && buyCityData.length > 0) {
  746. formData.data.buyCityName = buyCityData[0].name;
  747. } else {
  748. formData.data.buyCityName = "";
  749. }
  750. });
  751. } else {
  752. formData.data.buyCityName = "";
  753. return;
  754. }
  755. };
  756. const changeSupplier = (val) => {
  757. formData.data.countryId = "";
  758. formData.data.provinceId = "";
  759. formData.data.cityId = "";
  760. formData.data.sellPostalCode = "";
  761. formData.data.sellAddress = "";
  762. formData.data.sellContactName = "";
  763. formData.data.sellContactNumber = "";
  764. if (val) {
  765. let data = supplierList.value.filter((item) => item.id === val);
  766. if (data && data.length > 0) {
  767. formData.data.countryId = data[0].countryId;
  768. formData.data.provinceId = data[0].provinceId;
  769. formData.data.cityId = data[0].cityId;
  770. formData.data.sellAddress = data[0].areaDetail;
  771. formData.data.sellContactName = data[0].contactPerson;
  772. formData.data.sellContactNumber = data[0].contactNumber;
  773. if (formData.data.provinceId) {
  774. Promise.all([getCityData(formData.data.countryId, "20"), getCityData(formData.data.provinceId, "30")]).then(() => {
  775. changeAddress();
  776. });
  777. } else {
  778. Promise.all([getCityData(formData.data.countryId, "20")]).then(() => {
  779. changeAddress();
  780. });
  781. }
  782. }
  783. }
  784. };
  785. const onPicture = (path) => {
  786. window.open(path, "_blank");
  787. };
  788. const changeProject = () => {
  789. nextTick(() => {
  790. calculationAllAmount();
  791. });
  792. };
  793. const calculationAllAmount = () => {
  794. let amount = 0;
  795. if (formData.data.purchaseProductList && formData.data.purchaseProductList.length > 0) {
  796. for (let i = 0; i < formData.data.purchaseProductList.length; i++) {
  797. if (formData.data.purchaseProductList[i].amount) {
  798. amount = Number(parseFloat(Number(amount) + Number(formData.data.purchaseProductList[i].amount)).toFixed(2));
  799. }
  800. }
  801. }
  802. if (formData.data.purchaseProjectList && formData.data.purchaseProjectList.length > 0) {
  803. for (let i = 0; i < formData.data.purchaseProjectList.length; i++) {
  804. if (formData.data.purchaseProjectList[i].amount) {
  805. amount = Number(parseFloat(Number(amount) + Number(formData.data.purchaseProjectList[i].amount)).toFixed(2));
  806. }
  807. }
  808. }
  809. formData.data.amount = amount;
  810. };
  811. const calculationProductAmount = (index) => {
  812. if (
  813. formData.data.purchaseProductList &&
  814. formData.data.purchaseProductList.length > 0 &&
  815. formData.data.purchaseProductList[index].purchaseProductMountingsList &&
  816. formData.data.purchaseProductList[index].purchaseProductMountingsList.length > 0
  817. ) {
  818. let amount = 0;
  819. for (let i = 0; i < formData.data.purchaseProductList[index].purchaseProductMountingsList.length; i++) {
  820. if (formData.data.purchaseProductList[index].purchaseProductMountingsList[i].amount) {
  821. amount = Number(parseFloat(Number(amount) + Number(formData.data.purchaseProductList[index].purchaseProductMountingsList[i].amount)).toFixed(2));
  822. }
  823. }
  824. formData.data.purchaseProductList[index].amount = amount;
  825. let price = 0;
  826. if (formData.data.purchaseProductList[index].quantity && amount) {
  827. price = Number(parseFloat(Number(amount) / Number(formData.data.purchaseProductList[index].quantity)).toFixed(4));
  828. }
  829. formData.data.purchaseProductList[index].price = price;
  830. }
  831. nextTick(() => {
  832. calculationAllAmount();
  833. });
  834. };
  835. const changeProductMaterial = (index, indexTwo) => {
  836. nextTick(() => {
  837. if (
  838. formData.data.purchaseProductList &&
  839. formData.data.purchaseProductList.length > 0 &&
  840. formData.data.purchaseProductList[index].purchaseProductMountingsList &&
  841. formData.data.purchaseProductList[index].purchaseProductMountingsList.length > 0
  842. ) {
  843. if (indexTwo === 0 && formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].quantity) {
  844. formData.data.purchaseProductList[index].quantity = formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].quantity;
  845. }
  846. if (
  847. formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].quantity &&
  848. formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].price
  849. ) {
  850. formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].amount = Number(
  851. parseFloat(
  852. Number(formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].quantity) *
  853. Number(formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].price)
  854. ).toFixed(2)
  855. );
  856. } else {
  857. formData.data.purchaseProductList[index].purchaseProductMountingsList[indexTwo].amount = 0;
  858. }
  859. }
  860. nextTick(() => {
  861. calculationProductAmount(index);
  862. });
  863. });
  864. };
  865. const handleRemove = async (index, indexTwo) => {
  866. await formData.data.purchaseProductList[index].purchaseProductMountingsList.splice(indexTwo, 1);
  867. nextTick(() => {
  868. calculationProductAmount(index);
  869. });
  870. };
  871. const clickAdd = () => {
  872. if (formData.data.purchaseProjectList && formData.data.purchaseProjectList.length > 0) {
  873. formData.data.purchaseProjectList.push({
  874. payName: "",
  875. amount: undefined,
  876. remark: "",
  877. });
  878. } else {
  879. formData.data.purchaseProjectList = [{ payName: "", amount: undefined, remark: "" }];
  880. }
  881. };
  882. const handleDelete = async (index) => {
  883. await formData.data.purchaseProjectList.splice(index, 1);
  884. nextTick(() => {
  885. calculationAllAmount();
  886. });
  887. };
  888. const querySearch = (queryString, callback) => {
  889. proxy.post("/quotationPay/page", { payName: queryString }).then((res) => {
  890. if (res.rows && res.rows.length > 0) {
  891. res.rows = res.rows.map((item) => {
  892. return {
  893. ...item,
  894. value: item.payName,
  895. };
  896. });
  897. callback(res.rows);
  898. } else {
  899. callback([]);
  900. }
  901. });
  902. };
  903. const handleSubmit = async () => {
  904. let status = await submit.value.handleSubmit(() => {});
  905. if (status) {
  906. if (formData.data.purchaseArrivalList && formData.data.purchaseArrivalList.length > 0) {
  907. for (let i = 0; i < formData.data.purchaseProductList.length; i++) {
  908. let data = formData.data.purchaseArrivalList.filter((item) => item.productId === formData.data.purchaseProductList[i].productId);
  909. if (data && data.length > 0) {
  910. let quantity = 0;
  911. for (let j = 0; j < data.length; j++) {
  912. quantity = parseFloat(Number(quantity) + Number(data[j].quantity));
  913. }
  914. if (quantity > formData.data.purchaseProductList[i].quantity) {
  915. ElMessage("到货数量不能大于采购数量");
  916. return false;
  917. }
  918. }
  919. }
  920. }
  921. return true;
  922. } else {
  923. setTimeout(() => {
  924. const errorDiv = document.getElementsByClassName("is-error");
  925. errorDiv[0].scrollIntoView();
  926. }, 0);
  927. }
  928. return status;
  929. };
  930. // 接收父组件的传值
  931. const props = defineProps({
  932. queryData: Object,
  933. });
  934. // 向父组件暴露
  935. defineExpose({
  936. submitData: formData.data,
  937. handleSubmit,
  938. });
  939. onMounted(() => {
  940. if (props.queryData.ids) {
  941. proxy.post("/delivery/page", { ids: props.queryData.ids }).then((res) => {
  942. if (res.rows && res.rows.length > 0) {
  943. formData.data.purchaseProductList = res.rows.map((item) => {
  944. return {
  945. productId: item.productId,
  946. contractId: item.contractId,
  947. productName: item.productName,
  948. productModel: item.productModel,
  949. quantity: item.expendQuantity,
  950. price: "",
  951. amount: "",
  952. remark: "",
  953. json: "",
  954. fileUrl: "",
  955. dataResource: props.queryData.type,
  956. dataResourceId: item.id,
  957. purchaseProductMountingsList: [
  958. {
  959. productId: item.productId,
  960. productType: 1,
  961. productName: item.productName,
  962. productModel: item.productModel,
  963. quantity: item.expendQuantity,
  964. price: undefined,
  965. amount: "",
  966. remark: "",
  967. json: "",
  968. fileUrl: "",
  969. activeName: false,
  970. },
  971. ],
  972. fileList: [],
  973. };
  974. });
  975. formData.data.purchaseArrivalList = res.rows.map((item) => {
  976. return {
  977. code: item.productCode,
  978. productId: item.productId,
  979. productName: item.productName,
  980. arrivalTime: "",
  981. quantity: undefined,
  982. };
  983. });
  984. let fileIds = formData.data.purchaseProductList.map((item) => item.productId);
  985. proxy.post("/fileInfo/getList", { businessIdList: fileIds }).then((resFile) => {
  986. for (let i = 0; i < formData.data.purchaseProductList.length; i++) {
  987. if (resFile[formData.data.purchaseProductList[i].productId] && resFile[formData.data.purchaseProductList[i].productId].length > 0) {
  988. formData.data.purchaseProductList[i].fileUrl = resFile[formData.data.purchaseProductList[i].productId][0].fileUrl;
  989. formData.data.purchaseProductList[i].purchaseProductMountingsList[0].fileUrl = resFile[formData.data.purchaseProductList[i].productId][0].fileUrl;
  990. }
  991. }
  992. });
  993. } else {
  994. formData.data.purchaseProductList = [];
  995. }
  996. });
  997. }
  998. });
  999. const clickSplit = (item) => {
  1000. formData.data.purchaseArrivalList.push({
  1001. code: item.code,
  1002. productId: item.productId,
  1003. productName: item.productName,
  1004. arrivalTime: "",
  1005. remark: "",
  1006. quantity: undefined,
  1007. });
  1008. };
  1009. const clickDelete = (index) => {
  1010. formData.data.purchaseArrivalList.splice(index, 1);
  1011. };
  1012. const updateContent = (val) => {
  1013. formData.data.remark = val;
  1014. };
  1015. const remarkEditor = ref(null);
  1016. const changeContractTemplate = (val) => {
  1017. if (val) {
  1018. proxy.post("/contractTemplate/detail", { id: val }).then((res) => {
  1019. remarkEditor.value.changeHtml(res.templateContent);
  1020. });
  1021. }
  1022. };
  1023. const productRow = reactive({
  1024. data: {
  1025. productName: "",
  1026. remark: "",
  1027. },
  1028. });
  1029. const productIndex = ref(0);
  1030. const openHandover = ref(false);
  1031. const fileList = ref([]);
  1032. const uploadData = ref({});
  1033. const formHandoverConfig = computed(() => {
  1034. return [
  1035. {
  1036. type: "title",
  1037. title: "产品信息",
  1038. label: "",
  1039. },
  1040. {
  1041. type: "input",
  1042. prop: "productName",
  1043. label: "产品名称",
  1044. itemType: "text",
  1045. disabled: true,
  1046. },
  1047. {
  1048. type: "input",
  1049. prop: "productModel",
  1050. label: "规格型号",
  1051. itemType: "text",
  1052. disabled: true,
  1053. },
  1054. {
  1055. type: "slot",
  1056. prop: "file",
  1057. slotName: "file",
  1058. label: "上传附件",
  1059. },
  1060. {
  1061. type: "slot",
  1062. slotName: "remark",
  1063. label: "备注",
  1064. },
  1065. ];
  1066. });
  1067. const handleHandover = (row, index) => {
  1068. productRow.data = {
  1069. productName: row.productName,
  1070. remark: row.remark,
  1071. };
  1072. if (row.fileList && row.fileList.length > 0) {
  1073. fileList.value = row.fileList.map((item) => {
  1074. return {
  1075. raw: item,
  1076. name: item.fileName,
  1077. url: item.fileUrl,
  1078. };
  1079. });
  1080. } else {
  1081. fileList.value = [];
  1082. }
  1083. productIndex.value = index;
  1084. openHandover.value = true;
  1085. };
  1086. const handleMaterial = (index) => {
  1087. productIndex.value = index;
  1088. openMaterialCompany.value = true;
  1089. };
  1090. const uploadFile = async (file) => {
  1091. const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
  1092. uploadData.value = res.uploadBody;
  1093. file.id = res.id;
  1094. file.fileName = res.fileName;
  1095. file.fileUrl = res.fileUrl;
  1096. file.uploadState = true;
  1097. return true;
  1098. };
  1099. const handleSuccess = (any, UploadFile) => {
  1100. UploadFile.raw.uploadState = false;
  1101. };
  1102. const onPreviewFile = (file) => {
  1103. window.open(file.raw.fileUrl, "_blank");
  1104. };
  1105. const updateHandover = (val) => {
  1106. productRow.data.remark = val;
  1107. };
  1108. const submitHandoverForm = () => {
  1109. if (fileList.value && fileList.value.length > 0) {
  1110. for (let i = 0; i < fileList.value.length; i++) {
  1111. if (fileList.value[i].raw.uploadState) {
  1112. ElMessage("文件上传中,请稍后提交");
  1113. return;
  1114. }
  1115. }
  1116. formData.data.purchaseProductList[productIndex.value].fileList = fileList.value.map((item) => {
  1117. return {
  1118. id: item.raw.id,
  1119. fileName: item.raw.fileName,
  1120. fileUrl: item.raw.fileUrl,
  1121. uploadState: item.raw.uploadState,
  1122. };
  1123. });
  1124. } else {
  1125. formData.data.purchaseProductList[productIndex.value].fileList = [];
  1126. }
  1127. formData.data.purchaseProductList[productIndex.value].remark = productRow.data.remark;
  1128. openHandover.value = false;
  1129. };
  1130. const selectMaterial = (goods) => {
  1131. if (goods && goods.id) {
  1132. let data = formData.data.purchaseProductList[productIndex.value].purchaseProductMountingsList.filter((item) => item.productId === goods.id);
  1133. if (data && data.length > 0) {
  1134. return ElMessage("该物料已添加");
  1135. }
  1136. let fileUrl = "";
  1137. if (goods.fileList && goods.fileList.length > 0) {
  1138. fileUrl = goods.fileList[0].fileUrl;
  1139. }
  1140. formData.data.purchaseProductList[productIndex.value].purchaseProductMountingsList.push({
  1141. productId: goods.id,
  1142. productType: 2,
  1143. productName: goods.name,
  1144. productModel: goods.spec,
  1145. quantity: undefined,
  1146. price: undefined,
  1147. amount: "",
  1148. remark: "",
  1149. json: "",
  1150. fileUrl: fileUrl,
  1151. activeName: false,
  1152. });
  1153. ElMessage({
  1154. message: "添加成功!",
  1155. type: "success",
  1156. });
  1157. } else {
  1158. return ElMessage("选择错误");
  1159. }
  1160. };
  1161. const getStyle = (text) => {
  1162. if (text) {
  1163. return text.replace(/\n|\r\n/g, "<br>");
  1164. } else {
  1165. return "";
  1166. }
  1167. };
  1168. </script>
  1169. <style lang="scss" scoped>
  1170. ::v-deep(.el-input-number .el-input__inner) {
  1171. text-align: left;
  1172. }
  1173. .pic {
  1174. object-fit: contain;
  1175. width: 50px;
  1176. height: 50px;
  1177. cursor: pointer;
  1178. vertical-align: middle;
  1179. }
  1180. .shrinkPadding {
  1181. padding-right: 0 !important;
  1182. }
  1183. .hideCollapse {
  1184. margin-top: -28px;
  1185. border: 0 !important;
  1186. }
  1187. ::v-deep(.el-collapse-item__arrow) {
  1188. display: none !important;
  1189. }
  1190. ::v-deep(.el-collapse-item__wrap) {
  1191. border: 0 !important;
  1192. }
  1193. ::v-deep(.el-collapse-item__header) {
  1194. border: 0 !important;
  1195. }
  1196. ::v-deep(.el-collapse-item__content) {
  1197. padding-bottom: 8px !important;
  1198. }
  1199. .pic {
  1200. object-fit: contain;
  1201. width: 50px;
  1202. height: 50px;
  1203. cursor: pointer;
  1204. vertical-align: middle;
  1205. }
  1206. ::v-deep(.removePadding) {
  1207. .el-form-item {
  1208. padding-right: 0 !important;
  1209. }
  1210. }
  1211. </style>