|
|
@ -647,13 +647,17 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getResource() { |
|
|
getResource() { |
|
|
const content = this.getFilledFormData() |
|
|
const content = this.getFilledFormData() |
|
|
|
|
|
let formData = this.formData; |
|
|
let tmpResource = [] |
|
|
let tmpResource = [] |
|
|
let tmpYq = [] |
|
|
let tmpYq = [] |
|
|
let sjs9hhyjrltotal=0 |
|
|
let sjs9hhyjrltotal=0 |
|
|
|
|
|
let sjplyjrltotal=0 |
|
|
for (var i = 0; i < content.jlzTableData.length; i++) { |
|
|
for (var i = 0; i < content.jlzTableData.length; i++) { |
|
|
let item = content.jlzTableData[i] |
|
|
let item = content.jlzTableData[i] |
|
|
sjs9hhyjrltotal=sjs9hhyjrltotal+parseFloat(item.sjs9hhyjrl) |
|
|
sjs9hhyjrltotal=sjs9hhyjrltotal+parseFloat(item.sjs9hhyjrl) |
|
|
//混悬液 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sjplyjrltotal=sjplyjrltotal+parseFloat(item.sjplyjrl) |
|
|
|
|
|
//悬液 |
|
|
tmpResource.push({ |
|
|
tmpResource.push({ |
|
|
mc: null, |
|
|
mc: null, |
|
|
bh: item.xybh, |
|
|
bh: item.xybh, |
|
|
@ -668,7 +672,7 @@ export default { |
|
|
syl: null, |
|
|
syl: null, |
|
|
type: 1, //生成的时候传null |
|
|
type: 1, //生成的时候传null |
|
|
elnType: null, //生成的时候传 his.product |
|
|
elnType: null, //生成的时候传 his.product |
|
|
syldw: content[i+'_xybh_dw'], |
|
|
|
|
|
|
|
|
syldw: content[i+'_xybh_dw'] || formData[i+'_xybh_dw'], |
|
|
yxzq: null, |
|
|
yxzq: null, |
|
|
yxzqdw: null, |
|
|
yxzqdw: null, |
|
|
}) |
|
|
}) |
|
|
@ -723,10 +727,10 @@ export default { |
|
|
sxrq: null, |
|
|
sxrq: null, |
|
|
kc: null, |
|
|
kc: null, |
|
|
kcdw: null, |
|
|
kcdw: null, |
|
|
syl: null, |
|
|
|
|
|
|
|
|
syl: sjplyjrltotal, |
|
|
type: 1, //使用的时候传对应的值 |
|
|
type: 1, //使用的时候传对应的值 |
|
|
elnType: null, //传null |
|
|
elnType: null, //传null |
|
|
syldw: content.pyysj_dw, |
|
|
|
|
|
|
|
|
syldw: content.jlzHeaderSelectFields.sjplyjrlUnit, |
|
|
yxzq: null, |
|
|
yxzq: null, |
|
|
yxzqdw: null, |
|
|
yxzqdw: null, |
|
|
}) |
|
|
}) |
|
|
|