Commit 825e10c2 by lichengming

添加了提交审批按钮

parent 3119f267
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<SoilSampleItemManage ref="sampleItemManage" @on-result-change="_page"></SoilSampleItemManage> <SoilSampleItemManage ref="sampleItemManage" @on-result-change="_page"></SoilSampleItemManage>
<DescribeDetailModal ref="writeDetailModal" @on-result-change="_page"></DescribeDetailModal> <DescribeDetailModal ref="writeDetailModal" @on-result-change="_page"></DescribeDetailModal>
<Reason ref="reasonModal" @on-result-change="_reasonResult"></Reason> <Reason ref="reasonModal" @on-result-change="_reasonResult"></Reason>
<SelectFlowRelBtn ref="flow"/>
</div> </div>
</template> </template>
<script> <script>
...@@ -72,11 +73,13 @@ import Reason from '../../../components/base/Reason' ...@@ -72,11 +73,13 @@ import Reason from '../../../components/base/Reason'
import { soilEntrust, soilSample } from '../../../api' import { soilEntrust, soilSample } from '../../../api'
import SoilSampleItemManage from '../SoilSampleItemManage' import SoilSampleItemManage from '../SoilSampleItemManage'
import DescribeDetailModal from '../sample-preparation/DescribeDetailModal' import DescribeDetailModal from '../sample-preparation/DescribeDetailModal'
import SelectFlowRelBtn from '../../meter-entrust/entrust-review/SelectFlowRelBtn'
export default { export default {
components: { components: {
SoilSampleItemManage, SoilSampleItemManage,
DescribeDetailModal, DescribeDetailModal,
Reason Reason,
SelectFlowRelBtn
}, },
data() { data() {
return { return {
...@@ -92,6 +95,11 @@ export default { ...@@ -92,6 +95,11 @@ export default {
type: 'error', type: 'error',
id: '', id: '',
name: '驳回' name: '驳回'
},
{
type: '',
id: 'prepare-check-submit-flow',
name: '提交评审'
} }
], ],
itemList: [], itemList: [],
...@@ -239,6 +247,9 @@ export default { ...@@ -239,6 +247,9 @@ export default {
case '通过': case '通过':
this._pass() this._pass()
break break
case '提交评审':
this._submit('prepare-check-submit-flow')
break
case '驳回': case '驳回':
this._back() this._back()
break break
...@@ -248,6 +259,9 @@ export default { ...@@ -248,6 +259,9 @@ export default {
} }
}) })
}, },
_submit(key) {
this.$refs.flow._open(key)
},
_back() { _back() {
// 退回 // 退回
if (this.selectIds.length === 0) { if (this.selectIds.length === 0) {
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
</div> </div>
</div> </div>
<Reason ref="reasonModal" @on-result-change="_reasonResult"></Reason> <Reason ref="reasonModal" @on-result-change="_reasonResult"></Reason>
<SelectFlowRelBtn ref="flow"/>
</div> </div>
</template> </template>
<script> <script>
...@@ -52,9 +53,11 @@ import Reason from '../../../../components/base/Reason' ...@@ -52,9 +53,11 @@ import Reason from '../../../../components/base/Reason'
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
import http from '../../../../api/http' import http from '../../../../api/http'
import { soilSample } from '../../../../api' import { soilSample } from '../../../../api'
import SelectFlowRelBtn from '../../../meter-entrust/entrust-review/SelectFlowRelBtn'
export default { export default {
components: { components: {
Reason Reason,
SelectFlowRelBtn
}, },
data() { data() {
return { return {
...@@ -75,6 +78,11 @@ export default { ...@@ -75,6 +78,11 @@ export default {
type: '', type: '',
id: '', id: '',
name: '驳回' name: '驳回'
},
{
type: '',
id: 'surplus-dispose-submit-flow',
name: '提交审批'
} }
// { type: '', id: '', name: '填写存放信息' }, // { type: '', id: '', name: '填写存放信息' },
// { type: '', id: '', name: '申请处理' }, // { type: '', id: '', name: '申请处理' },
...@@ -154,6 +162,9 @@ export default { ...@@ -154,6 +162,9 @@ export default {
case '通过': case '通过':
this._dispose() this._dispose()
break break
case '提交审批':
this._submit('surplus-dispose-submit-flow')
break
case '驳回': case '驳回':
this._disposeBack() this._disposeBack()
break break
...@@ -187,6 +198,9 @@ export default { ...@@ -187,6 +198,9 @@ export default {
break break
} }
}, },
_submit(key) {
this.$refs.flow._open(key)
},
// 通过 // 通过
_dispose() { _dispose() {
if (this.selectIds.length === 0) { if (this.selectIds.length === 0) {
......
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