d928a4af by 任超

style:发起申请

1 parent 026d25bc
......@@ -31,7 +31,6 @@ export function getNextNode (bsmSqyw) {
/*
业务办理-选择单元-根据条件进行列表查询
*/
//
export function getselectBdcdy (data) {
return request({
url: '/ywbl/ywsq/selectBdcdy',
......@@ -40,3 +39,13 @@ export function getselectBdcdy (data) {
})
}
/*
业务办理-发起业务申请流程
*/
export function startBusinessFlow (data) {
return request({
url: '/business/workFlow/startBusinessFlow',
method: 'post',
data
})
}
\ No newline at end of file
......
......@@ -45,7 +45,7 @@
<div class="from-clues-content">
<lb-table :page-size="pageData.pageSize" heightNumSetting :current-page.sync="pageData.currentPage"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
@selection-change="handleSelectionChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
</div>
......@@ -54,13 +54,14 @@
</template>
<script>
import { datas } from "../ywsqdata.js";
import { datas, sendThis } from "./ywsqdata.js";
import table from "@/utils/mixin/table";
import { getselectBdcdy } from "@/api/ywbl.js"
import { getselectBdcdy, startBusinessFlow } from "@/api/ywbl.js"
export default {
mixins: [table],
props: {
value: { type: Boolean, default: false },
bsmSqyw: { type: String, default: '' },
},
data () {
return {
......@@ -77,26 +78,52 @@ export default {
total: 0,
columns: datas.columns(),
data: []
}
},
bdcdyid: '',
bdcdyh: ''
}
},
watch: {
value (val) {
if (val) this.fetchData()
}
},
mounted () {
sendThis(this);
},
methods: {
fetchData () {
getselectBdcdy({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records
}
})
if (this.value) {
getselectBdcdy({ ...this.queryForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records
}
})
}
},
submitForm () {
this.$emit('input', false)
const { href } = this.$router.resolve('/fqsq')
window.open(href, '_blank');
if (this.bdcdyid == '') {
this.$message.error('请至少选择一条数据');
return
}
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdyid: this.bdcdyid,
bdcdyh: this.bdcdyh
}).then(res => {
this.$emit('input', false)
const { href } = this.$router.resolve('/fqsq')
window.open(href, '_blank');
})
},
closeDialog () {
this.$emit('input', false)
},
handleSelectionChange (val) {
this.bdcdyid = val.map(item => item.dyhbsm ? item.dyhbsm : '').join(',')
this.bdcdyh = val.map(item => item.bdcdyh ? item.bdcdyh : '').join(',')
}
}
}
......
......@@ -17,7 +17,14 @@ class data extends filter {
{
label: '序号',
type: 'index',
width: '50'
width: '50',
render: (h, scope) => {
return (
<div>
{(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
</div>
)
}
},
{
prop: "status",
......@@ -63,4 +70,5 @@ class data extends filter {
let datas = new data()
export {
datas,
sendThis
}
......
......@@ -63,7 +63,7 @@
<el-button type="primary" :disabled="btnDisabled" @click="btnClick()">选择不动产信息</el-button>
</div>
</div>
<choiceDialog v-model="isDialog" />
<choiceDialog v-model="isDialog" :bsmSqyw="bsmSqyw" />
</div>
</template>
<script>
......@@ -87,6 +87,7 @@ export default {
}
],
djqxList: [],
bsmSqyw: '',
isDialog: false,
btnDisabled: true
}
......@@ -125,6 +126,7 @@ export default {
item.cselect = !item.cselect
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
}
},
handleList (list, obj) {
......@@ -165,6 +167,7 @@ export default {
this.$set(item, 'select', true)
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
} else {
this.getNextNode(item.bsmSqyw)
}
......