fccdd3f2 by 任超

style:证书入库

1 parent 0378e6e1
......@@ -5,4 +5,4 @@ NODE_ENV=development
VUE_APP_BASE_API = '/bdcdj'
# 开发环境
VUE_APP_API_BASE_URL = 'http://192.168.2.44:8018'
VUE_APP_API_BASE_URL = 'http://192.168.2.95:8018'
......
......@@ -30,7 +30,7 @@
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"connect": "3.6.6",
"element-ui": "^2.15.6",
"element-ui": "^2.15.8",
"html-webpack-plugin": "3.2.0",
"runjs": "4.3.2",
"sass-loader": "8.0.2",
......
......@@ -26,7 +26,8 @@ export function zsrk (data) {
return request({
url: '/sys/zsgl/zsrk',
method: 'post',
data
data,
showLoading: true
})
}
/*
......
......@@ -218,7 +218,7 @@ aside {
}
.width100 {
width: 100%;
width: 100%!important;
}
.sub-navbar {
......
......@@ -63,7 +63,7 @@
</div>
</template>
<script>
import zsylDialog from "./zsyl";
import zsylDialog from "./zsyl.vue";
import { getBdcqzList, invalidCertificate } from "@/api/fqsq.js";
export default {
......
......@@ -6,13 +6,13 @@
<el-row>
<el-col :span="5">
<el-form-item label="入库编号">
<el-input v-model="approveForm.batchno" clearable placeholder="入库编号"></el-input>
<el-input v-model="ruleForm.batchno" clearable placeholder="入库编号"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="人库时间">
<el-date-picker v-model="ruleForm.rksj" type="datetimerange" range-separator="至" start-placeholder="开始日期"
end-placeholder="结束日期" @change="timeChange()" value-format="yyyy-MM-dd HH:mm:ss" clearable >
end-placeholder="结束日期" @change="timeChange()" value-format="yyyy-MM-dd HH:mm:ss" clearable>
</el-date-picker>
</el-form-item>
</el-col>
......@@ -32,17 +32,17 @@
:data="tableData.data">
</lb-table>
</div>
<addDialog ref="addDialog" v-model="isDialog"/>
<addDialog ref="addDialog" v-model="isDialog" />
</div>
</template>
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./zsrkdata";
import addDialog from "./components/addDialog.vue"
import { getZsglrkList ,removeZsgl,verifyZsrk} from "@/api/zsgl.js"
import { getZsglrkList, removeZsgl, verifyZsrk } from "@/api/zsgl.js"
export default {
name: "zsrk",
components: {addDialog},
components: { addDialog },
mixins: [table],
mounted () {
sendThis(this);
......@@ -51,9 +51,7 @@ export default {
return {
isDialog: false,
ruleForm: {
rksj: ''
},
approveForm: {
rksj: '',
batchno: '',
rkkssj: '',
rkjssj: ''
......@@ -66,12 +64,9 @@ export default {
};
},
methods: {
init (e) {
this.fetchData()
},
// 列表渲染接口
fetchData () {
getZsglrkList({ ...this.approveForm, ...this.pageData }).then(res => {
getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
......@@ -80,36 +75,36 @@ export default {
})
},
openDialog () {
this.isDialog = true;
this.$nextTick(()=> {
this.$nextTick(() => {
this.$refs.addDialog.ywhSerial();
this.isDialog = true;
})
},
queryClick () {
this.fetchData()
},
//修改筛选时间
timeChange() {
timeChange (val) {
if (this.ruleForm.rksj != null) {
this.approveForm.rkkssj = this.ruleForm.rksj[0];
this.approveForm.rkjssj = this.ruleForm.rksj[1];
this.ruleForm.rkkssj = this.ruleForm.rksj[0];
this.ruleForm.rkjssj = this.ruleForm.rksj[1];
} else {
this.approveForm.rkkssj = ''
this.approveForm.rkjssj = ''
this.ruleForm.rkkssj = ''
this.ruleForm.rkjssj = ''
}
},
//删除证书入库数据
delZsrk(item){
delZsrk (item) {
this.$confirm('确定要删除吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
removeZsgl({"bsmBatch":item.bsmBatch}).then(res => {
if(res.code == 200){
removeZsgl({ "bsmBatch": item.bsmBatch }).then(res => {
if (res.code == 200) {
this.$message.success("删除成功")
this.fetchData();
}else{
} else {
this.$message.error(res.message)
}
})
......@@ -121,17 +116,17 @@ export default {
});
},
//审核证书入库数据
confrimVerify(item){
confrimVerify (item) {
this.$confirm('审核是否通过', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
verifyZsrk({"bsmBatch":item.bsmBatch}).then(res => {
if(res.code == 200){
verifyZsrk({ "bsmBatch": item.bsmBatch }).then(res => {
if (res.code == 200) {
this.$message.success("审核成功")
this.fetchData();
}else{
} else {
this.$message.error(res.message)
}
})
......