库存可视化div内新增规格字段;库存查询新增查询条件和导出EXCEL功能

This commit is contained in:
2023-04-03 11:27:48 +08:00
parent fd19c38bd5
commit 431682131a
7 changed files with 206 additions and 94 deletions

View File

@@ -57,6 +57,18 @@
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="批次">
<el-input
v-model="query.pcsn"
clearable
style="width: 180px"
placeholder="批次"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="入库时间">
<date-range-picker v-model="query.createTime" class="date-item" :default-time="['00:00:00', '23:59:59']"/>
</el-form-item>
<!--<el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button>
@@ -66,7 +78,18 @@
</div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission" />
<crudOperation :permission="permission">
<el-button
slot="right"
class="filter-item"
type="success"
icon="el-icon-check"
size="mini"
@click="downdtl"
>
导出Excel
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table
ref="table"
@@ -119,10 +142,13 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import crudSect from '@/api/wms/st/sect'
import qualitytestorderCrud from '@/api/wms/st/qualitytestorder'
import { download } from '@/api/data'
import { downloadFile } from '@/utils'
import DateRangePicker from '@/components/DateRangePicker/index'
export default {
name: 'StructIvt',
components: { pagination, crudOperation, rrOperation, udOperation },
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker },
mixins: [presenter(), header(), crud()],
cruds() {
return CRUD({
@@ -186,6 +212,18 @@ export default {
return Item.name
}
}
},
downdtl() {
if (this.currentRow !== null) {
crud.downloadLoading = true
download('/api/structIvt/download', this.crud.query).then(result => {
debugger
downloadFile(result, '库存', 'xlsx')
crud.downloadLoading = false
}).catch(() => {
crud.downloadLoading = false
})
}
}
}
}

View File

@@ -77,7 +77,7 @@
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0102-0'+count+'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
2</br>{{ count }}</br>2</br>{{arr3['0101-0'+count+'-02']}}
2</br>{{ count }}</br>2</br>{{arr3['0102-0'+count+'-02']}}
</div>
</el-popover>
</el-col>
@@ -243,7 +243,7 @@
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0104-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
4</br>{{ (count + 6) }}</br>2</br>{{arr['0104-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']}}
4</br>{{ (count + 6) }}</br>2</br>{{arr3['0104-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -774,10 +774,10 @@ export default {
return {
arr: {},
arr2: {},
arr3:{},
arr3: {},
width: '2500',
div_width: '35',
div_height: '58',
div_width: '43',
div_height: '60',
row_color: '#0d3fad'
}
},

View File

@@ -21,10 +21,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0201-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
1</br>{{ count }}</br>2
1</br>{{ count }}</br>2</br>{{arr3['0201-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -41,10 +41,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0201-'+((count+4) >= 10 ? (count+4) : '0'+(count+4)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
1</br>{{ (count+4) }}</br>2
1</br>{{ (count+4) }}</br>2</br>{{arr3['0201-'+((count+4) >= 10 ? (count+4) : '0'+(count+4)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -63,10 +63,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0201-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
1</br>{{ count }}</br>1
1</br>{{ count }}</br>1</br>{{arr3['0201-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -90,10 +90,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0201-'+((count+4) >= 10 ? (count+4) : '0'+(count+4)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
1</br>{{ (count+4) }}</br>1
1</br>{{ (count+4) }}</br>1</br>{{arr3['0201-'+((count+4) >= 10 ? (count+4) : '0'+(count+4)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -114,10 +114,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0202-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
2</br>{{ count }}</br>2
2</br>{{ count }}</br>2</br>{{arr3['0202-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -134,10 +134,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0202-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
2</br>{{ (count+6) }}</br>2
2</br>{{ (count+6) }}</br>2</br>{{arr3['0202-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -156,10 +156,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0202-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
2</br>{{ count }}</br>1
2</br>{{ count }}</br>1</br>{{arr3['0202-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -183,10 +183,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0202-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
2</br>{{ (count+6) }}</br>1
2</br>{{ (count+6) }}</br>1</br>{{arr3['0202-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -206,10 +206,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0203-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
3</br>{{ count }}</br>2
3</br>{{ count }}</br>2</br>{{arr3['0203-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -226,10 +226,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0203-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
3</br>{{ (count+6) }}</br>2
3</br>{{ (count+6) }}</br>2</br>{{arr3['0203-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -248,10 +248,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0203-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
3</br>{{ count }}</br>1
3</br>{{ count }}</br>1</br>{{arr3['0203-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -275,10 +275,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0203-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
3</br>{{ (count+6) }}</br>1
3</br>{{ (count+6) }}</br>1</br>{{arr3['0203-'+((count+6) >= 10 ? (count+6) : '0'+(count+6)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -298,10 +298,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0204-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
4</br>{{ count }}</br>2
4</br>{{ count }}</br>2</br>{{arr3['0204-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -318,10 +318,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0204-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
4</br>{{ (count+12) }}</br>2
4</br>{{ (count+12) }}</br>2</br>{{arr3['0204-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -340,10 +340,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0204-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
4</br>{{ count }}</br>1
4</br>{{ count }}</br>1</br>{{arr3['0204-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -367,10 +367,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0204-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
4</br>{{ (count+12) }}</br>1
4</br>{{ (count+12) }}</br>1</br>{{arr3['0204-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -390,10 +390,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0205-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
5</br>{{ count }}</br>2
5</br>{{ count }}</br>2</br>{{arr3['0205-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -410,10 +410,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0205-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
5</br>{{ (count+12) }}</br>2
5</br>{{ (count+12) }}</br>2</br>{{arr3['0205-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -432,10 +432,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0205-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
5</br>{{ count }}</br>1
5</br>{{ count }}</br>1</br>{{arr3['0205-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -459,10 +459,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0205-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
5</br>{{ (count+12) }}</br>1
5</br>{{ (count+12) }}</br>1</br>{{arr3['0205-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -482,10 +482,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0206-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
6</br>{{ count }}</br>2
6</br>{{ count }}</br>2</br>{{arr3['0206-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -502,10 +502,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0206-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
6</br>{{ (count+12) }}</br>2
6</br>{{ (count+12) }}</br>2</br>{{arr3['0206-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -524,10 +524,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0206-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
6</br>{{ count }}</br>1
6</br>{{ count }}</br>1</br>{{arr3['0206-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -551,10 +551,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0206-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
6</br>{{ (count+12) }}</br>1
6</br>{{ (count+12) }}</br>1</br>{{arr3['0206-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -574,10 +574,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0207-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
7</br>{{ count }}</br>2
7</br>{{ count }}</br>2</br>{{arr3['0207-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -594,10 +594,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0207-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
7</br>{{ (count+12) }}</br>2
7</br>{{ (count+12) }}</br>2</br>{{arr3['0207-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -616,10 +616,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0207-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
7</br>{{ count }}</br>1
7</br>{{ count }}</br>1</br>{{arr3['0207-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -643,10 +643,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0207-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
7</br>{{ (count+12) }}</br>1
7</br>{{ (count+12) }}</br>1</br>{{arr3['0207-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -666,10 +666,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0208-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
8</br>{{ count }}</br>2
8</br>{{ count }}</br>2</br>{{arr3['0208-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -686,10 +686,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0208-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
8</br>{{ (count+12) }}</br>2
8</br>{{ (count+12) }}</br>2</br>{{arr3['0208-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -708,10 +708,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0208-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
8</br>{{ count }}</br>1
8</br>{{ count }}</br>1</br>{{arr3['0208-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -735,10 +735,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0208-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
8</br>{{ (count+12) }}</br>1
8</br>{{ (count+12) }}</br>1</br>{{arr3['0208-'+((count+12) >= 10 ? (count+12) : '0'+(count+12)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -758,10 +758,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0209-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
9</br>{{ (count) }}</br>2
9</br>{{ (count) }}</br>2</br>{{arr3['0209-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -787,10 +787,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0209-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
9</br>{{ (count) }}</br>1
9</br>{{ (count) }}</br>1</br>{{arr3['0209-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -810,10 +810,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0210-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
10</br>{{ (count+12) }}</br>2
10</br>{{ (count+12) }}</br>2</br>{{arr3['0210-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -839,10 +839,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0210-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
10</br>{{ (count) }}</br>1
10</br>{{ (count) }}</br>1</br>{{arr3['0210-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -862,10 +862,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0211-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
11</br>{{ (count) }}</br>2
11</br>{{ (count) }}</br>2</br>{{arr3['0211-'+((count) >= 10 ? (count) : '0'+(count)) +'-02']}}
</div>
</el-popover>
</el-col>
@@ -891,10 +891,10 @@
<div
slot="reference"
class="grid-content bg-purple-dark"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center;"
style="border: 1px solid #d3dce6;display: inline-block;text-align: center; font-size: 10px;"
:style="'background:'+arr['0211-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']+';width: '+div_width+'px;height: '+div_height+'px;'"
>
11</br>{{ (count) }}</br>1
11</br>{{ (count) }}</br>1</br>{{arr3['0211-'+((count) >= 10 ? (count) : '0'+(count)) +'-01']}}
</div>
</el-popover>
</el-col>
@@ -927,6 +927,7 @@ export default {
'0201-06-02': 'green'
},
arr2: {},
arr3: {},
width: '2500',
div_width: '43',
div_height: '60',
@@ -943,6 +944,10 @@ export default {
dis.queryInfoByCode().then(res => {
this.arr2 = res
})
dis.queryMaterial().then(res => {
debugger
this.arr3 = res
})
}, 10000)
// 销毁定时器
this.$once('hook:beforeDestroy', () => {
@@ -954,12 +959,12 @@ export default {
const params = this.arr2[data]
let str = ''
str = '货位:' + data +
'<br/>载具:' + params['vehicle_code'] +
'<div/>载具:' + params['vehicle_code'] +
'</br>' + '物料名称:' + params['material_name'] +
'</br>' + '物料编码:' + params['material_code'] +
'</br>' + '物料规格:' + params['material_spec'] +
'</br>' + '入库时间:' + params['instorage_time'] +
'<br>' + '批次:' + params['pcsn']
'<div>' + '批次:' + params['pcsn']
return str
}
}