fccdd3f2 by 任超

style:证书入库

1 parent 0378e6e1
...@@ -5,4 +5,4 @@ NODE_ENV=development ...@@ -5,4 +5,4 @@ NODE_ENV=development
5 VUE_APP_BASE_API = '/bdcdj' 5 VUE_APP_BASE_API = '/bdcdj'
6 6
7 # 开发环境 7 # 开发环境
8 VUE_APP_API_BASE_URL = 'http://192.168.2.44:8018' 8 VUE_APP_API_BASE_URL = 'http://192.168.2.95:8018'
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 "babel-plugin-dynamic-import-node": "2.3.3", 30 "babel-plugin-dynamic-import-node": "2.3.3",
31 "chalk": "2.4.2", 31 "chalk": "2.4.2",
32 "connect": "3.6.6", 32 "connect": "3.6.6",
33 "element-ui": "^2.15.6", 33 "element-ui": "^2.15.8",
34 "html-webpack-plugin": "3.2.0", 34 "html-webpack-plugin": "3.2.0",
35 "runjs": "4.3.2", 35 "runjs": "4.3.2",
36 "sass-loader": "8.0.2", 36 "sass-loader": "8.0.2",
......
...@@ -26,7 +26,8 @@ export function zsrk (data) { ...@@ -26,7 +26,8 @@ export function zsrk (data) {
26 return request({ 26 return request({
27 url: '/sys/zsgl/zsrk', 27 url: '/sys/zsgl/zsrk',
28 method: 'post', 28 method: 'post',
29 data 29 data,
30 showLoading: true
30 }) 31 })
31 } 32 }
32 /* 33 /*
......
...@@ -218,7 +218,7 @@ aside { ...@@ -218,7 +218,7 @@ aside {
218 } 218 }
219 219
220 .width100 { 220 .width100 {
221 width: 100%; 221 width: 100%!important;
222 } 222 }
223 223
224 .sub-navbar { 224 .sub-navbar {
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
63 </div> 63 </div>
64 </template> 64 </template>
65 <script> 65 <script>
66 import zsylDialog from "./zsyl"; 66 import zsylDialog from "./zsyl.vue";
67 import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js"; 67 import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js";
68 68
69 export default { 69 export default {
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
6 <el-row> 6 <el-row>
7 <el-col :span="5"> 7 <el-col :span="5">
8 <el-form-item label="入库编号"> 8 <el-form-item label="入库编号">
9 <el-input v-model="approveForm.batchno" clearable placeholder="入库编号"></el-input> 9 <el-input v-model="ruleForm.batchno" clearable placeholder="入库编号"></el-input>
10 </el-form-item> 10 </el-form-item>
11 </el-col> 11 </el-col>
12 <el-col :span="8"> 12 <el-col :span="8">
13 <el-form-item label="人库时间"> 13 <el-form-item label="人库时间">
14 <el-date-picker v-model="ruleForm.rksj" type="datetimerange" range-separator="至" start-placeholder="开始日期" 14 <el-date-picker v-model="ruleForm.rksj" type="datetimerange" range-separator="至" start-placeholder="开始日期"
15 end-placeholder="结束日期" @change="timeChange()" value-format="yyyy-MM-dd HH:mm:ss" clearable > 15 end-placeholder="结束日期" @change="timeChange()" value-format="yyyy-MM-dd HH:mm:ss" clearable>
16 </el-date-picker> 16 </el-date-picker>
17 </el-form-item> 17 </el-form-item>
18 </el-col> 18 </el-col>
...@@ -32,17 +32,17 @@ ...@@ -32,17 +32,17 @@
32 :data="tableData.data"> 32 :data="tableData.data">
33 </lb-table> 33 </lb-table>
34 </div> 34 </div>
35 <addDialog ref="addDialog" v-model="isDialog"/> 35 <addDialog ref="addDialog" v-model="isDialog" />
36 </div> 36 </div>
37 </template> 37 </template>
38 <script> 38 <script>
39 import table from "@/utils/mixin/table"; 39 import table from "@/utils/mixin/table";
40 import { datas, sendThis } from "./zsrkdata"; 40 import { datas, sendThis } from "./zsrkdata";
41 import addDialog from "./components/addDialog.vue" 41 import addDialog from "./components/addDialog.vue"
42 import { getZsglrkList ,removeZsgl,verifyZsrk} from "@/api/zsgl.js" 42 import { getZsglrkList, removeZsgl, verifyZsrk } from "@/api/zsgl.js"
43 export default { 43 export default {
44 name: "zsrk", 44 name: "zsrk",
45 components: {addDialog}, 45 components: { addDialog },
46 mixins: [table], 46 mixins: [table],
47 mounted () { 47 mounted () {
48 sendThis(this); 48 sendThis(this);
...@@ -51,9 +51,7 @@ export default { ...@@ -51,9 +51,7 @@ export default {
51 return { 51 return {
52 isDialog: false, 52 isDialog: false,
53 ruleForm: { 53 ruleForm: {
54 rksj: '' 54 rksj: '',
55 },
56 approveForm: {
57 batchno: '', 55 batchno: '',
58 rkkssj: '', 56 rkkssj: '',
59 rkjssj: '' 57 rkjssj: ''
...@@ -66,12 +64,9 @@ export default { ...@@ -66,12 +64,9 @@ export default {
66 }; 64 };
67 }, 65 },
68 methods: { 66 methods: {
69 init (e) {
70 this.fetchData()
71 },
72 // 列表渲染接口 67 // 列表渲染接口
73 fetchData () { 68 fetchData () {
74 getZsglrkList({ ...this.approveForm, ...this.pageData }).then(res => { 69 getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => {
75 if (res.code === 200) { 70 if (res.code === 200) {
76 let { total, records } = res.result 71 let { total, records } = res.result
77 this.tableData.total = total; 72 this.tableData.total = total;
...@@ -80,36 +75,36 @@ export default { ...@@ -80,36 +75,36 @@ export default {
80 }) 75 })
81 }, 76 },
82 openDialog () { 77 openDialog () {
83 this.isDialog = true; 78 this.$nextTick(() => {
84 this.$nextTick(()=> {
85 this.$refs.addDialog.ywhSerial(); 79 this.$refs.addDialog.ywhSerial();
80 this.isDialog = true;
86 }) 81 })
87 }, 82 },
88 queryClick () { 83 queryClick () {
89 this.fetchData() 84 this.fetchData()
90 }, 85 },
91 //修改筛选时间 86 //修改筛选时间
92 timeChange() { 87 timeChange (val) {
93 if (this.ruleForm.rksj != null) { 88 if (this.ruleForm.rksj != null) {
94 this.approveForm.rkkssj = this.ruleForm.rksj[0]; 89 this.ruleForm.rkkssj = this.ruleForm.rksj[0];
95 this.approveForm.rkjssj = this.ruleForm.rksj[1]; 90 this.ruleForm.rkjssj = this.ruleForm.rksj[1];
96 } else { 91 } else {
97 this.approveForm.rkkssj = '' 92 this.ruleForm.rkkssj = ''
98 this.approveForm.rkjssj = '' 93 this.ruleForm.rkjssj = ''
99 } 94 }
100 }, 95 },
101 //删除证书入库数据 96 //删除证书入库数据
102 delZsrk(item){ 97 delZsrk (item) {
103 this.$confirm('确定要删除吗, 是否继续?', '提示', { 98 this.$confirm('确定要删除吗, 是否继续?', '提示', {
104 confirmButtonText: '确定', 99 confirmButtonText: '确定',
105 cancelButtonText: '取消', 100 cancelButtonText: '取消',
106 type: 'warning' 101 type: 'warning'
107 }).then(() => { 102 }).then(() => {
108 removeZsgl({"bsmBatch":item.bsmBatch}).then(res => { 103 removeZsgl({ "bsmBatch": item.bsmBatch }).then(res => {
109 if(res.code == 200){ 104 if (res.code == 200) {
110 this.$message.success("删除成功") 105 this.$message.success("删除成功")
111 this.fetchData(); 106 this.fetchData();
112 }else{ 107 } else {
113 this.$message.error(res.message) 108 this.$message.error(res.message)
114 } 109 }
115 }) 110 })
...@@ -121,17 +116,17 @@ export default { ...@@ -121,17 +116,17 @@ export default {
121 }); 116 });
122 }, 117 },
123 //审核证书入库数据 118 //审核证书入库数据
124 confrimVerify(item){ 119 confrimVerify (item) {
125 this.$confirm('审核是否通过', '提示', { 120 this.$confirm('审核是否通过', '提示', {
126 confirmButtonText: '确定', 121 confirmButtonText: '确定',
127 cancelButtonText: '取消', 122 cancelButtonText: '取消',
128 type: 'warning' 123 type: 'warning'
129 }).then(() => { 124 }).then(() => {
130 verifyZsrk({"bsmBatch":item.bsmBatch}).then(res => { 125 verifyZsrk({ "bsmBatch": item.bsmBatch }).then(res => {
131 if(res.code == 200){ 126 if (res.code == 200) {
132 this.$message.success("审核成功") 127 this.$message.success("审核成功")
133 this.fetchData(); 128 this.fetchData();
134 }else{ 129 } else {
135 this.$message.error(res.message) 130 this.$message.error(res.message)
136 } 131 }
137 }) 132 })
......