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

仓库url 自动带货主

parent 9db2094a
......@@ -195,7 +195,7 @@
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"src": "lxyl/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
......
......@@ -34,15 +34,17 @@
required:true,
rules:rules,
}" label="仓库分类" ref="flid" prop="flid">
<RelSelect style="width: 100%;" src='wms/common/query/ckfl' clearable :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
<RelSelect style="width: 100%;" src='wms/common/query/ckfl' clearable :match="{value:'id',label:'name'}"
v-model='form.flid'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="工厂" ref="hzid" prop="hzid">
<RelSelect style="width: 100%;" src='wms/jcsj/hz/query' clearable :match="{value:'id',label:'name'}" v-model='form.hzid' ></RelSelect>
}" label="工厂" ref="gcid" prop="gcid">
<RelSelect style="width: 100%;" src='wms/jcsj/hz/query' clearable :match="{value:'id',label:'name'}"
v-model='form.gcid'></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -57,13 +59,13 @@
</el-col>
<el-col :span="12">
<el-form-item>
<el-checkbox v-model="form.kwgl" true-label="Y" false-label="N" >库位管理</el-checkbox>
<el-checkbox v-model="form.kwgl" true-label="Y" false-label="N">库位管理</el-checkbox>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<el-checkbox v-model="form.wcs" true-label="Y" false-label="N" >集成WCS</el-checkbox>
<el-checkbox v-model="form.wcs" true-label="Y" false-label="N">集成WCS</el-checkbox>
</el-form-item>
</el-col>
......@@ -72,34 +74,35 @@
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
mounted() {},
/* 组件名称*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
code:'',
id:'',
name:'',
rkdqz:'',
ckdqz:'',
flid:'',
bgy:'',
bz:'',
gysgl:'N',
kwgl:'N'
code: '',
id: '',
name: '',
rkdqz: '',
ckdqz: '',
flid: '',
bgy: '',
bz: '',
gysgl: 'N',
kwgl: 'N',
gcid: ''
}
}
},
methods: {
}
methods: {}
}
</script>
......
......@@ -42,7 +42,7 @@
},
{
title: "工厂",
field: "hzName",
field: "gcName",
width: 120
},
{
......
......@@ -262,6 +262,7 @@ import { Row } from 'element-ui'
}
},
{
readonly:true,
label: '货主',
prop: 'hzid',
span: 8,
......
......@@ -211,10 +211,14 @@
readonly:(this.type=='edit'||this.type=='view')?true:false,
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"src": "lxyl/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
},
change:(row)=>{
this.form.hzName=row.hzName
this.form.hzid=row.hzid
}
}
},
......@@ -296,7 +300,7 @@
prop: 'hzid',
span: 8,
type: 'AuxInput',
readonly:(this.type=='edit'||this.type=='view')?true:false,
readonly:true,
typeConfig: {
isRequest: true,
code: 'HZID',
......
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