|
@@ -561,6 +561,9 @@ export default {
|
|
|
|
|
|
// 工程登录列表 - 打开弹窗
|
|
|
openShareDetail() {
|
|
|
+ if(!this.mainForm.saleType) {
|
|
|
+ return this.$errorMsg('请先选择销售类型');
|
|
|
+ }
|
|
|
this.isShowDialog = true;
|
|
|
this.dialogTable_currentPage = 1;
|
|
|
this.getHomeLoginList();
|
|
@@ -587,12 +590,15 @@ export default {
|
|
|
|
|
|
// 选择工程登录
|
|
|
chooseItem(id) {
|
|
|
- getHomeLoginDetail({recordNo: id}).then(res => {
|
|
|
+ getHomeLoginDetail({
|
|
|
+ recordNo: id,
|
|
|
+ saleTypeId: this.mainForm.saleType,
|
|
|
+ }).then(res => {
|
|
|
this.isShowDialog = false;
|
|
|
let data = res.data;
|
|
|
this.mainForm.type = data.productCategory;
|
|
|
this.mainForm.loginUserId = data.userid
|
|
|
- this.mainForm.saleType = '';
|
|
|
+ // this.mainForm.saleType = '';
|
|
|
this.mainForm.loginNum = data.recordNo;
|
|
|
this.mainForm.enginName = data.projectName;
|
|
|
this.mainForm.loginType = data.promiseStatus;
|