rev:移库界面修改
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
v-model="query.form_type"
|
v-model="query.form_type"
|
||||||
filterable
|
filterable
|
||||||
size="mini"
|
size="mini"
|
||||||
|
disabled
|
||||||
placeholder="请选择/搜索"
|
placeholder="请选择/搜索"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
@change="crud.toQuery()"
|
@change="crud.toQuery()"
|
||||||
@@ -31,10 +32,10 @@
|
|||||||
<template v-for="(col,index) in cols" v-if="hideShowDialog">
|
<template v-for="(col,index) in cols" v-if="hideShowDialog">
|
||||||
<el-form-item label="col.lable">
|
<el-form-item label="col.lable">
|
||||||
<label slot="label">{{ col.lable }}:</label>
|
<label slot="label">{{ col.lable }}:</label>
|
||||||
<el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px" />
|
<el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
<rrOperation :crud="crud" />
|
<rrOperation :crud="crud"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
@@ -59,8 +60,8 @@
|
|||||||
@select="handleSelectionChange"
|
@select="handleSelectionChange"
|
||||||
:data="crud.data"
|
:data="crud.data"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55"/>
|
||||||
<el-table-column prop="code" label="单据编码" show-overflow-tooltip width="120">
|
<el-table-column prop="code" label="单据编码" show-overflow-tooltip width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link v-if="scope.row.hasChildren" type="warning" @click="toView(scope.row)">{{
|
<el-link v-if="scope.row.hasChildren" type="warning" @click="toView(scope.row)">{{
|
||||||
scope.row.code
|
scope.row.code
|
||||||
@@ -69,7 +70,7 @@
|
|||||||
<span v-else>{{ scope.row.code }}</span>
|
<span v-else>{{ scope.row.code }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="form_type" label="单据类型" show-overflow-tooltip width="120" />
|
<el-table-column prop="form_type" label="单据类型" show-overflow-tooltip width="120"/>
|
||||||
<el-table-column prop="status" label="单据状态" show-overflow-tooltip width="120">
|
<el-table-column prop="status" label="单据状态" show-overflow-tooltip width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<template v-for="item in statusEnum.FORM_STATUS">
|
<template v-for="item in statusEnum.FORM_STATUS">
|
||||||
@@ -86,12 +87,12 @@
|
|||||||
>
|
>
|
||||||
<template slot-scope="scope">{{ scope.row.form_data[item.value] }}</template>
|
<template slot-scope="scope">{{ scope.row.form_data[item.value] }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="remark" label="备注" />
|
<el-table-column prop="proc_inst_id" label="流程实例" show-overflow-tooltip width="120"/>
|
||||||
<el-table-column prop="create_time" label="创建时间" />
|
<el-table-column prop="remark" label="备注"/>
|
||||||
<el-table-column prop="create_name" label="创建人" />
|
<el-table-column prop="create_time" label="创建时间" width="150"/>
|
||||||
<el-table-column prop="update_time" label="修改时间" />
|
<el-table-column prop="create_name" label="创建人"/>
|
||||||
<el-table-column prop="create_name" label="修改人" />
|
<el-table-column prop="update_time" label="修改时间" width="150"/>
|
||||||
<el-table-column prop="proc_inst_id" label="对应流程实例id" show-overflow-tooltip width="120" />
|
<el-table-column prop="create_name" label="修改人"/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
@@ -105,17 +106,17 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination/>
|
||||||
</div>
|
</div>
|
||||||
<AddDialog ref="viewDialog" />
|
<AddDialog ref="viewDialog"/>
|
||||||
<ViewDialog ref="viewDialog" />
|
<ViewDialog ref="viewDialog"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import crudFormData from './formData'
|
import crudFormData from './formData'
|
||||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
import CRUD, {crud, form, header, presenter} from '@crud/crud'
|
||||||
import crudOperation from '@crud/CRUD.operation'
|
import crudOperation from '@crud/CRUD.operation'
|
||||||
import udOperation from '@crud/UD.operation'
|
import udOperation from '@crud/UD.operation'
|
||||||
import rrOperation from '@crud/RR.operation'
|
import rrOperation from '@crud/RR.operation'
|
||||||
@@ -149,7 +150,7 @@ const defaultForm = {
|
|||||||
export default {
|
export default {
|
||||||
name: 'FormData',
|
name: 'FormData',
|
||||||
statusEnums: ['FORM_STATUS'],
|
statusEnums: ['FORM_STATUS'],
|
||||||
components: { pagination, crudOperation, rrOperation, udOperation, AddDialog ,ViewDialog },
|
components: {pagination, crudOperation, rrOperation, udOperation, AddDialog, ViewDialog},
|
||||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({
|
return CRUD({
|
||||||
@@ -157,13 +158,13 @@ export default {
|
|||||||
url: 'api/pmFormData',
|
url: 'api/pmFormData',
|
||||||
idField: 'id',
|
idField: 'id',
|
||||||
sort: 'id,desc',
|
sort: 'id,desc',
|
||||||
crudMethod: { ...crudFormData },
|
crudMethod: {...crudFormData},
|
||||||
optShow: {
|
optShow: {
|
||||||
add: true,
|
add: true,
|
||||||
reset: true
|
reset: true
|
||||||
},
|
},
|
||||||
query: {
|
query: {
|
||||||
form_type:'st_ivt_move',
|
form_type: 'st_ivt_move',
|
||||||
form_data: {}
|
form_data: {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -227,9 +228,9 @@ export default {
|
|||||||
|
|
||||||
handleSelectionChange(val, row) {
|
handleSelectionChange(val, row) {
|
||||||
if (val.length === 1) {
|
if (val.length === 1) {
|
||||||
if (row.status == '10'){
|
if (row.status == '10') {
|
||||||
this.task_flag = false
|
this.task_flag = false
|
||||||
}else {
|
} else {
|
||||||
this.task_flag = true
|
this.task_flag = true
|
||||||
}
|
}
|
||||||
this.dis_flag = false
|
this.dis_flag = false
|
||||||
|
|||||||
Reference in New Issue
Block a user