Compare commits
No commits in common. "31d5cf81d93428f2fafcc14e2294359d6ef41633" and "fdc9464a10ccb49545d6377a93c2f0c230490917" have entirely different histories.
31d5cf81d9
...
fdc9464a10
|
|
@ -4,39 +4,11 @@ const add = (params)=>postAction("/idcMaterialSupport071/add",params);
|
||||||
const edit = (params)=>putAction("/idcMaterialSupport071/edit",params);
|
const edit = (params)=>putAction("/idcMaterialSupport071/edit",params);
|
||||||
const idcMaterialSupport071delete = (params)=>deleteAction("/idcMaterialSupport071/delete",params);
|
const idcMaterialSupport071delete = (params)=>deleteAction("/idcMaterialSupport071/delete",params);
|
||||||
const taskPageList = (params)=>getAction("/task/pageList",params);
|
const taskPageList = (params)=>getAction("/task/pageList",params);
|
||||||
|
|
||||||
const add002 = (params)=>postAction("/idcMaterialSupport002/add",params);
|
|
||||||
const edit002 = (params)=>putAction("/idcMaterialSupport002/edit",params);
|
|
||||||
const idcMaterialSupport002delete = (params)=>deleteAction("/idcMaterialSupport002/delete",params);
|
|
||||||
|
|
||||||
const add052 = (params)=>postAction("/idcMaterialSupport052/add",params);
|
|
||||||
const edit052 = (params)=>putAction("/idcMaterialSupport052/edit",params);
|
|
||||||
const idcMaterialSupport052delete = (params)=>deleteAction("/idcMaterialSupport052/delete",params);
|
|
||||||
|
|
||||||
const add055 = (params)=>postAction("/idcMaterialSupport055/add",params);
|
|
||||||
const edit055 = (params)=>putAction("/idcMaterialSupport055/edit",params);
|
|
||||||
const idcMaterialSupport055delete = (params)=>deleteAction("/idcMaterialSupport055/delete",params);
|
|
||||||
|
|
||||||
const add054 = (params)=>postAction("/idcMaterialSupport054/add",params);
|
|
||||||
const edit054 = (params)=>putAction("/idcMaterialSupport054/edit",params);
|
|
||||||
const idcMaterialSupport054delete = (params)=>deleteAction("/idcMaterialSupport054/delete",params);
|
|
||||||
export {
|
export {
|
||||||
add,
|
add,
|
||||||
edit,
|
edit,
|
||||||
idcMaterialSupport071delete,
|
idcMaterialSupport071delete,
|
||||||
taskPageList,
|
taskPageList
|
||||||
add002,
|
|
||||||
edit002,
|
|
||||||
idcMaterialSupport002delete,
|
|
||||||
add052,
|
|
||||||
edit052,
|
|
||||||
idcMaterialSupport052delete,
|
|
||||||
add055,
|
|
||||||
edit055,
|
|
||||||
idcMaterialSupport055delete,
|
|
||||||
add054,
|
|
||||||
edit054,
|
|
||||||
idcMaterialSupport054delete,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,255 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-card :bordered="false">
|
|
||||||
|
|
||||||
<!-- 查询区域 -->
|
|
||||||
<div class="table-page-search-wrapper">
|
|
||||||
<a-form layout="inline">
|
|
||||||
<a-row :gutter="30">
|
|
||||||
<a-col :md="20" >
|
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
<a-col :md="4" style="margin-top:-65px; z-index: 12;">
|
|
||||||
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :md="6" :sm="8">
|
|
||||||
<a-form-item label="选择任务">
|
|
||||||
<a-select show-search placeholder="选择任务" option-filter-prop="children" v-model="queryParam.taskId" @change="gettable">
|
|
||||||
<a-select-option v-for="item in dataTypeList" :value="item.id">
|
|
||||||
{{ item.name }}
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- table区域-begin -->
|
|
||||||
<div style="height:calc(100vh - 300px);overflow:hidden; background: #e6e9f1 !important;">
|
|
||||||
<div class="linese"></div>
|
|
||||||
<a-table
|
|
||||||
ref="table"
|
|
||||||
size="middle"
|
|
||||||
style="height:calc(100vh - 344px);"
|
|
||||||
bordered
|
|
||||||
rowKey="id"
|
|
||||||
:columns="columns"
|
|
||||||
:dataSource="dataSource"
|
|
||||||
:pagination="ipagination"
|
|
||||||
:loading="loading"
|
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys,onChange: onSelectChange}"
|
|
||||||
@change="handleTableChange">
|
|
||||||
<!-- :locale="myLocale"-->
|
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
|
||||||
<template slot="status" slot-scope="text">
|
|
||||||
<span style="color:black;" v-if="text === 0" >未确认</span>
|
|
||||||
<span style="color:darkorange;" v-if="text === 1">未上报</span>
|
|
||||||
<span style="color:#87d068;" v-if="text === 2">已上报</span>
|
|
||||||
</template>
|
|
||||||
<span slot="action" slot-scope="text, record">
|
|
||||||
<a @click="handleEdit(record)">编辑</a>
|
|
||||||
<a-divider type="vertical"/>
|
|
||||||
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
||||||
<a>删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</span>
|
|
||||||
</a-table>
|
|
||||||
<div class="linese"></div>
|
|
||||||
</div>
|
|
||||||
<!-- table区域-end -->
|
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
|
||||||
<materialSupportModal ref="modalForm" @ok="gettable"></materialSupportModal>
|
|
||||||
</a-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import materialSupportModal from './modules/002Modal'
|
|
||||||
import { taskPageList,idcMaterialSupport002delete } from '@/api/materialSupport'
|
|
||||||
import {getAction} from '@/api/manage'
|
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
||||||
import JEllipsis from "@/components/jeecg/JEllipsis";
|
|
||||||
import guaz from '@assets/guaz.png'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupport",
|
|
||||||
mixins:[JeecgListMixin],
|
|
||||||
components: {
|
|
||||||
materialSupportModal,
|
|
||||||
JEllipsis,
|
|
||||||
VNodes: {
|
|
||||||
functional: true,
|
|
||||||
render: (h, ctx) => ctx.props.vnodes,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
description: '物资保障',
|
|
||||||
dataSources: [],
|
|
||||||
guaz,
|
|
||||||
queryParam: {
|
|
||||||
taskId:'',
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:20
|
|
||||||
},
|
|
||||||
taskqueryParam: {
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:9999999
|
|
||||||
},
|
|
||||||
dataTypeList:[],
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: '#',
|
|
||||||
dataIndex: '',
|
|
||||||
key:'rowIndex',
|
|
||||||
width:60,
|
|
||||||
align:"center",
|
|
||||||
customRender:function (t,r,index) {
|
|
||||||
return parseInt(index)+1;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'燃油重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'fuel'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'淡水重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'water'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'HQ-10 导弹数量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'hq10'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'右前857余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'rf857'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'右后857余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'rr857'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'左后857余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'lr857'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'厘米箔条弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'chaffCm'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'毫米箔条弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'chaffMm'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'红外弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'ir'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'烟幕弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'smoke'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'578A声诱饵',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'decoy578a'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'582声干扰器',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'jammer582'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
dataIndex: 'action',
|
|
||||||
align:"center",
|
|
||||||
fixed:"right",
|
|
||||||
width:147,
|
|
||||||
scopedSlots: { customRender: 'action' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.loadData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
//筛选需要重写handleTableChange
|
|
||||||
handleTableChange(pagination, filters, sorter) {
|
|
||||||
//分页、排序、筛选变化时触发
|
|
||||||
//TODO 筛选
|
|
||||||
if (Object.keys(sorter).length > 0) {
|
|
||||||
this.isorter.column = sorter.field;
|
|
||||||
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
|
|
||||||
}
|
|
||||||
this.ipagination = pagination;
|
|
||||||
this.gettable();
|
|
||||||
},
|
|
||||||
gettable(){
|
|
||||||
getAction("/idcMaterialSupport002/list", this.queryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataSource = res.result.records;
|
|
||||||
if(res.result.total)
|
|
||||||
{
|
|
||||||
this.ipagination.total = res.result.total;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
loadData() {
|
|
||||||
taskPageList(this.taskqueryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataTypeList = res.result.rows||res.result;
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleDelete: function (id) {
|
|
||||||
var that = this;
|
|
||||||
idcMaterialSupport002delete({id: id}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.gettable();
|
|
||||||
} else {
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleEdit: function (record) {
|
|
||||||
this.$refs.modalForm.edit(record);
|
|
||||||
this.$refs.modalForm.title = "编辑";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
handleAdd() {
|
|
||||||
if( this.queryParam.taskId == ''){
|
|
||||||
this.$message.warning("请选择任务");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$refs.modalForm.add();
|
|
||||||
this.$refs.modalForm.title = "新增";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,260 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-card :bordered="false">
|
|
||||||
|
|
||||||
<!-- 查询区域 -->
|
|
||||||
<div class="table-page-search-wrapper">
|
|
||||||
<a-form layout="inline">
|
|
||||||
<a-row :gutter="30">
|
|
||||||
<a-col :md="20" >
|
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
<a-col :md="4" style="margin-top:-65px; z-index: 12;">
|
|
||||||
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :md="6" :sm="8">
|
|
||||||
<a-form-item label="选择任务">
|
|
||||||
<a-select show-search placeholder="选择任务" option-filter-prop="children" v-model="queryParam.taskId" @change="gettable">
|
|
||||||
<a-select-option v-for="item in dataTypeList" :value="item.id">
|
|
||||||
{{ item.name }}
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- table区域-begin -->
|
|
||||||
<div style="height:calc(100vh - 300px);overflow:hidden; background: #e6e9f1 !important;">
|
|
||||||
<div class="linese"></div>
|
|
||||||
<a-table
|
|
||||||
ref="table"
|
|
||||||
size="middle"
|
|
||||||
style="height:calc(100vh - 344px);"
|
|
||||||
bordered
|
|
||||||
rowKey="id"
|
|
||||||
:columns="columns"
|
|
||||||
:dataSource="dataSource"
|
|
||||||
:pagination="ipagination"
|
|
||||||
:loading="loading"
|
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys,onChange: onSelectChange}"
|
|
||||||
@change="handleTableChange">
|
|
||||||
<!-- :locale="myLocale"-->
|
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
|
||||||
<template slot="status" slot-scope="text">
|
|
||||||
<span style="color:black;" v-if="text === 0" >未确认</span>
|
|
||||||
<span style="color:darkorange;" v-if="text === 1">未上报</span>
|
|
||||||
<span style="color:#87d068;" v-if="text === 2">已上报</span>
|
|
||||||
</template>
|
|
||||||
<span slot="action" slot-scope="text, record">
|
|
||||||
<a @click="handleEdit(record)">编辑</a>
|
|
||||||
<a-divider type="vertical"/>
|
|
||||||
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
||||||
<a>删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</span>
|
|
||||||
</a-table>
|
|
||||||
<div class="linese"></div>
|
|
||||||
</div>
|
|
||||||
<!-- table区域-end -->
|
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
|
||||||
<materialSupportModal ref="modalForm" @ok="gettable"></materialSupportModal>
|
|
||||||
</a-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import materialSupportModal from './modules/052Modal'
|
|
||||||
import { taskPageList,idcMaterialSupport052delete } from '@/api/materialSupport'
|
|
||||||
import {getAction} from '@/api/manage'
|
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
||||||
import JEllipsis from "@/components/jeecg/JEllipsis";
|
|
||||||
import guaz from '@assets/guaz.png'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupport",
|
|
||||||
mixins:[JeecgListMixin],
|
|
||||||
components: {
|
|
||||||
materialSupportModal,
|
|
||||||
JEllipsis,
|
|
||||||
VNodes: {
|
|
||||||
functional: true,
|
|
||||||
render: (h, ctx) => ctx.props.vnodes,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
description: '物资保障',
|
|
||||||
dataSources: [],
|
|
||||||
guaz,
|
|
||||||
queryParam: {
|
|
||||||
taskId:'',
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:20
|
|
||||||
},
|
|
||||||
taskqueryParam: {
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:9999999
|
|
||||||
},
|
|
||||||
dataTypeList:[],
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: '#',
|
|
||||||
dataIndex: '',
|
|
||||||
key:'rowIndex',
|
|
||||||
width:60,
|
|
||||||
align:"center",
|
|
||||||
customRender:function (t,r,index) {
|
|
||||||
return parseInt(index)+1;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'燃油重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'fuel'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'淡水重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'water'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'HHQ-9B导弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'hhq9b'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'HQ-10 导弹数量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'hq10'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'YJ-18A导弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'yj18'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'副炮余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'secGunAmmo'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'主炮余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'mainGunAmmo'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'厘米箔条弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'chaffCm'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'毫米箔条弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'chaffMm'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'红外弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'ir'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'烟幕弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'smoke'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'水声诱饵弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'acousticDecoy'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'水声干扰器',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'acousticJammer'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
dataIndex: 'action',
|
|
||||||
align:"center",
|
|
||||||
fixed:"right",
|
|
||||||
width:147,
|
|
||||||
scopedSlots: { customRender: 'action' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.loadData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
//筛选需要重写handleTableChange
|
|
||||||
handleTableChange(pagination, filters, sorter) {
|
|
||||||
//分页、排序、筛选变化时触发
|
|
||||||
//TODO 筛选
|
|
||||||
if (Object.keys(sorter).length > 0) {
|
|
||||||
this.isorter.column = sorter.field;
|
|
||||||
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
|
|
||||||
}
|
|
||||||
this.ipagination = pagination;
|
|
||||||
this.gettable();
|
|
||||||
},
|
|
||||||
gettable(){
|
|
||||||
getAction("/idcMaterialSupport052/list", this.queryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataSource = res.result.records;
|
|
||||||
if(res.result.total)
|
|
||||||
{
|
|
||||||
this.ipagination.total = res.result.total;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
loadData() {
|
|
||||||
taskPageList(this.taskqueryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataTypeList = res.result.rows||res.result;
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleDelete: function (id) {
|
|
||||||
var that = this;
|
|
||||||
idcMaterialSupport052delete({id: id}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.gettable();
|
|
||||||
} else {
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleEdit: function (record) {
|
|
||||||
this.$refs.modalForm.edit(record);
|
|
||||||
this.$refs.modalForm.title = "编辑";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
handleAdd() {
|
|
||||||
if( this.queryParam.taskId == ''){
|
|
||||||
this.$message.warning("请选择任务");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$refs.modalForm.add();
|
|
||||||
this.$refs.modalForm.title = "新增";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,250 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-card :bordered="false">
|
|
||||||
|
|
||||||
<!-- 查询区域 -->
|
|
||||||
<div class="table-page-search-wrapper">
|
|
||||||
<a-form layout="inline">
|
|
||||||
<a-row :gutter="30">
|
|
||||||
<a-col :md="20" >
|
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
<a-col :md="4" style="margin-top:-65px; z-index: 12;">
|
|
||||||
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :md="6" :sm="8">
|
|
||||||
<a-form-item label="选择任务">
|
|
||||||
<a-select show-search placeholder="选择任务" option-filter-prop="children" v-model="queryParam.taskId" @change="gettable">
|
|
||||||
<a-select-option v-for="item in dataTypeList" :value="item.id">
|
|
||||||
{{ item.name }}
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- table区域-begin -->
|
|
||||||
<div style="height:calc(100vh - 300px);overflow:hidden; background: #e6e9f1 !important;">
|
|
||||||
<div class="linese"></div>
|
|
||||||
<a-table
|
|
||||||
ref="table"
|
|
||||||
size="middle"
|
|
||||||
style="height:calc(100vh - 344px);"
|
|
||||||
bordered
|
|
||||||
rowKey="id"
|
|
||||||
:columns="columns"
|
|
||||||
:dataSource="dataSource"
|
|
||||||
:pagination="ipagination"
|
|
||||||
:loading="loading"
|
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys,onChange: onSelectChange}"
|
|
||||||
@change="handleTableChange">
|
|
||||||
<!-- :locale="myLocale"-->
|
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
|
||||||
<template slot="status" slot-scope="text">
|
|
||||||
<span style="color:black;" v-if="text === 0" >未确认</span>
|
|
||||||
<span style="color:darkorange;" v-if="text === 1">未上报</span>
|
|
||||||
<span style="color:#87d068;" v-if="text === 2">已上报</span>
|
|
||||||
</template>
|
|
||||||
<span slot="action" slot-scope="text, record">
|
|
||||||
<a @click="handleEdit(record)">编辑</a>
|
|
||||||
<a-divider type="vertical"/>
|
|
||||||
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
||||||
<a>删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</span>
|
|
||||||
</a-table>
|
|
||||||
<div class="linese"></div>
|
|
||||||
</div>
|
|
||||||
<!-- table区域-end -->
|
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
|
||||||
<materialSupportModal ref="modalForm" @ok="gettable"></materialSupportModal>
|
|
||||||
</a-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import materialSupportModal from './modules/054Modal'
|
|
||||||
import { taskPageList,idcMaterialSupport054delete } from '@/api/materialSupport'
|
|
||||||
import {getAction} from '@/api/manage'
|
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
||||||
import JEllipsis from "@/components/jeecg/JEllipsis";
|
|
||||||
import guaz from '@assets/guaz.png'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupport",
|
|
||||||
mixins:[JeecgListMixin],
|
|
||||||
components: {
|
|
||||||
materialSupportModal,
|
|
||||||
JEllipsis,
|
|
||||||
VNodes: {
|
|
||||||
functional: true,
|
|
||||||
render: (h, ctx) => ctx.props.vnodes,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
description: '物资保障',
|
|
||||||
dataSources: [],
|
|
||||||
guaz,
|
|
||||||
queryParam: {
|
|
||||||
taskId:'',
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:20
|
|
||||||
},
|
|
||||||
taskqueryParam: {
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:9999999
|
|
||||||
},
|
|
||||||
dataTypeList:[],
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: '#',
|
|
||||||
dataIndex: '',
|
|
||||||
key:'rowIndex',
|
|
||||||
width:60,
|
|
||||||
align:"center",
|
|
||||||
customRender:function (t,r,index) {
|
|
||||||
return parseInt(index)+1;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'燃油重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'fuel'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'淡水重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'water'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'HHQ-16导弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'hhq16'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'YJ-83导弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'yj83'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'左857余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'left857'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'右857余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'right857'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'单76炮余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'a76'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'厘米箔条弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'chaffCm'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'毫米箔条弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'chaffMm'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'红外弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'ir'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'烟幕弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'smoke'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
dataIndex: 'action',
|
|
||||||
align:"center",
|
|
||||||
fixed:"right",
|
|
||||||
width:147,
|
|
||||||
scopedSlots: { customRender: 'action' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.loadData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
//筛选需要重写handleTableChange
|
|
||||||
handleTableChange(pagination, filters, sorter) {
|
|
||||||
//分页、排序、筛选变化时触发
|
|
||||||
//TODO 筛选
|
|
||||||
if (Object.keys(sorter).length > 0) {
|
|
||||||
this.isorter.column = sorter.field;
|
|
||||||
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
|
|
||||||
}
|
|
||||||
this.ipagination = pagination;
|
|
||||||
this.gettable();
|
|
||||||
},
|
|
||||||
gettable(){
|
|
||||||
getAction("/idcMaterialSupport054/list", this.queryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataSource = res.result.records;
|
|
||||||
if(res.result.total)
|
|
||||||
{
|
|
||||||
this.ipagination.total = res.result.total;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
loadData() {
|
|
||||||
taskPageList(this.taskqueryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataTypeList = res.result.rows||res.result;
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleDelete: function (id) {
|
|
||||||
var that = this;
|
|
||||||
idcMaterialSupport054delete({id: id}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.gettable();
|
|
||||||
} else {
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleEdit: function (record) {
|
|
||||||
this.$refs.modalForm.edit(record);
|
|
||||||
this.$refs.modalForm.title = "编辑";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
handleAdd() {
|
|
||||||
if( this.queryParam.taskId == ''){
|
|
||||||
this.$message.warning("请选择任务");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$refs.modalForm.add();
|
|
||||||
this.$refs.modalForm.title = "新增";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,290 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-card :bordered="false">
|
|
||||||
|
|
||||||
<!-- 查询区域 -->
|
|
||||||
<div class="table-page-search-wrapper">
|
|
||||||
<a-form layout="inline">
|
|
||||||
<a-row :gutter="30">
|
|
||||||
<a-col :md="20" >
|
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
<a-col :md="4" style="margin-top:-65px; z-index: 12;">
|
|
||||||
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
||||||
</span>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
<a-row :gutter="24">
|
|
||||||
<a-col :md="6" :sm="8">
|
|
||||||
<a-form-item label="选择任务">
|
|
||||||
<a-select show-search placeholder="选择任务" option-filter-prop="children" v-model="queryParam.taskId" @change="gettable">
|
|
||||||
<a-select-option v-for="item in dataTypeList" :value="item.id">
|
|
||||||
{{ item.name }}
|
|
||||||
</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- table区域-begin -->
|
|
||||||
<div style="height:calc(100vh - 300px);overflow:hidden; background: #e6e9f1 !important;">
|
|
||||||
<div class="linese"></div>
|
|
||||||
<a-table
|
|
||||||
ref="table"
|
|
||||||
size="middle"
|
|
||||||
style="height:calc(100vh - 344px);"
|
|
||||||
bordered
|
|
||||||
rowKey="id"
|
|
||||||
:columns="columns"
|
|
||||||
:dataSource="dataSource"
|
|
||||||
:pagination="ipagination"
|
|
||||||
:loading="loading"
|
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys,onChange: onSelectChange}"
|
|
||||||
@change="handleTableChange">
|
|
||||||
<!-- :locale="myLocale"-->
|
|
||||||
|
|
||||||
<!-- 字符串超长截取省略号显示-->
|
|
||||||
<template slot="status" slot-scope="text">
|
|
||||||
<span style="color:black;" v-if="text === 0" >未确认</span>
|
|
||||||
<span style="color:darkorange;" v-if="text === 1">未上报</span>
|
|
||||||
<span style="color:#87d068;" v-if="text === 2">已上报</span>
|
|
||||||
</template>
|
|
||||||
<span slot="action" slot-scope="text, record">
|
|
||||||
<a @click="handleEdit(record)">编辑</a>
|
|
||||||
<a-divider type="vertical"/>
|
|
||||||
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
||||||
<a>删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</span>
|
|
||||||
</a-table>
|
|
||||||
<div class="linese"></div>
|
|
||||||
</div>
|
|
||||||
<!-- table区域-end -->
|
|
||||||
|
|
||||||
<!-- 表单区域 -->
|
|
||||||
<materialSupportModal ref="modalForm" @ok="gettable"></materialSupportModal>
|
|
||||||
</a-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import materialSupportModal from './modules/055Modal'
|
|
||||||
import { taskPageList,idcMaterialSupport055delete } from '@/api/materialSupport'
|
|
||||||
import {getAction} from '@/api/manage'
|
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
||||||
import JEllipsis from "@/components/jeecg/JEllipsis";
|
|
||||||
import guaz from '@assets/guaz.png'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupport",
|
|
||||||
mixins:[JeecgListMixin],
|
|
||||||
components: {
|
|
||||||
materialSupportModal,
|
|
||||||
JEllipsis,
|
|
||||||
VNodes: {
|
|
||||||
functional: true,
|
|
||||||
render: (h, ctx) => ctx.props.vnodes,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
description: '物资保障',
|
|
||||||
dataSources: [],
|
|
||||||
guaz,
|
|
||||||
queryParam: {
|
|
||||||
taskId:'',
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:20
|
|
||||||
},
|
|
||||||
taskqueryParam: {
|
|
||||||
pageNum :1,
|
|
||||||
pageSize:9999999
|
|
||||||
},
|
|
||||||
dataTypeList:[],
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: '#',
|
|
||||||
dataIndex: '',
|
|
||||||
key:'rowIndex',
|
|
||||||
width:60,
|
|
||||||
align:"center",
|
|
||||||
customRender:function (t,r,index) {
|
|
||||||
return parseInt(index)+1;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'燃油重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'fuel'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'淡水重量(吨)',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'water'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'HHQ-9B导弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'hhq9b'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'HQ-10 导弹数量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'hq10'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'YJ-18A导弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'yj18'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'副炮余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'secGunAmmo'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'130炮余弹量',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'gun130Ammo'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'厘米箔条干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'cmChaffRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'毫米箔条干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'mmChaffRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'红外干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'irRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'烟幕干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'smokeRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'远程箔条干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'longRangeChaffRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'宽频箔条干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'widebandChaffRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'面源红外干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'areaIrRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'有源诱饵干扰火箭弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'activeDecoyRocket'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'578A声诱饵',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'acousticDecoy578a'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'578B声诱饵',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'acousticDecoy578b'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'582声干扰器',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'acousticJammer582'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title:'悬浮式拦截弹',
|
|
||||||
align:"center",
|
|
||||||
dataIndex: 'floatingInterceptor'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
dataIndex: 'action',
|
|
||||||
align:"center",
|
|
||||||
fixed:"right",
|
|
||||||
width:147,
|
|
||||||
scopedSlots: { customRender: 'action' }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.loadData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
//筛选需要重写handleTableChange
|
|
||||||
handleTableChange(pagination, filters, sorter) {
|
|
||||||
//分页、排序、筛选变化时触发
|
|
||||||
//TODO 筛选
|
|
||||||
if (Object.keys(sorter).length > 0) {
|
|
||||||
this.isorter.column = sorter.field;
|
|
||||||
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
|
|
||||||
}
|
|
||||||
this.ipagination = pagination;
|
|
||||||
this.gettable();
|
|
||||||
},
|
|
||||||
gettable(){
|
|
||||||
getAction("/idcMaterialSupport055/list", this.queryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataSource = res.result.records;
|
|
||||||
if(res.result.total)
|
|
||||||
{
|
|
||||||
this.ipagination.total = res.result.total;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
loadData() {
|
|
||||||
taskPageList(this.taskqueryParam).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.dataTypeList = res.result.rows||res.result;
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleDelete: function (id) {
|
|
||||||
var that = this;
|
|
||||||
idcMaterialSupport055delete({id: id}).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.gettable();
|
|
||||||
} else {
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleEdit: function (record) {
|
|
||||||
this.$refs.modalForm.edit(record);
|
|
||||||
this.$refs.modalForm.title = "编辑";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
handleAdd() {
|
|
||||||
if( this.queryParam.taskId == ''){
|
|
||||||
this.$message.warning("请选择任务");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$refs.modalForm.add();
|
|
||||||
this.$refs.modalForm.title = "新增";
|
|
||||||
this.$refs.modalForm.taskId = this.queryParam.taskId
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -71,7 +71,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import materialSupportModal from './modules/071Modal'
|
import materialSupportModal from './modules/materialSupportModal'
|
||||||
import { taskPageList,idcMaterialSupport071delete } from '@/api/materialSupport'
|
import { taskPageList,idcMaterialSupport071delete } from '@/api/materialSupport'
|
||||||
import {getAction} from '@/api/manage'
|
import {getAction} from '@/api/manage'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
|
|
@ -1,188 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-modal
|
|
||||||
:title="title"
|
|
||||||
:width="800"
|
|
||||||
:visible="visible"
|
|
||||||
:confirmLoading="confirmLoading"
|
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="handleCancel"
|
|
||||||
okText="保存"
|
|
||||||
cancelText="关闭">
|
|
||||||
|
|
||||||
<a-spin :spinning="confirmLoading">
|
|
||||||
<a-form ref="form" :model="model" :rules="validatorRules">
|
|
||||||
<a-row>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="燃油重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fuel">
|
|
||||||
<a-input-number v-model="model.fuel" placeholder="请输入燃油重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="淡水重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="water">
|
|
||||||
<a-input-number v-model="model.water" placeholder="请输入淡水重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="HQ-10 导弹数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.hq10" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="右前857余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rm857">
|
|
||||||
<a-input-number v-model="model.rf857" placeholder="请输入右中857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="右后857余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rr857">
|
|
||||||
<a-input-number v-model="model.rr857" placeholder="请输入右后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="左后857余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lr857">
|
|
||||||
<a-input-number v-model="model.lr857" placeholder="请输入左后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="厘米箔条弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffCm">
|
|
||||||
<a-input-number v-model="model.chaffCm" placeholder="请输入厘米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="毫米箔条弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffMm">
|
|
||||||
<a-input-number v-model="model.chaffMm" placeholder="请输入毫米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="红外弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ir">
|
|
||||||
<a-input-number v-model="model.ir" placeholder="请输入红外弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="烟幕弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.smoke" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="578A声诱饵" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.decoy578a" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="582声干扰器" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.jammer582" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</a-spin>
|
|
||||||
</a-modal>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import moment from "moment"
|
|
||||||
import { add002,edit002 } from '@/api/materialSupport'
|
|
||||||
import JCron from "@/components/jeecg/JCron";
|
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
|
||||||
import pick from 'lodash.pick'
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupportModal",
|
|
||||||
components: {
|
|
||||||
JCron,
|
|
||||||
JSelectMultiple
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
title:"操作",
|
|
||||||
visible:false,
|
|
||||||
model:{
|
|
||||||
},
|
|
||||||
form: this.$form.createForm(this),
|
|
||||||
confirmLoading: false,
|
|
||||||
validatorRules: {
|
|
||||||
fuel: {rules: [{required: true, message: '请输入燃油重量!'}]},
|
|
||||||
water: {rules: [{required: true, message: '请输入淡水重量!'}]},
|
|
||||||
},
|
|
||||||
labelCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 5 },
|
|
||||||
},
|
|
||||||
wrapperCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 16 },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.modelDefault = JSON.parse(JSON.stringify(this.model));
|
|
||||||
this.modelDefault.status=0;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
add () {
|
|
||||||
this.edit(this.modelDefault);
|
|
||||||
},
|
|
||||||
edit (record) {
|
|
||||||
this.model = Object.assign({}, record);
|
|
||||||
this.visible = true;
|
|
||||||
},
|
|
||||||
onChange(value, dateString) {
|
|
||||||
this.model.startTime = dateString[0];
|
|
||||||
this.model.endTime = dateString[1];
|
|
||||||
console.log(this.model);
|
|
||||||
},
|
|
||||||
onOk(value) {
|
|
||||||
|
|
||||||
},
|
|
||||||
close () {
|
|
||||||
this.$emit('close');
|
|
||||||
this.visible = false;
|
|
||||||
},
|
|
||||||
handleOk () {
|
|
||||||
const that = this;
|
|
||||||
// 触发表单验证
|
|
||||||
this.form.validateFields((err, values) => {
|
|
||||||
console.log('values',values)
|
|
||||||
if (!err) {
|
|
||||||
this.model.taskId = this.taskId
|
|
||||||
that.confirmLoading = true;
|
|
||||||
if(!this.model.id){
|
|
||||||
add002(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
edit002(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleCancel () {
|
|
||||||
this.close()
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.disabled{
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -1,193 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-modal
|
|
||||||
:title="title"
|
|
||||||
:width="800"
|
|
||||||
:visible="visible"
|
|
||||||
:confirmLoading="confirmLoading"
|
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="handleCancel"
|
|
||||||
okText="保存"
|
|
||||||
cancelText="关闭">
|
|
||||||
|
|
||||||
<a-spin :spinning="confirmLoading">
|
|
||||||
<a-form ref="form" :model="model" :rules="validatorRules">
|
|
||||||
<a-row>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="燃油重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fuel">
|
|
||||||
<a-input-number v-model="model.fuel" placeholder="请输入燃油重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="淡水重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="water">
|
|
||||||
<a-input-number v-model="model.water" placeholder="请输入淡水重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="HHQ-9B导弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.hhq9b" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="HQ-10 导弹数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.hq10" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="YJ-18A导弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rm857">
|
|
||||||
<a-input-number v-model="model.yj18" placeholder="请输入右中857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="副炮余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rr857">
|
|
||||||
<a-input-number v-model="model.secGunAmmo" placeholder="请输入右后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="主炮余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lr857">
|
|
||||||
<a-input-number v-model="model.mainGunAmmo" placeholder="请输入左后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="厘米箔条弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffCm">
|
|
||||||
<a-input-number v-model="model.chaffCm" placeholder="请输入厘米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="毫米箔条弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffMm">
|
|
||||||
<a-input-number v-model="model.chaffMm" placeholder="请输入毫米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="红外弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ir">
|
|
||||||
<a-input-number v-model="model.ir" placeholder="请输入红外弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="烟幕弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.smoke" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="水声诱饵弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.acousticDecoy" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="水声干扰器" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.acousticJammer" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</a-spin>
|
|
||||||
</a-modal>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import moment from "moment"
|
|
||||||
import { add052,edit052 } from '@/api/materialSupport'
|
|
||||||
import JCron from "@/components/jeecg/JCron";
|
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
|
||||||
import pick from 'lodash.pick'
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupportModal",
|
|
||||||
components: {
|
|
||||||
JCron,
|
|
||||||
JSelectMultiple
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
title:"操作",
|
|
||||||
visible:false,
|
|
||||||
model:{
|
|
||||||
},
|
|
||||||
form: this.$form.createForm(this),
|
|
||||||
confirmLoading: false,
|
|
||||||
validatorRules: {
|
|
||||||
fuel: {rules: [{required: true, message: '请输入燃油重量!'}]},
|
|
||||||
water: {rules: [{required: true, message: '请输入淡水重量!'}]},
|
|
||||||
},
|
|
||||||
labelCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 5 },
|
|
||||||
},
|
|
||||||
wrapperCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 16 },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.modelDefault = JSON.parse(JSON.stringify(this.model));
|
|
||||||
this.modelDefault.status=0;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
add () {
|
|
||||||
this.edit(this.modelDefault);
|
|
||||||
},
|
|
||||||
edit (record) {
|
|
||||||
this.model = Object.assign({}, record);
|
|
||||||
this.visible = true;
|
|
||||||
},
|
|
||||||
onChange(value, dateString) {
|
|
||||||
this.model.startTime = dateString[0];
|
|
||||||
this.model.endTime = dateString[1];
|
|
||||||
console.log(this.model);
|
|
||||||
},
|
|
||||||
onOk(value) {
|
|
||||||
|
|
||||||
},
|
|
||||||
close () {
|
|
||||||
this.$emit('close');
|
|
||||||
this.visible = false;
|
|
||||||
},
|
|
||||||
handleOk () {
|
|
||||||
const that = this;
|
|
||||||
// 触发表单验证
|
|
||||||
this.form.validateFields((err, values) => {
|
|
||||||
console.log('values',values)
|
|
||||||
if (!err) {
|
|
||||||
this.model.taskId = this.taskId
|
|
||||||
that.confirmLoading = true;
|
|
||||||
if(!this.model.id){
|
|
||||||
add052(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
edit052(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleCancel () {
|
|
||||||
this.close()
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.disabled{
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -1,183 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-modal
|
|
||||||
:title="title"
|
|
||||||
:width="800"
|
|
||||||
:visible="visible"
|
|
||||||
:confirmLoading="confirmLoading"
|
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="handleCancel"
|
|
||||||
okText="保存"
|
|
||||||
cancelText="关闭">
|
|
||||||
|
|
||||||
<a-spin :spinning="confirmLoading">
|
|
||||||
<a-form ref="form" :model="model" :rules="validatorRules">
|
|
||||||
<a-row>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="燃油重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fuel">
|
|
||||||
<a-input-number v-model="model.fuel" placeholder="请输入燃油重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="淡水重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="water">
|
|
||||||
<a-input-number v-model="model.water" placeholder="请输入淡水重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="HHQ-16导弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.hhq16" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="YJ-83导弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.yj83" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="左857余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rm857">
|
|
||||||
<a-input-number v-model="model.left857" placeholder="请输入右中857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="右857余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rr857">
|
|
||||||
<a-input-number v-model="model.right857" placeholder="请输入右后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="单76炮余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lr857">
|
|
||||||
<a-input-number v-model="model.a76" placeholder="请输入左后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="厘米箔条弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffCm">
|
|
||||||
<a-input-number v-model="model.chaffCm" placeholder="请输入厘米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="毫米箔条弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffMm">
|
|
||||||
<a-input-number v-model="model.chaffMm" placeholder="请输入毫米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="红外弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ir">
|
|
||||||
<a-input-number v-model="model.ir" placeholder="请输入红外弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="烟幕弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.smoke" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</a-spin>
|
|
||||||
</a-modal>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import moment from "moment"
|
|
||||||
import { add054,edit054 } from '@/api/materialSupport'
|
|
||||||
import JCron from "@/components/jeecg/JCron";
|
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
|
||||||
import pick from 'lodash.pick'
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupportModal",
|
|
||||||
components: {
|
|
||||||
JCron,
|
|
||||||
JSelectMultiple
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
title:"操作",
|
|
||||||
visible:false,
|
|
||||||
model:{
|
|
||||||
},
|
|
||||||
form: this.$form.createForm(this),
|
|
||||||
confirmLoading: false,
|
|
||||||
validatorRules: {
|
|
||||||
fuel: {rules: [{required: true, message: '请输入燃油重量!'}]},
|
|
||||||
water: {rules: [{required: true, message: '请输入淡水重量!'}]},
|
|
||||||
},
|
|
||||||
labelCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 5 },
|
|
||||||
},
|
|
||||||
wrapperCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 16 },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.modelDefault = JSON.parse(JSON.stringify(this.model));
|
|
||||||
this.modelDefault.status=0;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
add () {
|
|
||||||
this.edit(this.modelDefault);
|
|
||||||
},
|
|
||||||
edit (record) {
|
|
||||||
this.model = Object.assign({}, record);
|
|
||||||
this.visible = true;
|
|
||||||
},
|
|
||||||
onChange(value, dateString) {
|
|
||||||
this.model.startTime = dateString[0];
|
|
||||||
this.model.endTime = dateString[1];
|
|
||||||
console.log(this.model);
|
|
||||||
},
|
|
||||||
onOk(value) {
|
|
||||||
|
|
||||||
},
|
|
||||||
close () {
|
|
||||||
this.$emit('close');
|
|
||||||
this.visible = false;
|
|
||||||
},
|
|
||||||
handleOk () {
|
|
||||||
const that = this;
|
|
||||||
// 触发表单验证
|
|
||||||
this.form.validateFields((err, values) => {
|
|
||||||
console.log('values',values)
|
|
||||||
if (!err) {
|
|
||||||
this.model.taskId = this.taskId
|
|
||||||
that.confirmLoading = true;
|
|
||||||
if(!this.model.id){
|
|
||||||
add054(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
edit054(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleCancel () {
|
|
||||||
this.close()
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.disabled{
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -1,223 +0,0 @@
|
||||||
<template>
|
|
||||||
<a-modal
|
|
||||||
:title="title"
|
|
||||||
:width="800"
|
|
||||||
:visible="visible"
|
|
||||||
:confirmLoading="confirmLoading"
|
|
||||||
@ok="handleOk"
|
|
||||||
@cancel="handleCancel"
|
|
||||||
okText="保存"
|
|
||||||
cancelText="关闭">
|
|
||||||
|
|
||||||
<a-spin :spinning="confirmLoading">
|
|
||||||
<a-form ref="form" :model="model" :rules="validatorRules">
|
|
||||||
<a-row>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="燃油重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fuel">
|
|
||||||
<a-input-number v-model="model.fuel" placeholder="请输入燃油重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="淡水重量(吨)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="water">
|
|
||||||
<a-input-number v-model="model.water" placeholder="请输入淡水重量(吨)" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="HHQ-9B导弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.hhq9b" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="HQ-10 导弹数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hq10">
|
|
||||||
<a-input-number v-model="model.hq10" placeholder="请输入HQ-10 导弹数量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="YJ-18A导弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rm857">
|
|
||||||
<a-input-number v-model="model.yj18" placeholder="请输入右中857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="副炮余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rr857">
|
|
||||||
<a-input-number v-model="model.secGunAmmo" placeholder="请输入右后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="130炮余弹量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lr857">
|
|
||||||
<a-input-number v-model="model.gun130Ammo" placeholder="请输入左后857余弹量" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="厘米箔条干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffCm">
|
|
||||||
<a-input-number v-model="model.cmChaffRocket" placeholder="请输入厘米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="毫米箔条干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chaffMm">
|
|
||||||
<a-input-number v-model="model.mmChaffRocket" placeholder="请输入毫米箔条弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="红外干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="ir">
|
|
||||||
<a-input-number v-model="model.irRocket" placeholder="请输入红外弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="烟幕干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.smokeRocket" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="远程箔条干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.longRangeChaffRocket" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="宽频箔条干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.widebandChaffRocket" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="面源红外干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.areaIrRocket" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="有源诱饵干扰火箭弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.activeDecoyRocket" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="578A声诱饵" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.acousticDecoy578a" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="578B声诱饵" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.acousticDecoy578b" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="582声干扰器" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.acousticJammer582" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-model-item label="悬浮式拦截弹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smoke">
|
|
||||||
<a-input-number v-model="model.floatingInterceptor" placeholder="请输入烟幕弹" style="width: 100%" />
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</a-spin>
|
|
||||||
</a-modal>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import moment from "moment"
|
|
||||||
import { add055,edit055 } from '@/api/materialSupport'
|
|
||||||
import JCron from "@/components/jeecg/JCron";
|
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
|
||||||
import pick from 'lodash.pick'
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "materialSupportModal",
|
|
||||||
components: {
|
|
||||||
JCron,
|
|
||||||
JSelectMultiple
|
|
||||||
},
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
title:"操作",
|
|
||||||
visible:false,
|
|
||||||
model:{
|
|
||||||
},
|
|
||||||
form: this.$form.createForm(this),
|
|
||||||
confirmLoading: false,
|
|
||||||
validatorRules: {
|
|
||||||
fuel: {rules: [{required: true, message: '请输入燃油重量!'}]},
|
|
||||||
water: {rules: [{required: true, message: '请输入淡水重量!'}]},
|
|
||||||
},
|
|
||||||
labelCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 5 },
|
|
||||||
},
|
|
||||||
wrapperCol: {
|
|
||||||
xs: { span: 24 },
|
|
||||||
sm: { span: 16 },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
|
||||||
this.modelDefault = JSON.parse(JSON.stringify(this.model));
|
|
||||||
this.modelDefault.status=0;
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
add () {
|
|
||||||
this.edit(this.modelDefault);
|
|
||||||
},
|
|
||||||
edit (record) {
|
|
||||||
this.model = Object.assign({}, record);
|
|
||||||
this.visible = true;
|
|
||||||
},
|
|
||||||
onChange(value, dateString) {
|
|
||||||
this.model.startTime = dateString[0];
|
|
||||||
this.model.endTime = dateString[1];
|
|
||||||
console.log(this.model);
|
|
||||||
},
|
|
||||||
onOk(value) {
|
|
||||||
|
|
||||||
},
|
|
||||||
close () {
|
|
||||||
this.$emit('close');
|
|
||||||
this.visible = false;
|
|
||||||
},
|
|
||||||
handleOk () {
|
|
||||||
const that = this;
|
|
||||||
// 触发表单验证
|
|
||||||
this.form.validateFields((err, values) => {
|
|
||||||
console.log('values',values)
|
|
||||||
if (!err) {
|
|
||||||
this.model.taskId = this.taskId
|
|
||||||
that.confirmLoading = true;
|
|
||||||
if(!this.model.id){
|
|
||||||
add055(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}else{
|
|
||||||
edit055(this.model).then((res)=>{
|
|
||||||
if(res.success){
|
|
||||||
that.$message.success(res.message);
|
|
||||||
that.$emit('ok');
|
|
||||||
this.close()
|
|
||||||
}else{
|
|
||||||
that.$message.warning(res.message);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
that.confirmLoading = false;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleCancel () {
|
|
||||||
this.close()
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.disabled{
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Loading…
Reference in New Issue
Block a user