🦄 refactor: 更改查询框的样式
This commit is contained in:
parent
3a3e268f69
commit
f7171e1564
44
src/components/scarchBox.vue
Normal file
44
src/components/scarchBox.vue
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<template>
|
||||||
|
<t-row style="width: 100%">
|
||||||
|
<t-col :span="colNum">
|
||||||
|
<t-row :gutter="[24, 24]" style="margin-left: 0.3rem">
|
||||||
|
<slot name="scarchName"> </slot>
|
||||||
|
</t-row>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="btnNum" class="operation-container">
|
||||||
|
<t-form-item style="margin-right: 1rem">
|
||||||
|
<slot name="scarchBtn"> </slot>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</t-row>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { number } from "echarts";
|
||||||
|
|
||||||
|
const { colNum, btnNum } = defineProps({
|
||||||
|
colNum: {
|
||||||
|
type: number,
|
||||||
|
default: 10,
|
||||||
|
},
|
||||||
|
btnNum: {
|
||||||
|
type: number,
|
||||||
|
default: 2,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.operation-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.expand {
|
||||||
|
.t-button__text {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -12,55 +12,70 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-col :span="3">
|
||||||
</t-form-item>
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
|
<t-input
|
||||||
<t-form-item label="报损日期:" name="breakDate">
|
class="form-item-content"
|
||||||
<t-date-picker v-model="formData.breakDate" clearable />
|
v-model="formData.billserial"
|
||||||
</t-form-item>
|
maxlength="10"
|
||||||
<t-form-item
|
></t-input>
|
||||||
label="票据类型:"
|
</t-form-item>
|
||||||
name="billType"
|
</t-col>
|
||||||
style="margin-bottom: 0.3rem"
|
<t-col :span="3">
|
||||||
>
|
<t-form-item label="报损日期:" name="breakDate">
|
||||||
<t-select
|
<t-date-picker
|
||||||
v-model="formData.billType"
|
class="form-item-content"
|
||||||
placeholder="请选择票据类型"
|
v-model="formData.breakDate"
|
||||||
clearable
|
clearable
|
||||||
>
|
/>
|
||||||
<t-option
|
</t-form-item>
|
||||||
v-for="item in billType"
|
</t-col>
|
||||||
:key="item.value"
|
<t-col :span="3">
|
||||||
:value="item.value"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
:label="item.label"
|
<t-select
|
||||||
></t-option>
|
class="form-item-content"
|
||||||
</t-select>
|
v-model="formData.billType"
|
||||||
</t-form-item>
|
placeholder="请选择票据类型"
|
||||||
<t-form-item
|
clearable
|
||||||
label="报损状态:"
|
>
|
||||||
name="breakStatus"
|
<t-option
|
||||||
style="margin-bottom: 0.3rem"
|
v-for="item in billType"
|
||||||
>
|
:key="item.value"
|
||||||
<t-select
|
:value="item.value"
|
||||||
v-model="formData.breakStatus"
|
:label="item.label"
|
||||||
placeholder="请选择报损状态"
|
></t-option>
|
||||||
clearable
|
</t-select>
|
||||||
>
|
</t-form-item>
|
||||||
<t-option
|
</t-col>
|
||||||
v-for="item in breakStatus"
|
<t-col :span="3">
|
||||||
:key="item.value"
|
<t-form-item
|
||||||
:value="item.value"
|
label="报损状态:"
|
||||||
:label="item.label"
|
name="breakStatus"
|
||||||
></t-option>
|
style="margin-bottom: 0.3rem"
|
||||||
</t-select>
|
>
|
||||||
</t-form-item>
|
<t-select
|
||||||
</div>
|
class="form-item-content"
|
||||||
<t-form-item style="margin-right: 1rem">
|
v-model="formData.breakStatus"
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
placeholder="请选择报损状态"
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
clearable
|
||||||
</t-form-item>
|
>
|
||||||
|
<t-option
|
||||||
|
v-for="item in approvalStatus"
|
||||||
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -83,6 +98,7 @@
|
||||||
</t-button>
|
</t-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<t-base-table
|
<t-base-table
|
||||||
hover
|
hover
|
||||||
row-key="index"
|
row-key="index"
|
||||||
|
@ -96,11 +112,11 @@
|
||||||
<template #breakNum="{ row }">
|
<template #breakNum="{ row }">
|
||||||
{{ `${row.breakNum}张` }}
|
{{ `${row.breakNum}张` }}
|
||||||
</template>
|
</template>
|
||||||
<template #billType="{ row }">
|
<!-- <template #billType="{ row }">
|
||||||
<div v-for="item in billType" :key="item">
|
<div v-for="item in billType" :key="item">
|
||||||
<span v-if="row.billType === item.value">{{ item.label }}</span>
|
<span v-if="row.billType === item.value">{{ item.label }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template> -->
|
||||||
<template #breakStatus="{ row }">
|
<template #breakStatus="{ row }">
|
||||||
<div v-for="item in breakStatus" :key="item">
|
<div v-for="item in breakStatus" :key="item">
|
||||||
<t-tag
|
<t-tag
|
||||||
|
@ -260,6 +276,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { AddIcon, LoadIcon } from "tdesign-icons-vue-next";
|
import { AddIcon, LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
@ -290,12 +307,19 @@ const columns = ref([
|
||||||
title: "票据类型",
|
title: "票据类型",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: "100",
|
width: "100",
|
||||||
|
cell: (h, { row }) => {
|
||||||
|
const type = billType.value.find((type) => type.value === row.billType);
|
||||||
|
return type ? type.label : "未知";
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
colKey: "breakNum",
|
colKey: "breakNum",
|
||||||
title: "报损数量",
|
title: "报损数量",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: "100",
|
width: "100",
|
||||||
|
cell: (h, { row }) => {
|
||||||
|
return row.breakNum + "张123";
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
colKey: "breakDate",
|
colKey: "breakDate",
|
||||||
|
@ -350,8 +374,9 @@ const breakStatus = ref([
|
||||||
// 获取票据列表
|
// 获取票据列表
|
||||||
const tableList = async () => {
|
const tableList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
tableData.value = await breakageList.getBreakageList();
|
data.value = tableData.value = await breakageList.getBreakageList();
|
||||||
data.value = await breakageList.getBreakageList();
|
|
||||||
|
// data.value = await breakageList.getBreakageList();
|
||||||
pagination.value.total = tableData.value.length;
|
pagination.value.total = tableData.value.length;
|
||||||
const timerId = setTimeout(() => {
|
const timerId = setTimeout(() => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|
|
@ -12,55 +12,70 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input v-model="scarchData.billserial" maxlength="10"></t-input>
|
<t-col :span="3">
|
||||||
</t-form-item>
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
|
<t-input
|
||||||
<t-form-item label="退库日期:" name="appleDate">
|
class="form-item-content"
|
||||||
<t-date-picker v-model="scarchData.appleDate" clearable />
|
v-model="scarchData.billserial"
|
||||||
</t-form-item>
|
maxlength="10"
|
||||||
<t-form-item
|
></t-input>
|
||||||
label="票据类型:"
|
</t-form-item>
|
||||||
name="billType"
|
</t-col>
|
||||||
style="margin-bottom: 0.3rem"
|
<t-col :span="3">
|
||||||
>
|
<t-form-item label="退库日期:" name="appleDate">
|
||||||
<t-select
|
<t-date-picker
|
||||||
v-model="scarchData.billType"
|
class="form-item-content"
|
||||||
placeholder="请选择票据类型"
|
v-model="scarchData.appleDate"
|
||||||
clearable
|
clearable
|
||||||
>
|
/>
|
||||||
<t-option
|
</t-form-item>
|
||||||
v-for="item in billType"
|
</t-col>
|
||||||
:key="item.value"
|
<t-col :span="3">
|
||||||
:value="item.value"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
:label="item.label"
|
<t-select
|
||||||
></t-option>
|
class="form-item-content"
|
||||||
</t-select>
|
v-model="scarchData.billType"
|
||||||
</t-form-item>
|
placeholder="请选择票据类型"
|
||||||
<t-form-item
|
clearable
|
||||||
label="审批状态:"
|
>
|
||||||
name="approvalStatus"
|
<t-option
|
||||||
style="margin-bottom: 0.3rem"
|
v-for="item in billType"
|
||||||
>
|
:key="item.value"
|
||||||
<t-select
|
:value="item.value"
|
||||||
v-model="scarchData.approvalStatus"
|
:label="item.label"
|
||||||
placeholder="请选择审批状态"
|
></t-option>
|
||||||
clearable
|
</t-select>
|
||||||
>
|
</t-form-item>
|
||||||
<t-option
|
</t-col>
|
||||||
v-for="item in approvalStatus"
|
<t-col :span="3">
|
||||||
:key="item.value"
|
<t-form-item
|
||||||
:value="item.value"
|
label="审批状态:"
|
||||||
:label="item.label"
|
name="approvalStatus"
|
||||||
></t-option>
|
style="margin-bottom: 0.3rem"
|
||||||
</t-select>
|
>
|
||||||
</t-form-item>
|
<t-select
|
||||||
</div>
|
class="form-item-content"
|
||||||
<t-form-item style="margin-right: 1rem">
|
v-model="scarchData.approvalStatus"
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
placeholder="请选择审批状态"
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
clearable
|
||||||
</t-form-item>
|
>
|
||||||
|
<t-option
|
||||||
|
v-for="item in approvalStatus"
|
||||||
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -193,6 +208,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { LoadIcon } from "tdesign-icons-vue-next";
|
import { LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
|
|
@ -8,41 +8,53 @@
|
||||||
label-width="calc(2em + 40px)"
|
label-width="calc(2em + 40px)"
|
||||||
layout="inline"
|
layout="inline"
|
||||||
scroll-to-first-error="smooth"
|
scroll-to-first-error="smooth"
|
||||||
class="scarch-from"
|
class="scarch-from form-responsive"
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-col :span="3">
|
||||||
</t-form-item>
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
|
<t-input
|
||||||
<t-form-item label="报损日期:" name="breakDate">
|
v-model="formData.billserial"
|
||||||
<t-date-picker v-model="formData.breakDate" clearable />
|
class="form-item-content"
|
||||||
</t-form-item>
|
maxlength="10"
|
||||||
<t-form-item
|
></t-input>
|
||||||
label="票据类型:"
|
</t-form-item>
|
||||||
name="billType"
|
</t-col>
|
||||||
style="margin-bottom: 0.3rem"
|
<t-col :span="3">
|
||||||
>
|
<t-form-item label="报损日期:" name="breakDate">
|
||||||
<t-select
|
<t-date-picker
|
||||||
v-model="formData.billType"
|
v-model="formData.breakDate"
|
||||||
placeholder="请选择票据类型"
|
class="form-item-content"
|
||||||
clearable
|
clearable
|
||||||
>
|
/>
|
||||||
<t-option
|
</t-form-item>
|
||||||
v-for="item in billType"
|
</t-col>
|
||||||
:key="item.value"
|
<t-col :span="3">
|
||||||
:value="item.value"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
:label="item.label"
|
<t-select
|
||||||
></t-option>
|
v-model="formData.billType"
|
||||||
</t-select>
|
placeholder="请选择票据类型"
|
||||||
</t-form-item>
|
class="form-item-content"
|
||||||
</div>
|
clearable
|
||||||
<t-form-item style="margin-right: 1rem">
|
>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-option
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
v-for="item in billType"
|
||||||
</t-form-item>
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -155,6 +167,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { AddIcon, LoadIcon } from "tdesign-icons-vue-next";
|
import { AddIcon, LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
|
|
@ -12,37 +12,49 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-col :span="3">
|
||||||
</t-form-item>
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
|
<t-input
|
||||||
<t-form-item label="入库日期:" name="stockDate">
|
v-model="formData.billserial"
|
||||||
<t-date-picker v-model="formData.stockDate" clearable />
|
class="form-item-content"
|
||||||
</t-form-item>
|
maxlength="10"
|
||||||
<t-form-item
|
></t-input>
|
||||||
label="票据类型:"
|
</t-form-item>
|
||||||
name="billType"
|
</t-col>
|
||||||
style="margin-bottom: 0.3rem"
|
<t-col :span="3">
|
||||||
>
|
<t-form-item label="入库日期:" name="stockDate">
|
||||||
<t-select
|
<t-date-picker
|
||||||
v-model="formData.billType"
|
v-model="formData.stockDate"
|
||||||
placeholder="请选择票据类型"
|
class="form-item-content"
|
||||||
clearable
|
clearable
|
||||||
>
|
/>
|
||||||
<t-option
|
</t-form-item>
|
||||||
v-for="item in billType"
|
</t-col>
|
||||||
:key="item.value"
|
<t-col :span="3">
|
||||||
:value="item.value"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
:label="item.label"
|
<t-select
|
||||||
></t-option>
|
v-model="formData.billType"
|
||||||
</t-select>
|
placeholder="请选择票据类型"
|
||||||
</t-form-item>
|
class="form-item-content"
|
||||||
</div>
|
clearable
|
||||||
<t-form-item style="margin-right: 1rem">
|
>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-option
|
||||||
<t-button theme="primary" type="reset">重置</t-button>
|
v-for="item in billType"
|
||||||
</t-form-item>
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -95,6 +107,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { LoadIcon } from "tdesign-icons-vue-next";
|
import { LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
|
|
@ -31,40 +31,53 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem; margin-top: 1px">
|
<scarch-box :btnNum="2" :colNum="10">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input
|
<t-col :span="3">
|
||||||
v-model="scarchData.billserial"
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
maxlength="10"
|
<t-input
|
||||||
></t-input>
|
class="form-item-content"
|
||||||
</t-form-item>
|
v-model="scarchData.billserial"
|
||||||
|
maxlength="10"
|
||||||
<t-form-item label="退领时间:" name="quitneckDate">
|
></t-input>
|
||||||
<t-date-picker v-model="scarchData.quitneckDate" clearable />
|
</t-form-item>
|
||||||
</t-form-item>
|
</t-col>
|
||||||
<t-form-item
|
<t-col :span="3">
|
||||||
label="票据类型:"
|
<t-form-item label="领用时间:" name="quitneckDate">
|
||||||
name="billType"
|
<t-date-picker
|
||||||
style="margin-bottom: 0.3rem"
|
class="form-item-content"
|
||||||
>
|
v-model="scarchData.quitneckDate"
|
||||||
<t-select
|
clearable
|
||||||
v-model="scarchData.billType"
|
/>
|
||||||
placeholder="请选择票据类型"
|
</t-form-item>
|
||||||
clearable
|
</t-col>
|
||||||
>
|
<t-col :span="3">
|
||||||
<t-option
|
<t-form-item
|
||||||
v-for="item in billType"
|
label="票据类型:"
|
||||||
:key="item.value"
|
name="billType"
|
||||||
:value="item.value"
|
style="margin-bottom: 0.3rem"
|
||||||
:label="item.label"
|
>
|
||||||
></t-option>
|
<t-select
|
||||||
</t-select>
|
class="form-item-content"
|
||||||
</t-form-item>
|
v-model="scarchData.billType"
|
||||||
</div>
|
placeholder="请选择票据类型"
|
||||||
<t-form-item style="margin-right: 1rem">
|
clearable
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-option
|
||||||
</t-form-item>
|
v-for="item in billType"
|
||||||
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -115,6 +128,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted, nextTick } from "vue";
|
import { ref, onMounted, nextTick } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { LoadIcon } from "tdesign-icons-vue-next";
|
import { LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
|
|
@ -28,40 +28,53 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem; margin-top: 1px">
|
<scarch-box :btnNum="2" :colNum="10">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input
|
<t-col :span="3">
|
||||||
v-model="scarchData.billserial"
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
maxlength="10"
|
<t-input
|
||||||
></t-input>
|
class="form-item-content"
|
||||||
</t-form-item>
|
v-model="scarchData.billserial"
|
||||||
|
maxlength="10"
|
||||||
<t-form-item label="领用时间:" name="receiptDate">
|
></t-input>
|
||||||
<t-date-picker v-model="scarchData.receiptDate" clearable />
|
</t-form-item>
|
||||||
</t-form-item>
|
</t-col>
|
||||||
<t-form-item
|
<t-col :span="3">
|
||||||
label="票据类型:"
|
<t-form-item label="领用时间:" name="receiptDate">
|
||||||
name="billType"
|
<t-date-picker
|
||||||
style="margin-bottom: 0.3rem"
|
class="form-item-content"
|
||||||
>
|
v-model="scarchData.receiptDate"
|
||||||
<t-select
|
clearable
|
||||||
v-model="scarchData.billType"
|
/>
|
||||||
placeholder="请选择票据类型"
|
</t-form-item>
|
||||||
clearable
|
</t-col>
|
||||||
>
|
<t-col :span="3">
|
||||||
<t-option
|
<t-form-item
|
||||||
v-for="item in billType"
|
label="票据类型:"
|
||||||
:key="item.value"
|
name="billType"
|
||||||
:value="item.value"
|
style="margin-bottom: 0.3rem"
|
||||||
:label="item.label"
|
>
|
||||||
></t-option>
|
<t-select
|
||||||
</t-select>
|
class="form-item-content"
|
||||||
</t-form-item>
|
v-model="scarchData.billType"
|
||||||
</div>
|
placeholder="请选择票据类型"
|
||||||
<t-form-item style="margin-right: 1rem">
|
clearable
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-option
|
||||||
</t-form-item>
|
v-for="item in billType"
|
||||||
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -185,6 +198,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted, nextTick } from "vue";
|
import { ref, onMounted, nextTick } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { LoadIcon } from "tdesign-icons-vue-next";
|
import { LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
@ -447,9 +461,9 @@ onMounted(async () => {
|
||||||
background-color: @base-white-color;
|
background-color: @base-white-color;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
.scarch-from {
|
.scarch-from {
|
||||||
|
width: 100%;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,37 +12,49 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<template #scarchName>
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-col :span="3">
|
||||||
</t-form-item>
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
|
<t-input
|
||||||
<t-form-item label="入库日期:" name="stockDate">
|
v-model="formData.billserial"
|
||||||
<t-date-picker v-model="formData.stockDate" clearable />
|
class="form-item-content"
|
||||||
</t-form-item>
|
maxlength="10"
|
||||||
<t-form-item
|
></t-input>
|
||||||
label="票据类型:"
|
</t-form-item>
|
||||||
name="billType"
|
</t-col>
|
||||||
style="margin-bottom: 0.3rem"
|
<t-col :span="3">
|
||||||
>
|
<t-form-item label="入库日期:" name="stockDate">
|
||||||
<t-select
|
<t-date-picker
|
||||||
v-model="formData.billType"
|
v-model="formData.stockDate"
|
||||||
placeholder="请选择票据类型"
|
class="form-item-content"
|
||||||
clearable
|
clearable
|
||||||
>
|
/>
|
||||||
<t-option
|
</t-form-item>
|
||||||
v-for="item in billType"
|
</t-col>
|
||||||
:key="item.value"
|
<t-col :span="3">
|
||||||
:value="item.value"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
:label="item.label"
|
<t-select
|
||||||
></t-option>
|
v-model="formData.billType"
|
||||||
</t-select>
|
placeholder="请选择票据类型"
|
||||||
</t-form-item>
|
class="form-item-content"
|
||||||
</div>
|
clearable
|
||||||
<t-form-item style="margin-right: 1rem">
|
>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-option
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
v-for="item in billType"
|
||||||
</t-form-item>
|
:key="item.value"
|
||||||
|
:value="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
></t-option>
|
||||||
|
</t-select>
|
||||||
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -217,6 +229,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { AddIcon, LoadIcon } from "tdesign-icons-vue-next";
|
import { AddIcon, LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
@ -456,9 +469,9 @@ onMounted(() => {
|
||||||
background-color: @base-white-color;
|
background-color: @base-white-color;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
.scarch-from {
|
.scarch-from {
|
||||||
|
width: 100%;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -474,6 +487,7 @@ onMounted(() => {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.t-form__controls-content) {
|
:deep(.t-form__controls-content) {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="back-color" style="overflow-y: hidden">
|
<div class="back-color">
|
||||||
<t-layout style="height: 100%; background-color: #f5f7fb">
|
<t-layout style="height: 90%; background-color: #f5f7fb">
|
||||||
<t-header class="scarch-box">
|
<t-header class="scarch-box">
|
||||||
<t-form
|
<t-form
|
||||||
ref="form"
|
ref="form"
|
||||||
|
@ -12,15 +12,22 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
<t-form-item label="部门:" name="branch">
|
<template #scarchName>
|
||||||
<t-input v-model="scarchData.branch"></t-input>
|
<t-col :span="3" style="padding-left: 0">
|
||||||
</t-form-item>
|
<t-form-item label="部门:" name="branch">
|
||||||
</div>
|
<t-input
|
||||||
<t-form-item style="margin-right: 1rem">
|
v-model="scarchData.branch"
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
class="form-item-content"
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
|
</template>
|
||||||
|
</scarch-box>
|
||||||
</t-form>
|
</t-form>
|
||||||
</t-header>
|
</t-header>
|
||||||
<t-content class="table-box">
|
<t-content class="table-box">
|
||||||
|
@ -62,6 +69,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import scarchBox from "@/components/scarchBox.vue";
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted } from "vue";
|
||||||
import { MessagePlugin } from "tdesign-vue-next";
|
import { MessagePlugin } from "tdesign-vue-next";
|
||||||
import { LoadIcon } from "tdesign-icons-vue-next";
|
import { LoadIcon } from "tdesign-icons-vue-next";
|
||||||
|
@ -209,20 +217,14 @@ onMounted(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.asideTree {
|
|
||||||
margin-right: 2rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
.scarch-box {
|
.scarch-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: @base-white-color;
|
background-color: @base-white-color;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
.scarch-from {
|
.scarch-from {
|
||||||
|
width: 100%;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,21 +240,6 @@ onMounted(() => {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.layoutPage {
|
|
||||||
height: 100%;
|
|
||||||
background-color: #fff;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
span {
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 800;
|
|
||||||
color: #191919;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
:deep(.t-tree--transition .t-tree__label) {
|
|
||||||
width: 10rem;
|
|
||||||
}
|
|
||||||
:deep(.t-form__controls-content) {
|
:deep(.t-form__controls-content) {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,17 +16,30 @@ import lineChart from "@/components/echarts/line.vue";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
const title = ref("折线图");
|
const title = ref("折线图");
|
||||||
const categories = ref(["Jan", "Feb", "Mar", "Apr", "May", "Jun"]);
|
const categories = ref([
|
||||||
const legendList = ref(["series1", "series2"]);
|
"一月",
|
||||||
|
"二月",
|
||||||
|
"三月",
|
||||||
|
"四月",
|
||||||
|
"五月",
|
||||||
|
"六月",
|
||||||
|
"七月",
|
||||||
|
"八月",
|
||||||
|
"九月",
|
||||||
|
"十月",
|
||||||
|
"十一月",
|
||||||
|
"十二月",
|
||||||
|
]);
|
||||||
|
const legendList = ref(["服务一", "服务二"]);
|
||||||
const seriesData = ref([
|
const seriesData = ref([
|
||||||
{
|
{
|
||||||
name: "series1",
|
name: "服务一",
|
||||||
data: [10, 20, 15, 20, 25, 30],
|
data: [10, 20, 15, 20, 25, 30, 15, 22, 18, 28, 25, 32],
|
||||||
type: "line",
|
type: "line",
|
||||||
}, // 第一个系列的数据
|
}, // 第一个系列的数据
|
||||||
{
|
{
|
||||||
name: "series2",
|
name: "服务二",
|
||||||
data: [15, 22, 18, 28, 25, 32],
|
data: [15, 22, 18, 28, 25, 32, 10, 20, 15, 20, 25, 30],
|
||||||
type: "line",
|
type: "line",
|
||||||
}, // 第二个系列的数据
|
}, // 第二个系列的数据
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -206,3 +206,6 @@ a:active {
|
||||||
.t-is-disabled .t-button__text {
|
.t-is-disabled .t-button__text {
|
||||||
color: #d3d3d3 !important;
|
color: #d3d3d3 !important;
|
||||||
}
|
}
|
||||||
|
.form-item-width {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
|
@ -53,3 +53,8 @@ a:active {
|
||||||
.t-is-disabled .t-button__text{
|
.t-is-disabled .t-button__text{
|
||||||
color: #d3d3d3 !important;
|
color: #d3d3d3 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询框宽度
|
||||||
|
.form-item-width {
|
||||||
|
width: 100%;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user