Commit c71e3edc authored by 李苏's avatar 李苏 💬

新版edit 页面《未完》

parent 51acd15e
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog width="80%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20" :app="this">
<el-col :span="12"> <EditColItem :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<el-form-item v-rule="{ </el-row>
required:true, </el-form>
rules:rules, </RelDialog>
}" label="上级分类" ref="pid" prop="pid">
<RelSelect :readonly="readonly" filterable style="width: 100%;" src='/jcsj/wlfl/init/sjfl' :match="{value:'id',label:'name'}" v-model='form.pid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="分类编码" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.code"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="分类名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="增值税率(%)" ref="zzsl" prop="zzsl">
<el-input :readonly="readonly" v-model="form.zzsl"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="流水号长度" ref="snlen" prop="snlen">
<el-input :readonly="readonly" v-model="form.snlen"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template> </template>
<script> <script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
pid:'',
code:'',
name:'',
zzsl:'',
snlen:'',
bz:''
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [{
label: '物料编码',
prop: 'code',
span: 6,
type: 'input',
},
{
label: '物料名称',
prop: 'name',
span: 6,
type: 'input',
rule:'required',
},
{
label: '物料分类',
prop: 'flid',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/wlxx/init/wlfl"
}
},
{
label: '规格',
prop: 'gg',
span: 6,
type: 'input'
},
{
label: '计量单位',
prop: 'jldw',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/jldw/query"
},
rule:'required',
},
{
label: '辅计量单位',
prop: 'fjldw',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/jldw/query"
},
},
{
label: '增值税率(%)',
prop: 'zzsl',
span: 6,
type: 'inputNumber'
},
{
label: '批号管理',
prop: 'phgl',
span: 6,
type: 'checkbox',
value:'N'
},
{
label: '单件管理',
prop: 'djgl',
span: 6,
type: 'checkbox',
value:'N'
},
{
label: '最小订货批量',
prop: 'zxdhpl',
span: 6,
type: 'inputNumber'
},
{
label: '订单倍数',
prop: 'ddbs',
span: 6,
type: 'inputNumber'
},
{
label: '安全库存',
prop: 'aqkc',
span: 6,
type: 'inputNumber'
},
{
label: '库存高限',
prop: 'kcgx',
span: 6,
type: 'inputNumber'
},
{
label: '订货提前期',
prop: 'dhtqq',
span: 6,
type: 'inputNumber'
},
{
label: '询价方式',
prop: 'xjfs',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/wlxx/init/xjfs"
},
},
{
label: '供应商',
prop: 'gysid',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/gys/query"
},
},
{
label: '物料形态',
prop: 'wlxt',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/wlxx/init/wlxt"
},
},
{
label: '缺省仓库',
prop: 'ckid',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/common/ck/query"
},
},
{
label: '缺省库位',
prop: 'kwid',
span: 6,
type: 'RelSelect',
typeConfig:{
src:"jcsj/kw/query",
linkage:true,
linkParams:['ckid']
} },
} },
}, {
methods: { label: '产品结构号',
} prop: 'bomid',
span: 6,
type: 'input'
},
{
label: '工艺路线号',
prop: 'gylxid',
span: 6,
type: 'input'
},
{
label: '库存期限',
prop: 'kcqx',
span: 6,
type: 'input'
},
{
label: '订货部门',
prop: 'dhbmid',
span: 6,
type: 'input'
},
{
label: '计划方法',
prop: 'jhff',
span: 6,
type: 'input'
},
{
label: '订货类型',
prop: 'dhlx',
span: 6,
type: 'input'
},
{
label: '条码规则',
prop: 'snruleid',
span: 6,
type: 'input'
},
{
label: '计划部门',
prop: 'jhbmid',
span: 6,
type: 'input'
},
{
label: '主生产计划 ',
prop: 'mps',
span: 6,
type: 'input'
},
{
label: '定制生产',
prop: 'dzsc',
span: 6,
type: 'input'
},
{
label: '单件净重',
prop: 'jz',
span: 6,
type: 'input'
},
{
label: '单件毛重',
prop: 'mz',
span: 6,
type: 'input'
},
{
label: '标准成本',
prop: 'bzcb',
span: 6,
type: 'input'
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
} }
}
</script> </script>
<style scoped lang="scss">
</style>
...@@ -74,8 +74,8 @@ module.exports = { ...@@ -74,8 +74,8 @@ module.exports = {
], ],
}, },
chainWebpack(config) { chainWebpack(config) {
config.plugins.delete('preload') // TODO: need test config.plugins.delete('preload')
config.plugins.delete('prefetch') // TODO: need test config.plugins.delete('prefetch')
// set svg-sprite-loader // set svg-sprite-loader
config.module config.module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment