From 649377c926979e7607960e0cf4c6d97d26080403 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期一, 29 十一月 2021 08:37:54 +0800
Subject: [PATCH] 报表
---
src/views/your/addOil-manage/addOilManage.vue | 75 ++++++++++++++++++++++++-------------
1 files changed, 48 insertions(+), 27 deletions(-)
diff --git a/src/views/your/addOil-manage/addOilManage.vue b/src/views/your/addOil-manage/addOilManage.vue
index e96119f..32d6b64 100644
--- a/src/views/your/addOil-manage/addOilManage.vue
+++ b/src/views/your/addOil-manage/addOilManage.vue
@@ -8,7 +8,6 @@
<Card>
<Row class="operation">
<Button @click="addOil" type="primary" icon="md-add">娣诲姞鍔犳补璁板綍</Button>
- <Button @click="delAll" icon="md-trash">鎵归噺鍒犻櫎</Button>
<Button @click="init" icon="md-refresh">鍒锋柊</Button>
<Button type="dashed" @click="openTip = !openTip">{{
openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�"
@@ -66,29 +65,46 @@
:label-width="80"
:rules="addOilFormValidate"
>
- <FormItem label="杞﹁締" prop="carId">
- <Select v-model="addOilForm.carId" filterable>
- <Option v-for="item in carList" :value="item.id">{{ item.carNo }}</Option>
- </Select>
- </FormItem>
- <Form-item label="鍔犳补鏃ユ湡" prop="addDate">
- <Row>
- <Col span="11">
+ <Row :gutter="0">
+ <Col span="12">
+ <FormItem label="杞﹁締" prop="carId">
+ <Select v-model="addOilForm.carId" filterable>
+ <Option v-for="item in carList" :value="item.id">{{ item.carNo }}</Option>
+ </Select>
+ </FormItem>
+ </Col>
+ <Col span="12">
+ <Form-item label="鍔犳补鏃ユ湡" prop="addDate">
<Date-picker @on-change="change1" type="date" value="yyyy-MM-dd" placeholder="閫夋嫨鏃ユ湡" v-model="addOilForm.addDate"></Date-picker>
- </Col>
- </Row>
- </Form-item>
- <FormItem label="鍔犳补閲�" prop="amount">
- <Input v-model="addOilForm.amount" type="number"/>
- </FormItem>
- <FormItem label="鍗曚环" prop="unitPrice">
- <Input v-model="addOilForm.unitPrice" type="number"/>
- </FormItem>
- <FormItem label="鍔犳补閲戦" prop="money">
- <Input v-model="addOilForm.money" type="number"/>
- </FormItem>
- <FormItem label="鍔犳补鏃堕噷绋�" prop="mileage">
- <Input v-model="addOilForm.mileage" type="number"/>
+ </Form-item>
+ </Col>
+ </Row>
+ <Row :gutter="0">
+ <Col span="12">
+ <FormItem label="鍔犳补閲�" prop="amount">
+ <Input v-model="addOilForm.amount" type="number"/>
+ </FormItem>
+ </Col>
+ <Col span="12">
+ <FormItem label="鍗曚环" prop="unitPrice">
+ <Input v-model="addOilForm.unitPrice" type="number"/>
+ </FormItem>
+ </Col>
+ </Row>
+ <Row :gutter="0">
+ <Col span="12">
+ <FormItem label="鍔犳补閲戦" prop="money">
+ <Input v-model="addOilForm.money" type="number"/>
+ </FormItem>
+ </Col>
+ <Col span="12">
+ <FormItem label="閲岀▼" prop="mileage">
+ <Input v-model="addOilForm.mileage" type="number"/>
+ </FormItem>
+ </Col>
+ </Row>
+ <FormItem label="鍔犳补鍗″彿" prop="addOilCode">
+ <Input v-model="addOilForm.addOilCode" />
</FormItem>
<FormItem label="澶囨敞" prop="remarks">
<Input v-model="addOilForm.remarks" />
@@ -258,13 +274,18 @@
{
title: "杞︾墝鍙�",
key: "carNo",
- width: 100,
+ width: 120,
sortable: true,
+ },
+ {
+ title: "鍔犳补鍗″彿",
+ key: "addOilCode",
+ width: 100,
},
{
title: "鍔犳补鏃ユ湡",
key: "addDate",
- width: 150,
+ width: 120,
sortable: true,
},
{
@@ -282,13 +303,13 @@
{
title: "鍔犳补閲戦",
key: "money",
- minWidth: 100,
+ minWidth: 120,
sortable: true,
},
{
title: "鍔犳补鏃堕噷绋�",
key: "mileage",
- minWidth: 100,
+ minWidth: 130,
sortable: true,
},
{
--
Gitblit v1.9.1