Commit 32fe69a5 authored by 李苏's avatar 李苏 💬

基础数据部分功能

parent 383e959f
......@@ -57,7 +57,7 @@
span: 24,
type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"src": "hjbm/query",
"match": {
"value": "bmid",
"label": "bmmc"
......
......@@ -51,7 +51,7 @@
field: "badw",
width: 140,
"transform": {
"url": "kzzx/bm/query",
"url": "hjbm/query",
"label": "bmmc",
"value": "bmid"
}
......@@ -98,7 +98,7 @@
span: 4,
type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"src": "hjbm/query",
"match": {
"value": "bmid",
"label": "bmmc"
......
......@@ -38,7 +38,7 @@
span: 12,
type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"src": "hjbm/query",
"match": {
"value": "bmid",
"label": "bmmc"
......
......@@ -34,7 +34,7 @@
{title: "出库单前缀", field: "ckqz", width: 210},
{title: "所属部门", field: "ssbm", width: 140,
"transform": {
"url": "kzzx/bm/query",
"url": "hjbm/query",
"value": "bmid",
"label": "bmmc"
}
......@@ -64,11 +64,12 @@
span: 6,
type: 'RelSelect',
"typeConfig": {
"src": "kzzx/bm/query",
"src": "hjbm/query",
"match": {
"value": "bmid",
"label": "bmmc"
}
},
}
},
......
......@@ -5,7 +5,8 @@
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<AttachFileButton :app='ctx.basePage'></AttachFileButton>
<el-button @click="tz(ctx.basePage)" size='mini' type="primary">同步</el-button>
</template>
<template #tablePagerLeft="ctx">
<div class="tablePagerLeft">
......@@ -101,18 +102,41 @@
],
queryParams: [
[{
label: '编码',
prop: 'code',
span: 6,
"label": "仓库类型",
"prop": "cklx",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/u_ckwh/query/cklx",
"match": {
"value": "type",
"label": "name"
}
}
},
{
label: '案件号',
prop: 'ajbm',
span: 4,
type: 'input',
value: ''
},
{
label: '名称',
prop: 'name',
span: 6,
label: '序列号',
prop: 'xlh',
span: 4,
type: 'input',
value: ''
},
{
label: '维护时间',
startProp: "kssj",
endProp: "jssj",
span: 12,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
}
]
......@@ -124,9 +148,26 @@
},
methods: {
tz(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
this.$post('jcsj/u_wpgl/sync',{
id:ctx.singleItem.id
}).then(res=>{
if(res.success){
this.$success('操作成功')
ctx.refresh()
}
})
}else{
this.$warning('请选择一条数据')
}
},
getRow(e){
this.rowItem = e
this.$refs.BasePage.queryParams.ajid=e.id
this.$refs.BasePage.queryParams.ajbm=e.ajbm
/* 单独村春数据*/
this.$refs.BasePage.CASE=e
this.$refs.BasePage.refresh()
......
<template>
<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" />
<RelDialog width="70%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="120px" :rules="rules">
<!-- 结构-->
<div class="editMain">
<div class="editMain_left">
<!-- 扫码-->
<div class="editMain_left1">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-button slot="append" icon="el-icon-search"></el-button>
</el-input>
</div>
<div class="editMain_left2">
<editTableForEdit :rename="'选择物品'" code="SHHJTHING" :indexApp='app' :type='type' @save='save' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :editTableData="formDetail" />
</div>
</div>
<el-row class="editMain_right" :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-row>
</div>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin],
mixins: [editMixin, editMixin_expand],
methods:{
save(){
}
},
data() {
return {
form: {
swlx: 1
},
formDetail: [],
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
label: '入库单号',
prop: 'rkdh',
span: 24,
type: 'input',
},
{
label: '入库日期',
prop: 'rkrq',
span: 24,
type: 'date',
value:new Date().getTime(),
required: true,
},
{
"label": "部门",
"prop": "bm",
"span": 24,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "hjbm/query",
"match": {
"value": "bmid",
"label": "bmmc"
}
}
},
{
label: '扣押方式',
prop: 'rklx',
span: 24,
"type": "RelSelect",
"typeConfig": {
optionsData: [{
name: '行政扣押',
value: '0'
},
{
name: '刑事扣押',
value: '1'
}
]
},
required: true,
},
{
label: '保存至第三方库',
prop: 'dsfkbc',
span: 24,
type: 'Rcheckbox',
typeConfig: {
true: '1',
false: '0'
}
},
{
label: '仓库',
prop: 'ckid',
span: 24,
"type": "RelSelect",
"typeConfig": {
"src": "jcsj/u_ckwh/query",
"match": {
"value": "id",
"label": "ckmc"
},
params: {
cklx: "KY"
}
},
required: true,
},
{
label: '第三方名称',
prop: 'dsfmc',
span: 24,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
label: '第三方地点',
prop: 'dsfkdd',
span: 24,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
label: '扣押时间至',
prop: 'rkjzrq',
span: 24,
type: 'input'
type: 'date',
required: true,
},
{
label: '经手人',
prop: 'jsr',
span: 24,
type: 'input',
}
],
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
{
title: "物品编码",
field: "wpbm",
width: 100,
align: "center"
},
{
title: "物品名称",
field: "wpmc",
width: 120,
align: "center"
},
{
title: "物品特征",
field: "wptz",
width: 140,
align: "center"
},
{
title: "案件编号",
field: "ajbh",
width: 90,
align: "center"
},
{
title: "案件名称",
field: "ajmc",
width: 120,
align: "center"
},
{
title: "物品持有人",
field: "cyr",
width: 60,
align: "center"
},
{
title: "入库数量",
field: "rksl",
width: 100,
align: "center"
},
{
title: "备注",
field: "bz",
width: 150,
align: "center"
}
]
}
}
}
</script>
<style lang="scss" scoped>
.editMain {
display: flex;
}
.editMain_left {
width: 70%;
min-height: 400px;
border-right: 5px solid #fff;
}
.editMain_left1 {
height: 30px;
width: 100%;
}
.editMain_left2 {
width: 100%;
height: calc(100% - 30px);
}
.editMain_right {
background-color: #eee;
width: 30%;
min-height: 400px;
padding-top: 10px;
}
</style>
<template>
<BasePage class="min_full" :config="config">
<BasePage ref="basepage" :autoQuery='false' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -14,11 +14,16 @@
<script>
import Edit from './edit.vue'
export default {
/* 赋值swlx主动查询*/
mounted() {
this.$refs.basepage.queryParams.swlx='1'
this.$refs.basepage.refresh()
},
data() {
return {
config: {
/* 基本配置*/
url: 'rkgl/u_ky',
url: 'jcsj/u_rkgl',
tableTitle: [{
title: "入库单号",
field: "rkdh",
......@@ -90,15 +95,37 @@
},
],
queryParams: [
[{
label: '编码',
[
{
label: '部门',
prop: 'code',
span: 6,
type: 'input',
value: ''
},
{
label: '名称',
label: '仓库',
prop: 'name',
span: 6,
type: 'input',
value: ''
},
{
label: '查询日期',
prop: 'name',
span: 6,
type: 'input',
value: ''
},
{
label: '入库单号',
prop: 'name',
span: 6,
type: 'input',
value: ''
},
{
label: '序列号',
prop: 'name',
span: 6,
type: 'input',
......@@ -107,24 +134,7 @@
]
],
/* 默认启停用 */
showqt: true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
......
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