|
@@ -13,11 +13,11 @@
|
|
|
<!-- 子表 -->
|
|
|
<a-form-model ref="formRef">
|
|
|
<a-table
|
|
|
- v-if="carSqZyData"
|
|
|
+ v-if="carSqData"
|
|
|
bordered
|
|
|
rowKey="id"
|
|
|
:columns="carSqColumns"
|
|
|
- :data-source="carSqZyData"
|
|
|
+ :data-source="carSqData"
|
|
|
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
:pagination="false"
|
|
|
:scroll="{x:2100,y: 300}"
|
|
@@ -56,7 +56,7 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
-import {getFixedZy} from '@api/oa/cd-personnel-files'
|
|
|
+import {getCar} from '@api/oa/cd-personnel-files'
|
|
|
|
|
|
export default {
|
|
|
name: 'CarSqModal', // 报关要素
|
|
@@ -72,125 +72,74 @@ export default {
|
|
|
// 子表表头
|
|
|
carSqColumns: [
|
|
|
{
|
|
|
- title: '入库单号',
|
|
|
- dataIndex: 'realname',
|
|
|
+ title: '所属部门',
|
|
|
+ dataIndex: 'sysOrgCode',
|
|
|
width: 140,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '资产类别',
|
|
|
- dataIndex: 'assetsCategory',
|
|
|
+ title: '车牌号',
|
|
|
+ dataIndex: 'number',
|
|
|
width: 140,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '资产编号',
|
|
|
- dataIndex: 'assetNumber',
|
|
|
+ title: '车俩类型',
|
|
|
+ dataIndex: 'carType',
|
|
|
width: 130,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '资产名称',
|
|
|
- dataIndex: 'assetName',
|
|
|
+ title: '能源类型',
|
|
|
+ dataIndex: 'energyType',
|
|
|
width: 130,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- title: '规则型号',
|
|
|
- dataIndex: 'specificationsModels',
|
|
|
+ title: '座位数量',
|
|
|
+ dataIndex: 'seat',
|
|
|
width: 130,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '品牌',
|
|
|
- dataIndex: 'brand',
|
|
|
+ title: '购买价格',
|
|
|
+ dataIndex: 'price',
|
|
|
width: 120,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '单位',
|
|
|
- dataIndex: 'unit',
|
|
|
+ title: '购置日期',
|
|
|
+ dataIndex: 'purchaseDate',
|
|
|
width: 120,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '价值',
|
|
|
- dataIndex: 'unitPrice',
|
|
|
+ title: '发动机号码',
|
|
|
+ dataIndex: 'engineNum',
|
|
|
ellipsis: true,
|
|
|
width: 180,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '购置日期',
|
|
|
- dataIndex: 'acquisitionDate',
|
|
|
+ title: '车架号',
|
|
|
+ dataIndex: 'vin',
|
|
|
width: 120,
|
|
|
ellipsis: true,
|
|
|
className: 'replacecolor'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '厂家',
|
|
|
- dataIndex: 'manufacturer',
|
|
|
- width: 120,
|
|
|
- ellipsis: true,
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '使用部门',
|
|
|
- dataIndex: 'useDepartment',
|
|
|
- width: 120,
|
|
|
- ellipsis: true,
|
|
|
- className: 'replacecolor'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '入库时间',
|
|
|
- dataIndex: 'inputDate',
|
|
|
- width: 90,
|
|
|
- className: 'replacecolor',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '采购人',
|
|
|
- dataIndex: 'purchasingStaff',
|
|
|
- width: 90,
|
|
|
- className: 'replacecolor',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '采购人',
|
|
|
- dataIndex: 'acceptPersonnel: ',
|
|
|
- width: 90,
|
|
|
- className: 'replacecolor',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '其他说明',
|
|
|
- dataIndex: 'otherDescription',
|
|
|
- width: 90,
|
|
|
- className: 'replacecolor',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '采购单号',
|
|
|
- dataIndex: 'buyid',
|
|
|
- width: 90,
|
|
|
- className: 'replacecolor',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '资产状态',
|
|
|
- dataIndex: 'assetState',
|
|
|
- width: 90,
|
|
|
- className: 'replacecolor',
|
|
|
- },
|
|
|
+ }
|
|
|
],
|
|
|
- carSqZyData: [ ], // 子表信息
|
|
|
+ carSqData: [ ], // 子表信息
|
|
|
carSqModVis: false,
|
|
|
selectedRowKeys:[],
|
|
|
selectedRows:[],
|
|
|
- sat:''
|
|
|
}
|
|
|
},
|
|
|
// 接收父组件 方法
|
|
@@ -199,10 +148,10 @@ export default {
|
|
|
created() {
|
|
|
},
|
|
|
methods: {
|
|
|
- personLists(value){
|
|
|
- getFixedZy({state:value}).then(res => {
|
|
|
+ personLists(){
|
|
|
+ getCar().then(res => {
|
|
|
if (res.success) {
|
|
|
- this.carSqZyData = res.result
|
|
|
+ this.carSqData = res.result
|
|
|
}else{
|
|
|
this.$message.error(res.message);
|
|
|
}
|
|
@@ -213,8 +162,7 @@ export default {
|
|
|
this.carSqModVis = false
|
|
|
this.declareElements = {}
|
|
|
this.declareElementsData = []
|
|
|
- this.selectedRowKeys = [],
|
|
|
- this.sat = ''
|
|
|
+ this.selectedRowKeys = []
|
|
|
},
|
|
|
handleCancel() {
|
|
|
this.close()
|
|
@@ -224,45 +172,18 @@ export default {
|
|
|
this.selectedRows = rows;
|
|
|
},
|
|
|
addSave(){
|
|
|
- if(this.selectedRowKeys.length == 0){
|
|
|
+ if(this.selectedRowKeys.length == 0){
|
|
|
this.$message.error('请勾选数据');
|
|
|
}else if(this.selectedRowKeys.length >1){
|
|
|
this.$message.error('一次只可勾选一行数据');
|
|
|
}else{
|
|
|
- if(this.sat == '转移'){
|
|
|
- var data ={
|
|
|
- assets_category : this.selectedRows[0].assetsCategory,
|
|
|
- asset_encoding:this.selectedRows[0].assetNumber,
|
|
|
- asset_name:this.selectedRows[0].assetName,
|
|
|
- specifications_models:this.selectedRows[0].specificationsModels
|
|
|
- }
|
|
|
- }else if(this.sat == '归还'){
|
|
|
- var data ={
|
|
|
- assets_category : this.selectedRows[0].assetsCategory,
|
|
|
- asset_encoding:this.selectedRows[0].assetNumber,
|
|
|
- asset_name:this.selectedRows[0].assetName,
|
|
|
- specifications_models:this.selectedRows[0].specificationsModels
|
|
|
- }
|
|
|
- }else if(this.sat == '调拨'){
|
|
|
- var data ={
|
|
|
- asset_encoding:this.selectedRows[0].assetNumber,
|
|
|
- assets_category : this.selectedRows[0].assetsCategory,
|
|
|
- asset_name:this.selectedRows[0].assetName,
|
|
|
- specifications_models:this.selectedRows[0].specificationsModels
|
|
|
- }
|
|
|
- }else if(this.sat == '报废'){
|
|
|
var data ={
|
|
|
- asset_encoding:this.selectedRows[0].assetNumber,
|
|
|
- assets_category : this.selectedRows[0].assetsCategory,
|
|
|
- asset_name:this.selectedRows[0].assetName,
|
|
|
- specifications_models:this.selectedRows[0].specificationsModels
|
|
|
+ car_arrange : this.selectedRows[0].number,
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
this.$emit('close',data)
|
|
|
this.close()
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
computed: {}
|