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

部分调整,等待接口

parent 44624425
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
<div style=slot="form" style="display: flex;height: 70vh;width: 100%;">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<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 slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</div>
</DefaultDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
props: {
app: {
type: Object,
default: ()=>{
return {}
}
default: () => {
return {}
}
}
},
async mounted() {
},
data() {
return {
readonly: true,
form: {
dh: '等待接口'
}
}
},
methods: {
}
}
</script>
......
......@@ -2,7 +2,12 @@
<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-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-form>
</RelDialog>
......@@ -16,29 +21,9 @@
mixins: [editMixin],
data() {
return {
editColItemList: [
{
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'
},
]
form:{
dh:123
}
}
}
}
......
<template>
<BasePage
ref="basePage"
@tpDbClick='tpDbClick'
:power="{
add: false,
......@@ -13,6 +14,7 @@
saveSelected: false
}" class="min_full" :config="config">
<template #dialog="ctx">
<Dialog :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
......@@ -24,7 +26,7 @@
</template>
<script>
import Edit from './edit.vue'
import Dialog from './dialog.vue'
export default {
data() {
return {
......@@ -208,16 +210,16 @@
},
methods: {
tpDbClick(){
console.log('tpDbClick')
tpDbClick(row){
this.$refs.basePage.DialogWidth='60vw'
this.$refs.basePage.DialogTitle='订单属性'
this.$refs.basePage.showDialog=true
}
/* 示例*/
// demo(basePage){
// }
},
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