Commit 510b980d by lichengming

修改了试样管理

parent 98eee44b
...@@ -135,30 +135,10 @@ export default { ...@@ -135,30 +135,10 @@ export default {
type: 'primary', type: 'primary',
id: '', id: '',
name: '批量填写存放信息' name: '批量填写存放信息'
}, }
{
type: 'primary',
id: 'food-sample-preparation-his-all',
name: '制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-no-pre',
name: '无需制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-scan-pre',
name: '扫码制备'
},
// { type: '', id: '', name: '填写存放信息' }, // { type: '', id: '', name: '填写存放信息' },
// { type: '', id: '', name: '申请处理' }, // { type: '', id: '', name: '申请处理' },
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-prepare-record-export',
name: '导出备样记录'
}
], ],
iconMsg: [ iconMsg: [
{ type: 'md-create', id: '', name: '编辑' }, // food-sample-prepare-edit { type: 'md-create', id: '', name: '编辑' }, // food-sample-prepare-edit
......
...@@ -67,11 +67,6 @@ export default { ...@@ -67,11 +67,6 @@ export default {
}, },
btn: [ btn: [
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-handle-already-export-sample-store',
name: '导出样品贮存表'
}
], ],
iconMsg: [ iconMsg: [
{ {
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
</div> </div>
</div> </div>
<!--组件加载--> <!--组件加载-->
<ViewSample ref="viewSample"></ViewSample>
<StandardsManageEdit ref="editModal" @on-result-change="_page"></StandardsManageEdit> <StandardsManageEdit ref="editModal" @on-result-change="_page"></StandardsManageEdit>
<DownloadTemplateImport ref="importModal" @on-result-change="_page"></DownloadTemplateImport> <DownloadTemplateImport ref="importModal" @on-result-change="_page"></DownloadTemplateImport>
<!-- <component ref="refModal" :is="currentComponent" @on-result-change="_page"></component>--> <!-- <component ref="refModal" :is="currentComponent" @on-result-change="_page"></component>-->
...@@ -72,10 +73,12 @@ import { soilSample } from '../../../api' ...@@ -72,10 +73,12 @@ import { soilSample } from '../../../api'
import global from '../../../api/config' import global from '../../../api/config'
import DownloadTemplateImport from '../../../components/import/DownloadTemplateImport' // 导入 import DownloadTemplateImport from '../../../components/import/DownloadTemplateImport' // 导入
import StandardsManageEdit from './AddressManageEdit' // 添加、编辑 import StandardsManageEdit from './AddressManageEdit' // 添加、编辑
import ViewSample from './ViewSample'
export default { export default {
components: { components: {
StandardsManageEdit, StandardsManageEdit,
DownloadTemplateImport DownloadTemplateImport,
ViewSample
}, },
data() { data() {
return { return {
...@@ -116,6 +119,11 @@ export default { ...@@ -116,6 +119,11 @@ export default {
name: '编辑', name: '编辑',
componentName: 'StandardsManageEdit' componentName: 'StandardsManageEdit'
}, },
{
type: 'md-apps',
id: '',
name: '查看试样'
},
{ type: 'md-remove-circle', id: '', name: '删除' } { type: 'md-remove-circle', id: '', name: '删除' }
], ],
searchOpen: false, searchOpen: false,
...@@ -190,6 +198,9 @@ export default { ...@@ -190,6 +198,9 @@ export default {
case '编辑': case '编辑':
this._editModal(true, data.id) this._editModal(true, data.id)
break break
case '查看试样':
this._viewSample(data.id)
break
case '上传': case '上传':
this._upload(data.id) this._upload(data.id)
break break
...@@ -214,7 +225,10 @@ export default { ...@@ -214,7 +225,10 @@ export default {
} }
this.$refs.uploadModal._open(obj) this.$refs.uploadModal._open(obj)
}, },
_viewSample(data) {
console.log(data)
this.$refs.viewSample._openHis()
},
_editModal: async function(edit, id) { _editModal: async function(edit, id) {
if (edit) { if (edit) {
// 编辑 // 编辑
......
...@@ -103,30 +103,10 @@ export default { ...@@ -103,30 +103,10 @@ export default {
type: '', type: '',
id: '', id: '',
name: '驳回' name: '驳回'
}, }
{
type: 'primary',
id: 'food-sample-preparation-his-all',
name: '制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-no-pre',
name: '无需制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-scan-pre',
name: '扫码制备'
},
// { type: '', id: '', name: '填写存放信息' }, // { type: '', id: '', name: '填写存放信息' },
// { type: '', id: '', name: '申请处理' }, // { type: '', id: '', name: '申请处理' },
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-prepare-record-export',
name: '导出备样记录'
}
], ],
iconMsg: [ iconMsg: [
{ type: 'md-create', id: '', name: '编辑' } // food-sample-prepare-edit { type: 'md-create', id: '', name: '编辑' } // food-sample-prepare-edit
......
...@@ -94,39 +94,19 @@ export default { ...@@ -94,39 +94,19 @@ export default {
selectSampleIds: [], selectSampleIds: [],
getPage: {}, getPage: {},
btn: [ btn: [
{ // {
type: 'primary', // type: 'primary',
id: '', // id: '',
name: '通过' // name: '通过'
}, // },
{ // {
type: '', // type: '',
id: '', // id: '',
name: '驳回' // name: '驳回'
}, // }
{
type: 'primary',
id: 'food-sample-preparation-his-all',
name: '制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-no-pre',
name: '无需制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-scan-pre',
name: '扫码制备'
},
// { type: '', id: '', name: '填写存放信息' }, // { type: '', id: '', name: '填写存放信息' },
// { type: '', id: '', name: '申请处理' }, // { type: '', id: '', name: '申请处理' },
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-prepare-record-export',
name: '导出备样记录'
}
], ],
iconMsg: [ iconMsg: [
{ type: 'md-create', id: '', name: '编辑' } // food-sample-prepare-edit { type: 'md-create', id: '', name: '编辑' } // food-sample-prepare-edit
......
...@@ -78,30 +78,10 @@ export default { ...@@ -78,30 +78,10 @@ export default {
type: '', type: '',
id: '', id: '',
name: '驳回' name: '驳回'
}, }
{
type: 'primary',
id: 'food-sample-preparation-his-all',
name: '制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-no-pre',
name: '无需制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-scan-pre',
name: '扫码制备'
},
// { type: '', id: '', name: '填写存放信息' }, // { type: '', id: '', name: '填写存放信息' },
// { type: '', id: '', name: '申请处理' }, // { type: '', id: '', name: '申请处理' },
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-prepare-record-export',
name: '导出备样记录'
}
], ],
iconMsg: [ iconMsg: [
{ type: 'md-create', id: '', name: '编辑' } // food-sample-prepare-edit { type: 'md-create', id: '', name: '编辑' } // food-sample-prepare-edit
......
...@@ -56,11 +56,6 @@ export default { ...@@ -56,11 +56,6 @@ export default {
formObj: {}, formObj: {},
btn: [ btn: [
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-handle-already-export-sample-store',
name: '导出样品贮存表'
}
], ],
pageColumns: [ pageColumns: [
{ title: '试样编号', key: 'sampleCode', width: 150 }, { title: '试样编号', key: 'sampleCode', width: 150 },
......
...@@ -101,30 +101,10 @@ export default { ...@@ -101,30 +101,10 @@ export default {
type: 'primary', type: 'primary',
id: '', id: '',
name: '完成处理' name: '完成处理'
}, }
{
type: 'primary',
id: 'food-sample-preparation-his-all',
name: '制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-no-pre',
name: '无需制备'
},
{
type: 'primary',
id: 'food-sample-preparation-his-scan-pre',
name: '扫码制备'
},
// { type: '', id: '', name: '填写存放信息' }, // { type: '', id: '', name: '填写存放信息' },
// { type: '', id: '', name: '申请处理' }, // { type: '', id: '', name: '申请处理' },
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-prepare-record-export',
name: '导出备样记录'
}
], ],
iconMsg: [ iconMsg: [
{ type: 'md-create', id: '', name: '编辑' }, // food-sample-prepare-edit { type: 'md-create', id: '', name: '编辑' }, // food-sample-prepare-edit
......
...@@ -78,11 +78,6 @@ export default { ...@@ -78,11 +78,6 @@ export default {
], ],
btn: [ btn: [
// { type: '', id: '', name: '导出' }, // { type: '', id: '', name: '导出' },
{
type: '',
id: 'food-sample-handle-already-export-sample-store',
name: '导出样品贮存表'
}
], ],
pageColumns: [ pageColumns: [
{ title: '试样编号', key: 'sampleCode', width: 150 }, { title: '试样编号', key: 'sampleCode', width: 150 },
......
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