lsun 协议管理

This commit is contained in:
lSun 2024-11-13 16:34:16 +08:00
parent 6d2104dff3
commit 86f2803c26
3 changed files with 1476 additions and 24 deletions

View File

@ -64,7 +64,8 @@
"vue-meta": "2.4.0", "vue-meta": "2.4.0",
"vue-router": "3.4.9", "vue-router": "3.4.9",
"vuedraggable": "2.24.3", "vuedraggable": "2.24.3",
"vuex": "3.6.0" "vuex": "3.6.0",
"vue-easy-print": "0.0.8"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "4.4.6", "@vue/cli-plugin-babel": "4.4.6",

View File

@ -55,10 +55,12 @@
icon="el-icon-search" icon="el-icon-search"
size="mini" size="mini"
@click="handleQuery" @click="handleQuery"
>搜索</el-button >搜索
</el-button
> >
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button >重置
</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -71,7 +73,8 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
>领料申请</el-button >领料申请
</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -81,7 +84,8 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleSendAll" @click="handleSendAll"
>发布</el-button >发布
</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -91,7 +95,8 @@
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
>导出</el-button >导出
</el-button
> >
</el-col> </el-col>
<right-toolbar <right-toolbar
@ -207,7 +212,8 @@
style="margin-bottom: 10px" style="margin-bottom: 10px"
type="normal" type="normal"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button >查看
</el-button
> >
<el-button <el-button
size="mini" size="mini"
@ -216,7 +222,8 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-if="scope.row.status != '2'" v-if="scope.row.status != '2'"
v-hasPermi="['purchase:info:edit']" v-hasPermi="['purchase:info:edit']"
>编辑</el-button >编辑
</el-button
> >
<el-button <el-button
@ -226,13 +233,16 @@
@click="handleSend(scope.row)" @click="handleSend(scope.row)"
v-if="scope.row.status == '0'" v-if="scope.row.status == '0'"
v-hasPermi="['purchase:person:notice']" v-hasPermi="['purchase:person:notice']"
>发布</el-button >发布
</el-button
>
<el-button size="mini" type="warning" @click="handleLld(scope.row)"
>领料单
</el-button
> >
<el-button size="mini" type="warning" @click="handlePrint(scope.row)" <el-button size="mini" type="warning" @click="handlePrint(scope.row)"
>领料单</el-button >出库检验单
> </el-button
<el-button size="mini" type="warning" @click="handlePrint(scope.row)"
>出库检验单</el-button
> >
<el-button <el-button
@ -241,7 +251,8 @@
@click="handleDeletePurchase(scope.row)" @click="handleDeletePurchase(scope.row)"
v-if="scope.row.status == '0'" v-if="scope.row.status == '0'"
v-hasPermi="['purchase:info:remove']" v-hasPermi="['purchase:info:remove']"
>删除</el-button >删除
</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
@ -396,6 +407,119 @@
<el-button @click="openPrint = false"> </el-button> <el-button @click="openPrint = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 领料单弹窗 -->
<el-dialog :visible.sync="open" width="800px" append-to-body>
<div style="height: 500px; overflow-y: scroll; padding: 0 20px">
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
<div class="title" style="text-align: center;font-weight: 600;font-size: 16px;">领料单</div>
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
<span>领料单位</span>
{{ leaseApplyData.leaseUnit }}
</div>
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
<span>工程名称</span>
{{ leaseApplyData.leaseProject }}
</div>
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
<span>时间</span>
{{ leaseApplyData.createTime }}
</div>
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
<span>编号</span>
{{ leaseApplyData.code }}
</div>
</div>
<el-table :data="leaseApplyDetails" class="table" border style="margin-top: 20px; padding: 1px">
<el-table-column label="序号" align="center" type="index"/>
<el-table-column label="类型名称" align="center" prop="typeName"/>
<!-- <el-table-column type="expand">
<template slot-scope="scope">
<div class="nested-table-container">
<el-table :data="scope.row.maTypeDetails" style="width: 100%">
&lt;!&ndash; 子表格的列 &ndash;&gt;
<el-table-column label="序号" align="center" type="index"/>
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true"/>
<el-table-column
label="规格型号"
align="center"
prop="typeName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="单位"
align="center"
prop="unitName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="预领数量"
align="center"
prop="preNum"
:show-overflow-tooltip="true"
/>
</el-table>
</div>
</template>
</el-table-column>-->
<el-table-column
label="规格型号"
align="center"
prop="typeName"
/>
<el-table-column
label="计量单位"
align="center"
prop="unitName"
/>
<el-table-column
label="预领数量"
align="center"
prop="preNum"
/>
<el-table-column
label="备注"
align="center"
prop="remark"
/>
<el-table-column label="出库方式" align="center" prop="manageTypeName">
<template slot-scope="scope">
<dict-tag :options="dict.type.ma_type_manage_type" :value="scope.row.manageType"/>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- label="出库方式"-->
<!-- align="center"-->
<!-- prop="manageTypeName"-->
<!-- />-->
</el-table>
<div class="fillIn" style="margin-top: 30px;display: flex;justify-content: space-between;">
<div class="item" style="width: 25%">
<span>审核</span>
</div>
<div class="item" style="width: 25%">
<span>领料</span>
</div>
<div class="item" style="width: 25%">
<span>仓库</span>
</div>
<div class="item" style="width: 25%">
<span>操作人</span>
</div>
</div>
</vue-easy-print>
</div>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button type="primary" @click="print"> </el-button>
<el-button @click="open = false"> </el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -406,12 +530,15 @@ import {
getAcceptanceForm, getAcceptanceForm,
purchaseCheckInfoRemove, purchaseCheckInfoRemove,
queryStatusDataApi, queryStatusDataApi,
getApplyInfo,
applyRemove, applyRemove,
} from "@/api/lease/apply"; } from "@/api/lease/apply";
import vueEasyPrint from 'vue-easy-print'
export default { export default {
name: "Home", name: "Home",
dicts: ["lease_apply_status"], dicts: ["lease_apply_status","ma_type_manage_type"],
// components: { vueEasyPrint }, // components: { vueEasyPrint },
data() { data() {
return { return {
@ -467,10 +594,16 @@ export default {
], ],
}, },
openPrint: false, openPrint: false,
open: false,
printData: {}, printData: {},
printTableData: [], printTableData: [],
// //
supplierStr: "", supplierStr: "",
//
leaseApplyDetails: [],
//
leaseApplyData: {},
}; };
}, },
created() { created() {
@ -478,6 +611,7 @@ export default {
this.getList(); this.getList();
// this.getTypeList() // this.getTypeList()
}, },
components: { vueEasyPrint },
methods: { methods: {
// getTypeList() { // getTypeList() {
// getTypeList({ level: '3' }).then((response) => { // getTypeList({ level: '3' }).then((response) => {
@ -578,6 +712,18 @@ export default {
this.openPrint = true; this.openPrint = true;
this.title = "机具设备到货验收单"; this.title = "机具设备到货验收单";
}, },
//
async handleLld(row) {
this.open = true
var ids = row.id
const res = await getApplyInfo(ids)
console.log(res)
this.leaseApplyDetails = res.data.leaseApplyDetailsList
this.leaseApplyData = res.data.leaseApplyInfo
console.log(this.leaseApplyData)
},
// //
print() { print() {
this.$refs.remarksPrintRef.print(); this.$refs.remarksPrintRef.print();
@ -598,7 +744,8 @@ export default {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}) })
.catch(() => {}); .catch(() => {
});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */

File diff suppressed because it is too large Load Diff