|
|
@@ -29,7 +29,7 @@
|
|
|
trigger="click"
|
|
|
v-model="projectShow"
|
|
|
@show="projectList">
|
|
|
- <el-table :data="project.projectData">
|
|
|
+ <el-table :data="project.projectData" @row-click="projectData">
|
|
|
<el-table-column
|
|
|
label="项目编号"
|
|
|
width="180">
|
|
|
@@ -51,14 +51,14 @@
|
|
|
<span style="margin-left: 10px">{{ scope.row.address?scope.row.address:'--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
+<!-- <el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
width="60">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="projectData(scope.row)">选择</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column>-->
|
|
|
</el-table>
|
|
|
<div class="container normal-panel" style="text-align:right">
|
|
|
<el-pagination
|
|
|
@@ -70,7 +70,7 @@
|
|
|
:total="project.total">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
- <el-input slot="reference" v-model="form.projectname" autocomplete="off" placeholder="请选择项目" @focus="projectShow = true" @input="selectProject"></el-input>
|
|
|
+ <el-input slot="reference" v-model="form.projectname" autocomplete="off" placeholder="请选择项目" @input="selectProject"></el-input>
|
|
|
</el-popover>
|
|
|
|
|
|
</el-form-item>
|
|
|
@@ -88,7 +88,7 @@
|
|
|
trigger="click"
|
|
|
v-model="customerShow"
|
|
|
@show="customerList">
|
|
|
- <el-table :data="customer.customerData">
|
|
|
+ <el-table :data="customer.customerData" @row-click="customerData">
|
|
|
<el-table-column
|
|
|
label="客户编号"
|
|
|
width="180">
|
|
|
@@ -110,14 +110,14 @@
|
|
|
<span style="margin-left: 10px">{{ scope.row.address?scope.row.address:'--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
+<!-- <el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
width="60">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="customerData(scope.row)" @focus="customerShow = true">选择</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column>-->
|
|
|
</el-table>
|
|
|
<div class="container normal-panel" style="text-align:right">
|
|
|
<el-pagination
|
|
|
@@ -167,7 +167,7 @@
|
|
|
trigger="click"
|
|
|
v-model="contactsShow"
|
|
|
@show="contactsList">
|
|
|
- <el-table :data="contacts.contactsData">
|
|
|
+ <el-table :data="contacts.contactsData" @row-click="contactsData">
|
|
|
<el-table-column
|
|
|
label="姓名"
|
|
|
width="180">
|
|
|
@@ -196,14 +196,14 @@
|
|
|
<span style="margin-left: 10px">{{ scope.row.address?scope.row.address:'--' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
+<!-- <el-table-column
|
|
|
fixed="right"
|
|
|
label="操作"
|
|
|
width="60">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="contactsData(scope.row)" @focus="contactsShow = true">选择</el-button>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column>-->
|
|
|
</el-table>
|
|
|
<div class="container normal-panel" style="text-align:right">
|
|
|
<el-pagination
|
|
|
@@ -382,6 +382,7 @@ export default {
|
|
|
this.form.sa_quotedpriceid = res.data.sa_quotedpriceid
|
|
|
})
|
|
|
},
|
|
|
+ /*创建报价单,获取商品信息*/
|
|
|
getSubmit(){
|
|
|
this.drawer = false
|
|
|
console.log(this.data)
|
|
|
@@ -404,8 +405,8 @@ export default {
|
|
|
this.$emit('addSuccess')
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
+
|
|
|
async projectList(){
|
|
|
const res = await this.$api.requested(this.projectParam)
|
|
|
console.log(res)
|
|
|
@@ -445,6 +446,7 @@ export default {
|
|
|
this.contactsParam.content.where.condition = this.form.name
|
|
|
this.contactsList()
|
|
|
},
|
|
|
+ /*项目选择信息*/
|
|
|
projectData(val){
|
|
|
this.form.sa_projectid = val.sa_projectid
|
|
|
this.form.projectname = val.projectname
|
|
|
@@ -456,7 +458,7 @@ export default {
|
|
|
this.form.phonenumber = ''
|
|
|
this.projectShow = false
|
|
|
},
|
|
|
-
|
|
|
+ /*客户选择信息*/
|
|
|
customerData(val){
|
|
|
this.form.sys_enterpriseid = val.sys_enterpriseid
|
|
|
this.form.enterprisename = val.enterprisename
|
|
|
@@ -472,6 +474,7 @@ export default {
|
|
|
this.form.phonenumber = val.phonenumber
|
|
|
this.contactsShow = false
|
|
|
},
|
|
|
+ /*项目分页*/
|
|
|
handleSizeChangeProject(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.projectParam.content.pageSize = val
|
|
|
@@ -482,6 +485,7 @@ export default {
|
|
|
this.projectParam.content.pageNumber = val
|
|
|
this.projectList()
|
|
|
},
|
|
|
+ /*客户分页*/
|
|
|
handleSizeChangeCustomer(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.projectParam.content.pageSize = val
|
|
|
@@ -492,6 +496,7 @@ export default {
|
|
|
this.projectParam.content.pageNumber = val
|
|
|
this.customerList()
|
|
|
},
|
|
|
+ /*联系人分页*/
|
|
|
handleSizeChangeContacts(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
this.projectParam.content.pageSize = val
|