Commit 4cd037d0 authored by 仇晓婷's avatar 仇晓婷

样式修改

parent 9c7e1b36
<template> <template>
<div class="end-issued"> <div class="end-issued">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :high="false" :height="tdHeight"></DataGrid> <DataGrid
:columns="columns"
ref="grid"
:action="action"
:conditions="easySearch"
:high="false"
:height="tdHeight"
></DataGrid>
<Modal v-model="detailModal" title="查看合格证" footer-hide width="1000" :mask-closable="false"> <Modal v-model="detailModal" title="查看合格证" footer-hide width="1000" :mask-closable="false">
<Detail @on-close="cancel" @on-ok="addOk" :eid="curId" /> <Detail @on-close="cancel" @on-ok="addOk" :eid="curId" />
</Modal> </Modal>
...@@ -8,10 +15,10 @@ ...@@ -8,10 +15,10 @@
</template> </template>
<script> <script>
import Api from '../api' import Api from "../api";
import Detail from './detail' import Detail from "./detail";
export default { export default {
name: 'index', name: "index",
components: { components: {
Detail Detail
}, },
...@@ -21,145 +28,145 @@ export default { ...@@ -21,145 +28,145 @@ export default {
detailModal: false, detailModal: false,
curId: 0, curId: 0,
modalInfo: false, modalInfo: false,
tdHeight:'', tdHeight: "",
rules: { rules: {
approveUser: [{ required: true, message: '必填', trigger: 'blur' }] approveUser: [{ required: true, message: "必填", trigger: "blur" }]
}, },
columns: [ columns: [
{ key: 'id', title: this.l('id'), hide: true, align: 'left' }, { key: "id", title: this.l("id"), hide: true, align: "left" },
// { // {
// type: 'selection', // type: 'selection',
// width: 60, // width: 60,
// align: 'center' // align: 'center'
// }, // },
{ {
key: 'mesCode', key: "mesCode",
title: this.l('mesCode'), title: this.l("mesCode"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'productName', key: "productName",
title: this.l('productName'), title: this.l("productName"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'drawnNumber', key: "drawnNumber",
title: this.l('drawnNumber'), title: this.l("drawnNumber"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'quantity', key: "quantity",
title: this.l('quantity'), title: this.l("quantity"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'productQuantity', key: "productQuantity",
title: this.l('productQuantity'), title: this.l("productQuantity"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'uncertificateQuantity', key: "uncertificateQuantity",
title: this.l('uncertificateQuantity'), title: this.l("uncertificateQuantity"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'actualFinishDate', key: "actualFinishDate",
title: this.l('actualFinishDate'), title: this.l("actualFinishDate"),
align: 'left', align: "left",
easy: true, easy: true,
high: true, high: true,
render: (h, params) => { render: (h, params) => {
return h( return h(
'span', "span",
params.row.actualFinishDate == '0001-01-01 00:00:00' params.row.actualFinishDate == "0001-01-01 00:00:00"
? '' ? ""
: params.row.actualFinishDate : params.row.actualFinishDate
) );
} }
}, },
{ {
key: 'productingPreparationPeople', key: "productingPreparationPeople",
title: this.l('productingPreparationPeople'), title: this.l("productingPreparationPeople"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'status', key: "status",
title: this.l('status'), title: this.l("status"),
align: 'left', align: "left",
easy: true, easy: true,
high: true, high: true,
code: 'plan.order.status' code: "plan.order.status"
}, },
{ {
title: '操作', title: "操作",
key: 'id', key: "id",
render: (h, params) => { render: (h, params) => {
return h('div', { class: 'action' }, [ return h("div", { class: "action" }, [
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { click: () => this.detail(params.row.id) } on: { click: () => this.detail(params.row.id) }
}, },
'查看合格证' "查看合格证"
) )
]) ]);
} }
} }
], ],
easySearch: { easySearch: {
keys: { op: 'mesCode', value: '', default: true }, keys: { op: "mesCode", value: "", default: true },
type: { op: 'Equal', value: 2 } type: { op: "Equal", value: 2 }
} }
} };
}, },
mounted() {}, mounted() {},
created() { created() {
this.tdHeight = window.innerHeight - 260 this.tdHeight = window.innerHeight - 200;
}, },
methods: { methods: {
addOk() { addOk() {
// this.$refs.grid.load() // this.$refs.grid.load()
this.detailModal = false this.detailModal = false;
this.curId = 0 this.curId = 0;
}, },
cancel() { cancel() {
this.curId = 0 this.curId = 0;
this.detailModal = false this.detailModal = false;
}, },
reload() { reload() {
this.$refs.grid.load() this.$refs.grid.load();
}, },
detail(id) { detail(id) {
this.detailModal = true this.detailModal = true;
this.curId = id this.curId = id;
}, },
// 列表title // 列表title
l(key) { l(key) {
let vkey = 'waitOpened' + '.' + key let vkey = "waitOpened" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
}, },
mounted() {}, mounted() {},
created() { created() {
this.tdHeight = window.innerHeight - 260 this.tdHeight = window.innerHeight - 200
}, },
methods: { methods: {
addOk() { addOk() {
......
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