Commit 33b2cb34 by yangchen

新增按钮:工会_大额请款单_批量填充

parent 550e3dd8
This source diff could not be displayed because it is too large. You can view the blob instead.
<style scoped lang="less">
.scrollable {
/*height: 700px;*/
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 7px;
}
::-webkit-scrollbar-thumb {
opacity: 0.5;
border-radius: 3.5px;
background-color: #888888;
}
.from-second-title {
height: 16px;
line-height: 16px;
margin-left: 24px;
/*margin: 15px 0;*/
margin-bottom: 15px;
padding-left: 4px;
border-left: 2px solid #3477cb;
}
.title {
font-family: Microsoft YaHei;
margin-left: 4px;
font-size: 14px;
color: #222222;
letter-spacing: 0;
text-align: left;
}
</style>
<template>
<div class="modal_content">
<Modal
v-model="modal_visible"
title="批量填充"
@on-cancel="cancel"
:mask-closable="false"
>
<Form ref='form' :model="cashOutDetail" :label-width="120" :rules="ruleValidate">
<FormItem label="请款金额下限" prop="QKJEXX">
<Input
number
v-model="cashOutDetail.QKJEXX"
placeholder="请输入请款金额下限"
></Input>
</FormItem>
<FormItem label="是否请款" prop="SFQK">
<i-switch v-model="cashOutDetail.SFQK" size="large">
<template #open>
<span></span>
</template>
<template #close>
<span></span>
</template>
</i-switch>
</FormItem>
</Form>
<div slot="footer">
<Button @click="cancel">取消</Button>
<Button type="primary" :loading="loading" @click="handleSubmit">确定</Button>
</div>
</Modal>
</div>
</template>
<script>
export default {
data() {
return {
modal_visible: false,
loading: false,
cashOutDetail: {
SFQK: true,
QKJEXX: 300000,
},
ruleValidate: {
QKJEXX: [
{
required: true,
type: "number",
message: "请输入数值类型的请款金额下限",
trigger: "blur",
},
],
SFQK: [
{
required: true,
type: "boolean",
message: "是否请款为必填项",
trigger: "change",
},
],
},
};
},
methods: {
cancel() {
this.modal_visible = false;
this.$emit('close')
},
handleSubmit() {
this.$refs["form"].validate((valid) => {
if (valid) {
this.loading = true
const param ={
idList: this.idList,
cashOutDetail: this.cashOutDetail,
billDefine: this.billDefine
}
GMS.$http.post('/rbcquery/batchUpdateCashOut',param).then(res=>{
GMS.vbus.$emit('custom-query-refresh');
GMS.vbus.$emit('tab-count-refresh');
this.loading = false
this.modal_visible = false;
setTimeout(() => {
if(this.context && this.context.callback){
this.context.callback(true);
}
GMS.$hideContainer.$Message.success('批量填充设置成功');
this.$emit('close')
}, 500);
},error=>{
this.loading = false
GMS.$hideContainer.$Message.error('批量填充设置失败')
})
} else {
GMS.$hideContainer.$Message.error('参数输入不合规')
}
});
},
},
watch: {},
};
</script>
......@@ -1334,6 +1334,17 @@ export default {
},
"description": "",
"title": "自定义删除"
},
{
"value": "DEQKD_batchEditorAction",
"discard": false,
"path": "工会",
"extends": {
"paramDes": [
]
},
"description": "",
"title": "批量填充"
}
],
billAction: [
......
......@@ -71,6 +71,7 @@ import refreshTransactionStatus from "./query-actions/payments/refreshTransactio
import throughQuery from "./query-actions/throughQuery";
import queryDeleteBill from "./query-actions/queryDeleteBill";
import openNewPageDetail from "./query-actions/openNewPageDetail";
import DEQKD_batchEditorAction from "./query-actions/DEQKD_batchEditorAction";
//control
import applyDetail from './control/applyDetail';
import linkShowDetail from './control/linkShowDetail';
......@@ -213,7 +214,8 @@ export default {
openNewPageDetail,
GH_agreeAction,
GH_rejectAction,
GH_submitAction
GH_submitAction,
DEQKD_batchEditorAction
},
billAction: {
printMultiAction,
......
import batchEditorControlModal from '../control/DEQKD_batchEditorModal.vue'
export default {
execute(context, param) {
const tableSelection = context.selects || []
// 未选择table行->请选择填充的行
if (tableSelection.length === 0) {
GMS.$hideContainer.$Message['info']({
content: '请先选择将要填充的行',
});
return
}
const idList = tableSelection.map(d=>d.id)
const billDefine = tableSelection[0].billDefine
let component = null;
let name = GMS.$hideContainer.addComponent(batchEditorControlModal, {}, function (c) {
component = c;
c.context = context
c.modal_visible = true;
c.idList = idList
c.billDefine = billDefine
c.$nextTick(()=>{
component.$on('close', function () {
GMS.$hideContainer.remove(name);
})
})
});
},
};
\ No newline at end of file
{
"name": "@rbc/runner-bill-form",
"version": "0.1.9",
"version": "0.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -1825,6 +1825,44 @@
"integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"debug": {
"version": "4.3.3",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/debug/-/debug-4.3.3.tgz",
......@@ -1834,6 +1872,25 @@
"ms": "2.1.2"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"ms": {
"version": "2.1.2",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/ms/-/ms-2.1.2.tgz",
......@@ -1848,6 +1905,28 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -11521,87 +11600,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha1-1D5nXe9bqTRdbH8FkUwT2GGZcIc=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.2",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/loader-utils/-/loader-utils-2.0.2.tgz",
"integrity": "sha1-1uO0+4GHByGuTghoqxHdY4NowSk=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.5.3",
"resolved": "http://nvwa.jiuqi.com.cn/nexus/repository/npm-gov-group/vue-router/-/vue-router-3.5.3.tgz",
......
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