|
@@ -13,7 +13,7 @@
|
|
|
<div style="margin-top: 60px">
|
|
|
<containerTitle title="基础信息"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <el-form :model="form" ref="form" label-width="130px">
|
|
|
+ <el-form :model="form" ref="form" label-width="100px" class="demo-ruleForm">
|
|
|
<el-row>
|
|
|
<el-col v-for="(item, index) in basicData.column" :span="item.span?item.span:6" :key="index">
|
|
|
<el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
|
|
@@ -40,42 +40,34 @@
|
|
|
@row-save="rowSave"
|
|
|
@size-change="sizeChange"
|
|
|
@current-change="currentChange"
|
|
|
- @selection-change="selectionChange"
|
|
|
@search-change="searchChange"
|
|
|
@refresh-change="refreshChange"
|
|
|
@on-load="getList"
|
|
|
@saveColumn="saveColumn"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="success"
|
|
|
+ <el-button type="primary"
|
|
|
size="small"
|
|
|
icon="el-icon-plus"
|
|
|
- plain
|
|
|
@click="serviceDialog = true">新增明细
|
|
|
</el-button>
|
|
|
- <el-button type="success"
|
|
|
+ <el-button type="primary"
|
|
|
size="small"
|
|
|
icon="el-icon-plus"
|
|
|
- plain
|
|
|
@click="">新 单
|
|
|
</el-button>
|
|
|
<el-button type="info"
|
|
|
size="small"
|
|
|
- plain
|
|
|
@click="">请 核
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template slot="menuRight">
|
|
|
- <el-button type="primary"
|
|
|
- size="small"
|
|
|
- icon="el-icon-arrow-right"
|
|
|
- plain
|
|
|
- @click="">导 出
|
|
|
- </el-button>
|
|
|
- <el-button type="primary"
|
|
|
- size="small"
|
|
|
- plain
|
|
|
- @click="">打 印
|
|
|
+ <el-button
|
|
|
+ icon="el-icon-printer"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click.stop="openReport()"
|
|
|
+ >报表
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
@@ -139,7 +131,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="serviceConfirm()" :disabled="this.serviceSelectList.length == 0">导 入</el-button>
|
|
|
+ <el-button type="primary" @click="serviceConfirm()" :disabled="this.serviceSelectList.length == 0">导 入</el-button>
|
|
|
<el-button @click="serviceDialog = false">取 消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
@@ -187,6 +179,7 @@
|
|
|
|
|
|
<script>
|
|
|
import option from "./configuration/detailsPage.json";
|
|
|
+ import { projectDetail } from "@/api/workManagement/mainProject";
|
|
|
//上传文件json
|
|
|
import upLoadOption from "../../exportTrade/purchaseContract/config/uploadList.json"
|
|
|
//服务列表接口
|
|
@@ -238,7 +231,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请输入系统编号',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -248,7 +241,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请输入项目编码',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -258,7 +251,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请输入项目名称',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -271,7 +264,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
|
|
|
- message: '请输入数字或小数,且小数位不超过两位',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -282,7 +275,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
|
|
|
- message: '请输入数字或小数,且小数位不超过两位',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -293,7 +286,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
|
|
|
- message: '请输入数字或小数,且小数位不超过两位',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -305,7 +298,7 @@
|
|
|
rules: [
|
|
|
{
|
|
|
pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
|
|
|
- message: '请输入数字或小数,且小数位不超过两位',
|
|
|
+ message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
@@ -440,7 +433,16 @@
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ if(this.$route.query.id){
|
|
|
+ projectDetail(this.$route.query.id).then(res =>{
|
|
|
+ this.form = res.data.data;
|
|
|
+ // this.data = res.data.data.itemList;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
//删除列表后面的删除按钮触发触发(row, index, done)
|
|
@@ -609,7 +611,8 @@
|
|
|
//确定
|
|
|
userConfirm(){
|
|
|
if(this.userSelection){
|
|
|
- this.optionFrom[this.detailsSelect].userId = this.userSelection[0].userId;
|
|
|
+ this.data[this.detailsSelect].userId = this.userSelection[0].realName;
|
|
|
+ this.userDialog = !this.userDialog
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -643,4 +646,7 @@
|
|
|
right: 36px;
|
|
|
top: 115px;
|
|
|
}
|
|
|
+ ::v-deep .el-form-item {
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
</style>
|