2024-11-05 13:57:31 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
<el-form-item prop="dateRange">
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
v-model="dateRange"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
type="datetimerange"
|
2024-11-05 13:57:31 +08:00
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
range-separator="至"
|
2024-11-05 13:57:31 +08:00
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
end-placeholder="结束日期">
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item prop="keyWord">
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.keyWord"
|
|
|
|
|
|
placeholder="请输入关键词"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
maxlength="20"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
/>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</el-form-item>
|
2024-12-23 18:15:42 +08:00
|
|
|
|
<el-form-item prop="isFinish">
|
2024-12-02 11:08:27 +08:00
|
|
|
|
<el-select
|
|
|
|
|
|
clearable
|
|
|
|
|
|
filterable
|
|
|
|
|
|
style="width: 240px"
|
2024-12-23 18:15:42 +08:00
|
|
|
|
placeholder="状态筛选"
|
|
|
|
|
|
v-model="queryParams.isFinish"
|
2024-12-02 11:08:27 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
2024-12-23 18:15:42 +08:00
|
|
|
|
:key="dict.id"
|
|
|
|
|
|
:label="dict.name"
|
|
|
|
|
|
:value="dict.id"
|
|
|
|
|
|
v-for="dict in taskStatusList"
|
2024-12-02 11:08:27 +08:00
|
|
|
|
/>
|
|
|
|
|
|
</el-select>
|
2024-12-23 18:15:42 +08:00
|
|
|
|
</el-form-item>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<!-- <el-col :span="1.5">
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type="success" plain
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
@click="acceptancePurchase"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
验收合格
|
|
|
|
|
|
</el-button>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
</el-col> -->
|
2024-11-05 13:57:31 +08:00
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="warning" plain
|
|
|
|
|
|
icon="el-icon-download"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
size="mini"
|
2024-11-05 13:57:31 +08:00
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
2024-12-23 16:23:55 +08:00
|
|
|
|
|
2024-11-08 17:40:41 +08:00
|
|
|
|
<el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="taskId" @selection-change="handleSelectionChange" border>
|
2024-12-24 10:36:31 +08:00
|
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" :selectable="selectable"/>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<el-table-column label="序号" align="center" width="80" type="index">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="到货时间" align="center" prop="arrivalTime" width="180" :show-overflow-tooltip="true"/>
|
2024-11-11 18:32:47 +08:00
|
|
|
|
<el-table-column label="采购单号" align="center" prop="code" width="150" :show-overflow-tooltip="true"/>
|
2025-01-17 15:40:27 +08:00
|
|
|
|
<el-table-column label="采购物资" align="center" prop="purchaseMaTypeName" width="150" :show-overflow-tooltip="true"/>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="采购数量" align="center" prop="purchaseMaNumber" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column label="采购价格(元含税)" align="center" prop="purchaseTaxPrice" width="100" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column label="采购价格(元不含税)" align="center" prop="purchasePrice" width="100" :show-overflow-tooltip="true"/>
|
2025-01-17 15:40:27 +08:00
|
|
|
|
<el-table-column label="税率" align="center" prop="taxRate" :show-overflow-tooltip="true">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ scope.row.taxRate }}%</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="物资厂家" align="center" prop="supplier" width="120" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column label="操作人" align="center" prop="createBy" width="100" :show-overflow-tooltip="true"/>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="操作时间" align="center" prop="createTime" width="180" :show-overflow-tooltip="true"/>
|
|
|
|
|
|
<el-table-column label="状态" align="center" prop="taskStatusName" :show-overflow-tooltip="true" width="100">
|
2024-12-23 16:23:55 +08:00
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
|
<!-- <dict-tag :options="dict.type.purchase_task_status" :value="scope.row.taskStatus"/>-->
|
|
|
|
|
|
<!-- </template>-->
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</el-table-column>
|
2024-11-20 10:07:18 +08:00
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true"/>
|
2025-01-08 11:23:30 +08:00
|
|
|
|
<el-table-column label="操作" align="center" width="250" fixed="right">
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
@click="handleView(scope.row)"
|
2024-11-05 13:57:31 +08:00
|
|
|
|
>
|
|
|
|
|
|
查看
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
2024-12-23 18:15:42 +08:00
|
|
|
|
type="primary" v-if="scope.row.taskStatusName == '未完成'"
|
2024-12-23 16:23:55 +08:00
|
|
|
|
@click="handleUpdate(scope.row)"
|
2024-11-05 13:57:31 +08:00
|
|
|
|
>
|
|
|
|
|
|
验收
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
@click="handlePrint(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
验收单
|
|
|
|
|
|
</el-button>
|
2024-12-23 16:23:55 +08:00
|
|
|
|
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
2024-12-23 16:23:55 +08:00
|
|
|
|
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<pagination
|
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
|
:total="total"
|
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 验收单弹窗 -->
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-dialog :title="title" :visible.sync="openPrint" width="1100px" append-to-body>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<div style="height: 500px; overflow-y: scroll">
|
|
|
|
|
|
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<div class="title" style="text-align: center;font-weight: 600;font-size: 16px;">
|
2024-11-05 13:57:31 +08:00
|
|
|
|
机具设备到货验收单
|
|
|
|
|
|
</div>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
|
|
|
|
|
|
<div class="item" style="width: 100%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<span>单据编号:{{printData.code}}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="item"
|
2025-01-09 15:07:22 +08:00
|
|
|
|
style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<span>生产厂家(供应商):{{printData.supplierName}}</span>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
</div>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="item"
|
2025-01-09 15:07:22 +08:00
|
|
|
|
style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<span>到货日期:{{printData.arrivalDate}}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table :data="printTableData" class="table" style="margin-top: 20px;width: 1000px;padding-bottom: 1px;" border>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="序号" align="center" type="index" row="2" />
|
|
|
|
|
|
<el-table-column label="物资名称" align="center" prop="maTypeName"/>
|
|
|
|
|
|
<el-table-column label="规格型号" align="center" prop="typeName"/>
|
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitName"/>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<el-table-column label="配送信息" align="center">
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="采购数量" align="center" prop="purchaseNum"/>
|
|
|
|
|
|
<el-table-column label="验收结论" align="center" prop="checkResult"/>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
<el-table-column label="质保质量" align="center">
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="实收份数" align="center" prop="checkNum"/>
|
|
|
|
|
|
<el-table-column label="符合要求" align="center"/>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table-column>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<el-table-column label="备注" align="center" prop="remark"/>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</el-table>
|
|
|
|
|
|
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<div class="fillIn" style="margin-top: 20px;display: flex;justify-content: space-between;" >
|
|
|
|
|
|
<div class="item" style="width: 33%;display: flex;align-items: center;">
|
|
|
|
|
|
<div style="width: 25%;">供应科:</div>
|
2025-01-17 18:00:11 +08:00
|
|
|
|
<div style="width: 75%;display: flex;align-items: center;flex-wrap: wrap;" v-if="printData.gySignUrl">
|
|
|
|
|
|
<div v-for="(sign, index) in printData.gySignUrl" :key="index" style="width: 35%;margin-left: 5px;">
|
2025-01-17 18:01:18 +08:00
|
|
|
|
<img :src="sign.signUrl" :class="sign.signType=='0' ? 'image-type':'sign-type'" alt="">
|
2025-01-17 18:00:11 +08:00
|
|
|
|
</div>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<div class="item" style="width: 33%;display: flex;align-items: center;">
|
|
|
|
|
|
<div style="width: 30%;">生产技术科:</div>
|
2025-01-17 18:00:11 +08:00
|
|
|
|
<div style="width: 70%;display: flex;align-items: center;flex-wrap: wrap;" v-if="printData.scSignUrl">
|
|
|
|
|
|
<div v-for="(sign, index) in printData.scSignUrl" :key="index" style="width: 35%;margin-left: 5px;">
|
2025-01-17 18:01:18 +08:00
|
|
|
|
<img :src="sign.signUrl" :class="sign.signType=='0' ? 'image-type':'sign-type'" alt="">
|
2025-01-09 15:07:22 +08:00
|
|
|
|
</div>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<div class="item" style="width: 33%;display: flex;align-items: center;">
|
|
|
|
|
|
<div style="width: 25%;">库管班:</div>
|
2025-01-17 18:00:11 +08:00
|
|
|
|
<div style="width: 75%;display: flex;align-items: center;flex-wrap: wrap;" v-if="printData.kgSignUrl">
|
|
|
|
|
|
<div v-for="(sign, index) in printData.kgSignUrl" :key="index" style="width: 35%;margin-left: 5px;">
|
2025-01-17 18:01:18 +08:00
|
|
|
|
<img :src="sign.signUrl" :class="sign.signType=='0' ? 'image-type':'sign-type'" alt="">
|
2025-01-09 15:07:22 +08:00
|
|
|
|
</div>
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</div>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
<!-- <div>
|
|
|
|
|
|
<span>库管班:{{printData.warehouseTeam}}</span>
|
|
|
|
|
|
</div> -->
|
2024-11-05 13:57:31 +08:00
|
|
|
|
</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="openPrint = false">关 闭</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
2024-12-23 18:15:42 +08:00
|
|
|
|
|
2024-11-05 13:57:31 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
2024-12-23 16:23:55 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-11-08 17:40:41 +08:00
|
|
|
|
import { getPurchaseList,acceptOuterVerify,getPurchaseCheckFormByTaskId } from "@/api/purchase/goodsAccept";
|
2024-11-05 13:57:31 +08:00
|
|
|
|
import { downloadFile } from '@/utils/download'
|
|
|
|
|
|
import { getToken } from '@/utils/auth'
|
2025-01-09 15:07:22 +08:00
|
|
|
|
import vueEasyPrint from "vue-easy-print";
|
2024-11-05 13:57:31 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
name: "GoodsAcceptList",
|
2024-11-08 10:28:49 +08:00
|
|
|
|
dicts: ['purchase_task_status'],
|
2025-01-09 15:07:22 +08:00
|
|
|
|
components: { vueEasyPrint },
|
2024-11-05 13:57:31 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
// 遮罩层
|
2024-12-23 16:23:55 +08:00
|
|
|
|
loading: false,
|
2024-11-05 13:57:31 +08:00
|
|
|
|
// 非单个禁用
|
|
|
|
|
|
single: true,
|
|
|
|
|
|
// 非多个禁用
|
2024-12-23 16:23:55 +08:00
|
|
|
|
multiple: true,
|
2024-11-05 13:57:31 +08:00
|
|
|
|
// 显示搜索条件
|
|
|
|
|
|
showSearch: true,
|
2024-12-23 16:23:55 +08:00
|
|
|
|
showHouse: false,
|
2024-11-05 13:57:31 +08:00
|
|
|
|
dateRange:[],
|
2024-12-23 18:15:42 +08:00
|
|
|
|
taskStatusList:[{id:'0',name:'未完成'},{id:'1',name:'已完成'}],
|
2024-11-05 13:57:31 +08:00
|
|
|
|
ids:[],
|
|
|
|
|
|
// 总条数
|
2024-12-23 16:23:55 +08:00
|
|
|
|
total: 0,
|
2024-11-05 13:57:31 +08:00
|
|
|
|
//表格数据
|
2024-12-23 16:23:55 +08:00
|
|
|
|
tableList: [],
|
2024-11-05 13:57:31 +08:00
|
|
|
|
// 弹出层标题
|
|
|
|
|
|
title: "",
|
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
|
open: false,
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
keyWord:undefined,
|
2024-12-23 18:15:42 +08:00
|
|
|
|
isFinish:undefined,
|
2024-11-05 13:57:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
openPrint: false,
|
|
|
|
|
|
printData: {},
|
|
|
|
|
|
printTableData: [],
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-12-23 16:23:55 +08:00
|
|
|
|
created() {
|
2024-11-05 13:57:31 +08:00
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2024-12-24 10:36:31 +08:00
|
|
|
|
//是否可用勾选框
|
|
|
|
|
|
selectable(row) {
|
|
|
|
|
|
console.log(row)
|
|
|
|
|
|
if (row.taskStatusName == '未完成') {
|
|
|
|
|
|
return true
|
|
|
|
|
|
} else {
|
|
|
|
|
|
return false
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2024-11-05 13:57:31 +08:00
|
|
|
|
/** 查询列表 */
|
|
|
|
|
|
getList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
if(this.dateRange.length>0){
|
|
|
|
|
|
this.queryParams.startTime=this.dateRange[0]
|
|
|
|
|
|
this.queryParams.endTime=this.dateRange[1]
|
|
|
|
|
|
}else{
|
|
|
|
|
|
this.queryParams.startTime=undefined
|
|
|
|
|
|
this.queryParams.endTime=undefined
|
|
|
|
|
|
}
|
2024-12-23 16:23:55 +08:00
|
|
|
|
this.queryParams.taskStage= 2
|
2024-11-05 13:57:31 +08:00
|
|
|
|
getPurchaseList(this.queryParams).then(response => {
|
2024-11-19 10:10:23 +08:00
|
|
|
|
this.tableList = response.data.rows;
|
|
|
|
|
|
this.total = response.data.total;
|
2024-11-05 13:57:31 +08:00
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
|
resetQuery() {
|
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
this.dateRange=[]
|
|
|
|
|
|
this.queryParams.keyWord=null;
|
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
|
handleSelectionChange(selection) {
|
2024-11-08 17:40:41 +08:00
|
|
|
|
this.ids = selection.map(item => item.taskId)
|
2024-11-05 13:57:31 +08:00
|
|
|
|
this.single = selection.length != 1
|
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
|
},
|
|
|
|
|
|
handleUpdate(row){
|
|
|
|
|
|
console.log(row)
|
|
|
|
|
|
let query = { Id:row.id,taskId: row.taskId,isView:"false" }
|
|
|
|
|
|
this.$tab.closeOpenPage({
|
|
|
|
|
|
path: '/purchase/goodsAcceptDetail',
|
|
|
|
|
|
query,
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//查看
|
|
|
|
|
|
handleView(row){
|
|
|
|
|
|
console.log(row)
|
|
|
|
|
|
let query = { Id:row.id,taskId: row.taskId,isView:"true" }
|
|
|
|
|
|
this.$tab.closeOpenPage({
|
|
|
|
|
|
path: '/purchase/goodsAcceptDetail',
|
|
|
|
|
|
query,
|
|
|
|
|
|
})
|
2024-12-23 16:23:55 +08:00
|
|
|
|
},
|
2024-11-05 13:57:31 +08:00
|
|
|
|
//批量合格
|
|
|
|
|
|
acceptancePurchase(){
|
2024-11-08 17:40:41 +08:00
|
|
|
|
let param={
|
|
|
|
|
|
taskIds:this.ids,
|
|
|
|
|
|
status:3,
|
|
|
|
|
|
checkResult:"合格"
|
|
|
|
|
|
}
|
|
|
|
|
|
acceptOuterVerify(param).then((response) => {
|
|
|
|
|
|
if(response.code==200){
|
|
|
|
|
|
this.$modal.msgSuccess('操作成功')
|
|
|
|
|
|
}else{
|
|
|
|
|
|
this.$modal.msgSuccess('操作失败')
|
|
|
|
|
|
}
|
2024-11-05 13:57:31 +08:00
|
|
|
|
this.getList()
|
2024-11-08 17:40:41 +08:00
|
|
|
|
this.$refs.multipleTable.clearSelection()
|
2024-11-05 13:57:31 +08:00
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
this.$modal.msgError('操作失败')
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//查看验收单
|
|
|
|
|
|
handlePrint(row) {
|
|
|
|
|
|
// this.query.taskId = row.taskId
|
|
|
|
|
|
this.getPrintTable(row.taskId)
|
|
|
|
|
|
this.openPrint = true
|
|
|
|
|
|
this.title = '新购工机具验收单'
|
|
|
|
|
|
},
|
|
|
|
|
|
//获取验收单数据
|
|
|
|
|
|
getPrintTable(taskId) {
|
|
|
|
|
|
getPurchaseCheckFormByTaskId(taskId).then((response) => {
|
|
|
|
|
|
this.printData = response.data
|
|
|
|
|
|
this.printTableData = response.data.materialList
|
|
|
|
|
|
// let supplierList = []
|
|
|
|
|
|
// this.printTableData.forEach((e) => {
|
|
|
|
|
|
// if (e.supplier) {
|
|
|
|
|
|
// supplierList.push(e.supplier)
|
|
|
|
|
|
// }
|
|
|
|
|
|
// })
|
|
|
|
|
|
// supplierList = [...new Set(supplierList)]
|
|
|
|
|
|
// this.supplierStr = supplierList.join(',')
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
//打印
|
|
|
|
|
|
print() {
|
|
|
|
|
|
this.$refs.remarksPrintRef.print()
|
|
|
|
|
|
},
|
|
|
|
|
|
handleExport() {
|
2024-11-29 11:23:13 +08:00
|
|
|
|
this.download(
|
|
|
|
|
|
"/material/purchase_check_info/export",
|
2025-01-09 15:07:22 +08:00
|
|
|
|
{ ...this.queryParams,taskStage: 2 },
|
2024-11-29 11:23:13 +08:00
|
|
|
|
`新购到货验收_${new Date().getTime()}.xlsx`
|
|
|
|
|
|
);
|
2024-11-05 13:57:31 +08:00
|
|
|
|
},
|
2024-12-23 16:23:55 +08:00
|
|
|
|
|
2024-11-05 13:57:31 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
2025-01-09 15:07:22 +08:00
|
|
|
|
.image-type {
|
|
|
|
|
|
/* 旋转图片 */
|
|
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
|
|
/* 确保旋转后的图片不会超出容器 */
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
/* 保持图片的宽高比 */
|
|
|
|
|
|
width: 40px;
|
2025-01-17 18:00:11 +08:00
|
|
|
|
height: 80px;
|
2025-01-09 15:07:22 +08:00
|
|
|
|
}
|
|
|
|
|
|
.sign-type{
|
2025-01-17 18:00:11 +08:00
|
|
|
|
width: 80px;
|
2025-01-09 15:07:22 +08:00
|
|
|
|
height: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-05 13:57:31 +08:00
|
|
|
|
.uploadImg {
|
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.deviceCode {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep.el-table .fixed-width .el-button--mini {
|
|
|
|
|
|
width: 60px !important;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
//隐藏图片上传框的css
|
|
|
|
|
|
::v-deep.disabled {
|
|
|
|
|
|
.el-upload--picture-card {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-12-23 16:23:55 +08:00
|
|
|
|
</style>
|