Commit 675e8789 by lichengming

修改了科室领样查询条件

parent 5ebd117f
......@@ -44,6 +44,7 @@ export default {
},
_page() {
this.$refs.entrustTabs._page()
this.$refs.entrustTabs._getGroupList()
}
}
}
......
......@@ -14,6 +14,19 @@
<Form-item class="search-item" label="委托编号:">
<Input v-model="formObj.entrustCode" @on-enter="_formSearch" placeholder="请输入委托编号" clearable></Input>
</Form-item>
<Form-item class="search-item" label="钻孔名称:">
<Input v-model="formObj.boreholeName" @on-enter="_formSearch" placeholder="请输入钻孔名称" clearable></Input>
</Form-item>
<Form-item label="试验科室:" class="search-item">
<el-select v-model="formObj.groupId" @change="_selGroup" placeholder="请选择" clearable style="width: 100%">
<el-option
v-for="(item,index) in groupoptions"
:key="index"
:label="item.name"
:value="item.id"
/>
</el-select>
</Form-item>
<Form-item class="search-btn">
<Button @click="_formSearch" type="primary">搜索</Button>
</Form-item>
......@@ -69,7 +82,7 @@
</template>
<script>
import UserInfo from '../../../components/user-info-single/assignPerson'
import { soilEntrust } from '../../../api'
import { soilAptitude, soilEntrust } from '../../../api'
import Operation from '../../../components/operation/Operation'
import global from '../../../api/config'
import SampleManage from './TakeSampleManage'
......@@ -83,9 +96,11 @@ export default {
return {
formObj: {
client: undefined,
entrustCode: undefined
entrustCode: undefined,
boreholeName: undefined
},
typeList: [{ name: '企业', value: 0 }, { name: '政府', value: 1 }],
groupoptions: [],
iconMsg: [
{
type: 'ios-beaker',
......@@ -154,6 +169,12 @@ export default {
// this.acceptSelectUserValue = localStorage.getItem('acceptSelectUserValue')
},
methods: {
_getGroupList: async function() {
const result = await soilAptitude.getGroupList()
if (result) {
this.groupoptions = result
}
},
_userResult(data, msg) {
const sendData = {
ids: this.selectIds.join(',')
......
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