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

基础数据部分功能

parent 383e959f
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
span: 24, span: 24,
type: 'RelSelect', type: 'RelSelect',
"typeConfig": { "typeConfig": {
"src": "kzzx/bm/query", "src": "hjbm/query",
"match": { "match": {
"value": "bmid", "value": "bmid",
"label": "bmmc" "label": "bmmc"
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
field: "badw", field: "badw",
width: 140, width: 140,
"transform": { "transform": {
"url": "kzzx/bm/query", "url": "hjbm/query",
"label": "bmmc", "label": "bmmc",
"value": "bmid" "value": "bmid"
} }
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
span: 4, span: 4,
type: 'RelSelect', type: 'RelSelect',
"typeConfig": { "typeConfig": {
"src": "kzzx/bm/query", "src": "hjbm/query",
"match": { "match": {
"value": "bmid", "value": "bmid",
"label": "bmmc" "label": "bmmc"
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
span: 12, span: 12,
type: 'RelSelect', type: 'RelSelect',
"typeConfig": { "typeConfig": {
"src": "kzzx/bm/query", "src": "hjbm/query",
"match": { "match": {
"value": "bmid", "value": "bmid",
"label": "bmmc" "label": "bmmc"
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
{title: "出库单前缀", field: "ckqz", width: 210}, {title: "出库单前缀", field: "ckqz", width: 210},
{title: "所属部门", field: "ssbm", width: 140, {title: "所属部门", field: "ssbm", width: 140,
"transform": { "transform": {
"url": "kzzx/bm/query", "url": "hjbm/query",
"value": "bmid", "value": "bmid",
"label": "bmmc" "label": "bmmc"
} }
...@@ -64,11 +64,12 @@ ...@@ -64,11 +64,12 @@
span: 6, span: 6,
type: 'RelSelect', type: 'RelSelect',
"typeConfig": { "typeConfig": {
"src": "kzzx/bm/query", "src": "hjbm/query",
"match": { "match": {
"value": "bmid", "value": "bmid",
"label": "bmmc" "label": "bmmc"
} },
} }
}, },
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 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>
<template #tablePagerLeft="ctx"> <template #tablePagerLeft="ctx">
<div class="tablePagerLeft"> <div class="tablePagerLeft">
...@@ -101,18 +102,41 @@ ...@@ -101,18 +102,41 @@
], ],
queryParams: [ queryParams: [
[{ [{
label: '编码', "label": "仓库类型",
prop: 'code', "prop": "cklx",
span: 6, "span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/u_ckwh/query/cklx",
"match": {
"value": "type",
"label": "name"
}
}
},
{
label: '案件号',
prop: 'ajbm',
span: 4,
type: 'input', type: 'input',
value: '' value: ''
}, },
{ {
label: '名称', label: '序列号',
prop: 'name', prop: 'xlh',
span: 6, span: 4,
type: 'input', type: 'input',
value: '' 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 @@ ...@@ -124,9 +148,26 @@
}, },
methods: { 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){ getRow(e){
this.rowItem = e this.rowItem = e
this.$refs.BasePage.queryParams.ajid=e.id this.$refs.BasePage.queryParams.ajid=e.id
this.$refs.BasePage.queryParams.ajbm=e.ajbm
/* 单独村春数据*/ /* 单独村春数据*/
this.$refs.BasePage.CASE=e this.$refs.BasePage.CASE=e
this.$refs.BasePage.refresh() this.$refs.BasePage.refresh()
......
<template> <template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog width="70%" :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="120px" :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" /> <div class="editMain">
</el-row> <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> </el-form>
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import { import {
editMixin editMixin,
editMixin_expand
} from 'common' } from 'common'
export default { export default {
mixins: [editMixin], mixins: [editMixin, editMixin_expand],
methods:{
save(){
}
},
data() { data() {
return { return {
form: {
swlx: 1
},
formDetail: [],
editColItemList: [ editColItemList: [
{ {
label: '编码', label: '入库单号',
prop: 'code', prop: 'rkdh',
span: 12, 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', type: 'input',
required:true,
}, },
{ {
label: '名称', label: '第三方地点',
prop: 'name', prop: 'dsfkdd',
span: 12, span: 24,
type: 'input', type: 'input',
required:true,
}, },
{ {
label: '备注', label: '扣押时间至',
prop: 'bz', prop: 'rkjzrq',
span: 24, 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> </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> <template>
<BasePage class="min_full" :config="config"> <BasePage ref="basepage" :autoQuery='false' class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -14,11 +14,16 @@ ...@@ -14,11 +14,16 @@
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
export default { export default {
/* 赋值swlx主动查询*/
mounted() {
this.$refs.basepage.queryParams.swlx='1'
this.$refs.basepage.refresh()
},
data() { data() {
return { return {
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'rkgl/u_ky', url: 'jcsj/u_rkgl',
tableTitle: [{ tableTitle: [{
title: "入库单号", title: "入库单号",
field: "rkdh", field: "rkdh",
...@@ -90,15 +95,37 @@ ...@@ -90,15 +95,37 @@
}, },
], ],
queryParams: [ queryParams: [
[{ [
label: '编码', {
label: '部门',
prop: 'code', prop: 'code',
span: 6, span: 6,
type: 'input', type: 'input',
value: '' 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', prop: 'name',
span: 6, span: 6,
type: 'input', type: 'input',
...@@ -107,24 +134,7 @@ ...@@ -107,24 +134,7 @@
] ]
], ],
/* 默认启停用 */
showqt: true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
} }
} }
...@@ -144,4 +154,4 @@ ...@@ -144,4 +154,4 @@
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
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