editCopy.vue 25 KB

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