|
@@ -67,8 +67,6 @@ Page({
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
if (options.data) {
|
|
if (options.data) {
|
|
|
let data = JSON.parse(options.data);
|
|
let data = JSON.parse(options.data);
|
|
|
- console.log(data)
|
|
|
|
|
- this.se
|
|
|
|
|
this.setData({
|
|
this.setData({
|
|
|
disabled: false,
|
|
disabled: false,
|
|
|
form: this.data.form.map(v => {
|
|
form: this.data.form.map(v => {
|
|
@@ -148,10 +146,8 @@ Page({
|
|
|
icon: "none"
|
|
icon: "none"
|
|
|
});
|
|
});
|
|
|
let res = await this.handleQueryRepetition({
|
|
let res = await this.handleQueryRepetition({
|
|
|
- sa_customersid: 0,
|
|
|
|
|
- enterprisename,
|
|
|
|
|
- taxno: "",
|
|
|
|
|
- address: ""
|
|
|
|
|
|
|
+ sa_competitorid: this.data.content.sa_competitorid,
|
|
|
|
|
+ enterprisename: enterprisename,
|
|
|
});
|
|
});
|
|
|
console.log("查询重复", res)
|
|
console.log("查询重复", res)
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
if (res.msg != '成功') return wx.showToast({
|
|
@@ -194,19 +190,17 @@ Page({
|
|
|
/* 处理查重 */
|
|
/* 处理查重 */
|
|
|
handleQueryRepetition(content) {
|
|
handleQueryRepetition(content) {
|
|
|
return _Http.basic({
|
|
return _Http.basic({
|
|
|
- "id": 20221208172002,
|
|
|
|
|
|
|
+ "id": 20230324132602,
|
|
|
content
|
|
content
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
async submit() {
|
|
async submit() {
|
|
|
let data = this.selectComponent("#Form").submit();
|
|
let data = this.selectComponent("#Form").submit();
|
|
|
let query = await this.handleQueryRepetition({
|
|
let query = await this.handleQueryRepetition({
|
|
|
- sa_customersid: 0,
|
|
|
|
|
|
|
+ sa_competitorid: this.data.content.sa_competitorid,
|
|
|
enterprisename: data.enterprisename,
|
|
enterprisename: data.enterprisename,
|
|
|
- taxno: "",
|
|
|
|
|
- address: ""
|
|
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ console.log(query)
|
|
|
if (query.total != 0) {
|
|
if (query.total != 0) {
|
|
|
wx.showToast({
|
|
wx.showToast({
|
|
|
title: `查询到${query.total}条疑似重复信息`,
|
|
title: `查询到${query.total}条疑似重复信息`,
|
|
@@ -264,5 +258,6 @@ Page({
|
|
|
}, tag ? 500 : 300)
|
|
}, tag ? 500 : 300)
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
})
|
|
})
|