|
|
@@ -116,7 +116,8 @@ Page({ |
|
|
|
UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'order_type', {method:'GET'}, { |
|
|
|
success: (res) => { |
|
|
|
this.setData({ |
|
|
|
orderTypeOptions:res.data |
|
|
|
orderTypeOptions:res.data, |
|
|
|
'form.orderType':res.data[0].dictValue |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
@@ -124,7 +125,8 @@ Page({ |
|
|
|
UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'order_status', {method:'GET'}, { |
|
|
|
success: (res) => { |
|
|
|
this.setData({ |
|
|
|
orderStatusOptions:res.data |
|
|
|
orderStatusOptions:res.data, |
|
|
|
'form.orderStatus':res.data[0].dictValue |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
@@ -171,8 +173,8 @@ Page({ |
|
|
|
}else if(this.data.form.orderAmount===''||this.data.form.orderAmount==null){ //出票金额 |
|
|
|
UTIL.showToastNoneIcon('请输入出票金额!'); |
|
|
|
return false; |
|
|
|
}else if(this.data.form.billPayUnit===''||this.data.form.billPayUnit==null){ //付飘单位 |
|
|
|
UTIL.showToastNoneIcon('请输入付飘单位!'); |
|
|
|
}else if(this.data.form.billPayUnit===''||this.data.form.billPayUnit==null){ //付票单位 |
|
|
|
UTIL.showToastNoneIcon('请输入付票单位!'); |
|
|
|
return false; |
|
|
|
}else if(this.data.form.billReceiveUnit === ''||this.data.form.billReceiveUnit==null){//收票单位 |
|
|
|
UTIL.showToastNoneIcon('请输入收票单位!'); |
|
|
@@ -184,10 +186,10 @@ Page({ |
|
|
|
UTIL.showToastNoneIcon('请输入到期日期!'); |
|
|
|
return false; |
|
|
|
}else if(this.data.form.orderStatus === ''||this.data.form.orderStatus==null){//联行号 |
|
|
|
UTIL.showToastNoneIcon('汇票状态不能为空!'); |
|
|
|
UTIL.showToastNoneIcon('联行号不能为空!'); |
|
|
|
return false; |
|
|
|
}else if(this.data.form.orderStatus === ''||this.data.form.orderStatus==null){//联行号 |
|
|
|
UTIL.showToastNoneIcon('汇票状态不能为空!'); |
|
|
|
UTIL.showToastNoneIcon('联行号不能为空!'); |
|
|
|
return false; |
|
|
|
}else if(this.data.status=='0'){ |
|
|
|
this.setData({'status':'1'}) |
|
|
|