pangdongxu 3 anos atrás
pai
commit
0e61a98e8e
5 arquivos alterados com 17 adições e 11 exclusões
  1. +1
    -1
      pages/bank/add/add.js
  2. +2
    -2
      pages/bankDraft/add/add.js
  3. +2
    -2
      pages/contract/add/add.js
  4. +3
    -3
      pages/fixedAssets/add/add.js
  5. +9
    -3
      pages/project/add/add.js

+ 1
- 1
pages/bank/add/add.js Ver arquivo

@@ -201,7 +201,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('修改失败');
UTIL.showToastNoneIcon('修改失败'+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {


+ 2
- 2
pages/bankDraft/add/add.js Ver arquivo

@@ -207,7 +207,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('新增失败');
UTIL.showToastNoneIcon('新增失败'+res.msg);
} }
} }
}) })
@@ -223,7 +223,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('修改失败');
UTIL.showToastNoneIcon('修改失败'+res.msg);
} }
} }
}) })


+ 2
- 2
pages/contract/add/add.js Ver arquivo

@@ -211,7 +211,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('修改失败');
UTIL.showToastNoneIcon('修改失败'+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {
@@ -240,7 +240,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('新增失败');
UTIL.showToastNoneIcon('新增失败'+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {


+ 3
- 3
pages/fixedAssets/add/add.js Ver arquivo

@@ -220,7 +220,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('修改失败');
UTIL.showToastNoneIcon('修改失败'+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {
@@ -242,14 +242,14 @@ Page({
success: (res) => { success: (res) => {
that.setData({'status':'0'}) that.setData({'status':'0'})
if(res.code == 200){ if(res.code == 200){
UTIL.showToastNoneIcon(res.msg);
UTIL.showToastNoneIcon("新增成功");
setTimeout(function(){ setTimeout(function(){
wx.navigateBack({ wx.navigateBack({
delta:1 delta:1
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon(res.msg);
UTIL.showToastNoneIcon("新增失败:"+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {


+ 9
- 3
pages/project/add/add.js Ver arquivo

@@ -12,7 +12,9 @@ Page({
showStartTime:false, showStartTime:false,
showEndTime:false, showEndTime:false,
ynProjcetStatusOptions:[], ynProjcetStatusOptions:[],
form:{},
form:{
},
id:"", id:"",
ynProjcetStatusindex:0, ynProjcetStatusindex:0,
status:0, status:0,
@@ -47,6 +49,10 @@ Page({
}) })
}else{ }else{
let that = this let that = this
this.setData({
'form.startTime':this.getNewDate(new Date()),
'form.endTime':this.getNewDate(new Date())
});
UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'yn_projcet_status', {method:'GET'}, { UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'yn_projcet_status', {method:'GET'}, {
success: (r) => { success: (r) => {
if(r.data.length>0){ if(r.data.length>0){
@@ -154,7 +160,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('新增失败');
UTIL.showToastNoneIcon('新增失败'+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {
@@ -181,7 +187,7 @@ Page({
}) })
},2000) },2000)
}else{ }else{
UTIL.showToastNoneIcon('修改失败');
UTIL.showToastNoneIcon('修改失败'+res.msg);
} }
}, },
fail: function (response) { fail: function (response) {


Carregando…
Cancelar
Salvar