edit.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. <template>
  2. <div >
  3. <el-button size="mini" :disabled="data.datastatus === 2 || !data.disabled" :type="data.datastatus === 2 || !data.disabled?'':'primary'" @click="show" >编 辑</el-button>
  4. <el-drawer
  5. title="编辑客户"
  6. :visible.sync="dialogFormVisible"
  7. size="600px"
  8. direction="rtl"
  9. :show-close="false"
  10. append-to-body
  11. @close="onClose">
  12. <div class="drawer__panel">
  13. <el-row :gutter="20">
  14. <el-form :model="form" :rules="rules" ref="form" label-width="100px" label-position="right" size="mini">
  15. <el-col :span="20">
  16. <el-form-item label="客户名称:" prop="enterprisename">
  17. <el-input v-model="form.enterprisename" placeholder="请输入客户名称" style="width: 100%" ></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="4">
  21. <el-popover
  22. placement="right"
  23. width="900"
  24. v-model="businessShow"
  25. trigger="manual">
  26. <el-input
  27. style="width:300px;margin-bottom: 10px"
  28. placeholder="请输入内容"
  29. v-model="form.enterprisename"
  30. clearable
  31. @clear="businessSearch"
  32. size="mini"
  33. @keyup.enter.native="businessSearch">
  34. <i slot="prefix" class="el-icon-search" @click="businessSearch"></i>
  35. </el-input>
  36. <el-table :data="businessData" @row-click="businessSelect" :header-cell-style="{background:'#EEEEEE',color:'#333'}" size="mini">
  37. <el-table-column width="260" label="客户名称">
  38. <template slot-scope="scope">
  39. <span style="margin-left: 10px">{{ scope.row.companyName?scope.row.companyName:'--' }}</span>
  40. </template>
  41. </el-table-column>
  42. <el-table-column label="客户地址">
  43. <template slot-scope="scope">
  44. <span style="margin-left: 10px">{{ scope.row.address?scope.row.address:'--' }}</span>
  45. </template>
  46. </el-table-column>
  47. <el-table-column width="200" label="客户税号">
  48. <template slot-scope="scope">
  49. <span style="margin-left: 10px">{{ scope.row.taxNum?scope.row.taxNum:'--' }}</span>
  50. </template>
  51. </el-table-column>
  52. </el-table>
  53. <!-- <div class="container normal-panel" style="text-align:right">
  54. <el-pagination
  55. background
  56. @size-change="handleSizeChange"
  57. @current-change="handleCurrentChange"
  58. :current-page="currentPage"
  59. :page-sizes="[5]"
  60. layout="total,sizes, prev, pager, next, jumper"
  61. :total="total">
  62. </el-pagination>
  63. </div>-->
  64. <el-button size="mini" type="primary" style="width: 100%" @click="businessSearch" slot="reference" :disabled="form.enterprisename === '' " >工商查询</el-button>
  65. </el-popover>
  66. </el-col>
  67. <el-col :span="24">
  68. <el-form-item label="企业简称:" >
  69. <el-input v-model="form.abbreviation" placeholder="请输入企业简称" style="width: 100%"></el-input>
  70. </el-form-item>
  71. </el-col>
  72. <!-- <el-col :span="24">
  73. <el-form-item label="erp编号:" prop="erpagentnum">
  74. <el-input v-model="form.erpagentnum" placeholder="请输入erp编号" style="width: 100%"></el-input>
  75. </el-form-item>
  76. </el-col>-->
  77. <el-col :span="24">
  78. <el-form-item label="客户类型:" prop="type">
  79. <el-select v-model="form.type" placeholder="请选择客户类型" style="width: 100%">
  80. <el-option
  81. v-for="item in options.type"
  82. :key="item.value"
  83. :label="item.value"
  84. :value="item.value">
  85. <span style="float: left">{{ item.value }}</span>
  86. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  87. </el-option>
  88. </el-select>
  89. </el-form-item>
  90. </el-col>
  91. <el-col :span="24">
  92. <el-form-item label="客户等级:" >
  93. <el-select v-model="form.grade" placeholder="请选择客户等级" style="width: 100%" >
  94. <el-option
  95. v-for="item in options.customerGrade"
  96. :key="item.rowindex"
  97. :label="item.value "
  98. :value="item.value">
  99. <span style="float: left">{{ item.value }}</span>
  100. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  101. </el-option>
  102. </el-select>
  103. </el-form-item>
  104. </el-col>
  105. <el-col :span="24">
  106. <el-form-item label="客户分类:" >
  107. <el-select v-model="form.customergrade" placeholder="请选择客户分类" style="width: 100%">
  108. <el-option
  109. v-for="item in options.customerClassification"
  110. :key="item.rowindex"
  111. :label="item.value "
  112. :value="item.value">
  113. <span style="float: left">{{ item.value }}</span>
  114. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  115. </el-option>
  116. </el-select>
  117. </el-form-item>
  118. </el-col>
  119. <el-col :span="24">
  120. <el-form-item label="客户行业:" >
  121. <el-select
  122. ref="sle"
  123. style="width:100%;"
  124. v-model="form.industry"
  125. multiple
  126. placeholder="请选择所属行业"
  127. size="mini"
  128. >
  129. <el-option
  130. v-for="item in options.industryData"
  131. :key="item.value"
  132. :label="item.value"
  133. :value="item.value"
  134. >
  135. <span style="float: left">{{ item.value }}</span>
  136. <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
  137. </el-option>
  138. </el-select>
  139. </el-form-item>
  140. </el-col>
  141. <el-col :span="24">
  142. <el-form-item label="联系人:" >
  143. <el-input autosize v-model="form.contactsinfo.name" placeholder="请输入联系人姓名" disabled></el-input>
  144. </el-form-item>
  145. </el-col>
  146. <el-col :span="24" v-if="isPhone">
  147. <el-form-item label="联系方式:" prop="contactsinfo.phonenumber">
  148. <el-button-group>
  149. <el-radio v-model="isPhone" :label="true" disabled>手机号</el-radio>
  150. <el-radio v-model="isPhone" :label="false" disabled>座机电话</el-radio>
  151. </el-button-group>
  152. <el-input v-model="form.contactsinfo.phonenumber" placeholder="请输入手机号" style="width: 100%;margin-top: 10px" disabled></el-input>
  153. </el-form-item>
  154. </el-col>
  155. <el-col :span="24" v-if="!isPhone">
  156. <el-form-item label="联系方式:" prop="contactsinfo.telephone">
  157. <el-button-group>
  158. <el-radio v-model="isPhone" :label="true" disabled>手机号</el-radio>
  159. <el-radio v-model="isPhone" :label="false" disabled>座机电话</el-radio>
  160. </el-button-group>
  161. <div style="width: 100%">
  162. <el-input v-model="areaCode" placeholder="请输入区号" style="width:25%;margin-top: 10px" disabled></el-input>
  163. <span style="color: #999999">——</span>
  164. <el-input v-model="telephone" placeholder="请输入座机电话" style="width:68%;margin-top: 10px" disabled></el-input>
  165. </div>
  166. </el-form-item>
  167. </el-col>
  168. <el-col :span="24">
  169. <el-form-item label="税号:" >
  170. <el-input v-model="form.taxno" placeholder="请输入企业税号" style="width: 100%"></el-input>
  171. </el-form-item>
  172. </el-col>
  173. <el-col :span="24">
  174. <el-form-item label="法人:" prop="contact">
  175. <el-input v-model="form.contact" placeholder="请输入法人信息" style="width: 100%"></el-input>
  176. </el-form-item>
  177. </el-col>
  178. <el-col :span="24">
  179. <el-form-item label="联系电话:" prop="telephone">
  180. <el-input v-model="form.telephone" placeholder="请输入联系电话" style="width: 100%"></el-input>
  181. </el-form-item>
  182. </el-col>
  183. <el-col :span="24">
  184. <el-form-item label="省市县:" prop="province">
  185. <el-cascader
  186. style="width: 100%"
  187. v-model="form.value"
  188. :options="basicData.data().areaData"
  189. @change="cascaderChange" clearable>
  190. </el-cascader>
  191. </el-form-item>
  192. </el-col>
  193. <el-col :span="24">
  194. <el-form-item label="详细地址:" >
  195. <el-input v-model="form.address" placeholder="请输入详细地址" style="width: 100%" ></el-input>
  196. </el-form-item>
  197. </el-col>
  198. <el-col :span="24">
  199. <el-form-item label="上级客户:" >
  200. <el-input v-model="form.superiorenterprisename" placeholder="请选择上级客户" @focus="enterpriseList"></el-input>
  201. </el-form-item>
  202. </el-col>
  203. <el-col :span="24">
  204. <el-form-item label="客户来源:" >
  205. <el-input v-model="form.source" placeholder="请输入客户来源" style="width: 100%"></el-input>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="24">
  209. <el-form-item label="归属经销商:" >
  210. <el-select v-model="form.sa_agentsid" placeholder="请选择经销商" style="width: 100%">
  211. <el-option
  212. v-for="item in options.distributor"
  213. :key="item.sa_agentsid"
  214. :label="item.enterprisename "
  215. :value="item.sa_agentsid">
  216. </el-option>
  217. </el-select>
  218. </el-form-item>
  219. </el-col>
  220. </el-form>
  221. </el-row>
  222. </div>
  223. <div class="fixed__btn__panel">
  224. <el-button size="small" @click="onClose" class="normal-btn-width inline-16">取 消</el-button>
  225. <duplicateCheck :data="form" ref="check" @onSuccess="onClose" @onCheck="onCheck"></duplicateCheck>
  226. <el-button size="small" type="warning" :loading="loading" @click="onSave" class="normal-btn-width">保 存</el-button>
  227. </div>
  228. </el-drawer>
  229. <enterprise
  230. :visible="visibleEnterprise"
  231. :index="index"
  232. :sa_projectid="form.sa_projectid"
  233. v-if="visibleEnterprise"
  234. @onEnterprise="onEnterprise">
  235. </enterprise>
  236. </div>
  237. </template>
  238. <script>
  239. import enterprise from '@/SDrpManagement/salerPrivatecustomer/components/enterprise'
  240. import duplicateCheck from "@/components/duplicatesCheck/customerCheck";
  241. import {mapGetters} from "vuex";
  242. export default {
  243. name: "edit",
  244. props:['data','btnType'],
  245. components:{enterprise,duplicateCheck},
  246. data(){
  247. return {
  248. isPhone:true,
  249. dialogFormVisible:false,
  250. visibleEnterprise:false,
  251. checkResults:'',
  252. index:'',
  253. disabled:true,
  254. userInfo:JSON.parse(window.sessionStorage.getItem('userInfo')),
  255. businessData:[],
  256. businessParam:{
  257. "id": 20221208103601,
  258. "content": {
  259. "pageNumber":1,
  260. "pageSize":5,
  261. "keyword":''
  262. },
  263. },
  264. businessShow:false,
  265. total:0,
  266. currentPage:0,
  267. form:{
  268. sa_customersid: 0,//新增是传0
  269. parentid: 0, //上级客户ID,默认或没有上级的时候传0
  270. sys_enterpriseid: 0, //合作企业档案ID,新增是传0,更新
  271. enterprisename:"",//客户名称(企业名称)
  272. type: "", //客户类型
  273. source: "", //客户来源
  274. province:"",//非必填,可选
  275. city:"",//非必填,可选
  276. county:"",//非必填,可选
  277. address:"",//非必填,可选
  278. abbreviation:"",//非必填,可选
  279. taxno:"",//税号,非必填,可选
  280. grade:'',// 客户等级(商户等级)
  281. industry:[],//非必填,可选,所属行业
  282. contact:"",//非必填,可选
  283. phonenumber:"",//非必填,可选
  284. customergrade:"",
  285. ispublic:0,//1:公海客户,0:私域客户,自己新建的
  286. telephone: "",
  287. sa_agentsid: "",
  288. value:'',
  289. contactsinfo: {
  290. name: "",
  291. telephone: "",
  292. phonenumber: ""
  293. }
  294. },
  295. options:{
  296. type:[],
  297. parentCustomers:[],
  298. industryData:[],
  299. customerGrade:[],
  300. customerClassification:[],
  301. distributor:[]
  302. },
  303. rules:{
  304. enterprisename: [
  305. { required: true, message: '输入客户', trigger: 'blur' },
  306. ],
  307. type: [
  308. { required: true, message: '还未选择客户类型', trigger: 'change' },
  309. ],
  310. contact: [
  311. { required: false, message: '请输入法人', trigger: 'change,blur' },
  312. ],
  313. telephone: [
  314. { required: false, message: '请输入联系电话', trigger: 'change,blur' },
  315. { pattern:/^1[3-9]\d{9}$/, message: '请输入正确手机号码',trigger: 'change' }
  316. ],
  317. province: [
  318. { required: true, message: '请选择省市县', trigger: 'change,blur' },
  319. ],
  320. 'contactsinfo.name':[
  321. { required: false, message: '请输入联系人姓名', trigger: 'change,blur' }
  322. ],
  323. 'contactsinfo.phonenumber': [
  324. { required: false, message: '请输入联系电话', trigger: 'change' },
  325. { pattern:/^1[3-9]\d{9}$/, message: '请输入正确手机号码',trigger: 'change' }
  326. ],
  327. 'contactsinfo.telephone': [
  328. { required: false, message: '请输入座机电话', trigger: 'change' },
  329. { pattern:/^0\d{2,3}-\d{7,8}$/, message: '请输入正确座机电话',trigger: 'change' }
  330. ],
  331. },
  332. areaCode:'',
  333. telephone:''
  334. }
  335. },
  336. watch:{
  337. mainData(val) {
  338. if (this.data.leader.length !== 0){
  339. if (JSON.parse(window.sessionStorage.getItem('userInfo')).userid === this.data.leader[0].userid){
  340. this.disabled = false
  341. }else {
  342. this.disabled = true
  343. }
  344. }
  345. console.log("权限结果",this.disabled)
  346. }
  347. },
  348. computed:{
  349. ...mapGetters({
  350. loading:'loading'
  351. })
  352. },
  353. methods:{
  354. onClose(){
  355. this.dialogFormVisible = false
  356. this.businessShow = false
  357. this.$emit('onSuccess')
  358. },
  359. show(){
  360. this.dialogFormVisible = true
  361. this.typeList()
  362. /*this.parentCustomer()*/
  363. this.gradeList()
  364. this.industryList()
  365. this.queryCustomerGrade()
  366. this.queryDistributor()
  367. /*let arr = ['province','city','county']
  368. arr.forEach(e=>{
  369. this.data[e] !== '' ?this.form.value.push(this.data[e]):''
  370. })*/
  371. this.form = Object.assign({},this.form,this.data)
  372. this.form.value = [this.form.province,this.form.city,this.form.county]
  373. if (this.form.grade === 0){
  374. this.form.grade = ''
  375. }
  376. if (this.form.sa_agentsid === 0){
  377. this.form.sa_agentsid = ''
  378. }
  379. this.form.contactsinfo.name = this.form.contactsinfo[0].name
  380. if (this.form.contactsinfo[0].phonenumber.substring(0,this.form.contactsinfo[0].phonenumber.indexOf('-'))){
  381. this.isPhone = false
  382. this.areaCode = this.form.contactsinfo[0].phonenumber.substring(0,this.form.contactsinfo[0].phonenumber.indexOf('-'))
  383. this.telephone = this.form.contactsinfo[0].phonenumber.substring(this.areaCode.length+1)
  384. this.form.contactsinfo.phonenumber = this.areaCode + '-' + this.telephone
  385. }else {
  386. this.isPhone = true
  387. this.form.contactsinfo.phonenumber = this.form.contactsinfo[0].phonenumber
  388. }
  389. /*if (this.form.parentid === 0){
  390. this.form.parentid = '未选择'
  391. }*/
  392. },
  393. /*工商查询*/
  394. async businessSearch(){
  395. this.businessParam.content.keyword = this.form.enterprisename
  396. const res = await this.$api.requested(this.businessParam)
  397. console.log(res,"工商查询结果")
  398. this.businessData = res.data
  399. this.total = res.total
  400. this.currentPage = res.pageNumber
  401. this.businessShow = true
  402. },
  403. /*选择工商信息*/
  404. businessSelect(val){
  405. console.log("选择的工商信息",val)
  406. this.$confirm('是否以查询的工商信息更新客户信息?', '提示', {
  407. confirmButtonText: '确定',
  408. cancelButtonText: '取消',
  409. type: 'warning'
  410. }).then(() => {
  411. this.businessShow = false
  412. this.form.enterprisename = val.companyName
  413. this.form.address = val.address === "-" ? '' : val.address
  414. this.form.taxno = val.taxNum
  415. this.form.value = [val.regProvince,val.regCity,val.regArea]
  416. this.form.province = val.regProvince
  417. this.form.city = val.regCity
  418. this.form.county = val.regArea
  419. this.form.contact = val.legalPerson
  420. }).catch(() => {
  421. this.businessShow = false
  422. this.$message({
  423. type: 'info',
  424. message: '已取消更新'
  425. });
  426. })
  427. },
  428. /*handleSizeChange(val) {
  429. // console.log(`每页 ${val} 条`);
  430. this.param.content.pageSize = val
  431. this.businessSearch()
  432. },
  433. handleCurrentChange(val) {
  434. // console.log(`当前页: ${val}`);
  435. this.param.content.pageNumber = val
  436. this.businessSearch()
  437. },*/
  438. /*查重检查*/
  439. onCheck(){
  440. this.$refs.form.validate((valid) => {
  441. if (!valid) return false
  442. this.$refs.check.queryRule()
  443. })
  444. },
  445. /*自动查重判断*/
  446. duplicateCheck(){
  447. this.$refs.form.validate(async (valid) => {
  448. if (!valid) return false
  449. const res = await this.$api.requested({
  450. "id": 20221208172002,
  451. "content": {
  452. "sa_customersid":this.form.sa_customersid,
  453. "enterprisename":this.form.enterprisename,
  454. "taxno":this.form.taxno,
  455. "address":this.form.address
  456. },
  457. })
  458. console.log(res,"查重结果")
  459. if (res.data.length !== 0){
  460. console.log("重复")
  461. }
  462. this.checkResults = res.data.length
  463. this.onSave()
  464. })
  465. },
  466. onSave(){
  467. this.$refs.form.validate((valid) => {
  468. if (!valid) return false
  469. this.$refs.check.creatShow = true
  470. this.$refs.check.buttonTitle = '确定保存'
  471. this.$store.commit('setLoading',true)
  472. this.$refs.check.queryRule(()=> {
  473. this.$store.commit('setLoading',false)
  474. })
  475. })
  476. },
  477. onSubmit(){
  478. console.log(this.form)
  479. this.$refs['form'].validate(async (valid) => {
  480. if (!valid) return false
  481. const res = await this.$api.requested({
  482. "id": 20221012163902,
  483. "content": this.form
  484. })
  485. this.tool.showMessage(res, ()=>{
  486. if (this.checkResults === 0){
  487. this.$emit('onSuccess')
  488. this.$refs['form'].resetFields();
  489. this.dialogFormVisible = false
  490. this.checkResults = ''
  491. }else {
  492. this.setTag(this.form.sa_customersid)
  493. }
  494. })
  495. })
  496. },
  497. async setTag(id) {
  498. const res = await this.$api.requested({
  499. "id": 20220929090901,
  500. "content": {
  501. "ownertable": "sa_customers",
  502. "ownerid": id,
  503. "datatag": [
  504. "疑似重复",
  505. ]
  506. }
  507. })
  508. this.$emit('onSuccess')
  509. this.$refs['form'].resetFields();
  510. this.dialogFormVisible = false
  511. this.checkResults = ''
  512. },
  513. /*客户类型列表*/
  514. async typeList(){
  515. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  516. const res = await this.$api.requested({
  517. "classname": "sysmanage.develop.optiontype.optiontype",
  518. "method": "optiontypeselect",
  519. "content": {
  520. "pageNumber": 1,
  521. "pageSize": 20,
  522. "typename": "customertypemx",
  523. "parameter": {
  524. "siteid": siteid
  525. }
  526. }
  527. })
  528. this.options.type = res.data
  529. },
  530. enterpriseList(){
  531. this.visibleEnterprise = true
  532. },
  533. /*上级客户列表*/
  534. onEnterprise(data){
  535. this.visibleEnterprise = false
  536. console.log("企业信息",data)
  537. this.form.parentid = data.sys_enterpriseid
  538. this.form.superiorenterprisename = data.enterprisename
  539. },
  540. /*/!*上级客户*!/
  541. async parentCustomer(){
  542. const res = await this.$api.requested({
  543. "id": 20221014101002,
  544. "content": {
  545. "pageNumber": 1,
  546. "pageSize": 20,
  547. "where": {
  548. "condition": ""
  549. }
  550. }
  551. })
  552. console.log(res)
  553. this.options.parentCustomers = res.data
  554. },*/
  555. /*省市县*/
  556. cascaderChange (val) {
  557. this.form.province = val[0]
  558. if (val.length === 1)
  559. return this.form = Object.assign({},this.form,{province:val[0],city:'',county:''})
  560. this.form = Object.assign({},this.form,{province:val[0],city:val[1],county:val[2]})
  561. this.$refs.form.validateField('province')
  562. },
  563. /*客户分类*/
  564. async gradeList(){
  565. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  566. const res = await this.$api.requested({
  567. "classname": "sysmanage.develop.optiontype.optiontype",
  568. "method": "optiontypeselect",
  569. "content": {
  570. "pageNumber": 1,
  571. "pageSize": 20,
  572. "typename": "customergrade",
  573. "parameter": {
  574. "siteid": siteid
  575. }
  576. }
  577. })
  578. this.options.customerClassification = res.data
  579. },
  580. /*客户等级*/
  581. queryCustomerGrade(){
  582. this.$store.dispatch('optiontypeselect','agentgrade').then(res=>{
  583. this.options.customerGrade = res.data
  584. })
  585. },
  586. /*行业列表*/
  587. async industryList(){
  588. const siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
  589. const res = await this.$api.requested({
  590. "classname": "sysmanage.develop.optiontype.optiontype",
  591. "method": "optiontypeselect",
  592. "content": {
  593. "pageNumber": 1,
  594. "pageSize": 20,
  595. "typename": "industry",
  596. "parameter": {
  597. "siteid": siteid
  598. }
  599. }
  600. })
  601. this.options.industryData = res.data
  602. },
  603. /*所属经销商*/
  604. async queryDistributor(){
  605. var sessionData = sessionStorage.getItem('active_account')
  606. sessionData = JSON.parse(sessionData)
  607. const res = await this.$api.requested({
  608. "id": 20230214162602,
  609. "content": {
  610. "hrid": sessionData.hrid,
  611. "pageNumber": 1,
  612. "pageSize": 20,
  613. "where": {
  614. "condition": ""
  615. }
  616. },
  617. })
  618. this.options.distributor = res.data
  619. console.log(this.options.distributor,'经销商')
  620. }
  621. }
  622. }
  623. </script>
  624. <style scoped>
  625. </style>