|
@@ -116,77 +116,138 @@
|
|
|
</div>
|
|
|
<div style="flex:1;">
|
|
|
<div class="mt-10">
|
|
|
- <p class="normal-title inline-16" >收货信息</p>
|
|
|
- <el-popover
|
|
|
- placement="bottom"
|
|
|
- title="选择地址"
|
|
|
- trigger="click"
|
|
|
- v-model="visible">
|
|
|
- <div class="flex-align-center" style="justify-content:space-between;margin-bottom:10px">
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- v-model="addressparam.content.where.condition"
|
|
|
- placeholder="请输入搜索内容"
|
|
|
- style="width:150px"
|
|
|
- @keyup.enter.native="receiveAddress(addressparam.content.pageNumber = 1)" @clear="receiveAddress(addressparam.content.pageNumber = 1)" clearable></el-input>
|
|
|
- <addAddressInfo @onAddSuccess="receiveAddress()" :mainData="{sys_enterpriseid:data.sys_enterpriseid}"/>
|
|
|
- </div>
|
|
|
- <el-table
|
|
|
- :data="receiveAddresslist"
|
|
|
- style="width: 100%"
|
|
|
- size="mini">
|
|
|
- <el-table-column
|
|
|
- prop="name"
|
|
|
- label="联系人"
|
|
|
- width="90">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="phonenumber"
|
|
|
- label="电话"
|
|
|
- width="120">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="地址"
|
|
|
- width="360">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{scope.row.province}}{{scope.row.city}}{{scope.row.county}}{{scope.row.address}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- width="120">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button class="inline-16" type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
|
|
|
- <delete-btn
|
|
|
- message="确定删除当前地址吗?"
|
|
|
- nameId="20221009155903"
|
|
|
- nameKey="contactsid"
|
|
|
- :id="scope.row.contactsid"
|
|
|
- :isNumber="true"
|
|
|
- @deleteSuccess="receiveAddress"
|
|
|
- ></delete-btn>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <div class="container" style="text-align:right">
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- small
|
|
|
- :current-page="addressparam.content.pageNumber"
|
|
|
- :page-size="addressparam.content.pageSize"
|
|
|
- @current-change="addresPageChange"
|
|
|
- layout="total,prev, pager, next"
|
|
|
- :total="addresstotal">
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
- <el-button slot="reference" type="text" size="mini">选择其他地址</el-button>
|
|
|
- </el-popover>
|
|
|
+ <p class="normal-title inline-16">收货信息</p>
|
|
|
</div>
|
|
|
<div class="reveive__panel normal-margin">
|
|
|
- <p><span class="inline-16"><b>{{defaultData.re_info.name}}</b></span></p>
|
|
|
- <p><small>{{defaultData.re_info.phonenumber}}</small></p>
|
|
|
- <p><small>{{defaultData.re_info.province?defaultData.re_info.province:'--'}}{{defaultData.re_info.city}}{{defaultData.re_info.county}}{{defaultData.re_info.address?defaultData.re_info.address:''}}</small></p>
|
|
|
- <p style="height: 35px"></p>
|
|
|
+ <div>
|
|
|
+ <p class="inline-16"><b>{{selectEnterpriseInfo.enterprisename}}</b></p>
|
|
|
+ <el-popover
|
|
|
+ placement="bottom"
|
|
|
+ title="选择企业"
|
|
|
+ trigger="click"
|
|
|
+ v-model="visible4">
|
|
|
+ <div class="flex-align-center" style="justify-content:space-between;margin-bottom:10px">
|
|
|
+ <el-input
|
|
|
+ size="small"
|
|
|
+ v-model="enterpriseParam.content.where.condition"
|
|
|
+ placeholder="请输入搜索内容"
|
|
|
+ style="width:150px"
|
|
|
+ @keyup.enter.native="receiveAddress(enterpriseParam.content.pageNumber = 1)" @clear="receiveAddress(enterpriseParam.content.pageNumber = 1)" clearable></el-input>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
+ :data="enterpriseList"
|
|
|
+ style="width: 100%"
|
|
|
+ size="mini">
|
|
|
+ <el-table-column
|
|
|
+ prop="enterprisename"
|
|
|
+ label="企业名称"
|
|
|
+ width="150">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="地址"
|
|
|
+ width="360">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.province}}{{scope.row.city}}{{scope.row.county}}{{scope.row.address}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button class="inline-16" type="text" @click="(selectEnterpriseInfo = scope.row,receiveAddress(),visible4=false)" size="mini">选 择</el-button>
|
|
|
+ <!-- <delete-btn
|
|
|
+ message="确定删除当前地址吗?"
|
|
|
+ nameId="20221009155903"
|
|
|
+ nameKey="contactsid"
|
|
|
+ :id="scope.row.contactsid"
|
|
|
+ :isNumber="true"
|
|
|
+ @deleteSuccess="receiveAddress"
|
|
|
+ ></delete-btn> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <!-- <div class="container" v-if="addresstotal" style="text-align:right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ small
|
|
|
+ :current-page="enterpriseParam.content.pageNumber"
|
|
|
+ @current-change="addresPageChange"
|
|
|
+ :page-size="enterpriseParam.content.pageSize"
|
|
|
+ layout="total,prev, pager, next"
|
|
|
+ :total="addresstotal">
|
|
|
+ </el-pagination>
|
|
|
+ </div> -->
|
|
|
+ <el-button slot="reference" type="text" size="mini">选择企业</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <p class="inline-16"><span class="inline-16"><b>{{defaultData.re_info.name}}</b></span><small>{{defaultData.re_info.phonenumber}}</small></p>
|
|
|
+ <el-popover
|
|
|
+ placement="bottom"
|
|
|
+ title="选择地址"
|
|
|
+ trigger="click"
|
|
|
+ v-model="visible">
|
|
|
+ <div class="flex-align-center" style="justify-content:space-between;margin-bottom:10px">
|
|
|
+ <el-input
|
|
|
+ size="small"
|
|
|
+ v-model="addressparam.content.where.condition"
|
|
|
+ placeholder="请输入搜索内容"
|
|
|
+ style="width:150px"
|
|
|
+ @keyup.enter.native="receiveAddress(addressparam.content.pageNumber = 1)" @clear="receiveAddress(addressparam.content.pageNumber = 1)" clearable></el-input>
|
|
|
+ <addAddressInfo style="text-align:right" @onAddSuccess="receiveAddress()" :mainData="{sys_enterpriseid:data.sys_enterpriseid}"/>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
+ :data="receiveAddresslist"
|
|
|
+ style="width: 100%"
|
|
|
+ size="mini">
|
|
|
+ <el-table-column
|
|
|
+ prop="name"
|
|
|
+ label="联系人"
|
|
|
+ width="90">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="phonenumber"
|
|
|
+ label="电话"
|
|
|
+ width="120">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="地址"
|
|
|
+ width="360">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.province}}{{scope.row.city}}{{scope.row.county}}{{scope.row.address}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button class="inline-16" type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
|
|
|
+ <delete-btn
|
|
|
+ message="确定删除当前地址吗?"
|
|
|
+ nameId="20221009155903"
|
|
|
+ nameKey="contactsid"
|
|
|
+ :id="scope.row.contactsid"
|
|
|
+ :isNumber="true"
|
|
|
+ @deleteSuccess="receiveAddress"
|
|
|
+ ></delete-btn>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div class="container" v-if="addresstotal" style="text-align:right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ small
|
|
|
+ :current-page="addressparam.content.pageNumber"
|
|
|
+ @current-change="addresPageChange"
|
|
|
+ :page-size="addressparam.content.pageSize"
|
|
|
+ layout="total,prev, pager, next"
|
|
|
+ :total="addresstotal">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ <el-button slot="reference" type="text" size="mini">选择其他地址</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+ <small>{{defaultData.re_info.province?defaultData.re_info.province:'--'}}{{defaultData.re_info.city}}{{defaultData.re_info.county}}{{defaultData.re_info.address?defaultData.re_info.address:''}}</small>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -285,8 +346,11 @@ export default {
|
|
|
visible1:false,
|
|
|
visible2:false,
|
|
|
visible3:false,
|
|
|
+ visible4:false,
|
|
|
drawer:false,
|
|
|
receiveAddresslist:[],
|
|
|
+ selectEnterpriseInfo:'',
|
|
|
+ enterpriseList:[],
|
|
|
accountlist:[],
|
|
|
rebateAccount:[],
|
|
|
logisticcomlist:[],
|
|
@@ -321,7 +385,18 @@ export default {
|
|
|
"workaddress":1
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ enterpriseParam: {
|
|
|
+ "id": 20230320134702,
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "sys_enterpriseid": '',
|
|
|
+ "where": {
|
|
|
+ "condition": ""
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -349,6 +424,8 @@ export default {
|
|
|
|
|
|
this.receiveAddress()
|
|
|
|
|
|
+ this.getEnterpriseList()
|
|
|
+
|
|
|
this.queryUsedrebate()
|
|
|
|
|
|
this.selectOptions()
|
|
@@ -360,6 +437,13 @@ export default {
|
|
|
this.rebateamount = this.data.rebateamount
|
|
|
}
|
|
|
},
|
|
|
+ /* 获取当前经销商企业列表 */
|
|
|
+ async getEnterpriseList () {
|
|
|
+ this.enterpriseParam.content.sys_enterpriseid = this.data.sys_enterpriseid
|
|
|
+ const res = await this.$api.requested(this.enterpriseParam)
|
|
|
+ this.enterpriseList = res.data
|
|
|
+ console.log(this.enterpriseList,'企业列表');
|
|
|
+ },
|
|
|
// 收货信息:合作企业联系人
|
|
|
async receiveAddress (fn) {
|
|
|
this.addressparam.content.sys_enterpriseid = this.data.sys_enterpriseid
|
|
@@ -378,6 +462,7 @@ export default {
|
|
|
this.financiallist = this.data.pay_finance
|
|
|
this.saletype = this.data.saletype
|
|
|
this.signbackstatus = this.data.signbackstatus
|
|
|
+ this.selectEnterpriseInfo = this.data.contactsEnterprise
|
|
|
},
|
|
|
|
|
|
async onSubmit() {
|