Commit 6919d17e authored by 李苏's avatar 李苏 💬

调整

parent a85ae764
...@@ -170,3 +170,5 @@ new Vue({ ...@@ -170,3 +170,5 @@ new Vue({
return h(App) return h(App)
} }
}) })
...@@ -3,112 +3,122 @@ ...@@ -3,112 +3,122 @@
<div style=slot="form" style="display: flex;height: 70vh;width: 100%;"> <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-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this"> <el-row :gutter="20" :app="this">
<el-col :span="12"> <el-col v-if="form.ckdh" :span="12">
<el-form-item label="单号" ref="content" prop="content"> <el-form-item label="单号" >
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.ckdh"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.rkdh" :span="12">
<el-form-item label="入/出库日期" ref="content" prop="content"> <el-form-item label="单号" >
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.rkdh"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.rkrq" :span="12">
<el-form-item label="部门" ref="content" prop="content"> <el-form-item label="入库日期" >
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-date-picker style="width: 100%;" type="date" :readonly="readonly" v-model="form.rkrq"></el-date-picker >
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.ckrq" :span="12">
<el-form-item label="仓库" ref="content" prop="content"> <el-form-item label="出库日期" >
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-date-picker style="width: 100%;" type="date" :readonly="readonly" v-model="form.ckrq"></el-date-picker >
</el-form-item>
</el-col>
<el-col v-if="form.bm" :span="12">
<el-form-item label="部门" >
<RelSelect style="width: 100%;" clearable :readonly="readonly" src='hjbm/query' :match="{value:'bmid',label:'bmmc'}" v-model='form.bm' ></RelSelect>
</el-form-item>
</el-col>
<el-col v-if="form.ckid" :span="12">
<el-form-item label="仓库" >
<RelSelect style="width: 100%;" clearable :readonly="readonly" src='jcsj/u_ckwh/query' :match="{value:'id',label:'ckmc'}" v-model='form.ckid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 扣押--> <!-- 扣押-->
<el-col :span="12"> <el-col v-if='form.rklxmc' :span="12">
<el-form-item label="扣押方式" ref="content" prop="content"> <el-form-item label="扣押方式" >
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.rklxmc"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.dsfmc" :span="12">
<el-form-item label="三方仓库名" ref="content" prop="content"> <el-form-item label="三方仓库名" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.dsfmc"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.dsfkdd" :span="12">
<el-form-item label="三方仓库地址" ref="content" prop="content"> <el-form-item label="三方仓库地址" >
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.dsfkdd"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.rkjzrq" :span="12">
<el-form-item label="扣押日期" ref="content" prop="content"> <el-form-item label="扣押日期" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" v-model="form.rkjzrq"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.jsr" :span="12">
<el-form-item label="经手人" ref="content" prop="content"> <el-form-item label="经手人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.jsr"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 调用--> <!-- 调用-->
<el-col :span="12"> <el-col v-if="form.yjghrq" :span="12">
<el-form-item label="归还日期" ref="content" prop="content"> <el-form-item label="归还日期" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-date-picker style="width: 100%;" :readonly="readonly" type="date" v-model="form.yjghrq"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.dyr" :span="12">
<el-form-item label="调用人" ref="content" prop="content"> <el-form-item label="调用人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.dyr"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 归还人--> <!-- 归还人-->
<el-col :span="12"> <el-col v-if="form.swlxr" :span="12">
<el-form-item label="归还人" ref="content" prop="content"> <el-form-item label="归还人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.swlxr"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 发还--> <!-- 发还-->
<el-col :span="12"> <el-col v-if="form.fhdx" :span="12">
<el-form-item label="发还人" ref="content" prop="content"> <el-form-item label="发还人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.fhdx"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.lqr" :span="12">
<el-form-item label="领取人" ref="content" prop="content"> <el-form-item label="领取人" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.lqr"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 没收--> <!-- 没收-->
<el-col :span="12"> <el-col v-if="form.msdrckmc" :span="12">
<el-form-item label="调入仓库" ref="content" prop="content"> <el-form-item label="调入仓库" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.msdrckmc"></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="content" prop="content"> <el-form-item label="调出仓库" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.dh"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<!-- 移送--> <!-- 移送-->
<el-col :span="12"> <el-col v-if="form.ysdw" :span="12">
<el-form-item label="移送单位" ref="content" prop="content"> <el-form-item label="移送单位" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.ysdw"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 拍卖--> <!-- 拍卖-->
<el-col :span="12"> <el-col v-if="form.pddw" :span="12">
<el-form-item label="拍得单位" ref="content" prop="content"> <el-form-item label="拍得单位" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.pddw"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 销毁--> <!-- 销毁-->
<el-col :span="12"> <el-col v-if="form.xhdw" :span="12">
<el-form-item label="销毁单位" ref="content" prop="content"> <el-form-item label="销毁单位" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.xhdw"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="form.xhfs" :span="12">
<el-form-item label="销毁方式" ref="content" prop="content"> <el-form-item label="销毁方式" ref="content" prop="content">
<el-input :readonly="readonly" type="input" v-model="form.dh"></el-input> <el-input :readonly="readonly" type="input" v-model="form.xhfs"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -117,8 +127,8 @@ ...@@ -117,8 +127,8 @@
</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>
</span> </span>
</div> </div>
</DefaultDialog> </DefaultDialog>
...@@ -137,15 +147,34 @@ ...@@ -137,15 +147,34 @@
} }
} }
}, },
async mounted() { mounted() {
/* 双击之前传递 row*/
const {
type,
swlx,
dh
} = this.app.row
const query = {
/* 0入*/
0: (dh) => this.$post('/jcsj/u_rkgl/query', {
rkdh:dh
}),
/* 1出*/
1: (dh) => this.$post('/jcsj/u_ckgl/query', {
ckdh:dh
})
}
query[type](dh).then(res=>{
this.form=res.data.records[0]
})
}, },
data() { data() {
return { return {
readonly: true, readonly: true,
form: { form: {
dh: '等待接口'
} }
} }
......
...@@ -208,6 +208,7 @@ ...@@ -208,6 +208,7 @@
}, },
methods: { methods: {
tpDbClick(row){ tpDbClick(row){
this.$refs.basePage.row=row
this.$refs.basePage.DialogWidth='60vw' this.$refs.basePage.DialogWidth='60vw'
this.$refs.basePage.DialogTitle='单号信息' this.$refs.basePage.DialogTitle='单号信息'
this.$refs.basePage.showDialog=true this.$refs.basePage.showDialog=true
......
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