|
@@ -0,0 +1,648 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="68px"
|
|
|
+ >
|
|
|
+ <!-- <el-form-item label="物品类型" prop="wuPinType">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.wuPinType"
|
|
|
+ placeholder="请选择物品类型"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.category"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="物品名称" prop="name">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.name"
|
|
|
+ placeholder="请选择物品名称"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option label="请选择字典生成" value="" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="物资规格" prop="materialSpecification">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.materialSpecification"
|
|
|
+ placeholder="请输入物资规格"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="物资型号" prop="materialXh">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.materialXh"
|
|
|
+ placeholder="请输入物资型号"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="营具类型" prop="yingJuType">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.yingJuType"
|
|
|
+ placeholder="请选择营具类型"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option label="请选择字典生成" value="" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="" prop="responsibilityUnit">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.responsibilityUnit"
|
|
|
+ placeholder="请输入责任单位"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label="" prop="personLiable">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.personLiable"
|
|
|
+ placeholder="请选择责任人"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @change="handleQuery"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in renYuans"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.name"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="入库数量" prop="putInt">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.putInt"
|
|
|
+ placeholder="请输入入库数量"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="创建人" prop="createName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.createName"
|
|
|
+ placeholder="请输入创建人"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="入库时间" prop="storageTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="queryParams.storageTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择入库时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="入库编号" prop="inboundNo">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.inboundNo"
|
|
|
+ placeholder="请输入入库编号"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="存放位置" prop="storageLocation">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.storageLocation"
|
|
|
+ placeholder="请输入存放位置"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="购买时间" prop="buyingTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="queryParams.buyingTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择购买时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="价值" prop="price">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.price"
|
|
|
+ placeholder="请输入价值"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="库房(待定)" prop="warehouse">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.warehouse"
|
|
|
+ placeholder="请选择库房(待定)"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.storage_room"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="档案id" prop="archivesId">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.archivesId"
|
|
|
+ placeholder="请输入档案id"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item>
|
|
|
+ <!-- <el-button type="primary" size="btn" @click="handleQuery"
|
|
|
+ >搜索</el-button
|
|
|
+ > -->
|
|
|
+ <el-button size="btr" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-table
|
|
|
+ v-loading="loading"
|
|
|
+ :data="materialRegistrationList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ :header-cell-style="{ background: '#003C69', color: 'white' }"
|
|
|
+ >
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="序号" align="center" prop="id" />
|
|
|
+ <el-table-column label="物品名称" align="center" prop="name" />
|
|
|
+ <el-table-column
|
|
|
+ label="物品规格"
|
|
|
+ align="center"
|
|
|
+ prop="materialSpecification"
|
|
|
+ />
|
|
|
+ <el-table-column label="物品型号" align="center" prop="materialXh" />
|
|
|
+ <el-table-column label="营具类型" align="center" prop="yingJuType">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag
|
|
|
+ :options="dict.type.camp_equipment"
|
|
|
+ :value="scope.row.yingJuType"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="数量" align="center" prop="price" />
|
|
|
+ <el-table-column label="价值" align="center" prop="price" />
|
|
|
+ <el-table-column
|
|
|
+ label="发放时间"
|
|
|
+ align="center"
|
|
|
+ prop="storageTime"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.storageTime, "{y}-{m}-{d}") }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发放单位" align="center" prop="personLiable" />
|
|
|
+ <el-table-column label="接收单位" align="center" prop="putInt" />
|
|
|
+ <el-table-column label="接收人" align="center" prop="price" />
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+
|
|
|
+ <!-- 添加或修改物资入库登记对话框 -->
|
|
|
+ <el-dialog
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="open"
|
|
|
+ width="500px"
|
|
|
+ append-to-body
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <div class="jiben">基本信息</div>
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ label-width="80px"
|
|
|
+ :inline="true"
|
|
|
+ >
|
|
|
+ <el-form-item label="物品类型" prop="wuPinType">
|
|
|
+ <el-select v-model="form.wuPinType" placeholder="请选择物品类型">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.category"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="物品名称" prop="name">
|
|
|
+ <el-select v-model="form.name" placeholder="请选择物品名称">
|
|
|
+ <!-- <el-option label="请选择字典生成" value="" /> -->
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in itemlist"
|
|
|
+ :key="i"
|
|
|
+ :value="item.name"
|
|
|
+ :label="item.name"
|
|
|
+ class="input_xiala"
|
|
|
+ @click.native="wuPing(item)"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="物资规格" prop="materialSpecification">
|
|
|
+ <el-input
|
|
|
+ v-model="form.materialSpecification"
|
|
|
+ placeholder="请输入物资规格"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="物资型号" prop="materialXh">
|
|
|
+ <el-input v-model="form.materialXh" placeholder="请输入物资型号" />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="营具类型" prop="yingJuType">
|
|
|
+ <el-select v-model="form.yingJuType" placeholder="请选择营具类型">
|
|
|
+ <el-option label="请选择字典生成" value="" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
+ <el-form-item label="库房" prop="warehouse">
|
|
|
+ <el-select v-model="form.warehouse" placeholder="请选择库房">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.storage_room"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="存放位置" prop="storageLocation">
|
|
|
+ <el-input
|
|
|
+ v-model="form.storageLocation"
|
|
|
+ placeholder="请输入存放位置"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="入库数量" prop="putInt">
|
|
|
+ <el-input v-model="form.putInt" placeholder="请输入入库数量" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="入库编号" prop="inboundNo">
|
|
|
+ <el-input v-model="form.inboundNo" placeholder="请输入入库编号" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="入库时间" prop="storageTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="form.storageTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择入库时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="价值" prop="price">
|
|
|
+ <el-input v-model="form.price" placeholder="请输入价值" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="购买时间" prop="buyingTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="form.buyingTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择购买时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <div class="jiben">备注</div>
|
|
|
+ <el-form-item label="" prop="remark">
|
|
|
+ <el-input
|
|
|
+ v-model="form.remark"
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="责任单位" prop="responsibilityUnit">
|
|
|
+ <el-input
|
|
|
+ v-model="form.responsibilityUnit"
|
|
|
+ placeholder="请输入责任单位"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="责任人" prop="personLiable">
|
|
|
+ <el-input v-model="form.personLiable" placeholder="请输入责任人" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="创建人" prop="createName">
|
|
|
+ <el-input v-model="form.createName" placeholder="请输入创建人" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+
|
|
|
+ <el-form-item label="档案id" prop="archivesId">
|
|
|
+ <el-input v-model="form.archivesId" placeholder="请输入档案id" />
|
|
|
+ </el-form-item> -->
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel" size="btn">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {
|
|
|
+ listMaterialRegistration,
|
|
|
+ getMaterialRegistration,
|
|
|
+ delMaterialRegistration,
|
|
|
+ addMaterialRegistration,
|
|
|
+ updateMaterialRegistration,
|
|
|
+ exportMaterialRegistration,
|
|
|
+} from "@/api/materialManagement/materialRegistration";
|
|
|
+import { listArchives } from "@/api/materialManagement/archives";
|
|
|
+// 所有人员
|
|
|
+import { getAll } from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "MaterialRegistration",
|
|
|
+ dicts: ["category", "storage_room", "camp_equipment"],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ // 导出遮罩层
|
|
|
+ exportLoading: false,
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 物资入库登记表格数据
|
|
|
+ materialRegistrationList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ wuPinType: null,
|
|
|
+ name: null,
|
|
|
+ materialSpecification: null,
|
|
|
+ materialXh: null,
|
|
|
+ yingJuType: null,
|
|
|
+ responsibilityUnit: null,
|
|
|
+ personLiable: null,
|
|
|
+ putInt: null,
|
|
|
+ createName: null,
|
|
|
+ storageTime: null,
|
|
|
+ inboundNo: null,
|
|
|
+ storageLocation: null,
|
|
|
+ buyingTime: null,
|
|
|
+ price: null,
|
|
|
+ warehouse: null,
|
|
|
+ archivesId: null,
|
|
|
+ },
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {},
|
|
|
+ // 获取物品名称列表
|
|
|
+ itemlist: [],
|
|
|
+ // 外面的人员
|
|
|
+ renYuans: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ this.getSuo();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 获取搜索所有人
|
|
|
+ getSuo() {
|
|
|
+ getAll().then((res) => {
|
|
|
+ this.renYuans = res.rows;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 点击物品名称触发
|
|
|
+ wuPing(data) {
|
|
|
+ console.log(data);
|
|
|
+ this.form.archivesId = data.id;
|
|
|
+ this.form.responsibilityUnit = data.responsibilityUnit;
|
|
|
+ this.form.personLiable = data.personLiable;
|
|
|
+ this.form.yingJuType = data.yingJuType;
|
|
|
+ },
|
|
|
+ // 获取物品名称
|
|
|
+ getMingCheng() {
|
|
|
+ listArchives().then((response) => {
|
|
|
+ this.itemlist = response.rows;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 查询物资入库登记列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ listMaterialRegistration(this.queryParams).then((response) => {
|
|
|
+ this.materialRegistrationList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ id: null,
|
|
|
+ wuPinType: null,
|
|
|
+ name: null,
|
|
|
+ materialSpecification: null,
|
|
|
+ materialXh: null,
|
|
|
+ yingJuType: null,
|
|
|
+ responsibilityUnit: null,
|
|
|
+ personLiable: null,
|
|
|
+ putInt: null,
|
|
|
+ createName: null,
|
|
|
+ createTime: null,
|
|
|
+ storageTime: null,
|
|
|
+ inboundNo: null,
|
|
|
+ storageLocation: null,
|
|
|
+ buyingTime: null,
|
|
|
+ price: null,
|
|
|
+ remark: null,
|
|
|
+ warehouse: null,
|
|
|
+ archivesId: null,
|
|
|
+ };
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
+ this.single = selection.length !== 1;
|
|
|
+ this.multiple = !selection.length;
|
|
|
+ },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleAdd() {
|
|
|
+ this.getMingCheng();
|
|
|
+ this.reset();
|
|
|
+ this.open = true;
|
|
|
+ this.title = "添加物资入库登记";
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleUpdate(row) {
|
|
|
+ this.reset();
|
|
|
+ const id = row.id || this.ids;
|
|
|
+ getMaterialRegistration(id).then((response) => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改物资入库登记";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (this.form.id != null) {
|
|
|
+ updateMaterialRegistration(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ addMaterialRegistration(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleDelete(row) {
|
|
|
+ const ids = row.id || this.ids;
|
|
|
+ this.$modal
|
|
|
+ .confirm('是否确认删除物资入库登记编号为"' + ids + '"的数据项?')
|
|
|
+ .then(function () {
|
|
|
+ return delMaterialRegistration(ids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ const queryParams = this.queryParams;
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认导出所有物资入库登记数据项?")
|
|
|
+ .then(() => {
|
|
|
+ this.exportLoading = true;
|
|
|
+ return exportMaterialRegistration(queryParams);
|
|
|
+ })
|
|
|
+ .then((response) => {
|
|
|
+ this.$download.name(response.msg);
|
|
|
+ this.exportLoading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style scoped>
|
|
|
+/* 对话框背景颜色 */
|
|
|
+::v-deep .el-dialog {
|
|
|
+ width: 1016px !important;
|
|
|
+ background: #004d86 !important;
|
|
|
+}
|
|
|
+::v-deep .el-textarea__inner {
|
|
|
+ width: 965px;
|
|
|
+ height: 104px;
|
|
|
+}
|
|
|
+::v-deep .el-dialog__header {
|
|
|
+ border-bottom: 1px solid #718a9d;
|
|
|
+}
|
|
|
+::v-deep .el-dialog__title {
|
|
|
+ color: #fff;
|
|
|
+ font: 18px;
|
|
|
+}
|
|
|
+::v-deep .el-dialog__headerbtn .el-dialog__close {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+::v-deep .el-form-item__label {
|
|
|
+ font: 16px;
|
|
|
+ color: #fff;
|
|
|
+ width: 100px !important;
|
|
|
+}
|
|
|
+::v-deep .el-dialog .el-input__inner {
|
|
|
+ width: 200px !important;
|
|
|
+ height: 36px;
|
|
|
+ background: transparent;
|
|
|
+ color: #fff;
|
|
|
+ border: 1px solid white !important;
|
|
|
+ border-color: #fff !important;
|
|
|
+}
|
|
|
+/* 单位框背景颜色 */
|
|
|
+::v-deep .vue-treeselect__control {
|
|
|
+ background: #004d86 !important;
|
|
|
+}
|
|
|
+/*调整表单间距 */
|
|
|
+::v-deep .el-form-item__content {
|
|
|
+ width: 200px;
|
|
|
+}
|
|
|
+::v-deep .el-dialog__footer {
|
|
|
+ margin-right: 6px !important;
|
|
|
+}
|
|
|
+.contents {
|
|
|
+ padding: 0px 40px !important;
|
|
|
+}
|
|
|
+::v-deep .el-form-item__label {
|
|
|
+ width: 115px !important;
|
|
|
+}
|
|
|
+::v-deep .el-dialog__body {
|
|
|
+ padding: 30px 0px 30px 26px !important;
|
|
|
+}
|
|
|
+::v-deep .el-form .el-input__inner {
|
|
|
+ height: 36px !important;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+</style>
|