|
@@ -282,15 +282,19 @@ export default {
|
|
|
},
|
|
|
editBtn () {
|
|
|
this.dialogFormVisible = true
|
|
|
- console.log(this.data,"res项目商机数据")
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.form.province = [this.form.province,this.form.city,this.form.county]
|
|
|
/*this.form.grade = parseInt(this.form.grade)*/
|
|
|
if (this.form.brandname === ''){
|
|
|
this.form.sa_brandid = ''
|
|
|
}
|
|
|
- this.form.tradefields = JSON.parse(this.form.tradefields)
|
|
|
- console.log(this.form,"项目商机内容")
|
|
|
+ /*this.form.tradefields = JSON.parse(this.form.tradefields)*/
|
|
|
+
|
|
|
+ /*this.form.budgetary = this.form.budgetary !== 0 ? this.tool.formatAmount(this.form.budgetary,2):'' || ''
|
|
|
+ this.form.totalinvestment ? this.form.totalinvestment = this.tool.formatAmount(this.form.totalinvestment,2):this.form.totalinvestment = ''
|
|
|
+ this.form.costofconstruction ? this.form.costofconstruction = this.tool.formatAmount(this.form.costofconstruction,2):this.form.costofconstruction = ''
|
|
|
+ this.form.signamount_due ? this.form.signamount_due = this.tool.formatAmount(this.form.signamount_due,2):this.form.signamount_due = ''*/
|
|
|
+
|
|
|
},
|
|
|
/*自动查重判断*/
|
|
|
duplicateCheck(){
|
|
@@ -304,7 +308,7 @@ export default {
|
|
|
"sa_projectid":this.form.sa_projectid
|
|
|
},
|
|
|
})
|
|
|
- console.log(res,"查重结果")
|
|
|
+
|
|
|
if (res.data.length !== 0){
|
|
|
console.log("重复")
|
|
|
}
|
|
@@ -337,8 +341,6 @@ export default {
|
|
|
onSubmit(){
|
|
|
if (this.form.signdate_due !== ''){
|
|
|
const data = new Date(this.form.signdate_due)
|
|
|
- console.log(data.getFullYear())
|
|
|
- console.log(data.getMonth()+1)
|
|
|
if (data.getMonth() +1 < 10){
|
|
|
this.form.signdate_due = data.getFullYear() + '-0' + (data.getMonth() + 1)
|
|
|
}else {
|
|
@@ -349,8 +351,6 @@ export default {
|
|
|
}
|
|
|
if (this.form.begdate_due !== ''){
|
|
|
const data = new Date(this.form.begdate_due)
|
|
|
- console.log(data.getFullYear())
|
|
|
- console.log(data.getMonth()+1)
|
|
|
if (data.getMonth() +1 < 10){
|
|
|
this.form.begdate_due = data.getFullYear() + '-0' + (data.getMonth() + 1)
|
|
|
}else {
|
|
@@ -361,8 +361,6 @@ export default {
|
|
|
}
|
|
|
if (this.form.enddate_due !== ''){
|
|
|
const data = new Date(this.form.enddate_due)
|
|
|
- console.log(data.getFullYear())
|
|
|
- console.log(data.getMonth()+1)
|
|
|
if (data.getMonth() +1 < 10){
|
|
|
this.form.enddate_due = data.getFullYear() + '-0' + (data.getMonth() + 1)
|
|
|
}else {
|
|
@@ -371,7 +369,7 @@ export default {
|
|
|
}else {
|
|
|
this.form.enddate_due = ''
|
|
|
}
|
|
|
- console.log(this.form,'form')
|
|
|
+
|
|
|
/*this.form.tradefields[0] = this.form.tradefields
|
|
|
console.log(this.form,'form')*/
|
|
|
this.$refs['form'].validate(async (valid) => {
|