diff --git a/src/views/business/comps/template/comps/sp/SP0019.vue b/src/views/business/comps/template/comps/sp/SP0019.vue
index 8222126..2074b46 100644
--- a/src/views/business/comps/template/comps/sp/SP0019.vue
+++ b/src/views/business/comps/template/comps/sp/SP0019.vue
@@ -8,33 +8,27 @@
+
-
onYqSubmit(data, col, rowIndex, colIndex, row)"
- :showAddRow = "fillType === 'actFill'"
- :showOperation = "fillType === 'actFill'"
- :prefixKey="`yqTable`"
- >
+ onYqSubmit(data, col, rowIndex, colIndex, row)"
+ :showAddRow="fillType === 'actFill'" :showOperation="fillType === 'actFill'"
+ :prefixKey="`yqTable`">
- deleteRow(rowIndex,'yqInfoTableRef')" >
+ deleteRow(rowIndex, 'yqInfoTableRef')">
+ @remoteMethod="remoteMethod" :formConfig="storageFormConfig" :formData="formData" />
- onRegentSubmit(e)"
- :showOperation = "fillType === 'preFill'"
- :formData="{stepTableFormData:formData.stepTableFormData_1,headerSelectFields:{}}" :prefixKey="`ryTable`"
- >
+ onRegentSubmit(e)"
+ :showOperation="fillType === 'preFill'"
+ :formData="{ stepTableFormData: formData.stepTableFormData_1, headerSelectFields: {} }"
+ :prefixKey="`ryTable`">
- deleteRow(rowIndex,'ryTableRef')" >
+ deleteRow(rowIndex, 'ryTableRef')">
({
label: item.bh,
value: item.bh,
@@ -138,10 +133,10 @@ export default {
}
}
},
- onRegentSubmit(e){
- const {selectInfo, key, col, rowIndex, colIndex, rowData} = e;
- const {row} = selectInfo;
- if(key === "rymc"){
+ onRegentSubmit(e) {
+ const { selectInfo, key, col, rowIndex, colIndex, rowData } = e;
+ const { row } = selectInfo;
+ if (key === "rymc") {
const params = {
pzrq: row.pzrq,
sxr: row.sxr,
@@ -149,10 +144,10 @@ export default {
this.$refs.ryTableRef.updateDataSourceByRowIndex(rowIndex, params);
}
},
- onYqSubmit(data){
- const {selectInfo,rowIndex,key} = data;
- const {row} = selectInfo;
- if(key === "bh"){//一起编号
+ onYqSubmit(data) {
+ const { selectInfo, rowIndex, key } = data;
+ const { row } = selectInfo;
+ if (key === "bh") {//一起编号
const params = {
mc: row.mc,
xh: row.xh,
@@ -165,9 +160,53 @@ export default {
getFilledFormData() {
return this.getFilledFormDataByRefs(["baseInfoRef", "storageConditionRef", "spzxhRef", "yqInfoTableRef", "ryTableRef", "remarkRef"])
},
+ getResource() {
+ let content = this.getFilledFormData();
+ //生成resource
+ let tmpResource = []
+ let tmpYq=[]
+ if (this.fillType === "actFill") {
+ let _formData = content.stepTableFormData_1
+ for (var i = 0; i < _formData.length; i++) {
+ //使用的 实际溶液
+ tmpResource.push({
+ mc: null,
+ bh: _formData[i].rymc,
+ ph: null,
+ ndz: null,
+ nd: null,
+ nddw: null,
+ ly: 'ELN配制',
+ sxrq: null,
+ kc: null,
+ kcdw: null,
+ syl: null,
+ type: _formData[i].selectInfo_rymc.type,
+ elnType: null,
+ syldw: _formData[i].selectInfo_rymc.kcdw,
+ yxzq: null,
+ yxzqdw: null,
+ })
+ }
+
+ let _formData2 = content.stepTableFormData
+
+ for (var i = 0; i < _formData2.length; i++) {
+ tmpYq.push({
+ mc: _formData2[i].selectInfo_bh.mc,
+ xh: _formData2[i].selectInfo_bh.xh,
+ bh: _formData2[i].selectInfo_bh.bh,
+ jzrq: _formData2[i].selectInfo_bh.jzrq,
+ })
+ }
+ }
+ this.yqResourceTmp = uniqeYqOne(tmpYq)
+ this.resourceTmp = uniqeResourceOne(tmpResource)
+ return this.resourceTmp;
+ },
//获取填写完成的表单数据
async getFormData() {
- let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "spzxhRef","yqInfoTableRef","ryTableRef", "remarkRef"]);
+ let content = await this.validFormFields(["baseInfoRef", "storageConditionRef", "spzxhRef", "yqInfoTableRef", "ryTableRef", "remarkRef"]);
console.log(content)
return content;
},