edit.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. <template>
  2. <div>
  3. <el-button size="mini" :disabled="data.status !== '新建' || !data.disabled" :type="data.status !== '新建' || !data.disabled ?'':'primary'" @click="onShow" >编 辑</el-button>
  4. <el-drawer
  5. title="编辑报价单"
  6. :visible.sync="drawer"
  7. size="600px"
  8. direction="rtl"
  9. :show-close="false"
  10. append-to-body
  11. @close="onClose">
  12. <div class="drawer__panel" style="margin-bottom: 0px">
  13. <el-row style="margin-top: 10px" :gutter="10">
  14. <el-form :model="form" :rules="rules" ref="form" size="mini" label-position="right">
  15. <el-col :span="24">
  16. <el-form-item label="报价类型:" label-width="100px" >
  17. <el-input v-model="form.quotedpricetype" autocomplete="off" placeholder="报价类型" disabled></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="24" v-if="isQuotedPrice">
  21. <el-form-item label="项目名称:" label-width="100px" prop="projectname">
  22. <el-popover
  23. placement="bottom"
  24. width="700"
  25. trigger="click"
  26. v-model="projectShow"
  27. @show="projectList">
  28. <selectTemplate type="项目" ref="projectTemplate" :param="projectParam" @selectData="projectData"></selectTemplate>
  29. <el-input slot="reference" :readonly="true" v-model="form.projectname" autocomplete="off" placeholder="请选择项目" ></el-input>
  30. </el-popover>
  31. </el-form-item>
  32. </el-col>
  33. <el-col :span="24" v-if="isQuotedPrice">
  34. <el-form-item label="项目编号:" label-width="100px" >
  35. <el-input v-model="form.projectnum" autocomplete="off" placeholder="项目编号" disabled></el-input>
  36. </el-form-item>
  37. </el-col>
  38. <el-col :span="24">
  39. <el-form-item label="客户名称:" label-width="100px" prop="enterprisename" v-if="isQuotedPrice">
  40. <el-popover
  41. placement="bottom"
  42. width="700"
  43. trigger="click"
  44. v-model="customerShow"
  45. @show="customerList">
  46. <selectTemplate type="客户" ref="customerTemplate" :param="customerParam" @selectData="customerData"></selectTemplate>
  47. <el-input slot="reference" :readonly="true" v-model="form.enterprisename" autocomplete="off" placeholder="请选择客户" :disabled="form.sa_projectid === ''" ></el-input>
  48. </el-popover>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="24">
  52. <el-form-item label="客户名称:" label-width="100px" prop="enterprisename" v-if="!isQuotedPrice">
  53. <el-popover
  54. placement="bottom"
  55. width="700"
  56. trigger="click"
  57. v-model="customerShow"
  58. @show="customerList">
  59. <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
  60. <el-tab-pane label="客户" name="客户">
  61. <selectTemplate type="客户" ref="customerTemplate" :param="customerParam" @selectData="customerData"></selectTemplate>
  62. </el-tab-pane>
  63. <el-tab-pane label="合作伙伴" name="合作伙伴">
  64. <selectTemplate type="客户" ref="distributorTemplate" :param="customerParam" @selectData="distributorData"></selectTemplate>
  65. </el-tab-pane>
  66. </el-tabs>
  67. <el-input slot="reference" :readonly="true" v-model="form.enterprisename" autocomplete="off" placeholder="请选择客户" ></el-input>
  68. </el-popover>
  69. </el-form-item>
  70. </el-col>
  71. <el-col :span="24">
  72. <el-form-item label="联系人:" label-width="100px" prop="name">
  73. <el-popover
  74. placement="bottom"
  75. width="700"
  76. trigger="click"
  77. v-model="contactsShow"
  78. @show="contactsList">
  79. <selectTemplate type="联系人" ref="contactTemplate" :param="contactsParam" @selectData="contactsData"></selectTemplate>
  80. <el-input slot="reference" :readonly="true" v-model="form.contactsname" autocomplete="off" placeholder="请选择联系人" :disabled="form.sys_enterpriseid === ''" ></el-input>
  81. </el-popover>
  82. </el-form-item>
  83. </el-col>
  84. <el-col :span="24">
  85. <el-form-item label="联系人手机号:" label-width="100px" >
  86. <el-input v-model="form.contactsphonenumber" autocomplete="off" placeholder="手机号" disabled></el-input>
  87. </el-form-item>
  88. </el-col>
  89. <el-col :span="24">
  90. <el-form-item label="电话:" label-width="100px" >
  91. <el-input v-model="form.telephone" autocomplete="off" placeholder="电话" disabled></el-input>
  92. </el-form-item>
  93. </el-col>
  94. <el-col :span="24">
  95. <el-form-item label="报价日期:" label-width="100px">
  96. <el-date-picker
  97. v-model="form.billdate"
  98. style="width: 100%"
  99. type="date"
  100. value-format="yyyy-MM-dd"
  101. placeholder="选择日期"
  102. :picker-options="pickerOptions">
  103. </el-date-picker>
  104. </el-form-item>
  105. </el-col>
  106. <el-col :span="24">
  107. <el-form-item label="有效期:" label-width="100px" prop="date">
  108. <el-date-picker
  109. v-model="form.date"
  110. style="width: 100%"
  111. type="daterange"
  112. value-format="yyyy-MM-dd"
  113. range-separator="至"
  114. start-placeholder="开始日期"
  115. end-placeholder="结束日期"
  116. :picker-options="pickerOptions">
  117. </el-date-picker>
  118. </el-form-item>
  119. </el-col>
  120. <el-col :span="24" >
  121. <el-form-item label="产品系列:" label-width="100px" prop="itemtype">
  122. <el-select
  123. ref="sle"
  124. style="width:100%;"
  125. v-model="form.itemtype"
  126. multiple
  127. placeholder="请选择产品系列"
  128. size="mini"
  129. >
  130. <el-option
  131. v-for="item in itemtype"
  132. :key="item.index"
  133. :label="item.value"
  134. :value="item.value"
  135. >
  136. <span style="float: left">{{ item.value }}</span>
  137. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  138. </el-option>
  139. </el-select>
  140. </el-form-item>
  141. </el-col>
  142. <el-col :span="24">
  143. <el-form-item label="业务员:" label-width="100px" prop="salername">
  144. <el-popover
  145. placement="bottom"
  146. trigger="manual"
  147. v-model="salesmanVisible"
  148. width="500">
  149. <selectSalesman ref="selectSalesman" :radio="true" @onSelect="salesmanChange" @onCancel="salesmanVisible = false"></selectSalesman>
  150. <el-input readonly type="text" slot="reference" size="small" @focus="showChange" v-model="form.salername" placeholder="请选择业务员"></el-input>
  151. </el-popover>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="24">
  155. <el-form-item label="备注:" label-width="100px" prop="remarks">
  156. <el-input v-model="form.remarks" autocomplete="off" placeholder="请输入备注信息" type="textarea" autosize></el-input>
  157. </el-form-item>
  158. </el-col>
  159. </el-form>
  160. </el-row>
  161. </div>
  162. <div class="fixed__btn__panel">
  163. <el-button size="small" @click="onClose" class="normal-btn-width">取 消</el-button>
  164. <el-button size="small" type="warning" @click="getSubmit" :loading="loading" class="normal-btn-width">保 存</el-button>
  165. </div>
  166. </el-drawer>
  167. </div>
  168. </template>
  169. <script>
  170. import quotedPriceProduct from '@/SDrpManagement/QuotedPrice/components/edit/quotedPriceProduct'
  171. import quotedPriceItemClass from "@/SDrpManagement/QuotedPrice/components/edit/quotedPriceItemClass";
  172. import selectSalesman from '@/SDrpManagement/QuotedPrice/components/selectSalesman'
  173. import {mapGetters} from "vuex";
  174. import selectTemplate from '@/template/quotation/index.vue'
  175. export default {
  176. name: "edit",
  177. props:['data','btnType'],
  178. components:{quotedPriceProduct,quotedPriceItemClass,selectSalesman,selectTemplate},
  179. data(){
  180. var discountrate = (rule,value,callback) =>{
  181. if (this.form.discountrate < 0 || this.form.discountrate > 100){
  182. callback(new Error('请输入0-100%'))
  183. } else {
  184. callback();
  185. }
  186. }
  187. return {
  188. projectShow:false,
  189. customerShow:false,
  190. contactsShow:false,
  191. salesmanVisible:false,
  192. disabled:false,
  193. userInfo:JSON.parse(window.sessionStorage.getItem('userInfo')),
  194. primary:'primary',
  195. text:'',
  196. activeName:'客户',
  197. projectParam:{
  198. "id": 20221020143503,
  199. "content": {
  200. "pageNumber": 1,
  201. "pageSize": 10,
  202. "type":1, // 1:我负责的;2:我参与的;3:我下属负责的;4:我下属参与的
  203. "where": {
  204. "condition": "",
  205. "startdate": "",
  206. "enddate": "",
  207. "status":"",//跟进中、已成交、已失败
  208. "projecttype":"",
  209. "stagename":"",
  210. "tag":""
  211. }
  212. },
  213. },
  214. customerParam:{
  215. "id": 20220920083901,
  216. "content": {
  217. "pageNumber": 1,
  218. "pageSize": 10,
  219. "where": {
  220. "condition": "",
  221. "type":4,
  222. "sa_projectid":""
  223. }
  224. }
  225. },
  226. contactsParam:{
  227. "id": "20221022165503",
  228. "content": {
  229. "sys_enterpriseid":"",
  230. "where": {
  231. "condition": "",
  232. "workaddress": 0//0表示人,1表示地址
  233. }
  234. }
  235. },
  236. pickerOptions: {
  237. disabledDate(time) {
  238. return time.getTime() + 3600 * 1000 * 24 < Date.now() ;
  239. },
  240. },
  241. drawer:false,
  242. isQuotedPrice:false,
  243. date:[],
  244. clearData:[],
  245. salerParam:{
  246. "id":20230306144402,
  247. "content":{
  248. "type":'',////type:1客户2:项目
  249. "sys_enterpriseid":'',//type=1
  250. "sa_projectid":'' //type=2时传
  251. }
  252. },
  253. form:{
  254. quotedpricetype:'',
  255. totalPrice:0,
  256. type:'',
  257. projectnum:'',
  258. enterprisename:'',
  259. name:'',
  260. phonenumber:'',
  261. fax:'',
  262. telephone:'',
  263. specialOffer:'否',
  264. sa_quotedpriceid:0, //sat_notice_classid<=0时 为新增
  265. sys_enterpriseid: "",
  266. contactsid:8,
  267. sa_projectid: "0",
  268. discountrate: '',
  269. remarks: "",
  270. invaliddate: "",
  271. projectname: "",
  272. address: "",
  273. billdate:"",
  274. enddate:'',
  275. begdate:'',
  276. saler_hrid:'',
  277. salername:'',
  278. date:[],
  279. itemtype:[],
  280. quotedpricenotes: [
  281. "1、报价为含税13%税率, 含运费 ",
  282. "2、报价有限期 2023-02-02 13:16:47至2023-02-22 13:16:47",
  283. ]
  284. },
  285. rules:{
  286. projectname:[
  287. { required: true, message: '请选择项目', trigger: 'change'},
  288. ],
  289. enterprisename:[
  290. { required: true, message: '请选择客户', trigger: 'change'},
  291. ],
  292. itemtype:[
  293. { required: true, message: '请选择产品系列', trigger: 'change'},
  294. ],
  295. date:[
  296. { required: true, message: '请选择有效期', trigger: 'change'},
  297. ],
  298. discountrate:[
  299. { required: false, validator: discountrate, trigger: 'change'},
  300. ],
  301. /* name:[
  302. { required: true, message: '请选择联系人', trigger: 'change'},
  303. ]*/
  304. },
  305. itemtype:[]
  306. }
  307. },
  308. computed:{
  309. ...mapGetters({
  310. loading:'loading'
  311. })
  312. },
  313. watch:{
  314. mainData(val) {
  315. if (this.data.leader.length !== 0){
  316. if (JSON.parse(window.sessionStorage.getItem('userInfo')).userid === this.data.leader[0].userid){
  317. this.disabled = false
  318. }else {
  319. this.disabled = true
  320. }
  321. }
  322. console.log("权限结果",this.disabled)
  323. }
  324. },
  325. methods:{
  326. onShow(){
  327. this.drawer = true
  328. this.form = Object.assign({},this.form,this.data)
  329. this.form.date[0] = this.form.begdate
  330. this.form.date[1] = this.form.enddate
  331. this.form.discountrate !== 0 ? this.form.discountrate = Math.round((this.form.discountrate * 100)*100)/100 : this.form.discountrate = ''
  332. this.form.salername = this.form.leader.length > 0?this.form.leader[0].name:''
  333. if (this.form.quotedpricetype === '项目报价'){
  334. this.isQuotedPrice = true
  335. }else {
  336. this.isQuotedPrice = false
  337. }
  338. },
  339. onClose(){
  340. this.drawer = false
  341. this.$emit('onSuccess')
  342. },
  343. onSubmit(){
  344. if (this.form.data.length !== 0){
  345. this.form.begdate = this.form.date[0]
  346. this.form.enddate = this.form.date[1]
  347. this.form.quotedpricenotes[1] = "2、报价有限期" + this.form.begdate + "至" + this.form.enddate
  348. }else {
  349. this.form.begdate = ''
  350. this.form.enddate = ''
  351. }
  352. this.$refs.form.validate(async (valid) => {
  353. if (!valid) return false
  354. const res = await this.$api.requested({
  355. "id": 20221020164803,
  356. "content": this.form
  357. })
  358. })
  359. },
  360. getSubmit(){
  361. if (this.form.date.length === 0){
  362. this.form.begdate = ''
  363. this.form.enddate = ''
  364. }else {
  365. this.form.begdate = this.form.date[0]
  366. this.form.enddate = this.form.date[1]
  367. this.form.quotedpricenotes[1] = "2、报价有限期" + this.form.begdate + "至" + this.form.enddate
  368. }
  369. this.$refs.form.validate(async (valid) => {
  370. if (!valid) return false
  371. this.$store.commit('setLoading',true)
  372. this.form.discountrate = (this.form.discountrate / 100).toFixed(4)
  373. const res = await this.$api.requested({
  374. "id": 20221020164803,
  375. "content": this.form
  376. })
  377. this.tool.showMessage(res,() => {
  378. this.$store.commit('setLoading',false)
  379. this.drawer = false
  380. /* this.changeData(this.productObj)*/
  381. })
  382. })
  383. },
  384. /*修改后的产品数据*/
  385. productDataChange(val){
  386. let obj = val.map(e=>{
  387. return {
  388. sa_quotedprice_itemsid:e.sa_quotedprice_itemsid,
  389. itemid:e.itemid,
  390. oldprice:e.marketprice,
  391. price:e.price,
  392. discountrate:(e.discountrate/100).toFixed(4),
  393. qty:e.qty
  394. }
  395. })
  396. this.productObj = obj
  397. },
  398. async changeData(obj){
  399. const res = await this.$api.requested({
  400. "id": 20221021095403,
  401. "content": {
  402. "sa_quotedpriceid":this.form.sa_quotedpriceid, //sat_notice_classid<=0时 为新增
  403. "items":obj
  404. }
  405. })
  406. this.$emit('onSuccess')
  407. },
  408. /*刷新总金额*/
  409. queryTotalPrice(val){
  410. this.form.totalPrice = val
  411. },
  412. /*可选项目*/
  413. projectList(){
  414. this.$refs.projectTemplate.listData()
  415. },
  416. /*可选客户*/
  417. customerList(){
  418. if (this.form.quotedpricetype === '客户报价'){
  419. this.form.sa_projectid = 0
  420. this.customerParam.content.where.sa_projectid = 0
  421. this.customerParam.content.where.type = 19
  422. }else {
  423. this.customerParam.content.where.type = 4
  424. this.customerParam.content.where.sa_projectid = this.form.sa_projectid
  425. }
  426. this.$refs.customerTemplate.listData()
  427. },
  428. /*可选合作伙伴*/
  429. distributorList(){
  430. this.customerParam.content.where.sa_projectid = 0
  431. this.customerParam.content.where.type = 20
  432. this.$refs.distributorTemplate.listData()
  433. },
  434. /*可选联系人*/
  435. contactsList(){
  436. this.contactsParam.content.sys_enterpriseid = this.form.sys_enterpriseid
  437. this.$refs.contactTemplate.listData()
  438. },
  439. /*项目选择信息*/
  440. projectData(val){
  441. this.form.sa_projectid = val.sa_projectid
  442. this.form.projectname = val.projectname
  443. this.form.projectnum = val.projectnum
  444. this.form.sys_enterpriseid = ''
  445. this.form.enterprisename = ''
  446. this.form.contactsid = 0
  447. this.form.contactsname = ''
  448. this.form.contactsphonenumber = ''
  449. this.form.fax = ''
  450. this.form.telephone = ''
  451. this.projectShow = false
  452. this.salerParam.content.type = 2
  453. this.salerParam.content.sa_projectid = this.form.sa_projectid
  454. this.querySalesman()
  455. },
  456. /*更改项目前提示*/
  457. projectOpen(val) {
  458. this.$confirm('修改项目后将清空产品配置, 是否继续?', '提示', {
  459. confirmButtonText: '确定',
  460. cancelButtonText: '取消',
  461. type: 'warning'
  462. }).then(() => {
  463. this.productList()
  464. this.projectData(val)
  465. }).catch(() => {
  466. this.$message({
  467. type: 'info',
  468. message: '已取消'
  469. });
  470. });
  471. },
  472. /*获取产品明细*/
  473. async productList(){
  474. const res = await this.$api.requested({
  475. "id": 20221021095503,
  476. "content": {
  477. "sa_quotedpriceid":this.form.sa_quotedpriceid //sat_notice_classid<=0时 为新增
  478. }
  479. })
  480. console.log(res,"产品明细")
  481. this.clearData = []
  482. res.data.forEach((item,index)=>{
  483. console.log(item)
  484. this.clearData[index] = item.sa_quotedprice_itemsid
  485. })
  486. console.log(this.clearData,"需要删除的产品明细")
  487. this.productClear()
  488. },
  489. /*清空产品明细*/
  490. async productClear(){
  491. const res = await this.$api.requested({
  492. "id": 20221021095603,
  493. "content": {
  494. "sa_quotedprice_itemsids":this.clearData //sat_notice_classid<=0时 为新增
  495. }
  496. })
  497. this.$refs.quoterPrice.productData()
  498. },
  499. /*客户选择信息*/
  500. customerData(val){
  501. this.form.sys_enterpriseid = val.sys_enterpriseid
  502. this.form.enterprisename = val.enterprisename
  503. this.form.contactsid = 0
  504. this.form.contactsname = ''
  505. this.form.contactsphonenumber = ''
  506. this.form.fax = ''
  507. this.form.telephone = ''
  508. this.customerShow = false
  509. if (!this.isQuotedPrice){
  510. this.salerParam.content.type = 1
  511. this.salerParam.content.sys_enterpriseid = this.form.sys_enterpriseid
  512. this.querySalesman()
  513. }
  514. },
  515. /*合作伙伴选择信息*/
  516. distributorData(val){
  517. this.form.sys_enterpriseid = val.sys_enterpriseid
  518. this.form.enterprisename = val.enterprisename
  519. this.form.contactsid = 0
  520. this.form.contactsname = ''
  521. this.form.contactsphonenumber = ''
  522. this.form.fax = ''
  523. this.form.telephone = ''
  524. this.customerShow = false
  525. if (!this.isQuotedPrice){
  526. this.salerParam.content.type = 1
  527. this.salerParam.content.sys_enterpriseid = this.form.sys_enterpriseid
  528. this.querySalesman()
  529. }
  530. },
  531. /*联系人选择信息*/
  532. contactsData(val){
  533. this.form.contactsid = val.contactsid
  534. this.form.contactsname = val.name
  535. this.form.contactsphonenumber = val.phonenumber
  536. this.form.fax = val.fax
  537. this.form.telephone = val.telephone
  538. this.contactsShow = false
  539. },
  540. /*查询产品系列*/
  541. queryItemType(){
  542. this.$store.dispatch('optiontypeselect','itemtype').then(res => {
  543. this.itemtype = res.data
  544. })
  545. },
  546. /*业务员*/
  547. showChange(){
  548. this.salesmanVisible = true
  549. if (this.isQuotedPrice){
  550. this.$refs.selectSalesman.param.content.type = 2
  551. this.$refs.selectSalesman.param.content.sa_projectid = this.form.sa_projectid
  552. this.$refs.selectSalesman.listData()
  553. }else {
  554. this.$refs.selectSalesman.param.content.type = 1
  555. this.$refs.selectSalesman.param.content.sys_enterpriseid = this.form.sys_enterpriseid
  556. this.$refs.selectSalesman.listData()
  557. }
  558. },
  559. salesmanChange(data){
  560. this.form.saler_hrid = data[0].hrid
  561. this.form.salername = data[0].name
  562. this.salesmanVisible = false
  563. /* this.form.salername = data[0].name
  564. this.form.saler_hrid = data[0].hrid
  565. this.salesmanVisible = false*/
  566. },
  567. async querySalesman(){
  568. const res = await this.$api.requested(this.salerParam)
  569. this.form.salername = res.data[0].name
  570. this.form.saler_hrid = res.data[0].hrid
  571. },
  572. /*修改折扣数据*/
  573. discountrateChange(){
  574. this.form.discountrate = Math.round(this.form.discountrate * 100)/100
  575. },
  576. handleClick(tab){
  577. if (tab.name === '合作伙伴'){
  578. this.distributorList(this.customerParam.content.pageNumber = 1)
  579. }else {
  580. this.customerList(this.customerParam.content.pageNumber = 1)
  581. }
  582. }
  583. /* async mainData(val) {
  584. const res = await this.$api.requested({
  585. "id": 20220930103501,
  586. "content": {
  587. "ownertable":"sa_quotedprice",
  588. "ownerid":this.$route.query.id
  589. }
  590. })
  591. if (this.mainData.leader.length !== 0){
  592. if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
  593. this.mainData.disabled = true
  594. }else {
  595. let flag = 0
  596. for (var i=0;i<res.data[0].team.length;i++){
  597. if (res.data[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
  598. if (res.data[0].team[i].editable === 1){
  599. this.mainData.disabled = true
  600. flag =1
  601. break
  602. }else {
  603. flag = 0
  604. break
  605. }
  606. }
  607. }
  608. /!*不是负责人*!/
  609. flag === 0?this.mainData.disabled = false:this.mainData.disabled = true
  610. }
  611. }
  612. console.log("权限结果",this.mainData.disabled)
  613. }*/
  614. },
  615. mounted() {
  616. this.queryItemType()
  617. },
  618. created() {
  619. }
  620. }
  621. </script>
  622. <style scoped>
  623. >>> .el-divider--horizontal {
  624. height: 1px;
  625. width: 100%;
  626. margin: 0px;
  627. }
  628. /deep/.el-input__prefix {
  629. display: flex;
  630. align-items: center;
  631. }
  632. </style>