Commit 365a29c1 by lichengming

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

parent 9254a024
......@@ -43,5 +43,7 @@ export default {
.post('/env/v1/env_item/search_all_common_sample_count', data)
.then(res => res),
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 {
title: '',
businessTypeList: 0
},
entrustId: '',
selectData: [],
itemIds: [],
footerList: [
......@@ -139,8 +140,9 @@ export default {
_hideLoading() {
this.$refs.footerModal._hideLoading()
},
_open(ids) {
_open(ids, entrustId) {
this.formObj = this.$resetFields(this.formObj)
this.entrustId = entrustId
this._classTree()
this.showModal = true
this.itemIds = ids
......@@ -331,6 +333,7 @@ export default {
}
console.log('保存的数据', tempData)
if (tempData.formId !== undefined) {
tempData.entrustId = this.entrustId
this._save(tempData)
}
// this.$store
......
......@@ -93,7 +93,6 @@ export default {
name: '管理样品'
},
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-trash', id: '', name: '删除' },
{
type: 'ios-clock',
id: '',
......
......@@ -324,7 +324,7 @@ export default {
this.$message.warning('请至少选择一条数据')
} else {
console.log('打开填写原始记录界面')
this.$refs.recordModal._open(this.selectIds)
this.$refs.recordModal._open(this.selectIds, this.entrustId)
}
},
_allotByPerson() {
......
......@@ -95,7 +95,6 @@ export default {
name: '管理样品'
},
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-trash', id: '', name: '删除' },
{
type: 'ios-clock',
id: '',
......
......@@ -86,7 +86,6 @@ export default {
name: '编辑'
},
{ type: 'md-cloud', id: '', name: '附件' },
{ type: 'md-trash', id: '', name: '删除' },
{
type: 'ios-clock',
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