add:增加出入库分配策略类
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="app-container">
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<div>
|
||||
<!-- 搜索 -->
|
||||
<el-form
|
||||
:inline="true"
|
||||
@@ -13,7 +13,7 @@
|
||||
>
|
||||
<el-form-item label="单据类型">
|
||||
<el-select
|
||||
v-model="query.form_type"
|
||||
v-model="query.bill_type"
|
||||
filterable
|
||||
size="mini"
|
||||
placeholder="请选择/搜索"
|
||||
@@ -22,10 +22,28 @@
|
||||
@change="crud.toQuery()"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in fromTypes"
|
||||
v-for="item in dict.INANDOUT_BILL_TYPE"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.status"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in dict.io_bill_status"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:label="item.lable"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -39,29 +57,43 @@
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据状态">
|
||||
<el-select
|
||||
v-model="query.status"
|
||||
size="mini"
|
||||
placeholder="单据状态"
|
||||
class="filter-item"
|
||||
<el-form-item label="物料编码">
|
||||
<el-input
|
||||
v-model="query.mater"
|
||||
clearable
|
||||
@change="crud.toQuery()"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in statusEnum.FORM_STATUS"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
style="width: 250px"
|
||||
size="mini"
|
||||
placeholder="请输入物料编码"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<template v-for="(col,index) in cols" v-if="hideShowDialog">
|
||||
<el-form-item label="col.lable">
|
||||
<label slot="label">{{ col.lable }}:</label>
|
||||
<el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px" />
|
||||
</el-form-item>
|
||||
</template>
|
||||
<el-form-item label="批次">
|
||||
<el-input
|
||||
v-model="query.pcsn"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="请输入批次"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据日期" prop="analyseData">
|
||||
<el-date-picker
|
||||
v-model="query.datepick"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <template v-for="(col,index) in cols" v-if="hideShowDialog">-->
|
||||
<!-- <el-form-item label="col.lable">-->
|
||||
<!-- <label slot="label">{{ col.lable }}:</label>-->
|
||||
<!-- <el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </template>-->
|
||||
<rrOperation :crud="crud" />
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -189,6 +221,7 @@ import ViewDialog from './ViewDialog'
|
||||
const defaultForm = {
|
||||
id: null,
|
||||
code: null,
|
||||
bill_type: null,
|
||||
proc_inst_id: null,
|
||||
biz_id: null,
|
||||
boz_code: null,
|
||||
@@ -204,12 +237,12 @@ const defaultForm = {
|
||||
from_data: null,
|
||||
parent_id: null
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'FormData',
|
||||
dicts: ['base_data'],
|
||||
dicts: ['base_data', 'ST_INV_IN_TYPE', 'INANDOUT_BILL_TYPE', 'io_bill_status'],
|
||||
components: { pagination, crudOperation, rrOperation, udOperation, ViewDialog },
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
statusEnums: ['FORM_STATUS'],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '表单数据',
|
||||
@@ -231,7 +264,7 @@ export default {
|
||||
cols: [],
|
||||
classes: [],
|
||||
uploadShow: false,
|
||||
fromTypes: [],
|
||||
// fromTypes: [],
|
||||
permission: {},
|
||||
rules: {},
|
||||
hideShowDialog: false,
|
||||
@@ -257,39 +290,39 @@ export default {
|
||||
},
|
||||
created() {
|
||||
// 获取分类
|
||||
this.getFromTypes()
|
||||
// this.getFromTypes()
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
if (this.fromTypes.length > 0) {
|
||||
// formstruc.getHeader(this.query.form_type).then(res => {
|
||||
// this.cols = res
|
||||
// res.forEach(a => {
|
||||
// this.form.form_data[a.value, '']
|
||||
// this.$set(this.query, 'form_query', {})
|
||||
// })
|
||||
// })
|
||||
// return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
getFromTypes() {
|
||||
crudFormData.getParentFormTypes().then((res) => { // 获取分类名称,查询根据分类编码查找对应分支树
|
||||
this.fromTypes = res
|
||||
if (this.fromTypes.length > 0) {
|
||||
this.$set(this.query, 'form_type', this.fromTypes[0].value)
|
||||
this.crud.toQuery()
|
||||
}
|
||||
})
|
||||
},
|
||||
hideShow() {
|
||||
if (this.hideShowDialog) {
|
||||
// this.$set(this.query, 'form_query', {})
|
||||
}
|
||||
this.hideShowDialog = !this.hideShowDialog
|
||||
// if (this.fromTypes.length > 0) {
|
||||
// // formstruc.getHeader(this.query.form_type).then(res => {
|
||||
// // this.cols = res
|
||||
// // res.forEach(a => {
|
||||
// // this.form.form_data[a.value, '']
|
||||
// // this.$set(this.query, 'form_query', {})
|
||||
// // })
|
||||
// // })
|
||||
// // return true
|
||||
// }
|
||||
// return false
|
||||
},
|
||||
// getFromTypes() {
|
||||
// crudFormData.getParentFormTypes().then((res) => { // 获取分类名称,查询根据分类编码查找对应分支树
|
||||
// this.fromTypes = res
|
||||
// if (this.fromTypes.length > 0) {
|
||||
// this.$set(this.query, 'form_type', this.fromTypes[0].value)
|
||||
// this.crud.toQuery()
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
// hideShow() {
|
||||
// if (this.hideShowDialog) {
|
||||
// // this.$set(this.query, 'form_query', {})
|
||||
// }
|
||||
// this.hideShowDialog = !this.hideShowDialog
|
||||
// },
|
||||
toView(row) {
|
||||
if (row !== null) {
|
||||
this.$refs.viewDialog.setForm(row)
|
||||
|
||||
Reference in New Issue
Block a user