265 lines
5.2 KiB
JavaScript
265 lines
5.2 KiB
JavaScript
/*
|
|
* Copyright (c) 2018-2025, cyweb All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions are met:
|
|
*
|
|
* Redistributions of source code must retain the above copyright notice,
|
|
* this list of conditions and the following disclaimer.
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
* Neither the name of the pig4cloud.com developer nor the names of its
|
|
* contributors may be used to endorse or promote products derived from
|
|
* this software without specific prior written permission.
|
|
*
|
|
*/
|
|
import {YES_OR_NO} from "@/const/crud/asset/assets/assetassets";
|
|
|
|
export const states=[
|
|
{
|
|
label:'审核中',
|
|
value:'-1'
|
|
},
|
|
|
|
{
|
|
label:'审核完成',
|
|
value:'0'
|
|
},
|
|
{
|
|
label:'审核不通过',
|
|
value:'2'
|
|
},
|
|
]
|
|
export const tableOption = {
|
|
border: true,
|
|
index: true,
|
|
indexLabel: '序号',
|
|
stripe: true,
|
|
menuAlign: 'center',
|
|
align: 'center',
|
|
editBtn: false,
|
|
delBtn: false,
|
|
addBtn: false,
|
|
showSummary:true,
|
|
sumColumnList: [
|
|
{
|
|
name: 'price',
|
|
type: 'sum'
|
|
},
|
|
{
|
|
name: 'num',
|
|
type: 'sum'
|
|
}
|
|
],
|
|
height:500,
|
|
dic: [],
|
|
column: [
|
|
{
|
|
label: '主键',
|
|
prop: 'id',
|
|
hide: true,
|
|
addDisplay:false,
|
|
editDisabled:true,
|
|
editDisplay:false,
|
|
visdiplay:false,
|
|
},
|
|
{
|
|
label: '调拨单号',
|
|
prop: 'transferNo',
|
|
search:"true"
|
|
},
|
|
// {
|
|
// label: '原资产编码',
|
|
// prop: 'oldCode',
|
|
// search:"true",
|
|
// hide:false
|
|
// },
|
|
{
|
|
label: '原部门名称',
|
|
prop: 'oldDeptName'
|
|
},
|
|
// {
|
|
// label: '新资产编码',
|
|
// prop: 'newCode',
|
|
// search:"true",
|
|
// hide:false
|
|
// },
|
|
{
|
|
label: '新部门名称',
|
|
prop: 'newDeptName'
|
|
},
|
|
{
|
|
label: '数量',
|
|
prop: 'num'
|
|
},
|
|
{
|
|
label: '金额',
|
|
prop: 'price'
|
|
},
|
|
{
|
|
label: '审核状态',
|
|
prop: 'procInsStatus'
|
|
},
|
|
{
|
|
label: '审核状态',
|
|
type:'select',
|
|
prop: 'status',
|
|
searchFilterable:true,
|
|
dicData:states,
|
|
props:{
|
|
label:'label',
|
|
value:'value'
|
|
},
|
|
search:true,
|
|
hide:true
|
|
},
|
|
{
|
|
label: '审核意见',
|
|
prop: 'procInsRemork'
|
|
},
|
|
{
|
|
label: '调拨时间',
|
|
prop: 'createTime'
|
|
},{
|
|
label: '开始时间',
|
|
prop: 'beginTime',
|
|
type: 'date',
|
|
format: 'yyyy-MM-dd',
|
|
valueFormat: 'yyyy-MM-dd 00:00:00',
|
|
editDisplay: false,
|
|
addDisplay: false,
|
|
search:true,
|
|
hide: true
|
|
},{
|
|
label: '结束时间',
|
|
prop: 'endTime',
|
|
type: 'date',
|
|
format: 'yyyy-MM-dd',
|
|
valueFormat: 'yyyy-MM-dd 23:59:59',
|
|
editDisplay: false,
|
|
addDisplay: false,
|
|
search:true,
|
|
hide: true
|
|
},
|
|
{
|
|
label: '原部门名称',
|
|
prop: 'oldName',
|
|
type:'select',
|
|
hide: true,
|
|
addDisplay: false,
|
|
search:true,
|
|
editDisplay: false,
|
|
dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
|
|
props:{
|
|
label:'deptName',
|
|
value:'deptCode'
|
|
},
|
|
},
|
|
{
|
|
label: '新部门名称',
|
|
prop: 'newName',
|
|
type:'select',
|
|
hide: true,
|
|
addDisplay: false,
|
|
search:true,
|
|
editDisplay: false,
|
|
dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
|
|
props:{
|
|
label:'deptName',
|
|
value:'deptCode'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
export const tableDictItemOption = {
|
|
border: true,
|
|
index: true,
|
|
indexLabel: '序号',
|
|
stripe: true,
|
|
menuAlign: 'center',
|
|
menu:false,
|
|
align: 'center',
|
|
editBtn: false,
|
|
delBtn: false,
|
|
showSummary:true,
|
|
addBtn: false,
|
|
refreshBtn: false,
|
|
showColumnBtn: false,
|
|
searchSize: 'mini',
|
|
height:500,
|
|
dic: [],
|
|
sumColumnList: [
|
|
{
|
|
label:'合计:',
|
|
name: 'sum',
|
|
type: 'sum',
|
|
decimals:1
|
|
},
|
|
{
|
|
name: 'price',
|
|
type: 'sum'
|
|
}],
|
|
column: [
|
|
{
|
|
label:'江苏省常州技师学院固定资产调拨单',
|
|
children:[
|
|
{
|
|
title: '序号',
|
|
type: 'index',
|
|
width: 50,
|
|
align: 'center'
|
|
},
|
|
{
|
|
label: '规格|型号',
|
|
prop: 'spec'
|
|
},
|
|
{
|
|
label: '面积',
|
|
prop: 'area'
|
|
},
|
|
{
|
|
label: '单位',
|
|
prop: 'unit'
|
|
},
|
|
{
|
|
label: '数量',
|
|
prop: 'num'
|
|
},
|
|
{
|
|
label: '调拨时间',
|
|
prop: 'createTime'
|
|
}, {
|
|
label: '审核状态',
|
|
prop: 'procInsStatus'
|
|
},
|
|
{
|
|
label: '原资产编码',
|
|
prop: 'oldCode',
|
|
},
|
|
{
|
|
label: '原部门名称',
|
|
prop: 'oldDeptName'
|
|
},
|
|
{
|
|
label: '新资产编码',
|
|
prop: 'newCode',
|
|
},
|
|
{
|
|
label: '新部门名称',
|
|
prop: 'newDeptName'
|
|
},
|
|
{
|
|
label: '资产名称',
|
|
prop: 'goodsName'
|
|
}, {
|
|
width:150,
|
|
label: '单价',
|
|
prop: 'price'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|