|
@@ -376,11 +376,14 @@ export default {
|
|
selectChange(val, index) {
|
|
selectChange(val, index) {
|
|
const outList = this.detailForm.out_bill;
|
|
const outList = this.detailForm.out_bill;
|
|
let outForm = outList[index];
|
|
let outForm = outList[index];
|
|
- let sh_ys = _.round(Number(val * outForm.sq_ys), 2);
|
|
|
|
- let sh_ss = _.round(Number(val * outForm.sq_ss), 2);
|
|
|
|
- this.$set(outForm, `sh_ys`, sh_ys);
|
|
|
|
- this.$set(outForm, `sh_ss`, sh_ss);
|
|
|
|
- this.computRate();
|
|
|
|
|
|
+ // console.log(outForm);
|
|
|
|
+ if (outForm.sq_ys) {
|
|
|
|
+ let sh_ys = _.round(Number(val * outForm.sq_ys), 2);
|
|
|
|
+ let sh_ss = _.round(Number(val * outForm.sq_ss), 2);
|
|
|
|
+ this.$set(outForm, `sh_ys`, sh_ys);
|
|
|
|
+ this.$set(outForm, `sh_ss`, sh_ss);
|
|
|
|
+ this.computRate();
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//税前应收
|
|
//税前应收
|
|
change(index) {
|
|
change(index) {
|