fix:配件新购入库bug修改
This commit is contained in:
parent
66f8df4fba
commit
5a88bafd89
|
|
@ -216,6 +216,13 @@
|
||||||
v-if="!isCheck && scope.row.status==0"
|
v-if="!isCheck && scope.row.status==0"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
v-if="isShow"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
@ -343,6 +350,7 @@ export default {
|
||||||
},
|
},
|
||||||
taskId: '',
|
taskId: '',
|
||||||
isView: false,
|
isView: false,
|
||||||
|
isShow: false,
|
||||||
isEdit: false,
|
isEdit: false,
|
||||||
isCheck: false,
|
isCheck: false,
|
||||||
addForm: {
|
addForm: {
|
||||||
|
|
@ -397,6 +405,12 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
const isShow = this.$route.query && this.$route.query.isShow
|
||||||
|
if (isShow && isShow == 'true') {
|
||||||
|
this.isShow = true
|
||||||
|
} else {
|
||||||
|
this.isShow = false
|
||||||
|
}
|
||||||
const taskId = this.$route.query && this.$route.query.taskId
|
const taskId = this.$route.query && this.$route.query.taskId
|
||||||
this.taskId = taskId
|
this.taskId = taskId
|
||||||
if (this.taskId == '' || !this.taskId) {
|
if (this.taskId == '' || !this.taskId) {
|
||||||
|
|
@ -406,14 +420,12 @@ export default {
|
||||||
this.getTaskInfo()
|
this.getTaskInfo()
|
||||||
}
|
}
|
||||||
const isView = this.$route.query && this.$route.query.isView
|
const isView = this.$route.query && this.$route.query.isView
|
||||||
console.log(this.isView, 'isView')
|
|
||||||
if (isView && isView == 'true') {
|
if (isView && isView == 'true') {
|
||||||
this.isView = true
|
this.isView = true
|
||||||
} else {
|
} else {
|
||||||
this.isView = false
|
this.isView = false
|
||||||
}
|
}
|
||||||
const isCheck = this.$route.query && this.$route.query.isCheck
|
const isCheck = this.$route.query && this.$route.query.isCheck
|
||||||
console.log(this.isCheck, 'isCheck')
|
|
||||||
if (isCheck && isCheck == 'true') {
|
if (isCheck && isCheck == 'true') {
|
||||||
this.isCheck = true
|
this.isCheck = true
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container" id="newAccessoryList">
|
<div class="app-container" id="newAccessoryList">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="80px"
|
||||||
|
>
|
||||||
<el-form-item label="关键字" prop="keyWord">
|
<el-form-item label="关键字" prop="keyWord">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.keyWord"
|
v-model="queryParams.keyWord"
|
||||||
placeholder="请输入关键字"
|
placeholder="请输入关键字"
|
||||||
clearable maxlength="50"
|
clearable
|
||||||
|
maxlength="50"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
|
|
@ -19,13 +27,7 @@
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAccept">新增</el-button>
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
icon="el-icon-plus"
|
|
||||||
size="mini"
|
|
||||||
@click="handleAccept"
|
|
||||||
>新增</el-button>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -37,13 +39,7 @@
|
||||||
>发布入库</el-button>
|
>发布入库</el-button>
|
||||||
</el-col>-->
|
</el-col>-->
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
|
||||||
type="warning"
|
|
||||||
plain
|
|
||||||
icon="el-icon-download"
|
|
||||||
size="mini"
|
|
||||||
@click="handleExport"
|
|
||||||
>导出</el-button>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -52,11 +48,36 @@
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="序号" align="center" type="index" width="55px" />
|
<el-table-column label="序号" align="center" type="index" width="55px" />
|
||||||
<el-table-column label="采购单号" align="center" prop="code" :show-overflow-tooltip="true" />
|
<el-table-column label="采购单号" align="center" prop="code" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="采购日期" align="center" prop="purchaseTime" :show-overflow-tooltip="true" />
|
<el-table-column
|
||||||
<el-table-column label="到货日期" align="center" prop="arrivalTime" :show-overflow-tooltip="true" />
|
label="采购日期"
|
||||||
<el-table-column label="采购配件" align="center" prop="purchasingTypeName" :show-overflow-tooltip="true" />
|
align="center"
|
||||||
<el-table-column label="采购员" align="center" prop="purchaserName" :show-overflow-tooltip="true" />
|
prop="purchaseTime"
|
||||||
<el-table-column label="采购状态" align="center" prop="purchasingStatus" :show-overflow-tooltip="true" />
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="到货日期"
|
||||||
|
align="center"
|
||||||
|
prop="arrivalTime"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="采购配件"
|
||||||
|
align="center"
|
||||||
|
prop="purchasingTypeName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="采购员"
|
||||||
|
align="center"
|
||||||
|
prop="purchaserName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="采购状态"
|
||||||
|
align="center"
|
||||||
|
prop="purchasingStatus"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
<!-- <el-table-column label="状态" align="center" prop="createTime" width="180">-->
|
<!-- <el-table-column label="状态" align="center" prop="createTime" width="180">-->
|
||||||
<!-- <template slot-scope="scope">-->
|
<!-- <template slot-scope="scope">-->
|
||||||
|
|
@ -67,13 +88,8 @@
|
||||||
<!-- </template>-->
|
<!-- </template>-->
|
||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="300">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="300">
|
||||||
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button size="mini" icon="el-icon-zoom-in" @click="handleView(scope.row)">查看</el-button>
|
||||||
size="mini"
|
|
||||||
icon="el-icon-zoom-in"
|
|
||||||
@click="handleView(scope.row)"
|
|
||||||
>查看</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
@ -118,15 +134,14 @@
|
||||||
<el-dialog :title="title" :visible.sync="openPrint" width="1100px" append-to-body>
|
<el-dialog :title="title" :visible.sync="openPrint" width="1100px" append-to-body>
|
||||||
<div style="height: 400px;overflow-y: scroll;">
|
<div style="height: 400px;overflow-y: scroll;">
|
||||||
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
<vue-easy-print tableShow ref="remarksPrintRef" class="print">
|
||||||
<div class="title" style="text-align: center;font-weight: 600;font-size: 16px;">
|
<div class="title" style="text-align: center;font-weight: 600;font-size: 16px;">到货验收单</div>
|
||||||
到货验收单
|
|
||||||
</div>
|
|
||||||
<div class="info" style="margin-top: 10px;display: flex;flex-wrap: wrap;">
|
<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;">
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<span>工程名称:</span>
|
<span>工程名称:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<span>验收单编号:</span>{{ printData.code }}
|
<span>验收单编号:</span>
|
||||||
|
{{ printData.code }}
|
||||||
</div>
|
</div>
|
||||||
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<span>合同名称:</span>
|
<span>合同名称:</span>
|
||||||
|
|
@ -138,10 +153,16 @@
|
||||||
<span>验收地点:</span>
|
<span>验收地点:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
<div class="item" style="width: 50%;flex-shrink: 0;margin-bottom: 5px;font-size: 14px;">
|
||||||
<span>供应商:</span><span v-if="printTableData.length>0">{{ printTableData[0].supplier }}</span>
|
<span>供应商:</span>
|
||||||
|
<span v-if="printTableData.length>0">{{ printTableData[0].supplier }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="printTableData" class="table" style="margin-top: 20px;width: 1000px;padding-bottom: 1px;" border>
|
<el-table
|
||||||
|
:data="printTableData"
|
||||||
|
class="table"
|
||||||
|
style="margin-top: 20px;width: 1000px;padding-bottom: 1px;"
|
||||||
|
border
|
||||||
|
>
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column label="类型名称" align="center" prop="machineTypeName" />
|
<el-table-column label="类型名称" align="center" prop="machineTypeName" />
|
||||||
|
|
@ -149,16 +170,18 @@
|
||||||
<el-table-column label="计量单位" align="center" prop="unitName" />
|
<el-table-column label="计量单位" align="center" prop="unitName" />
|
||||||
<el-table-column label="采购数量" align="center" prop="purchaseNum" />
|
<el-table-column label="采购数量" align="center" prop="purchaseNum" />
|
||||||
|
|
||||||
<el-table-column label="已验收数量" align="center" prop="" />
|
<el-table-column label="已验收数量" align="center" prop />
|
||||||
<el-table-column label="本次验收数量" align="center" prop="checkNum" />
|
<el-table-column label="本次验收数量" align="center" prop="checkNum" />
|
||||||
<el-table-column label="累积验收数量" align="center" prop="" />
|
<el-table-column label="累积验收数量" align="center" prop />
|
||||||
<el-table-column label="验收日期" align="center" prop="" />
|
<el-table-column label="验收日期" align="center" prop />
|
||||||
<el-table-column label="合格证及技术资料" align="center" prop="" />
|
<el-table-column label="合格证及技术资料" align="center" prop />
|
||||||
<el-table-column label="包装" align="center" prop="" />
|
<el-table-column label="包装" align="center" prop />
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<div class="fillIn" style="margin-top: 20px;display: flex;justify-content: space-between;">
|
<div
|
||||||
|
class="fillIn"
|
||||||
|
style="margin-top: 20px;display: flex;justify-content: space-between;"
|
||||||
|
>
|
||||||
<div class="item" style="width: 50%;">
|
<div class="item" style="width: 50%;">
|
||||||
<div>
|
<div>
|
||||||
<span>接收单位验收意见:</span>
|
<span>接收单位验收意见:</span>
|
||||||
|
|
@ -189,7 +212,6 @@
|
||||||
<span>经办人:</span>
|
<span>经办人:</span>
|
||||||
</div>-->
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</vue-easy-print>
|
</vue-easy-print>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -198,15 +220,18 @@
|
||||||
<el-button @click="openPrint = false">关 闭</el-button>
|
<el-button @click="openPrint = false">关 闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
import { listType, getType, delType, addType, updateType, refreshCache } from '@/api/system/dict/type'
|
||||||
import { listPurchaseAccessory,getPurchaseCheckInfo,delPurchaseAccessory,getAccessoryAcceptanceForm } from "@/api/store/newBuy";
|
import {
|
||||||
import vueEasyPrint from 'vue-easy-print';
|
listPurchaseAccessory,
|
||||||
|
getPurchaseCheckInfo,
|
||||||
|
delPurchaseAccessory,
|
||||||
|
getAccessoryAcceptanceForm,
|
||||||
|
} from '@/api/store/newBuy'
|
||||||
|
import vueEasyPrint from 'vue-easy-print'
|
||||||
export default {
|
export default {
|
||||||
// name: "NewAccessoryList",
|
// name: "NewAccessoryList",
|
||||||
dicts: ['sys_normal_disable'],
|
dicts: ['sys_normal_disable'],
|
||||||
|
|
@ -228,7 +253,7 @@ export default {
|
||||||
// 字典表格数据
|
// 字典表格数据
|
||||||
accessoryList: [],
|
accessoryList: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: '',
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
// 日期范围
|
// 日期范围
|
||||||
|
|
@ -239,7 +264,7 @@ export default {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
dictName: undefined,
|
dictName: undefined,
|
||||||
dictType: undefined,
|
dictType: undefined,
|
||||||
status: undefined
|
status: undefined,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
@ -248,33 +273,28 @@ export default {
|
||||||
printTableData: [],
|
printTableData: [],
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
dictName: [
|
dictName: [{ required: true, message: '字典名称不能为空', trigger: 'blur' }],
|
||||||
{ required: true, message: "字典名称不能为空", trigger: "blur" }
|
dictType: [{ required: true, message: '字典类型不能为空', trigger: 'blur' }],
|
||||||
],
|
},
|
||||||
dictType: [
|
|
||||||
{ required: true, message: "字典类型不能为空", trigger: "blur" }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
listPurchaseAccessory(this.queryParams).then(response => {
|
listPurchaseAccessory(this.queryParams).then(response => {
|
||||||
this.accessoryList = response.rows;
|
this.accessoryList = response.rows
|
||||||
this.total = response.total;
|
this.total = response.total
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
}
|
})
|
||||||
);
|
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false
|
||||||
this.reset();
|
this.reset()
|
||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
|
|
@ -282,27 +302,27 @@ export default {
|
||||||
taskId: undefined,
|
taskId: undefined,
|
||||||
dictName: undefined,
|
dictName: undefined,
|
||||||
dictType: undefined,
|
dictType: undefined,
|
||||||
status: "0",
|
status: '0',
|
||||||
remark: undefined
|
remark: undefined,
|
||||||
};
|
}
|
||||||
this.resetForm("form");
|
this.resetForm('form')
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.dateRange = [];
|
this.dateRange = []
|
||||||
this.resetForm("queryForm");
|
this.resetForm('queryForm')
|
||||||
this.handleQuery();
|
this.handleQuery()
|
||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset()
|
||||||
this.open = true;
|
this.open = true
|
||||||
this.title = "添加字典类型";
|
this.title = '添加字典类型'
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
|
|
@ -314,21 +334,21 @@ export default {
|
||||||
/** 编辑按钮操作 */
|
/** 编辑按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
let query = { taskId: row.taskId }
|
let query = { taskId: row.taskId }
|
||||||
this.$tab.closeOpenPage({ path: "/store/newBuy/newAccessoryAccept", query });
|
this.$tab.closeOpenPage({ path: '/store/newBuy/newAccessoryAccept', query })
|
||||||
},
|
},
|
||||||
/** 查看按钮操作 */
|
/** 查看按钮操作 */
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
let query = { taskId: row.taskId, isView: true }
|
let query = { taskId: row.taskId, isView: true }
|
||||||
this.$tab.closeOpenPage({ path: "/store/newBuy/newAccessoryAccept", query });
|
this.$tab.closeOpenPage({ path: '/store/newBuy/newAccessoryAccept', query })
|
||||||
},
|
},
|
||||||
/** 验收按钮操作 */
|
/** 验收按钮操作 */
|
||||||
handleCheck(row) {
|
handleCheck(row) {
|
||||||
let query = { taskId: row.taskId, isCheck: true }
|
let query = { taskId: row.taskId, isCheck: true }
|
||||||
this.$tab.closeOpenPage({ path: "/store/newBuy/newAccessoryAccept", query });
|
this.$tab.closeOpenPage({ path: '/store/newBuy/newAccessoryAccept', query })
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs['form'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// if (this.form.taskId != undefined) {
|
// if (this.form.taskId != undefined) {
|
||||||
// updateType(this.form).then(response => {
|
// updateType(this.form).then(response => {
|
||||||
|
|
@ -344,56 +364,64 @@ export default {
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
//获取验收单数据
|
//获取验收单数据
|
||||||
getPrintTable(taskId) {
|
getPrintTable(taskId) {
|
||||||
getAccessoryAcceptanceForm({ taskId: taskId }).then(response => {
|
getAccessoryAcceptanceForm({ taskId: taskId }).then(response => {
|
||||||
this.printData = response.data;
|
this.printData = response.data
|
||||||
this.printTableData = response.data.partDetailsList;
|
this.printTableData = response.data.partDetailsList
|
||||||
}
|
})
|
||||||
);
|
|
||||||
},
|
},
|
||||||
//查看验收单
|
//查看验收单
|
||||||
handleBuy(row) {
|
handleBuy(row) {
|
||||||
// this.query.taskId = row.taskId
|
// this.query.taskId = row.taskId
|
||||||
this.getPrintTable(row.taskId)
|
this.getPrintTable(row.taskId)
|
||||||
this.openPrint = true
|
this.openPrint = true
|
||||||
this.title = "新购工机具验收单";
|
this.title = '新购工机具验收单'
|
||||||
},
|
},
|
||||||
//打印
|
//打印
|
||||||
print() {
|
print() {
|
||||||
this.$refs.remarksPrintRef.print();
|
this.$refs.remarksPrintRef.print()
|
||||||
},
|
},
|
||||||
/** 新增 */
|
/** 新增 */
|
||||||
handleAccept() {
|
handleAccept() {
|
||||||
this.$tab.closeOpenPage("/store/newBuy/newAccessoryAccept");
|
let query = { isShow: true }
|
||||||
|
this.$tab.closeOpenPage({ path: '/store/newBuy/newAccessoryAccept', query })
|
||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const taskId = row.taskId || this.ids;
|
const taskId = row.taskId || this.ids
|
||||||
this.$modal.confirm('是否确认删除该数据项?').then(function() {
|
this.$modal
|
||||||
return delPurchaseAccessory(taskId);
|
.confirm('是否确认删除该数据项?')
|
||||||
}).then(() => {
|
.then(function() {
|
||||||
this.getList();
|
return delPurchaseAccessory(taskId)
|
||||||
this.$modal.msgSuccess("删除成功");
|
})
|
||||||
}).catch(() => {});
|
.then(() => {
|
||||||
|
this.getList()
|
||||||
|
this.$modal.msgSuccess('删除成功')
|
||||||
|
})
|
||||||
|
.catch(() => {})
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('material/purchaseAccessory/export', {
|
this.download(
|
||||||
...this.queryParams
|
'material/purchaseAccessory/export',
|
||||||
}, `新购配件_${new Date().getTime()}.xlsx`)
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
`新购配件_${new Date().getTime()}.xlsx`
|
||||||
|
)
|
||||||
},
|
},
|
||||||
/** 刷新缓存按钮操作 */
|
/** 刷新缓存按钮操作 */
|
||||||
handleRefreshCache() {
|
handleRefreshCache() {
|
||||||
refreshCache().then(() => {
|
refreshCache().then(() => {
|
||||||
this.$modal.msgSuccess("刷新成功");
|
this.$modal.msgSuccess('刷新成功')
|
||||||
this.$store.dispatch('dict/cleanDict');
|
this.$store.dispatch('dict/cleanDict')
|
||||||
});
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep.el-table .fixed-width .el-button--mini {
|
::v-deep.el-table .fixed-width .el-button--mini {
|
||||||
|
|
|
||||||
|
|
@ -61,19 +61,8 @@
|
||||||
</el-form-item>-->
|
</el-form-item>-->
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
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-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
|
@ -112,23 +101,13 @@
|
||||||
<!-- >删除</el-button>-->
|
<!-- >删除</el-button>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
|
||||||
type="warning"
|
|
||||||
plain
|
|
||||||
icon="el-icon-download"
|
|
||||||
size="mini"
|
|
||||||
@click="handleExport"
|
|
||||||
>导出</el-button
|
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
:showSearch.sync="showSearch"
|
|
||||||
@queryTable="getList"
|
|
||||||
></right-toolbar>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="tableList"
|
<el-table v-loading="loading" :data="tableList">
|
||||||
>code
|
code
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="采购单号" align="center" prop="code" />
|
<el-table-column label="采购单号" align="center" prop="code" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -148,8 +127,7 @@
|
||||||
align="center"
|
align="center"
|
||||||
prop="purchasingTypeName"
|
prop="purchasingTypeName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
></el-table-column>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="采购员"
|
label="采购员"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -157,58 +135,37 @@
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column label="提交入库人员" align="center" prop="createBy" :show-overflow-tooltip="true" />
|
||||||
label="提交入库人员"
|
|
||||||
align="center"
|
|
||||||
prop="createBy"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="提交入库时间"
|
label="提交入库时间"
|
||||||
align="center"
|
align="center"
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
label="不通过原因"
|
|
||||||
align="center"
|
|
||||||
prop="remark"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="状态"
|
label="状态"
|
||||||
align="center"
|
align="center"
|
||||||
prop="taskStatusResult"
|
prop="taskStatusResult"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button size="mini" icon="el-icon-zoom-in" @click="handleView(scope.row)">查看</el-button>
|
||||||
size="mini"
|
|
||||||
icon="el-icon-zoom-in"
|
|
||||||
@click="handleView(scope.row)"
|
|
||||||
>查看</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-if="scope.row.taskStatus == 69"
|
v-if="scope.row.taskStatus == 69"
|
||||||
>审核</el-button
|
>审核</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="info"
|
type="info"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-if="scope.row.taskStatus == 70"
|
v-if="scope.row.taskStatus == 70"
|
||||||
@click="handlePrint(scope.row)"
|
@click="handlePrint(scope.row)"
|
||||||
>入库单</el-button
|
>入库单</el-button>
|
||||||
>
|
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- type="text"-->
|
<!-- type="text"-->
|
||||||
|
|
@ -314,36 +271,16 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleDialogQuery">查询</el-button>
|
||||||
type="primary"
|
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="handleDialogQuery"
|
|
||||||
>查询</el-button
|
|
||||||
>
|
|
||||||
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> -->
|
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8" v-if="showHandle">
|
<el-row :gutter="10" class="mb8" v-if="showHandle">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="primary" plain size="mini" :disabled="multiple" @click="passAll">批量通过</el-button>
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
size="mini"
|
|
||||||
:disabled="multiple"
|
|
||||||
@click="passAll"
|
|
||||||
>批量通过</el-button
|
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="danger" plain size="mini" @click="refusedAll" :disabled="multiple">批量不通过</el-button>
|
||||||
type="danger"
|
|
||||||
plain
|
|
||||||
size="mini"
|
|
||||||
@click="refusedAll"
|
|
||||||
:disabled="multiple"
|
|
||||||
>批量不通过</el-button
|
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
|
|
@ -362,42 +299,18 @@
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
height="400"
|
height="400"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column type="selection" width="55" align="center" :selectable="selectable" />
|
||||||
type="selection"
|
|
||||||
width="55"
|
|
||||||
align="center"
|
|
||||||
:selectable="selectable"
|
|
||||||
/>
|
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column
|
<el-table-column label="配件类型" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||||
label="配件类型"
|
|
||||||
align="center"
|
|
||||||
prop="typeName"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="规格型号"
|
label="规格型号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="specificationType"
|
prop="specificationType"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="数量" align="center" prop="checkNum" :show-overflow-tooltip="true" />
|
||||||
label="数量"
|
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||||
align="center"
|
<el-table-column label="状态" align="center" prop="statusResult">
|
||||||
prop="checkNum"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="不通过原因"
|
|
||||||
align="center"
|
|
||||||
prop="remark"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="状态"
|
|
||||||
align="center"
|
|
||||||
prop="statusResult"
|
|
||||||
>
|
|
||||||
<!-- <template slot-scope="scope">
|
<!-- <template slot-scope="scope">
|
||||||
<span v-if="scope.row.status=='0'">未审核</span>
|
<span v-if="scope.row.status=='0'">未审核</span>
|
||||||
<span v-if="scope.row.status=='1'">已入库</span>
|
<span v-if="scope.row.status=='1'">已入库</span>
|
||||||
|
|
@ -418,15 +331,13 @@
|
||||||
type="text"
|
type="text"
|
||||||
@click="pass(scope.row)"
|
@click="pass(scope.row)"
|
||||||
v-if="scope.row.status == 1"
|
v-if="scope.row.status == 1"
|
||||||
>通过</el-button
|
>通过</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
v-if="scope.row.status == 1"
|
v-if="scope.row.status == 1"
|
||||||
@click="refused(scope.row)"
|
@click="refused(scope.row)"
|
||||||
>不通过</el-button
|
>不通过</el-button>
|
||||||
>
|
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- type="text"-->
|
<!-- type="text"-->
|
||||||
|
|
@ -458,13 +369,8 @@
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
"
|
"
|
||||||
>
|
>入库单</div>
|
||||||
入库单
|
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="info"
|
|
||||||
style="margin-top: 10px; display: flex; flex-wrap: wrap"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
class="item"
|
class="item"
|
||||||
style="
|
style="
|
||||||
|
|
@ -521,36 +427,12 @@
|
||||||
border
|
border
|
||||||
>
|
>
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||||
<el-table-column
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
label="序号"
|
<el-table-column label="类型名称" align="center" prop="typeName" />
|
||||||
align="center"
|
<el-table-column label="规格型号" align="center" prop="specificationType" />
|
||||||
type="index"
|
<el-table-column label="计量单位" align="center" prop="unitName" />
|
||||||
/>
|
<el-table-column label="数量" align="center" prop="checkNum" />
|
||||||
<el-table-column
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
label="类型名称"
|
|
||||||
align="center"
|
|
||||||
prop="typeName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="规格型号"
|
|
||||||
align="center"
|
|
||||||
prop="specificationType"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="计量单位"
|
|
||||||
align="center"
|
|
||||||
prop="unitName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="数量"
|
|
||||||
align="center"
|
|
||||||
prop="checkNum"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="备注"
|
|
||||||
align="center"
|
|
||||||
prop="remark"
|
|
||||||
/>
|
|
||||||
<!-- <el-table-column label="出库方式" align="center" prop="manageTypeName" /> -->
|
<!-- <el-table-column label="出库方式" align="center" prop="manageTypeName" /> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
|
@ -588,20 +470,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { listType, getType, delType, addType, updateType, refreshCache } from '@/api/system/dict/type'
|
||||||
listType,
|
import { getRepairedList, getRepairedDetailList, inputByType, getTypeList } from '@/api/store/warehousing'
|
||||||
getType,
|
|
||||||
delType,
|
|
||||||
addType,
|
|
||||||
updateType,
|
|
||||||
refreshCache,
|
|
||||||
} from '@/api/system/dict/type'
|
|
||||||
import {
|
|
||||||
getRepairedList,
|
|
||||||
getRepairedDetailList,
|
|
||||||
inputByType,
|
|
||||||
getTypeList,
|
|
||||||
} from '@/api/store/warehousing'
|
|
||||||
import {
|
import {
|
||||||
getPurchaseAccessoryPutInList,
|
getPurchaseAccessoryPutInList,
|
||||||
getPartList,
|
getPartList,
|
||||||
|
|
@ -695,27 +565,25 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTypeList() {
|
getTypeList() {
|
||||||
getPartList({ level: '2' }).then((response) => {
|
getPartList({ level: '2' }).then(response => {
|
||||||
this.typeList = response.data
|
this.typeList = response.data
|
||||||
})
|
})
|
||||||
getPartList({ level: '3' }).then((response) => {
|
getPartList({ level: '3' }).then(response => {
|
||||||
this.modelList = response.data
|
this.modelList = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 查询字典类型列表 */
|
/** 查询字典类型列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getPurchaseAccessoryPutInList(this.queryParams).then(
|
getPurchaseAccessoryPutInList(this.queryParams).then(response => {
|
||||||
(response) => {
|
|
||||||
this.tableList = response.rows
|
this.tableList = response.rows
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
},
|
})
|
||||||
)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getDialogTable() {
|
getDialogTable() {
|
||||||
getAccessoryPutInDetailList(this.query).then((response) => {
|
getAccessoryPutInDetailList(this.query).then(response => {
|
||||||
this.detailTableList = response.rows
|
this.detailTableList = response.rows
|
||||||
this.dialogTotal = response.total
|
this.dialogTotal = response.total
|
||||||
})
|
})
|
||||||
|
|
@ -760,7 +628,7 @@
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item)
|
this.ids = selection.map(item => item)
|
||||||
this.single = selection.length != 1
|
this.single = selection.length != 1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
|
|
@ -801,7 +669,7 @@
|
||||||
remark: row.remark,
|
remark: row.remark,
|
||||||
checkNum: row.checkNum,
|
checkNum: row.checkNum,
|
||||||
}
|
}
|
||||||
checkInputAccessory([obj]).then((response) => {
|
checkInputAccessory([obj]).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -814,14 +682,14 @@
|
||||||
passAll() {
|
passAll() {
|
||||||
console.log(this.query.taskId)
|
console.log(this.query.taskId)
|
||||||
console.log(this.ids)
|
console.log(this.ids)
|
||||||
this.ids.forEach((item) => {
|
this.ids.forEach(item => {
|
||||||
item.taskId = this.query.taskId
|
item.taskId = this.query.taskId
|
||||||
item.checkResult = '1'
|
item.checkResult = '1'
|
||||||
})
|
})
|
||||||
// let param = {
|
// let param = {
|
||||||
// params:JSON.stringify(this.ids)
|
// params:JSON.stringify(this.ids)
|
||||||
// }
|
// }
|
||||||
checkInputAccessory(this.ids).then((response) => {
|
checkInputAccessory(this.ids).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -848,7 +716,7 @@
|
||||||
// let param = {
|
// let param = {
|
||||||
// params:JSON.stringify([obj])
|
// params:JSON.stringify([obj])
|
||||||
// }
|
// }
|
||||||
checkInputAccessory([obj]).then((response) => {
|
checkInputAccessory([obj]).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -861,14 +729,14 @@
|
||||||
refusedAll() {
|
refusedAll() {
|
||||||
console.log(this.query.taskId)
|
console.log(this.query.taskId)
|
||||||
console.log(this.ids)
|
console.log(this.ids)
|
||||||
this.ids.forEach((item) => {
|
this.ids.forEach(item => {
|
||||||
item.taskId = this.query.taskId
|
item.taskId = this.query.taskId
|
||||||
item.checkResult = '2'
|
item.checkResult = '2'
|
||||||
})
|
})
|
||||||
// let param = {
|
// let param = {
|
||||||
// params:JSON.stringify(this.ids)
|
// params:JSON.stringify(this.ids)
|
||||||
// }
|
// }
|
||||||
checkInputAccessory(this.ids).then((response) => {
|
checkInputAccessory(this.ids).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess('审批成功')
|
this.$modal.msgSuccess('审批成功')
|
||||||
this.getDialogTable()
|
this.getDialogTable()
|
||||||
|
|
@ -881,16 +749,16 @@
|
||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.dictId != undefined) {
|
if (this.form.dictId != undefined) {
|
||||||
updateType(this.form).then((response) => {
|
updateType(this.form).then(response => {
|
||||||
this.$modal.msgSuccess('修改成功')
|
this.$modal.msgSuccess('修改成功')
|
||||||
this.open = false
|
this.open = false
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
addType(this.form).then((response) => {
|
addType(this.form).then(response => {
|
||||||
this.$modal.msgSuccess('新增成功')
|
this.$modal.msgSuccess('新增成功')
|
||||||
this.open = false
|
this.open = false
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
@ -902,12 +770,10 @@
|
||||||
|
|
||||||
//获取入库单数据
|
//获取入库单数据
|
||||||
getPrintTable(taskId) {
|
getPrintTable(taskId) {
|
||||||
accessoryWarehousingEntry({ taskId: taskId }).then(
|
accessoryWarehousingEntry({ taskId: taskId }).then(response => {
|
||||||
(response) => {
|
|
||||||
this.printTableData = response.data
|
this.printTableData = response.data
|
||||||
// this.dialogTotal = response.total;
|
// this.dialogTotal = response.total;
|
||||||
},
|
})
|
||||||
)
|
|
||||||
},
|
},
|
||||||
//查看入库单
|
//查看入库单
|
||||||
handlePrint(row) {
|
handlePrint(row) {
|
||||||
|
|
@ -937,7 +803,7 @@
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
},
|
},
|
||||||
`配件入库_${new Date().getTime()}.xlsx`,
|
`配件入库_${new Date().getTime()}.xlsx`
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
/** 刷新缓存按钮操作 */
|
/** 刷新缓存按钮操作 */
|
||||||
|
|
@ -949,25 +815,17 @@
|
||||||
},
|
},
|
||||||
//规格型号
|
//规格型号
|
||||||
equipmentType() {
|
equipmentType() {
|
||||||
equipmentTypeTree().then((response) => {
|
equipmentTypeTree().then(response => {
|
||||||
this.equipmentTypeList = response.data
|
this.equipmentTypeList = response.data
|
||||||
this.equipmentTypeList.forEach((item, index) => {
|
this.equipmentTypeList.forEach((item, index) => {
|
||||||
if (item.children && item.children.length > 0) {
|
if (item.children && item.children.length > 0) {
|
||||||
item.children.forEach((item2, index2) => {
|
item.children.forEach((item2, index2) => {
|
||||||
if (
|
if (item2.children && item2.children.length > 0) {
|
||||||
item2.children &&
|
item2.children.forEach(item3 => {
|
||||||
item2.children.length > 0
|
if (item3.children && item3.children.length > 0) {
|
||||||
) {
|
item3.children.forEach(item4 => {
|
||||||
item2.children.forEach((item3) => {
|
item4.machineTypeName = item3.typeName
|
||||||
if (
|
item4.specificationType = item4.typeName
|
||||||
item3.children &&
|
|
||||||
item3.children.length > 0
|
|
||||||
) {
|
|
||||||
item3.children.forEach((item4) => {
|
|
||||||
item4.machineTypeName =
|
|
||||||
item3.typeName
|
|
||||||
item4.specificationType =
|
|
||||||
item4.typeName
|
|
||||||
// this.$set(item4, 'purchasePrice', 0);
|
// this.$set(item4, 'purchasePrice', 0);
|
||||||
// this.$set(item4, 'purchaseNum', 1);
|
// this.$set(item4, 'purchaseNum', 1);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue