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

仓库url 自动带货主

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