Commit 365a29c1 by lichengming

修改了试验项目填写原始记录

parent 9254a024
...@@ -43,5 +43,7 @@ export default { ...@@ -43,5 +43,7 @@ export default {
.post('/env/v1/env_item/search_all_common_sample_count', data) .post('/env/v1/env_item/search_all_common_sample_count', data)
.then(res => res), .then(res => res),
saveItem: data => saveItem: data =>
http.post('/env/v1/env_item/save_form_for_item', data).then(res => res) http
.post('soil/v1/original_record/save_original_record', data)
.then(res => res)
} }
...@@ -80,6 +80,7 @@ export default { ...@@ -80,6 +80,7 @@ export default {
title: '', title: '',
businessTypeList: 0 businessTypeList: 0
}, },
entrustId: '',
selectData: [], selectData: [],
itemIds: [], itemIds: [],
footerList: [ footerList: [
...@@ -139,8 +140,9 @@ export default { ...@@ -139,8 +140,9 @@ export default {
_hideLoading() { _hideLoading() {
this.$refs.footerModal._hideLoading() this.$refs.footerModal._hideLoading()
}, },
_open(ids) { _open(ids, entrustId) {
this.formObj = this.$resetFields(this.formObj) this.formObj = this.$resetFields(this.formObj)
this.entrustId = entrustId
this._classTree() this._classTree()
this.showModal = true this.showModal = true
this.itemIds = ids this.itemIds = ids
...@@ -331,6 +333,7 @@ export default { ...@@ -331,6 +333,7 @@ export default {
} }
console.log('保存的数据', tempData) console.log('保存的数据', tempData)
if (tempData.formId !== undefined) { if (tempData.formId !== undefined) {
tempData.entrustId = this.entrustId
this._save(tempData) this._save(tempData)
} }
// this.$store // this.$store
......
...@@ -93,7 +93,6 @@ export default { ...@@ -93,7 +93,6 @@ export default {
name: '管理样品' name: '管理样品'
}, },
{ type: 'md-cloud', id: '', name: '附件' }, { type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-trash', id: '', name: '删除' },
{ {
type: 'ios-clock', type: 'ios-clock',
id: '', id: '',
......
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
this.$message.warning('请至少选择一条数据') this.$message.warning('请至少选择一条数据')
} else { } else {
console.log('打开填写原始记录界面') console.log('打开填写原始记录界面')
this.$refs.recordModal._open(this.selectIds) this.$refs.recordModal._open(this.selectIds, this.entrustId)
} }
}, },
_allotByPerson() { _allotByPerson() {
......
...@@ -95,7 +95,6 @@ export default { ...@@ -95,7 +95,6 @@ export default {
name: '管理样品' name: '管理样品'
}, },
{ type: 'md-cloud', id: '', name: '附件' }, { type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-trash', id: '', name: '删除' },
{ {
type: 'ios-clock', type: 'ios-clock',
id: '', id: '',
......
...@@ -86,7 +86,6 @@ export default { ...@@ -86,7 +86,6 @@ export default {
name: '编辑' name: '编辑'
}, },
{ type: 'md-cloud', id: '', name: '附件' }, { type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-trash', id: '', name: '删除' },
{ {
type: 'ios-clock', type: 'ios-clock',
id: '', id: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment