|
@@ -649,7 +649,12 @@ export default {
|
|
|
if ("0" == type) {
|
|
if ("0" == type) {
|
|
|
this.invoice.ziiTotalAmount = e.target.value;
|
|
this.invoice.ziiTotalAmount = e.target.value;
|
|
|
} else if ("1" == type) {
|
|
} else if ("1" == type) {
|
|
|
- this.invoice.ziiAmount = e.target.value;
|
|
|
|
|
|
|
+ if(e.target.value){
|
|
|
|
|
+ this.invoice.ziiAmount = e.target.value;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.invoice.ziiAmount=="0.0";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//表格置灰
|
|
//表格置灰
|
|
@@ -979,11 +984,11 @@ export default {
|
|
|
allAmount() {
|
|
allAmount() {
|
|
|
var strarr = [0.0];
|
|
var strarr = [0.0];
|
|
|
for (let i in this.fileList) {
|
|
for (let i in this.fileList) {
|
|
|
- // if (this.fileList[i]["ziiCheckStt"] == "1") {
|
|
|
|
|
- strarr.push(this.fileList[i]["ziiAmount"]);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if ( this.fileList[i]["ziiCheckStt"] == "1" && !!(this.fileList[i]["ziiAmount"])) {
|
|
|
|
|
+ strarr.push(this.fileList[i]["ziiAmount"]);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- return (Math.round(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
|
|
|
|
|
|
|
+ return (Math.round(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
|
|
|
},
|
|
},
|
|
|
// 提交
|
|
// 提交
|
|
|
submit() {
|
|
submit() {
|