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

部分调整,等待接口

parent 44624425
<template> <template>
<DefaultDialog :app='app'> <DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;"> <div style=slot="form" style="display: flex;height: 70vh;width: 100%;">
DialogTitle:'新增', <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
showDialog:false, <el-row :gutter="20" :app="this">
<el-col :span="12">
<el-form-item label="单号" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="入/出库日期" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="部门" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="仓库" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 扣押-->
<el-col :span="12">
<el-form-item label="扣押方式" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="三方仓库名" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="三方仓库地址" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="扣押日期" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="经手人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 调用-->
<el-col :span="12">
<el-form-item label="归还日期" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="调用人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 归还人-->
<el-col :span="12">
<el-form-item label="归还人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 发还-->
<el-col :span="12">
<el-form-item label="发还人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领取人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 没收-->
<el-col :span="12">
<el-form-item label="调入仓库" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="调出仓库" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 移送-->
<el-col :span="12">
<el-form-item label="移送单位" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 拍卖-->
<el-col :span="12">
<el-form-item label="拍得单位" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<!-- 销毁-->
<el-col :span="12">
<el-form-item label="销毁单位" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="销毁方式" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div> </div>
<div slot="reFooter" class="refooter" > <div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer" > <span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button> <el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button> <el-button type="primary" @click="save()">保 存</el-button>
</span> </span>
</div> </div>
</DefaultDialog> </DefaultDialog>
</template> </template>
<script> <script>
import {
editMixin
} from 'common'
export default { export default {
mixins: [editMixin],
props: { props: {
app: { app: {
type: Object, type: Object,
default: ()=>{ default: () => {
return {} return {}
} }
} }
}, },
async mounted() { async mounted() {
}, },
data() { data() {
return { return {
readonly: true,
form: {
dh: '等待接口'
}
} }
}, },
methods: { methods: {
} }
} }
</script> </script>
......
...@@ -2,7 +2,12 @@ ...@@ -2,7 +2,12 @@
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<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" :app="this"> <el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :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-col :span="24">
<el-form-item label="单号" ref="content" prop="content">
<el-input type="input" v-model="form.dh"></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
</RelDialog> </RelDialog>
...@@ -16,29 +21,9 @@ ...@@ -16,29 +21,9 @@
mixins: [editMixin], mixins: [editMixin],
data() { data() {
return { return {
editColItemList: [ form:{
{ dh:123
label: '编码', }
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
} }
} }
} }
......
<template> <template>
<BasePage <BasePage
ref="basePage"
@tpDbClick='tpDbClick' @tpDbClick='tpDbClick'
:power="{ :power="{
add: false, add: false,
...@@ -13,6 +14,7 @@ ...@@ -13,6 +14,7 @@
saveSelected: false saveSelected: false
}" class="min_full" :config="config"> }" class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<Dialog :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
...@@ -24,7 +26,7 @@ ...@@ -24,7 +26,7 @@
</template> </template>
<script> <script>
import Edit from './edit.vue' import Dialog from './dialog.vue'
export default { export default {
data() { data() {
return { return {
...@@ -208,16 +210,16 @@ ...@@ -208,16 +210,16 @@
}, },
methods: { methods: {
tpDbClick(){ tpDbClick(row){
console.log('tpDbClick') this.$refs.basePage.DialogWidth='60vw'
this.$refs.basePage.DialogTitle='订单属性'
this.$refs.basePage.showDialog=true
} }
/* 示例*/
// demo(basePage){
// }
}, },
components: { components: {
Edit Dialog
} }
} }
......
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