Commit e61ad98a by lichengming

修改了开土制备

parent 469e0519
...@@ -83,6 +83,7 @@ export default { ...@@ -83,6 +83,7 @@ export default {
) )
this.showModal = false this.showModal = false
} else { } else {
this.$refs.footerModal._hideLoading()
this.$Message.error('表单验证失败!') this.$Message.error('表单验证失败!')
} }
}) })
......
...@@ -284,6 +284,7 @@ export default { ...@@ -284,6 +284,7 @@ export default {
title: '提示', title: '提示',
content: '确定要提交 ' + ids.length + ' 条记录?', content: '确定要提交 ' + ids.length + ' 条记录?',
onOk: () => { onOk: () => {
this.$refs.pageTable._showLoading()
this._subToSkipRe(ids) this._subToSkipRe(ids)
} }
}) })
...@@ -299,6 +300,7 @@ export default { ...@@ -299,6 +300,7 @@ export default {
title: '提示', title: '提示',
content: '确定要把这 ' + ids.length + ' 条记录提交到' + cont + '?', content: '确定要把这 ' + ids.length + ' 条记录提交到' + cont + '?',
onOk: () => { onOk: () => {
this.$refs.pageTable._showLoading()
this._subToRe(ids) this._subToRe(ids)
} }
}) })
...@@ -320,6 +322,7 @@ export default { ...@@ -320,6 +322,7 @@ export default {
_resultChange(msg) { _resultChange(msg) {
this.$Message.success(msg) this.$Message.success(msg)
this._page() this._page()
this.$refs.pageTable._hideLoading()
}, },
_record(id) { _record(id) {
this.currentComponent = 'Operation' this.currentComponent = 'Operation'
......
...@@ -185,12 +185,12 @@ export default { ...@@ -185,12 +185,12 @@ export default {
} }
}, },
_reasonResult(data) { _reasonResult(data) {
this.$refs.pageTable._showLoading()
if (undefined !== data && data !== '') { if (undefined !== data && data !== '') {
this._reportCheckBack(data) this._reportCheckBack(data)
} }
}, },
_reportCheckBack: async function(data) { _reportCheckBack: async function(data) {
console.log('开始退回')
const result = await soilEntrust.back({ const result = await soilEntrust.back({
ids: this.selectIds, ids: this.selectIds,
remark: data remark: data
...@@ -198,8 +198,8 @@ export default { ...@@ -198,8 +198,8 @@ export default {
if (result) { if (result) {
this.$Message.success('退回成功!') this.$Message.success('退回成功!')
console.log('退回成功')
await this._page() await this._page()
this.$refs.pageTable._hideLoading()
} }
}, },
_iconClick(res, data) { _iconClick(res, data) {
...@@ -293,6 +293,7 @@ export default { ...@@ -293,6 +293,7 @@ export default {
title: '提示', title: '提示',
content: '确定通过该委托单?', content: '确定通过该委托单?',
onOk: () => { onOk: () => {
this.$refs.pageTable._showLoading()
this._passEntrustReview(this.selectIds) this._passEntrustReview(this.selectIds)
} }
}) })
...@@ -302,6 +303,7 @@ export default { ...@@ -302,6 +303,7 @@ export default {
if (result) { if (result) {
this.$Message.success('提交成功!') this.$Message.success('提交成功!')
await this._page() await this._page()
this.$refs.pageTable._hideLoading()
} }
}, },
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
import { soilAptitude, soilEntrust } from '../../../api' import { soilAptitude, soilEntrust } from '../../../api'
import MeterEntrustRecord from '../../../components/operation/Operation' import MeterEntrustRecord from '../../../components/operation/Operation'
import SoilSampleManageHis from '../SoilSampleManageHis' import SoilSampleManageHis from '../SoilSampleManageHis'
import global from '../../../api/config'
export default { export default {
// eslint-disable-next-line vue/no-unused-components // eslint-disable-next-line vue/no-unused-components
components: { SoilSampleManageHis, MeterEntrustRecord }, components: { SoilSampleManageHis, MeterEntrustRecord },
...@@ -90,6 +91,11 @@ export default { ...@@ -90,6 +91,11 @@ export default {
name: '试样照片' name: '试样照片'
}, },
{ {
type: 'ios-download',
id: '',
name: '导出开土制备记录'
},
{
type: 'md-cloud', type: 'md-cloud',
id: '', id: '',
name: '附件' name: '附件'
...@@ -160,6 +166,9 @@ export default { ...@@ -160,6 +166,9 @@ export default {
case '资质项目': case '资质项目':
this._itemModal(data.id) this._itemModal(data.id)
break break
case '导出开土制备记录':
this._exportPrepare(data.id)
break
case '附件': case '附件':
this._upload(data.id) this._upload(data.id)
break break
...@@ -181,6 +190,20 @@ export default { ...@@ -181,6 +190,20 @@ export default {
} }
}) })
}, },
_exportPrepare(id) {
this.$Modal.confirm({
title: '提示',
content: '确定导出这条记录',
onOk: () => {
window.open(
global.baseURL +
'/soil/v1/entrust/export_soil_prepare_record?ids=' +
id,
'_blank'
)
}
})
},
_componentResult(data, msg) { _componentResult(data, msg) {
switch (this.currentComponent) { switch (this.currentComponent) {
default: default:
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
<div> <div>
<div class="layout-content-padding"> <div class="layout-content-padding">
<div class="layout-content-main"> <div class="layout-content-main">
<!-- <el-tabs v-model="activeName" @tab-click="_changeTabs">-->
<!-- <el-tab-pane label="待完成" name="wait">-->
<!-- <MeterSendEntrust ref="waitTabs"></MeterSendEntrust>-->
<!-- </el-tab-pane>-->
<!-- <el-tab-pane label="历史记录" name="his">-->
<!-- <MeterSendEntrustHis ref="hisTabs"></MeterSendEntrustHis>-->
<!-- </el-tab-pane>-->
<!-- </el-tabs>-->
<el-tabs v-model="activeName" @tab-click="_changeTabs"> <el-tabs v-model="activeName" @tab-click="_changeTabs">
<el-tab-pane label="待完成" name="wait"></el-tab-pane> <el-tab-pane label="待完成" name="wait"></el-tab-pane>
<el-tab-pane label="历史记录" name="his"></el-tab-pane> <el-tab-pane label="历史记录" name="his"></el-tab-pane>
......
...@@ -9,11 +9,16 @@ ...@@ -9,11 +9,16 @@
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24"> <Col span="24">
<Form id="search-sample-company" v-show="searchOpen" :label-width="90" inline onsubmit="return false"> <Form id="search-sample-company" v-show="searchOpen" :label-width="100" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item label="试验名称:" class="search-item"> <Form-item label="试验名称:" class="search-item">
<Input v-model="formObj.name" @on-enter="_formSearch" placeholder="请输入检测项目" clearable /> <Input v-model="formObj.name" @on-enter="_formSearch" placeholder="请输入检测项目" clearable />
</Form-item> </Form-item>
<Form-item label="是否已添加科室:" class="search-item">
<Select v-model="formObj.haveGroup" clearable name="groupId" style="width:150px" placeholder="请选择是否">
<Option v-for="(item,index) in itemData" :value="item.value" :key="index">{{item.name}}</Option>
</Select>
</Form-item>
<Form-item label="试验科室:" class="search-item"> <Form-item label="试验科室:" class="search-item">
<Input v-model="formObj.groupName" @on-enter="_formSearch" placeholder="请输入试验科室" clearable /> <Input v-model="formObj.groupName" @on-enter="_formSearch" placeholder="请输入试验科室" clearable />
</Form-item> </Form-item>
...@@ -139,6 +144,16 @@ export default { ...@@ -139,6 +144,16 @@ export default {
name: '删除' name: '删除'
} }
], ],
itemData: [
{
name: '是',
value: 1
},
{
name: '否',
value: 0
}
],
iconMsg: [{ type: 'pt-a-end', id: '', name: '删除' }], iconMsg: [{ type: 'pt-a-end', id: '', name: '删除' }],
sampleId: '', // 样品id sampleId: '', // 样品id
entrustId: '', entrustId: '',
...@@ -191,7 +206,8 @@ export default { ...@@ -191,7 +206,8 @@ export default {
sampleId: undefined, sampleId: undefined,
groupName: undefined, groupName: undefined,
sampleCode: undefined, sampleCode: undefined,
entrustId: undefined entrustId: undefined,
haveGroup: undefined
} }
} }
}, },
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
this.formObj.experimentId = this.id this.formObj.expId = this.id
const result = await soilTest.equipPage(this.$serializeForm(this.formObj)) const result = await soilTest.equipPage(this.$serializeForm(this.formObj))
if (result) { if (result) {
console.log(result) console.log(result)
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
this.formObj.experimentId = this.id this.formObj.expId = this.id
const result = await soilTest.equipPage(this.$serializeForm(this.formObj)) const result = await soilTest.equipPage(this.$serializeForm(this.formObj))
if (result) { if (result) {
console.log(result) console.log(result)
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
this.formObj.experimentId = this.id this.formObj.expId = this.id
const result = await soilTest.equipPage(this.$serializeForm(this.formObj)) const result = await soilTest.equipPage(this.$serializeForm(this.formObj))
if (result) { if (result) {
console.log(result) console.log(result)
......
...@@ -41,7 +41,7 @@ const Iframe = { ...@@ -41,7 +41,7 @@ const Iframe = {
modalDiv.className = 'record-modal' modalDiv.className = 'record-modal'
// 设置属性 // 设置属性
$(modalDiv).css({ $(modalDiv).css({
'z-index': '3000', 'z-index': '2147483647',
left: '0', left: '0',
top: '0', top: '0',
height: windowHeight, height: windowHeight,
......
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