2024-04-02 09:34:54 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="div1">
|
2024-04-02 09:33:41 +08:00
|
|
|
|
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<div class="div2" style="padding-bottom: 10px">
|
2024-04-02 09:33:41 +08:00
|
|
|
|
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-form ref="form" :model="param" label-width="80px">
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="采购单号:">
|
|
|
|
|
|
<el-input type="textarea" v-model="param.sourceId" :rows="1"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="收货凭证:" >
|
|
|
|
|
|
<el-input type="textarea" v-model="param.strBill7" :rows="1"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="料号:">
|
|
|
|
|
|
<el-input type="textarea" v-model="param.code" :rows="1"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="工厂:">
|
|
|
|
|
|
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;">
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in Plant"
|
|
|
|
|
|
:key="item.ID"
|
|
|
|
|
|
:label="item.PROP_C9"
|
|
|
|
|
|
:value="item.PROP_C9"
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="LOC:">
|
|
|
|
|
|
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in LOCS"
|
|
|
|
|
|
:key="item.ID"
|
|
|
|
|
|
:label="item.PROP_C2"
|
|
|
|
|
|
:value="item.PROP_C2"
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="批次号:">
|
|
|
|
|
|
<el-input type="textarea" v-model="param.PROP_C1" :rows="1"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
2024-04-03 14:41:15 +08:00
|
|
|
|
<el-row :gutter="24" v-show="isShow">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="收货日期:">
|
|
|
|
|
|
<el-date-picker style="width: 325px"
|
|
|
|
|
|
v-model="param.ORDER_DATE"
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
align="right"
|
|
|
|
|
|
unlink-panels
|
|
|
|
|
|
range-separator="至"
|
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
2024-04-03 09:27:11 +08:00
|
|
|
|
<el-form-item label="整理日期:" ref="all">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-date-picker style="width: 325px"
|
|
|
|
|
|
v-model="param.RECEIVE_DATE"
|
|
|
|
|
|
type="daterange"
|
|
|
|
|
|
align="right"
|
|
|
|
|
|
unlink-panels
|
|
|
|
|
|
range-separator="至"
|
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
|
:picker-options="pickerOptions">
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
2024-04-03 09:27:11 +08:00
|
|
|
|
<el-form-item label="特殊标记:" ref="all">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-input type="text" v-model="param.PROP_C3"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
|
<el-form-item label="SAP接口:">
|
|
|
|
|
|
<el-input type="text" v-model="param.CODE"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
2024-04-03 09:27:11 +08:00
|
|
|
|
<el-col :span="4" v-if="isShow">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-form-item label="加急标记">
|
|
|
|
|
|
<el-input type="text" v-model="param.strBill11"></el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="success" @click="find">查找</el-button>
|
2024-04-24 16:53:29 +08:00
|
|
|
|
<el-button type="success" @click="down">导出</el-button>
|
2024-04-03 09:27:11 +08:00
|
|
|
|
<el-button type="success" @click="rest">重置</el-button>
|
|
|
|
|
|
<el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
|
2024-04-02 09:34:54 +08:00
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table
|
2024-04-03 14:41:15 +08:00
|
|
|
|
v-loading="this.tableloding"
|
2024-04-08 17:44:37 +08:00
|
|
|
|
:height="MaxHeight"
|
2024-04-02 09:34:54 +08:00
|
|
|
|
:header-cell-style="{background:'#000',color:'#fff'}"
|
|
|
|
|
|
:data="tableData"
|
|
|
|
|
|
id="educe-table"
|
|
|
|
|
|
ref="tableData"
|
|
|
|
|
|
style="width: 100%;">
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
type="selection"
|
|
|
|
|
|
width="55">
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
fixed
|
|
|
|
|
|
label="序号"
|
|
|
|
|
|
v-if="false"
|
|
|
|
|
|
width="180">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span style="margin-left: 10px">{{ scope.row.id }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-04-12 16:42:47 +08:00
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
|
<!-- label="ID"-->
|
|
|
|
|
|
<!-- width="180">-->
|
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
|
<!-- <div slot="reference" class="name-wrapper">-->
|
|
|
|
|
|
<!-- <span>{{ scope.row.id}}</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
|
<!-- </el-table-column>-->
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="采购单号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.sourceId }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="凭证号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.strBill7 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="行号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.strBill8 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="料号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="160">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.code }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2024-04-12 16:42:47 +08:00
|
|
|
|
:show-overflow-tooltip="true"
|
2024-04-02 09:34:54 +08:00
|
|
|
|
label="描述"
|
|
|
|
|
|
width="180">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.name }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="单位"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.unit }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="加急标记"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.strBill11 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="批次"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.PROP_C1 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="LOC"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.PROP_C2 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="特殊标记"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.PROP_C3 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="供应商编号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.PROP_C5 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-04-15 14:28:16 +08:00
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
|
<!-- label="区域"-->
|
|
|
|
|
|
<!-- width="80">-->
|
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
|
<!-- <div slot="reference" class="name-wrapper">-->
|
|
|
|
|
|
<!-- <span>{{ scope.row.PROP_C8 }}</span>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
|
<!-- </el-table-column>-->
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="工厂"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.PROP_C9 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="收货数量"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.EXPECTED_QUANTITY }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="整理数量"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.RECEIVED_QUANTITY }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="收货日期"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ new Date(scope.row.ORDER_DATE).toISOString().replace('T', ' ').substring(0, 10) }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="收货时间"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ new Date(scope.row.ORDER_DATE).toISOString().replace('T', ' ').substring(10,19)}}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="序列号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.strBill2 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="整理日期"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ new Date(scope.row.RECEIVE_DATE).toISOString().replace('T','').substring(0,10) }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="整理时间"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
2024-04-03 09:27:11 +08:00
|
|
|
|
<span>{{ new Date(scope.row.RECEIVE_DATE).toISOString().replace('T','').substring(10,18)}}</span>
|
2024-04-02 09:34:54 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="整理人"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.USER_NAME }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="预入库日期"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
2024-04-12 16:42:47 +08:00
|
|
|
|
<span>{{scope.row.DELIVERY_DATE!=null?new Date(scope.row.DELIVERY_DATE).toISOString().replace('T','').substring(0,10):scope.row.DELIVERY_DATE}}</span>
|
2024-04-02 09:34:54 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="预入库时间"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
2024-04-12 16:42:47 +08:00
|
|
|
|
<span>{{ scope.row.DELIVERY_DATE!=null?new Date(scope.row.DELIVERY_DATE).toISOString().replace('T','').substring(0,10):scope.row.DELIVERY_DATE }}</span>
|
2024-04-02 09:34:54 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="预入库操作人"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.RELATED_BILL5 }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2024-04-12 16:42:47 +08:00
|
|
|
|
:show-overflow-tooltip="true"
|
2024-04-02 09:34:54 +08:00
|
|
|
|
label="备注"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="100">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.description }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="是否质检"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
2024-04-15 14:28:16 +08:00
|
|
|
|
<span>{{ scope.row.BE_QUALITY==0?'否':'是' }}</span>
|
2024-04-02 09:34:54 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="SAP接口号"
|
2024-04-12 16:42:47 +08:00
|
|
|
|
width="80">
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
|
|
|
<span>{{ scope.row.CODE }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
|
:current-page="pageNum"
|
2024-04-03 17:34:17 +08:00
|
|
|
|
:page-sizes="[ 50, 100, 200,500]"
|
2024-04-02 09:34:54 +08:00
|
|
|
|
:page-size="pageSize"
|
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
|
:total="total">
|
|
|
|
|
|
</el-pagination>
|
|
|
|
|
|
</div>
|
2024-04-02 09:33:41 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
2024-04-02 09:34:54 +08:00
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: "Rukuzhengli",
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
|
shortcuts: [{
|
|
|
|
|
|
text: '最近一周',
|
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
|
const end = new Date();
|
|
|
|
|
|
const start = new Date();
|
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}, {
|
|
|
|
|
|
text: '最近一个月',
|
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
|
const end = new Date();
|
|
|
|
|
|
const start = new Date();
|
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}, {
|
|
|
|
|
|
text: '最近三个月',
|
|
|
|
|
|
onClick(picker) {
|
|
|
|
|
|
const end = new Date();
|
|
|
|
|
|
const start = new Date();
|
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
|
|
picker.$emit('pick', [start, end]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}]
|
|
|
|
|
|
},
|
2024-04-03 14:41:15 +08:00
|
|
|
|
tableloding: false,
|
2024-04-03 09:27:11 +08:00
|
|
|
|
isShow:false,//是否展示全部搜索条件
|
2024-04-02 09:34:54 +08:00
|
|
|
|
value1: '',
|
|
|
|
|
|
value2: '',
|
|
|
|
|
|
tableData: [],
|
2024-04-03 17:34:17 +08:00
|
|
|
|
pageSize: 50,
|
2024-04-02 09:34:54 +08:00
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
total: 3,
|
|
|
|
|
|
param: {
|
|
|
|
|
|
sourceId: '',
|
|
|
|
|
|
strBill7: '',
|
|
|
|
|
|
code: '',
|
|
|
|
|
|
PROP_C1: '',
|
|
|
|
|
|
PROP_C3: '',
|
|
|
|
|
|
CODE: '',
|
|
|
|
|
|
PROP_C9: [],
|
|
|
|
|
|
PROP_C2: [],
|
|
|
|
|
|
//整理日期
|
|
|
|
|
|
RECEIVE_DATE: [],
|
|
|
|
|
|
//收货日期
|
|
|
|
|
|
ORDER_DATE: [],
|
|
|
|
|
|
},
|
|
|
|
|
|
Plant: [],
|
|
|
|
|
|
LOCS: [],
|
|
|
|
|
|
checked: false,
|
|
|
|
|
|
}
|
2024-04-08 17:44:37 +08:00
|
|
|
|
},computed:{
|
|
|
|
|
|
MaxHeight(){
|
|
|
|
|
|
return window.innerHeight - 240 +"px";
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
2024-04-02 09:34:54 +08:00
|
|
|
|
this.queryUser();
|
|
|
|
|
|
this.PlantS();
|
|
|
|
|
|
this.LOC();
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
handleEdit(index, row) {
|
|
|
|
|
|
console.log(index, row);
|
|
|
|
|
|
},
|
|
|
|
|
|
handleDelete(index, row) {
|
|
|
|
|
|
console.log(index, row);
|
|
|
|
|
|
},
|
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
|
console.log(`每页 ${val} 条`);
|
|
|
|
|
|
this.pageNum = 1;
|
|
|
|
|
|
this.pageSize = val;
|
|
|
|
|
|
this.queryUser();
|
|
|
|
|
|
},
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
|
|
console.log(`当前页: ${val}`);
|
|
|
|
|
|
this.pageNum = val;
|
|
|
|
|
|
this.queryUser();
|
|
|
|
|
|
},
|
|
|
|
|
|
LOC(){
|
|
|
|
|
|
//LOC下拉列表数据加载
|
|
|
|
|
|
this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', {
|
|
|
|
|
|
|
|
|
|
|
|
}).then(res => res.data)
|
|
|
|
|
|
.then(res => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.LOCS = res.data;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error('获取数据失败');
|
|
|
|
|
|
}
|
2024-04-03 14:41:15 +08:00
|
|
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
|
},err=>{
|
|
|
|
|
|
this.tableloding=false;
|
2024-04-02 09:34:54 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
PlantS(){
|
|
|
|
|
|
//工厂下拉列表数据加载
|
|
|
|
|
|
this.$axios.post(this.$httpUrl + '/Rukuzhengli/Plant', {
|
|
|
|
|
|
|
|
|
|
|
|
}).then(res => res.data)
|
|
|
|
|
|
.then(res => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.Plant = res.data;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error('获取数据失败');
|
|
|
|
|
|
}
|
2024-04-03 14:41:15 +08:00
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
|
},err=>{
|
|
|
|
|
|
this.tableloding=false;
|
2024-04-02 09:34:54 +08:00
|
|
|
|
})
|
2024-04-03 14:41:15 +08:00
|
|
|
|
|
2024-04-02 09:34:54 +08:00
|
|
|
|
},
|
|
|
|
|
|
queryUser() {
|
2024-04-08 17:44:37 +08:00
|
|
|
|
|
2024-04-02 09:34:54 +08:00
|
|
|
|
//列表数据加载
|
|
|
|
|
|
this.$axios.post(this.$httpUrl + '/Rukuzhengli/queryUser', {
|
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
|
|
param: this.param,
|
|
|
|
|
|
}).then(res => res.data)
|
|
|
|
|
|
.then(res => {
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
this.tableData = res.data
|
|
|
|
|
|
this.total = res.total
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error('获取数据失败');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-04-03 14:41:15 +08:00
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
|
|
},err=>{
|
|
|
|
|
|
this.tableloding=false;
|
2024-04-02 09:34:54 +08:00
|
|
|
|
})
|
2024-04-03 14:41:15 +08:00
|
|
|
|
|
2024-04-02 09:34:54 +08:00
|
|
|
|
},
|
|
|
|
|
|
find(){
|
|
|
|
|
|
this.queryUser();
|
|
|
|
|
|
},
|
2024-04-24 16:53:29 +08:00
|
|
|
|
down(){
|
|
|
|
|
|
this.downExcel();
|
|
|
|
|
|
},
|
|
|
|
|
|
downExcel() {
|
|
|
|
|
|
//显示加载图
|
|
|
|
|
|
this.tableloding=true;
|
|
|
|
|
|
//发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
|
|
|
|
|
|
//参数和搜索参数一样
|
|
|
|
|
|
this.$axios.post(this.$httpUrl + '/Rukuzhengli/download', {
|
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
|
|
param: this.param,
|
|
|
|
|
|
},{responseType:'blob'}).then(res => {
|
|
|
|
|
|
this.tableloding=false;
|
|
|
|
|
|
//重命名文件
|
|
|
|
|
|
this.downloadFile(res.data,'入库整理'+ '数据', 'xlsx')
|
|
|
|
|
|
});
|
|
|
|
|
|
//列表数据加载
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
downloadFile(obj, name, suffix) {
|
|
|
|
|
|
//解析流文件,进行下载保存
|
|
|
|
|
|
const url = window.URL.createObjectURL(new Blob([obj]))
|
|
|
|
|
|
const link = document.createElement('a')
|
|
|
|
|
|
link.style.display = 'none'
|
|
|
|
|
|
link.href = url
|
|
|
|
|
|
const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
|
|
|
|
|
|
link.setAttribute('download', fileName)
|
|
|
|
|
|
document.body.appendChild(link)
|
|
|
|
|
|
link.click()
|
|
|
|
|
|
document.body.removeChild(link)
|
|
|
|
|
|
},
|
|
|
|
|
|
parseTime(time, cFormat) {
|
|
|
|
|
|
//获取当前时间
|
|
|
|
|
|
if (arguments.length === 0) {
|
|
|
|
|
|
return null
|
|
|
|
|
|
}
|
|
|
|
|
|
const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
|
|
|
|
|
|
let date
|
|
|
|
|
|
if (typeof time === 'undefined' || time === null || time === 'null') {
|
|
|
|
|
|
return ''
|
|
|
|
|
|
} else if (typeof time === 'object') {
|
|
|
|
|
|
date = time
|
|
|
|
|
|
} else {
|
|
|
|
|
|
if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
|
|
|
|
|
|
time = parseInt(time)
|
|
|
|
|
|
}
|
|
|
|
|
|
if ((typeof time === 'number') && (time.toString().length === 10)) {
|
|
|
|
|
|
time = time * 1000
|
|
|
|
|
|
}
|
|
|
|
|
|
date = new Date(time)
|
|
|
|
|
|
}
|
|
|
|
|
|
const formatObj = {
|
|
|
|
|
|
y: date.getFullYear(),
|
|
|
|
|
|
m: date.getMonth() + 1,
|
|
|
|
|
|
d: date.getDate(),
|
|
|
|
|
|
h: date.getHours(),
|
|
|
|
|
|
i: date.getMinutes(),
|
|
|
|
|
|
s: date.getSeconds(),
|
|
|
|
|
|
a: date.getDay()
|
|
|
|
|
|
}
|
|
|
|
|
|
const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
|
|
|
|
|
|
let value = formatObj[key]
|
|
|
|
|
|
// Note: getDay() returns 0 on Sunday
|
|
|
|
|
|
if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
|
|
|
|
|
|
if (result.length > 0 && value < 10) {
|
|
|
|
|
|
value = '0' + value
|
|
|
|
|
|
}
|
|
|
|
|
|
return value || 0
|
|
|
|
|
|
})
|
|
|
|
|
|
return time_str
|
|
|
|
|
|
},
|
2024-04-02 09:34:54 +08:00
|
|
|
|
Allquesr(){
|
|
|
|
|
|
//查询按钮
|
|
|
|
|
|
if(this.checked){
|
2024-04-03 09:27:11 +08:00
|
|
|
|
this.isShow=true;
|
|
|
|
|
|
}else {
|
|
|
|
|
|
this.isShow=false;
|
2024-04-02 09:34:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
rest() {
|
2024-04-03 09:27:11 +08:00
|
|
|
|
//条件查询重置
|
2024-04-03 14:41:15 +08:00
|
|
|
|
this.checked=false;
|
|
|
|
|
|
this.isShow=false;
|
2024-04-02 09:34:54 +08:00
|
|
|
|
this.param={};
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2024-04-02 09:33:41 +08:00
|
|
|
|
|
|
|
|
|
|
</style>
|