add:增加备货管理托盘库存查看功能
This commit is contained in:
@@ -32,4 +32,12 @@ export function showDetail(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, showDetail }
|
||||
export function showDetail2(params) {
|
||||
return request({
|
||||
url: 'api/bstIvtStockingivt/showDetail2',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, showDetail, showDetail2 }
|
||||
|
||||
@@ -93,14 +93,17 @@
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="point_code" label="点位编码" :min-width="flexWidth('point_code',crud.data,'点位编码')">
|
||||
<template slot-scope="scope">
|
||||
<el-table-column prop="point_code" label="点位编码" :min-width="flexWidth('point_code',crud.data,'点位编码')"/>
|
||||
<!-- <template slot-scope="scope">
|
||||
<el-link type="primary" @click="toView(scope.$index, scope.row)">{{ scope.row.point_code }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>-->
|
||||
<el-table-column prop="point_name" label="点位名称" :min-width="flexWidth('point_name',crud.data,'点位名称')" />
|
||||
<el-table-column prop="vehicle_code" label="托盘号" :min-width="flexWidth('vehicle_code',crud.data,'托盘号')" />
|
||||
<!-- <el-table-column prop="product_area" label="区域" :min-width="flexWidth('product_area',crud.data,'区域')" />-->
|
||||
<el-table-column prop="vehicle_code" label="托盘号" :min-width="flexWidth('vehicle_code',crud.data,'托盘号')">
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="toView2(scope.$index, scope.row)">{{ scope.row.vehicle_code }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="point_type" label="点位类型" :min-width="flexWidth('point_type',crud.data,'点位类型')">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.STOCK_POINT_TYPE[scope.row.point_type] }}
|
||||
@@ -139,18 +142,17 @@
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
</div>
|
||||
<tube-dialog :dialog-show.sync="showView" :rows="rows" :vehicle_code="vehicle_code" />
|
||||
<tube-dialog2 :dialog-show.sync="showView2" :rowmst="mstrow" @AddChanged="querytable" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudBstIvtStockingivt from './bstIvtStockingivt'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import TubeDialog from '@/views/b_lms/bst/ivt/stockingivt/tubeDialog.vue'
|
||||
import TubeDialog2 from '@/views/b_lms/bst/ivt/stockingivt/tubeDialog2.vue'
|
||||
|
||||
const defaultForm = {
|
||||
ivt_id: null,
|
||||
@@ -175,7 +177,7 @@ const defaultForm = {
|
||||
export default {
|
||||
name: 'BstIvtStockingivt',
|
||||
dicts: ['STOCK_POINT_STATUS', 'STOCK_POINT_TYPE', 'point_location'],
|
||||
components: { TubeDialog, pagination, crudOperation, rrOperation, udOperation },
|
||||
components: { TubeDialog2, pagination, crudOperation, udOperation },
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
@@ -222,7 +224,9 @@ export default {
|
||||
},
|
||||
showView: false,
|
||||
vehicle_code: '',
|
||||
rows: {}
|
||||
showView2: false,
|
||||
rows: [],
|
||||
mstrow: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -230,17 +234,13 @@ export default {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
return true
|
||||
},
|
||||
toView(index, row) {
|
||||
// vehicle_code, point_code
|
||||
console.log(row)
|
||||
const param = {
|
||||
vehicle_code: this.vehicle_code
|
||||
}
|
||||
crudBstIvtStockingivt.showDetail(param).then(res => {
|
||||
this.vehicle_code = row.vehicle_code
|
||||
this.showView = true
|
||||
this.rows = res
|
||||
})
|
||||
querytable() {
|
||||
this.$refs.table.clearSelection()
|
||||
this.crud.toQuery()
|
||||
},
|
||||
toView2(index, row) {
|
||||
this.showView2 = true
|
||||
this.mstrow = row
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user