|
@@ -788,8 +788,12 @@ export default {
|
|
|
configType: undefined,
|
|
|
},
|
|
|
queryParamstwo: 0,
|
|
|
- queryParamstheyr: {},
|
|
|
- queryParamstwr: {},
|
|
|
+ queryParamstheyr: {
|
|
|
+ bmProjectId:0,
|
|
|
+ },
|
|
|
+ queryParamstwr: {
|
|
|
+ bmProjectId:0,
|
|
|
+ },
|
|
|
queryParamstwrction: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
@@ -1058,7 +1062,7 @@ export default {
|
|
|
this.fileListfive = [];
|
|
|
// this.ermit = []
|
|
|
|
|
|
- if (response.data !== undefined) {
|
|
|
+ if (response.data.id !== null) {
|
|
|
//修改
|
|
|
this.queryParamstwr = response.data;
|
|
|
this.modify = 1;
|
|
@@ -1095,6 +1099,8 @@ export default {
|
|
|
} else {
|
|
|
//新增
|
|
|
this.queryParamstwr = {};
|
|
|
+ this.queryParamstwr.orderBeginTime = response.data.orderBeginTime
|
|
|
+ this.queryParamstwr.orderEndTime = response.data.orderEndTime
|
|
|
this.modify = 0;
|
|
|
}
|
|
|
|
|
@@ -1347,9 +1353,10 @@ export default {
|
|
|
},
|
|
|
//项目施工提交按钮
|
|
|
submitCtion() {
|
|
|
- // this.queryParamstheyr.bmProjectId = this.bmProjectId
|
|
|
+ this.queryParamstheyr.bmProjectId = this.bmProjectId
|
|
|
// this.formther.bmProjectId = this.bmProjectId
|
|
|
- console.log(this.numhu);
|
|
|
+ // console.log(this.numhu);
|
|
|
+ console.log(this.tab,this.modify)
|
|
|
if (this.tab == 0) {
|
|
|
this.$refs["queryForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -1384,6 +1391,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
//修改
|
|
|
+
|
|
|
updateConfigatruction(this.queryParamstwr).then((response) => {
|
|
|
this.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
@@ -1413,10 +1421,11 @@ export default {
|
|
|
this.msgSuccess("请上传开工合同");
|
|
|
return false
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//新增
|
|
|
this.queryParamstwr.bmProjectId = this.bmProjectId;
|
|
|
+ console.log(this.queryParamstwr.bmProjectId)
|
|
|
addConfigtherction(this.queryParamstwr).then((response) => {
|
|
|
this.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
@@ -1455,6 +1464,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
this.queryParamstheyr.bmProjectId = this.bmProjectId;
|
|
|
+ console.log(this.queryParamstheyr.bmProjectId,98)
|
|
|
addConfigsix(this.queryParamstheyr).then((response) => {
|
|
|
this.msgSuccess("新增成功");
|
|
|
this.opentwo = false;
|