|
@@ -1104,8 +1104,8 @@ export default {
|
|
|
this.signButton = true;
|
|
|
this.submitButton = false;
|
|
|
this.isHas = false;
|
|
|
- //如果显示签收,调起预览文件
|
|
|
- this.getContractFile(true);
|
|
|
+ //如果显示签收,调起预览文件--------走后台,不应该预览文件
|
|
|
+ //this.getContractFile(true);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -1148,6 +1148,7 @@ export default {
|
|
|
this.signButton = true;
|
|
|
this.submitButton = false;
|
|
|
this.isHas = false;
|
|
|
+ //走后台,不应该预览文件
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -1234,8 +1235,72 @@ export default {
|
|
|
},
|
|
|
//签收
|
|
|
sign(){
|
|
|
- //预览文件
|
|
|
- this.getContractFile();
|
|
|
+ // 判断是否有补充资料内部审批
|
|
|
+ var confirmParam = {};
|
|
|
+ confirmParam.menuId = "1000000003";
|
|
|
+ isOpenApproval(confirmParam).then((response) => {
|
|
|
+ var platResult = response.data.isOpen;
|
|
|
+ //开启内部审批并且审批已经通过
|
|
|
+ if(platResult && this.form.zfiSupplierStatus == '01'){
|
|
|
+ this.getContractFile();
|
|
|
+ }else{
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
+ if(this.ticketList.length < 1){
|
|
|
+ this.$message({
|
|
|
+ message: '请选择应收账款',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(parseFloat(this.form.zfiAmount) > parseFloat(this.moneyDelete(this.checkTotalAmt))){
|
|
|
+ this.$message({
|
|
|
+ message: '签发金额不可大于合计金额',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (valid) {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ background: 'rgba(0, 0, 0,0)'
|
|
|
+ });
|
|
|
+ //如果签发金额小于合计金额
|
|
|
+ if((parseFloat(this.form.zfiAmount)) < (parseFloat(this.moneyDelete(this.checkTotalAmt)))){
|
|
|
+ var _this = this;
|
|
|
+ this.$confirm('签发金额小于应收金额合计,是否确认提交', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ //应收账款
|
|
|
+ _this.form.ticketList = _this.ticketList;
|
|
|
+ addInfor(_this.form).then(response => {
|
|
|
+ loading.close();
|
|
|
+ _this.getContractFile();
|
|
|
+ }).catch((response)=>{
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ }).catch((e) => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+
|
|
|
+ }else{
|
|
|
+ //应收账款
|
|
|
+ this.form.ticketList = this.ticketList;
|
|
|
+ addInfor(this.form).then(response => {
|
|
|
+ loading.close();
|
|
|
+ this.getContractFile();
|
|
|
+ }).catch((response)=>{
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
//获取合同文件
|
|
|
getContractFile(nosign){
|