|
@@ -115,33 +115,7 @@ $formID = rand(0, 100000);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- addItem: function() {
|
|
|
|
- this.data['{{$sectionPro->uid}}']['current_cch']['list'].push({
|
|
|
|
- "category": '',
|
|
|
|
- "name": '',
|
|
|
|
- "icd": '',
|
|
|
|
- "memo": '',
|
|
|
|
- "hpi": {
|
|
|
|
- "free_text": ''
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- removeItem: function(_index) {
|
|
|
|
- this.data['{{$sectionPro->uid}}']['current_cch']['list'].splice(_index, 1);
|
|
|
|
- },
|
|
|
|
- cleanArray: function(_source) {
|
|
|
|
- let plItems = [], plObject = {};
|
|
|
|
- for (let x=0; x<_source.length; x++) {
|
|
|
|
- plObject = {};
|
|
|
|
- for (let y in _source[x]) {
|
|
|
|
- if(_source[x].hasOwnProperty(y)) {
|
|
|
|
- plObject[y] = _source[x][y];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- plItems.push(plObject);
|
|
|
|
- }
|
|
|
|
- return plItems;
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|