diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue index ab4bf6d..cfa1c4e 100644 --- a/src/views/business/study/comp/tbbd/Bj.vue +++ b/src/views/business/study/comp/tbbd/Bj.vue @@ -63,7 +63,8 @@ - + @@ -91,8 +92,8 @@ -
- +
+
{{ @@ -108,9 +109,12 @@
处置方式:
-
- +
+ +
@@ -152,10 +156,12 @@
存储条件:
-
- +
+ +
@@ -225,8 +231,8 @@
- +
@@ -240,8 +246,8 @@ -
- +
+
@@ -266,10 +272,12 @@
存储条件:
-
- +
+ +
@@ -318,8 +326,8 @@
- +
@@ -333,7 +341,7 @@ -
+
@@ -363,8 +371,8 @@
- +
@@ -378,7 +386,7 @@ -
+
@@ -408,8 +416,8 @@
- +
@@ -486,6 +494,7 @@ export default { czfsqt: '', czids: '', sfcc: false, + cctjqt: '', cctj: '', ccwz: '', ccids: '', @@ -502,6 +511,7 @@ export default { czids: '', sfcc: false, cctj: '', + cctjqt: '', ccwz: '', ccids: '', }, @@ -563,7 +573,7 @@ export default { this.getCcwz() }, methods: { - validForm() { + validForm() { this.$refs["form"].validate(valid => { if (valid) { } }) @@ -578,6 +588,18 @@ export default { this.ccwzlist = response.rows }) }, + czfsChange(cindex) { + let that = this + that.czlist[cindex].czfsqt = '' + }, + cctjChange(cindex) { + let that = this + that.cclist[cindex].cctjqt = '' + }, + cctjYjChange(cindex) { + let that = this + that.cclistYj[cindex].cctjqt = '' + }, ccwzChange(cindex) { let that = this let _index = _.findIndex(this.ccwzlist, function (item) { @@ -629,21 +651,24 @@ export default { addCz() { this.czlist.push({ list: [], - czfs: '' + czfs: '', + czfsqt: '' }) }, addCc() { this.cclist.push({ list: [], cctj: '', - ccwz: '' + ccwz: '', + cctjqt: '', }) }, addCcYj() { this.cclistYj.push({ list: [], cctj: '', - ccwz: '' + ccwz: '', + cctjqt: '' }) }, getInfo() { @@ -980,6 +1005,10 @@ export default { this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空") return } + if (!that.cclistYj[i].cctjqt || that.cclistYj[i].cctjqt == '') { + this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空") + return + } } that.$modal.loading() that.formYjcc.resource = JSON.stringify(that.resourceYj) @@ -999,7 +1028,6 @@ export default { let that = this this.$refs["formApprove"].validate(valid => { if (valid) { - that.$modal.loading() that.formApprove.resource = JSON.stringify(that.resource) that.formApprove.yqResource = JSON.stringify(that.yqResource) that.formApprove.jcbList = JSON.stringify(that.jcbList) @@ -1010,6 +1038,32 @@ export default { if (that.cclist.length > 0) { that.formApprove.cclist = JSON.stringify(that.cclist) } + for (var i = 0; i < that.czlist.length; i++) { + if (!that.czlist[i].czfs || that.czlist[i].czfs == '') { + this.$modal.msgError('第' + (i + 1) + "个处置,处置方式不能为空") + return + } + if (!that.czlist[i].czfsqt || that.czlist[i].czfsqt == '') { + this.$modal.msgError('第' + (i + 1) + "个存储,处置方式不能为空") + return + } + } + for (var i = 0; i < that.cclist.length; i++) { + if (!that.cclist[i].ccwz || that.cclist[i].ccwz == '') { + this.$modal.msgError('第' + (i + 1) + "个存储,存储位置不能为空") + return + } + if (!that.cclist[i].cctj || that.cclist[i].cctj == '') { + this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空") + return + } + if (!that.cclist[i].cctjqt || that.cclist[i].cctjqt == '') { + this.$modal.msgError('第' + (i + 1) + "个存储,存储条件不能为空") + return + } + } + debugger + that.$modal.loading() studyFormFill_tj(that.formApprove).then(response => { that.openApprove = false that.$modal.closeLoading()