Commit a76aab3c authored by 许珑标's avatar 许珑标

安全发签约及合作机构账号分配

parent c75b12c6
...@@ -62,3 +62,14 @@ export function getAccAliInfo(cardNo) { ...@@ -62,3 +62,14 @@ export function getAccAliInfo(cardNo) {
} }
}) })
} }
// 查询阿里账本详细信息
export function getTaxAccAliInfo(cardNo) {
return request({
url: '/business/unitAccInfo/detail',
method: 'get',
params: {
cardNo: cardNo
}
})
}
...@@ -9,6 +9,15 @@ export function listCompanyInfo(query) { ...@@ -9,6 +9,15 @@ export function listCompanyInfo(query) {
}) })
} }
// 查询没有开发信息的全部自有付款主体
export function allHasNoOpenInfoCompany(query) {
return request({
url: '/business/companyInfo/hasNoOpenInfo/listAll',
method: 'get',
params: query
})
}
// 查询付款主体信息所有列表 // 查询付款主体信息所有列表
export function listAllCompanyInfo(query) { export function listAllCompanyInfo(query) {
return request({ return request({
...@@ -51,3 +60,14 @@ export function delCompanyInfo(id) { ...@@ -51,3 +60,14 @@ export function delCompanyInfo(id) {
method: 'get' method: 'get'
}) })
} }
// 绑定发薪账户
export function bindCompanyAcc(companyId) {
return request({
url: '/business/companyInfo/acc/bind',
method: 'post',
data: {
id: companyId
}
})
}
...@@ -59,3 +59,11 @@ export function agreeSign(id) { ...@@ -59,3 +59,11 @@ export function agreeSign(id) {
method: 'post' method: 'post'
}) })
} }
// 删除代发合约签订
export function giveAccToLabor(laborId) {
return request({
url: '/business/unitInfo/acc/give/' + laborId,
method: 'post'
})
}
...@@ -27,6 +27,14 @@ export function listAllUnitInfo(query) { ...@@ -27,6 +27,14 @@ export function listAllUnitInfo(query) {
}) })
} }
// 查询所有没有签约安全发的税地单位信息列表
export function listAllHasNoOpenInfo() {
return request({
url: '/business/unitInfo/hasNoOpenInfo/listAll',
method: 'get',
})
}
// 查询税地单位信息详细 // 查询税地单位信息详细
export function getUnitInfo(id) { export function getUnitInfo(id) {
return request({ return request({
...@@ -86,3 +94,23 @@ export function listToSignUnit(query) { ...@@ -86,3 +94,23 @@ export function listToSignUnit(query) {
params: query params: query
}) })
} }
// 绑定发薪账户
export function bindUnitAcc(unitId) {
return request({
url: '/business/unitInfo/acc/bind',
method: 'post',
data: {
id: unitId
}
})
}
// 查询税地单位信息所有列表
export function listAllUnitAccInfo(query) {
return request({
url: '/business/unitAccInfo/listAll',
method: 'get',
params: query
})
}
...@@ -389,13 +389,39 @@ ...@@ -389,13 +389,39 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 绑定账户 -- 外部-->
<el-dialog title="绑定账户" :visible.sync="bindAcc.panel" width="80%"> <el-dialog title="绑定账户" :visible.sync="bindAcc.panel" width="80%">
<tax-sign-component></tax-sign-component> <tax-sign-component></tax-sign-component>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="bindAcc.panel = false">关 闭</el-button> <el-button @click="bindAcc.panel = false">关 闭</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 绑定账户 - 自有账户-->
<el-dialog title="绑定账户" :visible.sync="openSign.panel" width="300">
<el-form label-width="80px">
<el-form-item label="账户主体">
<el-select v-model="openSign.companyId" placeholder="请选择账户对应的企业主体">
<el-option v-for="item in openSign.companyList" :label="item.companyName" :value="item.id"/>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitBind">确定</el-button>
<el-button @click="openSign.panel = false">关 闭</el-button>
</div>
</el-dialog>
<el-dialog title="扫码签约" :visible.sync="openSign.codePanel" width="300px" style="text-align: center">
<h3>1、请打开对应企业的支付宝</h3>
<h3>2、扫描下方二维码</h3>
<qr-code-component :text="openSign.codeUrl" />
<h3>操作完成后大约5-10分钟</h3>
<h3>可刷新页面查看结果</h3>
<div slot="footer" class="dialog-footer">
<el-button @click="openSign.codePanel = false">关 闭</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -407,11 +433,20 @@ import { addDateRange } from '@/utils/ruoyi' ...@@ -407,11 +433,20 @@ import { addDateRange } from '@/utils/ruoyi'
import { formatDate } from '@/utils' import { formatDate } from '@/utils'
import QrCodeComponent from '@/components/QrCode.vue' import QrCodeComponent from '@/components/QrCode.vue'
import TaxSignComponent from '@/views/business/salaryAccount/taxSignComponent.vue' import TaxSignComponent from '@/views/business/salaryAccount/taxSignComponent.vue'
import { bindUnitAcc, listAllHasNoOpenInfo } from '@/api/business/unitInfo'
import { allHasNoOpenInfoCompany, bindCompanyAcc } from '@/api/business/companyInfo'
export default { export default {
name: 'SalaryAccount', name: 'SalaryAccount',
components: { TaxSignComponent, QrCodeComponent, AccSelect }, components: { TaxSignComponent, QrCodeComponent, AccSelect },
data() { data() {
return { return {
openSign: {
panel: false,
companyId: null,
companyList: [],
codePanel: false,
codeUrl: '',
},
bindAcc: { bindAcc: {
panel: false, panel: false,
...@@ -666,8 +701,26 @@ export default { ...@@ -666,8 +701,26 @@ export default {
}) })
}, },
goRegister() { goRegister() {
window.open('https://admins.openbanks.cn/#/register?parameters=MPf%2Flhts8VrGmGDCjFNey4AqyYOJk1pQAc0KS6cZqp2QcvSNrm9LqLlqELVUfoVT', '_blank') allHasNoOpenInfoCompany().then(resp => {
if (200 === resp.code) {
this.openSign.companyList = resp.data
}
}).finally(() => {
this.openSign.panel = true
})
}, },
submitBind() {
this.$modal.loading()
bindCompanyAcc(this.openSign.companyId).then(resp => {
if (200 === resp.code) {
this.openSign.codePanel = true;
this.openSign.codeUrl = resp.data
}
}).finally(() => {
this.$modal.closeLoading()
this.openSign.panel = false;
})
}
} }
} }
</script> </script>
......
...@@ -197,6 +197,9 @@ export default { ...@@ -197,6 +197,9 @@ export default {
} }
}, },
created() { created() {
},
mounted() {
this.getList() this.getList()
}, },
methods: { methods: {
......
This diff is collapsed.
...@@ -57,14 +57,15 @@ ...@@ -57,14 +57,15 @@
v-hasPermi="['business:laborSign:add']" v-hasPermi="['business:laborSign:add']"
>签约合约 >签约合约
</el-button> </el-button>
<!-- <el-button--> <el-button
<!-- size="mini"--> size="mini"
<!-- type="text"--> type="text"
<!-- icon="el-icon-delete"--> icon="el-icon-lollipop"
<!-- @click="handleDelete(scope.row)"--> @click="givePayAcc(scope.row)"
<!-- v-hasPermi="['business:unitInfo:remove']"--> v-if="scope.row.signStatus && 2 === scope.row.signStatus && !scope.row.payAccNo"
<!-- >删除--> v-hasPermi="['business:unitInfo:add']"
<!-- </el-button>--> >分配账户
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -81,7 +82,7 @@ ...@@ -81,7 +82,7 @@
<script> <script>
import { querySignList } from '@/api/business/unitInfo' import { querySignList } from '@/api/business/unitInfo'
import { agreeSign } from '@/api/business/laborSign' import { agreeSign, giveAccToLabor } from '@/api/business/laborSign'
export default { export default {
name: 'signList', name: 'signList',
...@@ -147,6 +148,20 @@ export default { ...@@ -147,6 +148,20 @@ export default {
} }
}) })
}).catch(() => {}); }).catch(() => {});
},
givePayAcc(row) {
this.$confirm(`确认给${row.inviterName}的分配付款专户吗?`, '操作提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
giveAccToLabor(row.id).then(resp => {
if (200 === resp.code) {
this.$modal.msgSuccess("操作成功")
this.getList()
}
})
}).catch(() => {});
} }
} }
} }
......
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
</el-col> </el-col>
<el-col :span="12"><div class="grid-content bg-purple-light"></div></el-col> <el-col :span="12"><div class="grid-content bg-purple-light"></div></el-col>
</el-row> </el-row>
<!-- <div class="home">--> <div class="home">
<!-- <el-card class="margin-bottom-small">--> <el-card class="margin-bottom-small">
<!-- <div>--> <div>
<!-- &lt;!&ndash; <img src="@/assets/images/welcome.png" alt="welcome" />&ndash;&gt;--> <!-- <img src="@/assets/images/welcome.png" alt="welcome" />-->
<!-- <img src="@/assets/images/index-barder.png" alt="welcome" />--> <img src="@/assets/images/index-barder.png" alt="welcome" />
<!-- </div>--> </div>
<!-- </el-card>--> </el-card>
<!-- </div>--> </div>
</div> </div>
</template> </template>
......
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