This commit is contained in:
zds
2022-12-03 11:50:20 +08:00
parent 4fa3014bd8
commit 2f1a3ffb68
3 changed files with 182 additions and 108 deletions

View File

@@ -63,7 +63,7 @@
@change="hand"
>
<el-option
v-for="item in dict.workorder_status"
v-for="item in dict.formula_status"
:label="item.label"
:value="item.value"
/>
@@ -121,7 +121,7 @@ import Date from '@/utils/datetime'
export default {
name: 'Powderorder',
dicts: ['workorder_status'],
dicts: ['formula_status'],
components: { pagination, crudOperation, rrOperation },
mixins: [presenter(), header(), crud()],
cruds() {
@@ -161,15 +161,16 @@ export default {
// 钩子在获取表格数据之前执行false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
this.crud.data = []
this.cols = []
if (this.query_flag) {
this.crud.query.begin_time = (new Date().daysAgo(7)).strftime('%F', 'zh')
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
this.query_flag = false
const now = this.crud.query
crudPowderorder.getHeader(now).then(res => {
this.cols = res
})
}
const now = this.crud.query
crudPowderorder.getHeader(now).then(res => {
this.cols = res
})
return true
},
onInput() {