Sample.vue 45 KB

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