This commit is contained in:
zds
2022-12-05 21:12:56 +08:00
parent 8f14b98765
commit dd366c7322
10 changed files with 753 additions and 8 deletions

View File

@@ -49,10 +49,10 @@
>
<el-table-column type="index" label="序号" width="100" align="center" fixed />
<template v-for="(col,index) in cols">
<el-table-column v-if="col.prop !== 'first'" :prop="col.prop" :label="col.label" width="120px" />
<el-table-column v-if="col.prop === 'first'" :prop="col.prop" :label="col.label" width="120px" fixed>
<el-table-column v-if="col.prop !== 'first'" :prop="col.prop" :label="col.label" width="120px" />
<el-table-column v-if="col.prop === 'first'" :prop="col.prop" :label="col.label" width="120px" fixed>
<template slot-scope="scope">
<el-link type="warning" @click="open2()">{{ scope.row.first }}</el-link>
<el-link type="warning" @click="open2(scope.$index, scope.row)">{{ scope.row.first }}</el-link>
</template>
</el-table-column>
</template>
@@ -75,6 +75,9 @@
</template>
</el-table>
<!--分页组件-->
<StructIvt4 ref="child" :dialog-show.sync="structshow" :rowmst="form" />
<StructIvt3 ref="child3" :dialog-show.sync="structshow3" :rowmst="form" />
<StructIvt2 ref="child2" :dialog-show.sync="structshow2" :rowmst="form" />
</div>
</div>
</template>
@@ -92,8 +95,9 @@ import report from '@/api/wms/statistics/report'
import CRUD, { presenter, header, crud } 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 StructIvt4 from '@/views/wms/statistics/materPlan/StructIvt4'
import StructIvt3 from '@/views/wms/statistics/materPlan/StructIvt3'
import StructIvt2 from '@/views/wms/statistics/materPlan/StructIvt2'
import DateRangePicker from '@/components/DateRangePicker'
import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
import { download } from '@/api/data'
@@ -104,7 +108,7 @@ import workorder from '@/api/wms/pdm/workorder'
const start = new Date()
export default {
name: 'MaterPlanQuery',
components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker },
components: { crudOperation, rrOperation, DateRangePicker, StructIvt4, StructIvt2, StructIvt3 },
mixins: [presenter(), header(), crud()],
cruds() {
return CRUD({
@@ -129,6 +133,10 @@ export default {
cols: [],
cols2: [],
dtlList: [],
form: {},
structshow: false,
structshow2: false,
structshow3: false,
Depts: [],
statusList: [],
permission: {},
@@ -164,7 +172,16 @@ export default {
})
return true
},
open2() {
open2(index, row) {
if (row.first === '库存现存量') {
this.structshow = true
}
if (row.first === '待检入库量') {
this.structshow2 = true
}
if (row.first === '合同在途') {
this.structshow3 = true
}
},
hand(value) {
this.crud.toQuery()