|
@@ -214,13 +214,14 @@
|
|
|
width="22"
|
|
|
height="22"
|
|
|
class="del"
|
|
|
- @click="del(index,item)"
|
|
|
+ @click="del(index, item)"
|
|
|
src="../../../public/img/del.png"
|
|
|
alt=""
|
|
|
/>
|
|
|
<el-checkbox
|
|
|
@change="engflagchange"
|
|
|
class="endflag"
|
|
|
+ v-bind:checked="endflag"
|
|
|
v-if="index == deptBudgetList.tranProcessInfoList.length - 1"
|
|
|
v-model="item.endFlag"
|
|
|
:label="1"
|
|
@@ -378,7 +379,7 @@ import {
|
|
|
getwarehousename,
|
|
|
xialaNo,
|
|
|
examinetran,
|
|
|
- delhaulagestage
|
|
|
+ delhaulagestage,
|
|
|
} from '@/model/tasksport/index'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
import mapDrag from '@/components/mapdrag/mapdrag'
|
|
@@ -422,12 +423,12 @@ export default {
|
|
|
name: '',
|
|
|
age: '',
|
|
|
weight: 0,
|
|
|
- number:2,
|
|
|
+ number: 2,
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
this.loaddata()
|
|
|
-
|
|
|
+
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
computed: {
|
|
@@ -459,12 +460,16 @@ export default {
|
|
|
][this.warehouseList[i].warehouseArea].code
|
|
|
this.selectedOptions = tmp
|
|
|
this.deptBudgetList.tranProcessInfoList[0].selectedOptions = tmp
|
|
|
- // this.deptBudgetList.startDetailedAddress =
|
|
|
- // this.warehouseList[i].detailedAddress
|
|
|
- // this.deptBudgetList.tranProcessInfoList[0].sendDetailedAddress =
|
|
|
- // this.warehouseList[i].detailedAddress
|
|
|
- this.$set(this.deptBudgetList,'startDetailedAddress',this.warehouseList[i].detailedAddress)
|
|
|
- this.$set(this.deptBudgetList.tranProcessInfoList[0],'sendDetailedAddress',this.deptBudgetList.startDetailedAddress)
|
|
|
+ this.$set(
|
|
|
+ this.deptBudgetList,
|
|
|
+ 'startDetailedAddress',
|
|
|
+ this.warehouseList[i].detailedAddress
|
|
|
+ )
|
|
|
+ this.$set(
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0],
|
|
|
+ 'sendDetailedAddress',
|
|
|
+ this.deptBudgetList.startDetailedAddress
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -504,8 +509,13 @@ export default {
|
|
|
examinetran({ id: this.$route.query.id })
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
+ for (var j = 0; j < response.tranProcessInfoList.length; j++) {
|
|
|
+ if (response.tranProcessInfoList[j].endFlag == 'true') {
|
|
|
+ this.endflag = true
|
|
|
+ }
|
|
|
+ }
|
|
|
this.deptBudgetList = response
|
|
|
- this.number = response.tranProcessInfoList.length+1
|
|
|
+ this.number = response.tranProcessInfoList.length + 1
|
|
|
if (
|
|
|
response.startPrivate != null &&
|
|
|
response.startCity != null &&
|
|
@@ -534,7 +544,6 @@ export default {
|
|
|
].code
|
|
|
this.selectedOptions1 = tmp1
|
|
|
}
|
|
|
-
|
|
|
for (var i = 0; i < response.tranProcessInfoList.length; i++) {
|
|
|
if (
|
|
|
response.tranProcessInfoList[i].sendPrivate != '' &&
|
|
@@ -638,8 +647,8 @@ export default {
|
|
|
},
|
|
|
add(index) {
|
|
|
this.deptBudgetList.tranProcessInfoList.push({
|
|
|
- processNo: this.deptBudgetList.taskNo+(this.number),
|
|
|
- sort:0,
|
|
|
+ processNo: this.deptBudgetList.taskNo + this.number,
|
|
|
+ sort: 0,
|
|
|
tranType: '汽运',
|
|
|
tranTypeKey: '1',
|
|
|
deliveryDateStart: '',
|
|
@@ -662,16 +671,15 @@ export default {
|
|
|
})
|
|
|
this.number++
|
|
|
},
|
|
|
- del(index,row) {
|
|
|
- console.log(row)
|
|
|
- if(row.id){
|
|
|
+ del(index, row) {
|
|
|
+ if (row.id) {
|
|
|
this.$confirm('任务阶段删除后不可恢复,是否确定删除?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- delhaulagestage({id:row.id}).toPromise()
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(() => {
|
|
|
+ delhaulagestage({ id: row.id })
|
|
|
+ .toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message.success('删除成功')
|
|
|
if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
@@ -679,7 +687,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
if (this.deptBudgetList.tranProcessInfoList.length > 1) {
|
|
|
this.deptBudgetList.tranProcessInfoList.splice(index, 1)
|
|
|
}
|
|
@@ -718,207 +726,282 @@ export default {
|
|
|
this.$router.push({ path: 'tranManagementTransport' })
|
|
|
},
|
|
|
submit() {
|
|
|
- this.$refs.deptBudgetList.validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (!this.deptBudgetList.taskNo) {
|
|
|
+ if (!this.deptBudgetList.taskNo) {
|
|
|
+ this.$message({
|
|
|
+ message: '任务编号不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.taskType) {
|
|
|
+ this.$message({
|
|
|
+ message: '任务类型不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.contractNo) {
|
|
|
+ this.$message({
|
|
|
+ message: '合同编号/移库任务编号不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.goodsName) {
|
|
|
+ this.$message({
|
|
|
+ message: '货名不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.weight) {
|
|
|
+ this.$message({
|
|
|
+ message: '重量(吨)不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.sendWarehouse) {
|
|
|
+ this.$message({
|
|
|
+ message: '发货仓库不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.selectedOptions.length <= 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '始发地不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!this.deptBudgetList.startDetailedAddress) {
|
|
|
+ this.$message({
|
|
|
+ message: '始发地详细地址不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.selectedOptions1.length <= 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '终到地不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.deptBudgetList.endDetailedAddress) {
|
|
|
+ this.$message({
|
|
|
+ message: '终到地详细地址不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.checkList.length <= 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '运输方式多选框不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for (var i = 0; i < this.deptBudgetList.tranProcessInfoList.length; i++) {
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].processNo =
|
|
|
+ this.deptBudgetList.taskNo + (i + 1)
|
|
|
+ if (
|
|
|
+ new Date(
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart
|
|
|
+ ).getTime() >
|
|
|
+ new Date(
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd
|
|
|
+ ).getTime()
|
|
|
+ ) {
|
|
|
this.$message({
|
|
|
- message: '任务编号不能为空!',
|
|
|
+ message: '发货日期不能大于最晚到货日期!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.taskType) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
|
|
|
this.$message({
|
|
|
- message: '任务类型不能为空!',
|
|
|
+ message: '发货日期不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.contractNo) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
|
|
|
this.$message({
|
|
|
- message: '合同编号/移库任务编号不能为空!',
|
|
|
+ message: '最晚到货日期不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.goodsName) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
|
|
|
this.$message({
|
|
|
- message: '货名不能为空!',
|
|
|
+ message: '重量不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.weight) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
|
|
|
this.$message({
|
|
|
- message: '重量(吨)不能为空!',
|
|
|
+ message: '发货人不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.sendWarehouse) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
|
|
|
this.$message({
|
|
|
- message: '发货仓库不能为空!',
|
|
|
+ message: '发货人电话不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.selectedOptions.length <= 0) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
|
|
|
this.$message({
|
|
|
- message: '始发地不能为空!',
|
|
|
+ message: '收货人不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- if (!this.deptBudgetList.startDetailedAddress) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
|
|
|
this.$message({
|
|
|
- message: '始发地详细地址不能为空!',
|
|
|
+ message: '收货人电话不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.selectedOptions1.length <= 0) {
|
|
|
+ if (
|
|
|
+ !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
|
|
|
+ ) {
|
|
|
this.$message({
|
|
|
- message: '终到地不能为空!',
|
|
|
+ message: '收获详细地址不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.endDetailedAddress) {
|
|
|
+ if (!this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress) {
|
|
|
this.$message({
|
|
|
- message: '终到地详细地址不能为空!',
|
|
|
+ message: '发货详细地址不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.checkList.length <= 0) {
|
|
|
- this.$message({
|
|
|
- message: '运输方式多选框不能为空!',
|
|
|
- type: 'warning',
|
|
|
+ }
|
|
|
+ if (this.endflag == false) {
|
|
|
+ this.$confirm('您还未选择最终阶段,是否确定提交?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.deptBudgetList.compId =
|
|
|
+ sessionStorage.getItem('ws-pf_compId')
|
|
|
+ this.deptBudgetList.tranType = this.checkList.toString()
|
|
|
+ this.deptBudgetList.startPrivate =
|
|
|
+ CodeToText[this.selectedOptions[0]]
|
|
|
+ this.deptBudgetList.startCity =
|
|
|
+ CodeToText[this.selectedOptions[1]]
|
|
|
+ this.deptBudgetList.startArea =
|
|
|
+ CodeToText[this.selectedOptions[2]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendPrivate =
|
|
|
+ CodeToText[this.selectedOptions[0]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendCity =
|
|
|
+ CodeToText[this.selectedOptions[1]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendArea =
|
|
|
+ CodeToText[this.selectedOptions[2]]
|
|
|
+ for (
|
|
|
+ var i = 0;
|
|
|
+ i < this.deptBudgetList.tranProcessInfoList.length;
|
|
|
+ i++
|
|
|
+ ) {
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].sort = i
|
|
|
+ }
|
|
|
+
|
|
|
+ edittran(this.deptBudgetList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('编辑成功')
|
|
|
+ this.deptBudgetList = {}
|
|
|
+ this.$router.push({ path: 'tranManagementTransport' })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
+ return false
|
|
|
+ }
|
|
|
})
|
|
|
- return
|
|
|
- }
|
|
|
- for (
|
|
|
- var i = 0;
|
|
|
- i < this.deptBudgetList.tranProcessInfoList.length;
|
|
|
- i++
|
|
|
- ) {
|
|
|
- this.deptBudgetList.tranProcessInfoList[i].processNo =
|
|
|
- this.deptBudgetList.taskNo + (i + 1)
|
|
|
- if (
|
|
|
- new Date(
|
|
|
- this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart
|
|
|
- ).getTime() >
|
|
|
- new Date(
|
|
|
- this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd
|
|
|
- ).getTime()
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '发货日期不能大于最晚到货日期!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateStart) {
|
|
|
- this.$message({
|
|
|
- message: '发货日期不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].deliveryDateEnd) {
|
|
|
- this.$message({
|
|
|
- message: '最晚到货日期不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].weight) {
|
|
|
- this.$message({
|
|
|
- message: '重量不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].sender) {
|
|
|
- this.$message({
|
|
|
- message: '发货人不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].senderPhone) {
|
|
|
- this.$message({
|
|
|
- message: '发货人电话不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].receiver) {
|
|
|
- this.$message({
|
|
|
- message: '收货人不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.deptBudgetList.tranProcessInfoList[i].receiverPhone) {
|
|
|
- this.$message({
|
|
|
- message: '收货人电话不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- !this.deptBudgetList.tranProcessInfoList[i].receiveDetailedAddress
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '收获详细地址不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- !this.deptBudgetList.tranProcessInfoList[i].sendDetailedAddress
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '发货详细地址不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$confirm(
|
|
|
+ '运输任务提交成功后将派发到物流部门,是否确定提交?',
|
|
|
+ '提示',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
}
|
|
|
- this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
- this.deptBudgetList.tranType = this.checkList.toString()
|
|
|
- this.deptBudgetList.startPrivate = CodeToText[this.selectedOptions[0]]
|
|
|
- this.deptBudgetList.startCity = CodeToText[this.selectedOptions[1]]
|
|
|
- this.deptBudgetList.startArea = CodeToText[this.selectedOptions[2]]
|
|
|
- this.deptBudgetList.tranProcessInfoList[0].sendPrivate = CodeToText[this.selectedOptions[0]]
|
|
|
- this.deptBudgetList.tranProcessInfoList[0].sendCity = CodeToText[this.selectedOptions[1]]
|
|
|
- this.deptBudgetList.tranProcessInfoList[0].sendArea = CodeToText[this.selectedOptions[2]]
|
|
|
- for(var i = 0; i< this.deptBudgetList.tranProcessInfoList.length ; i++){
|
|
|
- this.deptBudgetList.tranProcessInfoList[i].sort = i
|
|
|
- // this.deptBudgetList.tranProcessInfoList[i].sendPrivate = CodeToText[this.selectedOptions[0]]
|
|
|
- // this.deptBudgetList.tranProcessInfoList[i].sendCity = CodeToText[this.selectedOptions[1]]
|
|
|
- // this.deptBudgetList.tranProcessInfoList[i].sendArea = CodeToText[this.selectedOptions[2]]
|
|
|
- // this.deptBudgetList.tranProcessInfoList[i].receivePrivate = CodeToText[this.selectedOptions1[0]]
|
|
|
- // this.deptBudgetList.tranProcessInfoList[i].receiveCity = CodeToText[this.selectedOptions1[1]]
|
|
|
- // this.deptBudgetList.tranProcessInfoList[i].receiveArea = CodeToText[this.selectedOptions1[2]]
|
|
|
- // console.log(CodeToText[this.selectedOptions1[0]],"省")
|
|
|
- // console.log(CodeToText[this.selectedOptions1[1]],"市")
|
|
|
- // console.log(CodeToText[this.selectedOptions1[2]],"区")
|
|
|
- }
|
|
|
- edittran(this.deptBudgetList)
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- this.$message.success('编辑成功')
|
|
|
- this.deptBudgetList = {}
|
|
|
- this.$router.push({ path: 'tranManagementTransport' })
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.deptBudgetList.compId =
|
|
|
+ sessionStorage.getItem('ws-pf_compId')
|
|
|
+ this.deptBudgetList.tranType = this.checkList.toString()
|
|
|
+
|
|
|
+ this.deptBudgetList.startPrivate =
|
|
|
+ CodeToText[this.selectedOptions[0]]
|
|
|
+ this.deptBudgetList.startCity =
|
|
|
+ CodeToText[this.selectedOptions[1]]
|
|
|
+ this.deptBudgetList.startArea =
|
|
|
+ CodeToText[this.selectedOptions[2]]
|
|
|
+
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendPrivate =
|
|
|
+ CodeToText[this.selectedOptions[0]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendCity =
|
|
|
+ CodeToText[this.selectedOptions[1]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[0].sendArea =
|
|
|
+ CodeToText[this.selectedOptions[2]]
|
|
|
+
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
+ ].receivePrivate = CodeToText[this.selectedOptions1[0]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
+ ].receiveCity = CodeToText[this.selectedOptions1[1]]
|
|
|
+ this.deptBudgetList.tranProcessInfoList[
|
|
|
+ this.deptBudgetList.tranProcessInfoList.length - 1
|
|
|
+ ].receiveArea = CodeToText[this.selectedOptions1[2]]
|
|
|
+
|
|
|
+ for (
|
|
|
+ var i = 0;
|
|
|
+ i < this.deptBudgetList.tranProcessInfoList.length;
|
|
|
+ i++
|
|
|
+ ) {
|
|
|
+ this.deptBudgetList.tranProcessInfoList[i].sort = i
|
|
|
+ }
|
|
|
+ edittran(this.deptBudgetList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('编辑成功')
|
|
|
+ this.deptBudgetList = {}
|
|
|
+ this.$router.push({ path: 'tranManagementTransport' })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
+ alert('失败1')
|
|
|
+ return false
|
|
|
+ }
|
|
|
})
|
|
|
- } else {
|
|
|
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
- return false
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ alert('失败2')
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
resetForm(deptBudgetList) {
|
|
|
this.$refs[deptBudgetList].resetFields()
|
|
@@ -1056,6 +1139,7 @@ export default {
|
|
|
text-align: center;
|
|
|
color: #8890b1;
|
|
|
font-size: 14px;
|
|
|
+ width: -webkit-min-content;
|
|
|
}
|
|
|
/deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
border: none;
|