|
@@ -76,6 +76,7 @@
|
|
<el-form
|
|
<el-form
|
|
:model="queryParamstwr"
|
|
:model="queryParamstwr"
|
|
ref="queryForm"
|
|
ref="queryForm"
|
|
|
|
+ :rules="queryForm"
|
|
:inline="true"
|
|
:inline="true"
|
|
v-show="showSearch"
|
|
v-show="showSearch"
|
|
label-width="135px"
|
|
label-width="135px"
|
|
@@ -755,11 +756,11 @@ export default {
|
|
},
|
|
},
|
|
imagese: [],
|
|
imagese: [],
|
|
numhu: 0, //判断
|
|
numhu: 0, //判断
|
|
- // 表单校验
|
|
|
|
|
|
+ // 添加开工照片表单校验
|
|
rules: {
|
|
rules: {
|
|
- // configName: [
|
|
|
|
- // { required: true, message: "参数名称不能为空", trigger: "blur" }
|
|
|
|
- // ],
|
|
|
|
|
|
+ rateType: [
|
|
|
|
+ { required: true, message: '请选择进度', trigger: 'change' }
|
|
|
|
+ ]
|
|
// configKey: [
|
|
// configKey: [
|
|
// { required: true, message: "参数键名不能为空", trigger: "blur" }
|
|
// { required: true, message: "参数键名不能为空", trigger: "blur" }
|
|
// ],
|
|
// ],
|
|
@@ -767,8 +768,30 @@ export default {
|
|
// { required: true, message: "参数键值不能为空", trigger: "blur" }
|
|
// { required: true, message: "参数键值不能为空", trigger: "blur" }
|
|
// ]
|
|
// ]
|
|
},
|
|
},
|
|
|
|
+ // 项目施工
|
|
|
|
+ queryForm:{
|
|
|
|
+ isConstruction: [
|
|
|
|
+ { required: true, message: "请选择 是否开工建设", trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ constructionStartdate: [
|
|
|
|
+ { type: 'date', required: true, message: '请选择开工时间', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ constructionEnddate: [
|
|
|
|
+ { type: 'date', required: true, message: '请选择预计完工时间', trigger: 'change' }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ //项目入统
|
|
|
|
+ queryFormtwo:{
|
|
|
|
+ statisticsDate: [
|
|
|
|
+ { type: 'date', required: true, message: '请选择入统时间', trigger: 'change' }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
rulestwo: {},
|
|
rulestwo: {},
|
|
- rulesther: {},
|
|
|
|
|
|
+ rulesther: {
|
|
|
|
+ payForMoney: [
|
|
|
|
+ { required: true, message: '请输入金额', trigger: 'change' }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
//开工照片
|
|
//开工照片
|
|
onstruction: [],
|
|
onstruction: [],
|
|
permit: [],
|
|
permit: [],
|
|
@@ -1176,6 +1199,14 @@ export default {
|
|
if (this.numhu == 0) {
|
|
if (this.numhu == 0) {
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if(this.form.rateType == undefined){
|
|
|
|
+ this.msgSuccess("请选择进度");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.form.photo == undefined){
|
|
|
|
+ this.msgSuccess("请上传照片");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
addConfigther(this.form).then((response) => {
|
|
addConfigther(this.form).then((response) => {
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
this.open = false;
|
|
this.open = false;
|
|
@@ -1186,6 +1217,14 @@ export default {
|
|
} else if (this.numhu == 1) {
|
|
} else if (this.numhu == 1) {
|
|
this.$refs["formtwo"].validate((valid) => {
|
|
this.$refs["formtwo"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if(this.formtwo.eqType == undefined){
|
|
|
|
+ this.msgSuccess("请选择进度");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.formtwo.photo == undefined){
|
|
|
|
+ this.msgSuccess("请上传照片");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
addConfigfour(this.formtwo).then((response) => {
|
|
addConfigfour(this.formtwo).then((response) => {
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
this.opentwo = false;
|
|
this.opentwo = false;
|
|
@@ -1197,8 +1236,18 @@ export default {
|
|
console.log("步骤3");
|
|
console.log("步骤3");
|
|
this.$refs["formther"].validate((valid) => {
|
|
this.$refs["formther"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- console.log("步骤5");
|
|
|
|
- console.log("步骤4");
|
|
|
|
|
|
+ if(this.formther.payForType == undefined){
|
|
|
|
+ this.msgSuccess("请选择进度");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.formther.payForMoney == undefined){
|
|
|
|
+ this.msgSuccess("请输入到资金额");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.formther.photo == undefined){
|
|
|
|
+ this.msgSuccess("请上传照片");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
addConfigfiv(this.formther).then((response) => {
|
|
addConfigfiv(this.formther).then((response) => {
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
this.openther = false;
|
|
this.openther = false;
|
|
@@ -1216,7 +1265,31 @@ export default {
|
|
if (this.tab == 0) {
|
|
if (this.tab == 0) {
|
|
this.$refs["queryForm"].validate((valid) => {
|
|
this.$refs["queryForm"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ // if(this.queryParamstwr.constructionCode == ''){
|
|
|
|
+ // this.msgSuccess("请上传施工许可证");
|
|
|
|
+ // return false
|
|
|
|
+ // }
|
|
if (this.modify == 1) {
|
|
if (this.modify == 1) {
|
|
|
|
+ if(this.queryParamstwr.constructionCode == null){
|
|
|
|
+ this.msgSuccess("请上传施工许可证");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionDoc == null){
|
|
|
|
+ this.msgSuccess("请上传施工施工合同");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionPhoto == null){
|
|
|
|
+ this.msgSuccess("请上传开工合同");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionEnddate == null){
|
|
|
|
+ this.msgSuccess("请选择预计完工日期");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionStartdate == null){
|
|
|
|
+ this.msgSuccess("请选择开工日期");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
//修改
|
|
//修改
|
|
updateConfigatruction(this.queryParamstwr).then((response) => {
|
|
updateConfigatruction(this.queryParamstwr).then((response) => {
|
|
this.msgSuccess("修改成功");
|
|
this.msgSuccess("修改成功");
|
|
@@ -1225,6 +1298,26 @@ export default {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
});
|
|
});
|
|
} else if (this.modify == 0) {
|
|
} else if (this.modify == 0) {
|
|
|
|
+ if(this.queryParamstwr.constructionCode == undefined){
|
|
|
|
+ this.msgSuccess("请上传施工许可证");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionDoc == undefined){
|
|
|
|
+ this.msgSuccess("请上传施工施工合同");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionPhoto == undefined){
|
|
|
|
+ this.msgSuccess("请上传开工合同");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionEnddate == undefined){
|
|
|
|
+ this.msgSuccess("请选择预计完工日期");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstwr.constructionStartdate == undefined){
|
|
|
|
+ this.msgSuccess("请选择开工日期");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
//新增
|
|
//新增
|
|
this.queryParamstwr.bmProjectId = this.bmProjectId;
|
|
this.queryParamstwr.bmProjectId = this.bmProjectId;
|
|
addConfigtherction(this.queryParamstwr).then((response) => {
|
|
addConfigtherction(this.queryParamstwr).then((response) => {
|
|
@@ -1240,6 +1333,14 @@ export default {
|
|
this.$refs["queryFormtwo"].validate((valid) => {
|
|
this.$refs["queryFormtwo"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.udgment == 1) {
|
|
if (this.udgment == 1) {
|
|
|
|
+ if(this.queryParamstheyr.statisticsDate == null){
|
|
|
|
+ this.msgSuccess("请选择入统日期");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstheyr.statisticsPhoto == null){
|
|
|
|
+ this.msgSuccess("请上传入统截图");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
//修改
|
|
//修改
|
|
updateConfigntegration(this.queryParamstheyr).then((response) => {
|
|
updateConfigntegration(this.queryParamstheyr).then((response) => {
|
|
this.msgSuccess("修改成功");
|
|
this.msgSuccess("修改成功");
|
|
@@ -1248,6 +1349,14 @@ export default {
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
|
|
+ if(this.queryParamstheyr.statisticsDate == undefined){
|
|
|
|
+ this.msgSuccess("请选择入统日期");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ if(this.queryParamstheyr.statisticsPhoto == undefined){
|
|
|
|
+ this.msgSuccess("请上传入统截图");
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
this.queryParamstheyr.bmProjectId = this.bmProjectId;
|
|
this.queryParamstheyr.bmProjectId = this.bmProjectId;
|
|
addConfigsix(this.queryParamstheyr).then((response) => {
|
|
addConfigsix(this.queryParamstheyr).then((response) => {
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
@@ -1264,7 +1373,7 @@ export default {
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
const configIds = row.id;
|
|
const configIds = row.id;
|
|
this.$confirm(
|
|
this.$confirm(
|
|
- '是否确认删除参数编号为"' + configIds + '"的数据项?',
|
|
|
|
|
|
+ '是否确认删除"' + configIds + '"的数据项?',
|
|
"警告",
|
|
"警告",
|
|
{
|
|
{
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -1284,7 +1393,7 @@ export default {
|
|
handleDeletetwo(row) {
|
|
handleDeletetwo(row) {
|
|
const configIds = row.id;
|
|
const configIds = row.id;
|
|
this.$confirm(
|
|
this.$confirm(
|
|
- '是否确认删除参数编号为"' + configIds + '"的数据项?',
|
|
|
|
|
|
+ '是否确认删除"' + configIds + '"的数据项?',
|
|
"警告",
|
|
"警告",
|
|
{
|
|
{
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
@@ -1304,7 +1413,7 @@ export default {
|
|
handleDeletether(row) {
|
|
handleDeletether(row) {
|
|
const configIds = row.id;
|
|
const configIds = row.id;
|
|
this.$confirm(
|
|
this.$confirm(
|
|
- '是否确认删除参数编号为"' + configIds + '"的数据项?',
|
|
|
|
|
|
+ '是否确认删除"' + configIds + '"的数据项?',
|
|
"警告",
|
|
"警告",
|
|
{
|
|
{
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|