|
|
@ -1,5 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
|
|
<div ref="pageHeaderRef">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" >
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" >
|
|
|
|
<el-form-item label="送货单号" prop="userDefined5">
|
|
|
|
<el-form-item label="送货单号" prop="userDefined5">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
@ -45,92 +46,42 @@
|
|
|
|
<!-- />-->
|
|
|
|
<!-- />-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item label="报检日期" prop="checkTimeArray">
|
|
|
|
|
|
|
|
<el-date-picker
|
|
|
|
|
|
|
|
v-model="queryParams.checkTimeArray"
|
|
|
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
|
|
range-separator="至"
|
|
|
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
|
|
end-placeholder="结束日期">
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<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-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">-->
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="primary"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-plus"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleAdd"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:add']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >新增</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="success"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-edit"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– :disabled="single"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleUpdateSAP"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:edit']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >105过账</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="success"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-edit"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– :disabled="single"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleUpdateSAP103"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:edit']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >104冲销</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="success"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-edit"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– :disabled="single"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleUpdateSAP105"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:edit']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >106冲销</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="danger"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-delete"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– :disabled="multiple"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleDelete"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:remove']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >删除</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="success"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-edit"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– :disabled="single"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleUpdate"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:edit']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >修改</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-col :span="1.5">–>-->
|
|
|
|
|
|
|
|
<!--<!– <el-button–>-->
|
|
|
|
|
|
|
|
<!--<!– type="warning"–>-->
|
|
|
|
|
|
|
|
<!--<!– plain–>-->
|
|
|
|
|
|
|
|
<!--<!– icon="el-icon-download"–>-->
|
|
|
|
|
|
|
|
<!--<!– size="mini"–>-->
|
|
|
|
|
|
|
|
<!--<!– @click="handleExport"–>-->
|
|
|
|
|
|
|
|
<!--<!– v-hasPermi="['wms:odsRawOrderIn:export']"–>-->
|
|
|
|
|
|
|
|
<!--<!– >导出</el-button>–>-->
|
|
|
|
|
|
|
|
<!--<!– </el-col>–>-->
|
|
|
|
|
|
|
|
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
|
|
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="odsRawOrderInList" @selection-change="handleSelectionChange">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
|
|
|
v-hasPermi="['wms:orderBJ:export']"
|
|
|
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table :max-height="tableHeight" v-loading="loading" :data="odsRawOrderInList" @selection-change="handleSelectionChange">
|
|
|
|
<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="userDefined5" width="130"/>
|
|
|
|
<el-table-column label="送货单号" align="center" prop="userDefined5" width="130"/>
|
|
|
|
<el-table-column label="采购单" align="center" prop="procureCode" width="130"/>
|
|
|
|
<el-table-column label="采购单" align="center" prop="procureCode" width="130"/>
|
|
|
@ -142,6 +93,7 @@
|
|
|
|
<el-table-column label="物料描述" align="center" prop="materialDesc" :min-width="180"/>
|
|
|
|
<el-table-column label="物料描述" align="center" prop="materialDesc" :min-width="180"/>
|
|
|
|
<el-table-column label="数量" align="center" prop="operationNumber" width="130"/>
|
|
|
|
<el-table-column label="数量" align="center" prop="operationNumber" width="130"/>
|
|
|
|
<el-table-column label="报检时间" align="center" prop="createtime" width="150"/>
|
|
|
|
<el-table-column label="报检时间" align="center" prop="createtime" width="150"/>
|
|
|
|
|
|
|
|
<el-table-column label="检验任务编号" align="center" prop="checkNo" width="150"/>
|
|
|
|
<el-table-column label="报检人" align="center" prop="createBy" width="150"/>
|
|
|
|
<el-table-column label="报检人" align="center" prop="createBy" width="150"/>
|
|
|
|
<el-table-column label="暂收时间" align="center" prop="gmtCreate" width="150"/>
|
|
|
|
<el-table-column label="暂收时间" align="center" prop="gmtCreate" width="150"/>
|
|
|
|
<el-table-column label="质检开始时间" align="center" prop="createtime" width="150"/>
|
|
|
|
<el-table-column label="质检开始时间" align="center" prop="createtime" width="150"/>
|
|
|
@ -340,10 +292,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listOdsRawOrderIn, getOdsRawOrderIn, delOdsRawOrderIn, addOdsRawOrderIn, updateOdsRawOrderIn ,sap105temporarilyCollected,handleUpdateSAP103,handleUpdateSAP105,listZJ} from "@/api/wms/odsRawOrderIn";
|
|
|
|
import { listOdsRawOrderIn, getOdsRawOrderIn, delOdsRawOrderIn, addOdsRawOrderIn, updateOdsRawOrderIn ,sap105temporarilyCollected,handleUpdateSAP103,handleUpdateSAP105,listZJ} from "@/api/wms/odsRawOrderIn";
|
|
|
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
|
|
|
import useTableMaxHeight from "@/utils/useTableMaxHeight";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "OdsRawOrderIn",
|
|
|
|
name: "OdsRawOrderIn",
|
|
|
|
data() {
|
|
|
|
mixins: [useTableMaxHeight],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
@ -365,6 +320,7 @@ export default {
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
// 查询参数
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
queryParams: {
|
|
|
|
|
|
|
|
checkTimeArray:undefined,
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
factoryCode: null,
|
|
|
|
factoryCode: null,
|
|
|
@ -428,9 +384,18 @@ export default {
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
this.pageHeaderRef = this.$refs.pageHeaderRef
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
/** 查询包材到货单列表 */
|
|
|
|
/** 查询包材到货单列表 */
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.queryParams.checkTimeArray!=null){
|
|
|
|
|
|
|
|
this.queryParams.checkTimeStart = moment(this.queryParams.checkTimeArray[0]).format('YYYY-MM-DD');
|
|
|
|
|
|
|
|
this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
listZJ(this.queryParams).then(response => {
|
|
|
|
listZJ(this.queryParams).then(response => {
|
|
|
|
this.odsRawOrderInList = response.rows;
|
|
|
|
this.odsRawOrderInList = response.rows;
|
|
|
@ -509,6 +474,7 @@ export default {
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
resetQuery() {
|
|
|
|
resetQuery() {
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
|
|
this.queryParams.checkTimeArray = undefined;
|
|
|
|
this.handleQuery();
|
|
|
|
this.handleQuery();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
@ -605,7 +571,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
this.download('wms/odsRawOrderIn/export', {
|
|
|
|
this.download('wms/odsRawOrderIn/exportBJ', {
|
|
|
|
...this.queryParams
|
|
|
|
...this.queryParams
|
|
|
|
}, `odsRawOrderIn_${new Date().getTime()}.xlsx`)
|
|
|
|
}, `odsRawOrderIn_${new Date().getTime()}.xlsx`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|