Merge branch 'dev' of https://gitea.dykj.co/sundongyu/dykj-college-back-office-management-system into dev
This commit is contained in:
commit
bd4f531645
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,20 +12,30 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-input
|
||||||
|
class="form-item-content"
|
||||||
|
v-model="formData.billserial"
|
||||||
|
maxlength="10"
|
||||||
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="报损日期:" name="breakDate">
|
<t-form-item label="报损日期:" name="breakDate">
|
||||||
<t-date-picker v-model="formData.breakDate" clearable />
|
<t-date-picker
|
||||||
|
class="form-item-content"
|
||||||
|
v-model="formData.breakDate"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item
|
</t-col>
|
||||||
label="票据类型:"
|
<t-col :span="3">
|
||||||
name="billType"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
style="margin-bottom: 0.3rem"
|
|
||||||
>
|
|
||||||
<t-select
|
<t-select
|
||||||
|
class="form-item-content"
|
||||||
v-model="formData.billType"
|
v-model="formData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
clearable
|
clearable
|
||||||
|
@ -38,29 +48,34 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item
|
<t-form-item
|
||||||
label="报损状态:"
|
label="报损状态:"
|
||||||
name="breakStatus"
|
name="breakStatus"
|
||||||
style="margin-bottom: 0.3rem"
|
style="margin-bottom: 0.3rem"
|
||||||
>
|
>
|
||||||
<t-select
|
<t-select
|
||||||
|
class="form-item-content"
|
||||||
v-model="formData.breakStatus"
|
v-model="formData.breakStatus"
|
||||||
placeholder="请选择报损状态"
|
placeholder="请选择报损状态"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<t-option
|
<t-option
|
||||||
v-for="item in breakStatus"
|
v-for="item in approvalStatus"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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,20 +12,30 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input v-model="scarchData.billserial" maxlength="10"></t-input>
|
<t-input
|
||||||
|
class="form-item-content"
|
||||||
|
v-model="scarchData.billserial"
|
||||||
|
maxlength="10"
|
||||||
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="退库日期:" name="appleDate">
|
<t-form-item label="退库日期:" name="appleDate">
|
||||||
<t-date-picker v-model="scarchData.appleDate" clearable />
|
<t-date-picker
|
||||||
|
class="form-item-content"
|
||||||
|
v-model="scarchData.appleDate"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item
|
</t-col>
|
||||||
label="票据类型:"
|
<t-col :span="3">
|
||||||
name="billType"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
style="margin-bottom: 0.3rem"
|
|
||||||
>
|
|
||||||
<t-select
|
<t-select
|
||||||
|
class="form-item-content"
|
||||||
v-model="scarchData.billType"
|
v-model="scarchData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
clearable
|
clearable
|
||||||
|
@ -38,12 +48,15 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item
|
<t-form-item
|
||||||
label="审批状态:"
|
label="审批状态:"
|
||||||
name="approvalStatus"
|
name="approvalStatus"
|
||||||
style="margin-bottom: 0.3rem"
|
style="margin-bottom: 0.3rem"
|
||||||
>
|
>
|
||||||
<t-select
|
<t-select
|
||||||
|
class="form-item-content"
|
||||||
v-model="scarchData.approvalStatus"
|
v-model="scarchData.approvalStatus"
|
||||||
placeholder="请选择审批状态"
|
placeholder="请选择审批状态"
|
||||||
clearable
|
clearable
|
||||||
|
@ -56,11 +69,13 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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,26 +8,36 @@
|
||||||
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">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-input
|
||||||
|
v-model="formData.billserial"
|
||||||
|
class="form-item-content"
|
||||||
|
maxlength="10"
|
||||||
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="报损日期:" name="breakDate">
|
<t-form-item label="报损日期:" name="breakDate">
|
||||||
<t-date-picker v-model="formData.breakDate" clearable />
|
<t-date-picker
|
||||||
|
v-model="formData.breakDate"
|
||||||
|
class="form-item-content"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item
|
</t-col>
|
||||||
label="票据类型:"
|
<t-col :span="3">
|
||||||
name="billType"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
style="margin-bottom: 0.3rem"
|
|
||||||
>
|
|
||||||
<t-select
|
<t-select
|
||||||
v-model="formData.billType"
|
v-model="formData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
|
class="form-item-content"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<t-option
|
<t-option
|
||||||
|
@ -38,11 +48,13 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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,22 +12,32 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-input
|
||||||
|
v-model="formData.billserial"
|
||||||
|
class="form-item-content"
|
||||||
|
maxlength="10"
|
||||||
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="入库日期:" name="stockDate">
|
<t-form-item label="入库日期:" name="stockDate">
|
||||||
<t-date-picker v-model="formData.stockDate" clearable />
|
<t-date-picker
|
||||||
|
v-model="formData.stockDate"
|
||||||
|
class="form-item-content"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item
|
</t-col>
|
||||||
label="票据类型:"
|
<t-col :span="3">
|
||||||
name="billType"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
style="margin-bottom: 0.3rem"
|
|
||||||
>
|
|
||||||
<t-select
|
<t-select
|
||||||
v-model="formData.billType"
|
v-model="formData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
|
class="form-item-content"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<t-option
|
<t-option
|
||||||
|
@ -38,11 +48,13 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="primary" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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,23 +31,34 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem; margin-top: 1px">
|
<scarch-box :btnNum="2" :colNum="10">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input
|
<t-input
|
||||||
|
class="form-item-content"
|
||||||
v-model="scarchData.billserial"
|
v-model="scarchData.billserial"
|
||||||
maxlength="10"
|
maxlength="10"
|
||||||
></t-input>
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
<t-form-item label="退领时间:" name="quitneckDate">
|
<t-col :span="3">
|
||||||
<t-date-picker v-model="scarchData.quitneckDate" clearable />
|
<t-form-item label="领用时间:" name="quitneckDate">
|
||||||
|
<t-date-picker
|
||||||
|
class="form-item-content"
|
||||||
|
v-model="scarchData.quitneckDate"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item
|
<t-form-item
|
||||||
label="票据类型:"
|
label="票据类型:"
|
||||||
name="billType"
|
name="billType"
|
||||||
style="margin-bottom: 0.3rem"
|
style="margin-bottom: 0.3rem"
|
||||||
>
|
>
|
||||||
<t-select
|
<t-select
|
||||||
|
class="form-item-content"
|
||||||
v-model="scarchData.billType"
|
v-model="scarchData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
clearable
|
clearable
|
||||||
|
@ -60,11 +71,13 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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,23 +28,34 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem; margin-top: 1px">
|
<scarch-box :btnNum="2" :colNum="10">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input
|
<t-input
|
||||||
|
class="form-item-content"
|
||||||
v-model="scarchData.billserial"
|
v-model="scarchData.billserial"
|
||||||
maxlength="10"
|
maxlength="10"
|
||||||
></t-input>
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="领用时间:" name="receiptDate">
|
<t-form-item label="领用时间:" name="receiptDate">
|
||||||
<t-date-picker v-model="scarchData.receiptDate" clearable />
|
<t-date-picker
|
||||||
|
class="form-item-content"
|
||||||
|
v-model="scarchData.receiptDate"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item
|
<t-form-item
|
||||||
label="票据类型:"
|
label="票据类型:"
|
||||||
name="billType"
|
name="billType"
|
||||||
style="margin-bottom: 0.3rem"
|
style="margin-bottom: 0.3rem"
|
||||||
>
|
>
|
||||||
<t-select
|
<t-select
|
||||||
|
class="form-item-content"
|
||||||
v-model="scarchData.billType"
|
v-model="scarchData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
clearable
|
clearable
|
||||||
|
@ -57,11 +68,13 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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,22 +12,32 @@
|
||||||
@reset="resetting"
|
@reset="resetting"
|
||||||
@submit="headerQuery"
|
@submit="headerQuery"
|
||||||
>
|
>
|
||||||
<div style="margin-left: 1rem">
|
<scarch-box :btnNum="4" :colNum="8">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="票据编号:" name="billserial">
|
<t-form-item label="票据编号:" name="billserial">
|
||||||
<t-input v-model="formData.billserial" maxlength="10"></t-input>
|
<t-input
|
||||||
|
v-model="formData.billserial"
|
||||||
|
class="form-item-content"
|
||||||
|
maxlength="10"
|
||||||
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
|
</t-col>
|
||||||
|
<t-col :span="3">
|
||||||
<t-form-item label="入库日期:" name="stockDate">
|
<t-form-item label="入库日期:" name="stockDate">
|
||||||
<t-date-picker v-model="formData.stockDate" clearable />
|
<t-date-picker
|
||||||
|
v-model="formData.stockDate"
|
||||||
|
class="form-item-content"
|
||||||
|
clearable
|
||||||
|
/>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item
|
</t-col>
|
||||||
label="票据类型:"
|
<t-col :span="3">
|
||||||
name="billType"
|
<t-form-item label="票据类型:" name="billType">
|
||||||
style="margin-bottom: 0.3rem"
|
|
||||||
>
|
|
||||||
<t-select
|
<t-select
|
||||||
v-model="formData.billType"
|
v-model="formData.billType"
|
||||||
placeholder="请选择票据类型"
|
placeholder="请选择票据类型"
|
||||||
|
class="form-item-content"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<t-option
|
<t-option
|
||||||
|
@ -38,11 +48,13 @@
|
||||||
></t-option>
|
></t-option>
|
||||||
</t-select>
|
</t-select>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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">
|
||||||
|
<template #scarchName>
|
||||||
|
<t-col :span="3" style="padding-left: 0">
|
||||||
<t-form-item label="部门:" name="branch">
|
<t-form-item label="部门:" name="branch">
|
||||||
<t-input v-model="scarchData.branch"></t-input>
|
<t-input
|
||||||
|
v-model="scarchData.branch"
|
||||||
|
class="form-item-content"
|
||||||
|
></t-input>
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
</div>
|
</t-col>
|
||||||
<t-form-item style="margin-right: 1rem">
|
</template>
|
||||||
|
<template #scarchBtn>
|
||||||
<t-button theme="primary" type="submit">查询</t-button>
|
<t-button theme="primary" type="submit">查询</t-button>
|
||||||
<t-button theme="default" type="reset">重置</t-button>
|
<t-button theme="default" type="reset">重置</t-button>
|
||||||
</t-form-item>
|
</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