|
|
@ -351,10 +351,10 @@ export default { |
|
|
async getFormData() { |
|
|
async getFormData() { |
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "tableRef", "stepRef", |
|
|
let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "stepFormPackageRef", "tableRef", "stepRef", |
|
|
"rongyeTableRef", "rongyeStepFormPackageRef", "remarkRef"]); |
|
|
"rongyeTableRef", "rongyeStepFormPackageRef", "remarkRef"]); |
|
|
|
|
|
|
|
|
if(!content) { |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return content; |
|
|
|
|
|
}, |
|
|
|
|
|
getResource() { |
|
|
|
|
|
let content = this.getFilledFormData(); |
|
|
//生成resource |
|
|
//生成resource |
|
|
let tmpResource = [] |
|
|
let tmpResource = [] |
|
|
if(this.fillType === "actFill"){ |
|
|
if(this.fillType === "actFill"){ |
|
|
@ -410,7 +410,7 @@ export default { |
|
|
let fzItem = item.fzsj.fzList[j] |
|
|
let fzItem = item.fzsj.fzList[j] |
|
|
tmpResource.push({ |
|
|
tmpResource.push({ |
|
|
mc: null, |
|
|
mc: null, |
|
|
bh: item.fzsj.mybh+fzItem.preCode, |
|
|
|
|
|
|
|
|
bh: item.fzsj.mybh+fzItem.preCode+ fzItem.subCode, |
|
|
ph: null, |
|
|
ph: null, |
|
|
ndz: item.hhwznd + content.headerSelectFields.hhwzndUnit, |
|
|
ndz: item.hhwznd + content.headerSelectFields.hhwzndUnit, |
|
|
nd: item.hhwznd, |
|
|
nd: item.hhwznd, |
|
|
@ -524,7 +524,7 @@ export default { |
|
|
let fzItem = item.fzsj.fzList[j] |
|
|
let fzItem = item.fzsj.fzList[j] |
|
|
tmpResource.push({ |
|
|
tmpResource.push({ |
|
|
mc: null, |
|
|
mc: null, |
|
|
bh: item.fzsj.mybh+fzItem.preCode, |
|
|
|
|
|
|
|
|
bh: item.fzsj.mybh+fzItem.preCode + fzItem.subCode, |
|
|
ph: null, |
|
|
ph: null, |
|
|
ndz: item.hhwznd + content.headerSelectFields.hhwzndUnit, |
|
|
ndz: item.hhwznd + content.headerSelectFields.hhwzndUnit, |
|
|
nd: item.hhwznd, |
|
|
nd: item.hhwznd, |
|
|
@ -573,7 +573,7 @@ export default { |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
const stepResource = this.$refs.stepRef.getStepResource() |
|
|
this.resourceTmp =uniqeResource(tmpResource,stepResource.sjResource||[]) |
|
|
this.resourceTmp =uniqeResource(tmpResource,stepResource.sjResource||[]) |
|
|
this.yqResourceTmp = stepResource.yqResource||[] |
|
|
this.yqResourceTmp = stepResource.yqResource||[] |
|
|
return content; |
|
|
|
|
|
|
|
|
return this.resourceTmp; |
|
|
}, |
|
|
}, |
|
|
async onSave() { |
|
|
async onSave() { |
|
|
const formData = this.getFilledFormData(); |
|
|
const formData = this.getFilledFormData(); |
|
|
@ -595,7 +595,7 @@ export default { |
|
|
for(let i=0;i<val.fzsj.fzList.length;i++){ |
|
|
for(let i=0;i<val.fzsj.fzList.length;i++){ |
|
|
let item = val.fzsj.fzList[i] |
|
|
let item = val.fzsj.fzList[i] |
|
|
list.push({ |
|
|
list.push({ |
|
|
bh:val.fzsj.mybh+item.preCode, |
|
|
|
|
|
|
|
|
bh:val.fzsj.mybh+item.preCode+ item.subCode, |
|
|
kc:item.num, |
|
|
kc:item.num, |
|
|
kcdw:val.fzsj.dw, |
|
|
kcdw:val.fzsj.dw, |
|
|
}) |
|
|
}) |
|
|
|