|
@@ -369,7 +369,9 @@ export default {
|
|
record: {},
|
|
record: {},
|
|
url: {
|
|
url: {
|
|
queryById: "/weituo/itdmWeituoInfo/queryById"
|
|
queryById: "/weituo/itdmWeituoInfo/queryById"
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 是否正在进行拆单
|
|
|
|
+ chaidanStatus: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
@@ -594,6 +596,9 @@ export default {
|
|
this.currentDbEdit = JSON.parse(JSON.stringify(row))
|
|
this.currentDbEdit = JSON.parse(JSON.stringify(row))
|
|
this.currentDbEdit.parent = row.id
|
|
this.currentDbEdit.parent = row.id
|
|
this.currentDbEdit.pid = row.id
|
|
this.currentDbEdit.pid = row.id
|
|
|
|
+ this.currentDbEdit.shebeiId = ''
|
|
|
|
+ console.log(this.currentDbEdit)
|
|
|
|
+ this.chaidanStatus = 1
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|
|
@@ -619,6 +624,7 @@ export default {
|
|
cancel(){
|
|
cancel(){
|
|
this.currentDbEdit = {}
|
|
this.currentDbEdit = {}
|
|
this.typeButton = null
|
|
this.typeButton = null
|
|
|
|
+ this.chaidanStatus = 0
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
},
|
|
},
|
|
submit(){
|
|
submit(){
|
|
@@ -627,13 +633,14 @@ export default {
|
|
// this.dialogVisible = false
|
|
// this.dialogVisible = false
|
|
// this.currentDbEdit = {}
|
|
// this.currentDbEdit = {}
|
|
console.log(this.currentDbEdit)
|
|
console.log(this.currentDbEdit)
|
|
- if (this.currentDbEdit.status == 3 || this.currentDbEdit.status == 1) {
|
|
|
|
|
|
+ if (this.currentDbEdit.status == 3 || this.currentDbEdit.status == 1 || this.chaidanStatus == 1) {
|
|
this.currentDbEdit.jihuaStartDate = this.currentDbEdit.start_date ;
|
|
this.currentDbEdit.jihuaStartDate = this.currentDbEdit.start_date ;
|
|
this.currentDbEdit.parent = this.currentDbEdit.pid ;
|
|
this.currentDbEdit.parent = this.currentDbEdit.pid ;
|
|
saveProjectJl(this.currentDbEdit).then((res) => {
|
|
saveProjectJl(this.currentDbEdit).then((res) => {
|
|
console.log("提交返回",res)
|
|
console.log("提交返回",res)
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.$message.success('提交成功');
|
|
this.$message.success('提交成功');
|
|
|
|
+ this.chaidanStatus = 0
|
|
this.typeButton = null
|
|
this.typeButton = null
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
this.currentDbEdit = {}
|
|
this.currentDbEdit = {}
|