pangdongxu 3 년 전
부모
커밋
0e61a98e8e
5개의 변경된 파일17개의 추가작업 그리고 11개의 파일을 삭제
  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 파일 보기

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


+ 2
- 2
pages/bankDraft/add/add.js 파일 보기

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


+ 2
- 2
pages/contract/add/add.js 파일 보기

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


+ 3
- 3
pages/fixedAssets/add/add.js 파일 보기

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


+ 9
- 3
pages/project/add/add.js 파일 보기

@@ -12,7 +12,9 @@ Page({
showStartTime:false,
showEndTime:false,
ynProjcetStatusOptions:[],
form:{},
form:{
},
id:"",
ynProjcetStatusindex:0,
status:0,
@@ -47,6 +49,10 @@ Page({
})
}else{
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'}, {
success: (r) => {
if(r.data.length>0){
@@ -154,7 +160,7 @@ Page({
})
},2000)
}else{
UTIL.showToastNoneIcon('新增失败');
UTIL.showToastNoneIcon('新增失败'+res.msg);
}
},
fail: function (response) {
@@ -181,7 +187,7 @@ Page({
})
},2000)
}else{
UTIL.showToastNoneIcon('修改失败');
UTIL.showToastNoneIcon('修改失败'+res.msg);
}
},
fail: function (response) {


불러오는 중...
취소
저장