|
@@ -36,137 +36,137 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import option from "./config/application.json";
|
|
|
-import { getBillList } from "@/api/financialManagement/paymentRequest";
|
|
|
+ import option from "./config/application.json";
|
|
|
+ import { getBillList } from "@/api/financialManagement/paymentRequest";
|
|
|
|
|
|
-export default {
|
|
|
- name: "billApplication",
|
|
|
- props:{
|
|
|
- billType:{
|
|
|
- type:String
|
|
|
- },
|
|
|
- choceApplication: {
|
|
|
- type: Function
|
|
|
- }
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- loading : false,
|
|
|
- form: {},
|
|
|
- search:{},
|
|
|
- show:true,
|
|
|
- detailData:{},
|
|
|
- option: option,
|
|
|
- parentId:0,
|
|
|
- dataList: [],
|
|
|
- page: {
|
|
|
- pageSize: 10,
|
|
|
- pagerCount: 5,
|
|
|
- total: 0,
|
|
|
- },
|
|
|
- query:{},
|
|
|
- configuration:{
|
|
|
- multipleChoices:false,
|
|
|
- multiple:false,
|
|
|
- disabled:false,
|
|
|
- searchShow:true,
|
|
|
- collapseTags:false,
|
|
|
- clearable:true,
|
|
|
- placeholder:'请点击右边按钮选择',
|
|
|
- dicData:[]
|
|
|
+ export default {
|
|
|
+ name: "billApplication",
|
|
|
+ props:{
|
|
|
+ billType:{
|
|
|
+ type:String
|
|
|
},
|
|
|
- breakConfiguration:{
|
|
|
- multipleChoices:false,
|
|
|
- multiple:false,
|
|
|
- disabled:false,
|
|
|
- searchShow:true,
|
|
|
- collapseTags:false,
|
|
|
- clearable:true,
|
|
|
- placeholder:'请点击右边按钮选择',
|
|
|
- dicData:[]
|
|
|
- },
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
-
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- option.height = window.innerHeight - 200 ;
|
|
|
- },
|
|
|
- methods: {
|
|
|
- //新单打开
|
|
|
- addReceipt(row){
|
|
|
- this.detailData = {
|
|
|
- id: row.id,
|
|
|
- status: 1
|
|
|
- };
|
|
|
- this.show = false;
|
|
|
- },
|
|
|
- //编辑打开
|
|
|
- editOpen(row, status){
|
|
|
- this.detailData = {
|
|
|
- id: row.id,
|
|
|
- status: status
|
|
|
- };
|
|
|
- this.show = false;
|
|
|
- },
|
|
|
- rowDel(row, index, done) {
|
|
|
- if(row.id){
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- remove(row.id).then(res =>{
|
|
|
- if(res.data.success){
|
|
|
- this.$message.success("操作成功!");
|
|
|
- this.onLoad(this.page);
|
|
|
- }
|
|
|
- })
|
|
|
- });
|
|
|
+ choceApplication: {
|
|
|
+ type: Function
|
|
|
}
|
|
|
},
|
|
|
- //点击搜索按钮触发
|
|
|
- searchChange(params, done) {
|
|
|
- this.query = params;
|
|
|
- this.page.currentPage = 1;
|
|
|
- this.onLoad(this.page, params);
|
|
|
- done()
|
|
|
- },
|
|
|
- searchReset() {
|
|
|
- console.log('1')
|
|
|
- },
|
|
|
- selectionChange() {
|
|
|
- console.log('1')
|
|
|
- },
|
|
|
- currentChange() {
|
|
|
- console.log('1')
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ loading : false,
|
|
|
+ form: {},
|
|
|
+ search:{},
|
|
|
+ show:true,
|
|
|
+ detailData:{},
|
|
|
+ option: option,
|
|
|
+ parentId:0,
|
|
|
+ dataList: [],
|
|
|
+ page: {
|
|
|
+ pageSize: 10,
|
|
|
+ pagerCount: 5,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
+ query:{},
|
|
|
+ configuration:{
|
|
|
+ multipleChoices:false,
|
|
|
+ multiple:false,
|
|
|
+ disabled:false,
|
|
|
+ searchShow:true,
|
|
|
+ collapseTags:false,
|
|
|
+ clearable:true,
|
|
|
+ placeholder:'请点击右边按钮选择',
|
|
|
+ dicData:[]
|
|
|
+ },
|
|
|
+ breakConfiguration:{
|
|
|
+ multipleChoices:false,
|
|
|
+ multiple:false,
|
|
|
+ disabled:false,
|
|
|
+ searchShow:true,
|
|
|
+ collapseTags:false,
|
|
|
+ clearable:true,
|
|
|
+ placeholder:'请点击右边按钮选择',
|
|
|
+ dicData:[]
|
|
|
+ },
|
|
|
+ }
|
|
|
},
|
|
|
- sizeChange() {
|
|
|
- console.log('1')
|
|
|
+ created() {
|
|
|
+
|
|
|
},
|
|
|
- refreshChange() {
|
|
|
- console.log('1')
|
|
|
+ mounted() {
|
|
|
+ option.height = window.innerHeight - 200 ;
|
|
|
},
|
|
|
- onLoad(page, params = {}) {
|
|
|
- this.loading = true;
|
|
|
- if (params.createTime != undefined) { //合同
|
|
|
- params.createStartDate = params.createTime[0]+ " " + "00:00:00";
|
|
|
- params.createEndDate = params.createTime[1] + " " + "23:59:59";
|
|
|
- this.$delete(params,'createTime')
|
|
|
+ methods: {
|
|
|
+ //新单打开
|
|
|
+ addReceipt(row){
|
|
|
+ this.detailData = {
|
|
|
+ id: row.id,
|
|
|
+ status: 1
|
|
|
+ };
|
|
|
+ this.show = false;
|
|
|
+ },
|
|
|
+ //编辑打开
|
|
|
+ editOpen(row, status){
|
|
|
+ this.detailData = {
|
|
|
+ id: row.id,
|
|
|
+ status: status
|
|
|
+ };
|
|
|
+ this.show = false;
|
|
|
+ },
|
|
|
+ rowDel(row, index, done) {
|
|
|
+ if(row.id){
|
|
|
+ this.$confirm("确定将选择数据删除?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ remove(row.id).then(res =>{
|
|
|
+ if(res.data.success){
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.onLoad(this.page);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //点击搜索按钮触发
|
|
|
+ searchChange(params, done) {
|
|
|
+ this.query = params;
|
|
|
+ this.page.currentPage = 1;
|
|
|
+ this.onLoad(this.page, params);
|
|
|
+ done()
|
|
|
+ },
|
|
|
+ searchReset() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ selectionChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ currentChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ sizeChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ refreshChange() {
|
|
|
+ console.log('1')
|
|
|
+ },
|
|
|
+ onLoad(page, params = {}) {
|
|
|
+ this.loading = true;
|
|
|
+ if (params.createTime != undefined) { //合同
|
|
|
+ params.createStartDate = params.createTime[0]+ " " + "00:00:00";
|
|
|
+ params.createEndDate = params.createTime[1] + " " + "23:59:59";
|
|
|
+ this.$delete(params,'createTime')
|
|
|
+ }
|
|
|
+ getBillList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
+ this.dataList = res.data.data.records
|
|
|
+ this.page.total = res.data.data.total
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goBack() {
|
|
|
+ this.detailData=this.$options.data().detailData
|
|
|
+ this.show = true;
|
|
|
}
|
|
|
- getBillList(page.currentPage, page.pageSize,params).then(res=>{
|
|
|
- this.dataList = res.data.data.records
|
|
|
- this.page.total = res.data.data.total
|
|
|
- this.loading = false;
|
|
|
- })
|
|
|
- },
|
|
|
- goBack() {
|
|
|
- this.detailData=this.$options.data().detailData
|
|
|
- this.show = true;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|