| | |
| | | </el-table-column> |
| | | <el-table-column prop="infoName" min-width="180" label="技术资料名称"> |
| | | <template v-slot="{ row }"> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.name" placeholder="技术资料名称"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.name" |
| | | placeholder="技术资料名称"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="identify" align="center" width="150" label="标识"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="version" align="center" width="120" label="版本"> |
| | | <template v-slot="{ row }"> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.identify" placeholder="版本"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.identify" |
| | | placeholder="版本"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="secretClass" label="密级" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <!-- <el-input v-model="row.secretClass" placeholder="密级"></el-input>--> |
| | | <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="row.secretClass" dict="secret_class"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='wplz_first'" v-model="row.secretClass" |
| | | dict="secret_class"></zt-dict> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="medium" label="介质" width="100" align="center"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="备注" width="100" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.remark" placeholder="备注"></el-input> |
| | | <el-input :disabled="stepMarker!=='wplz_first'" v-model="row.remark" placeholder="备注"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center"> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <table-uploader busi-type="circulat_order" model-name="row" :dataForm="row" |
| | | v-model="row.files"/> |
| | |
| | | // 表单提交 |
| | | async formSubmit(submitType) { |
| | | let isFiles = true; |
| | | let flag = true; |
| | | console.log(this.dataForm, "this.dataForm11111") |
| | | this.dataForm.technicalList.forEach(item => { |
| | | console.log(item, "his.dataForm.technicalList.forEach") |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | if (parseInt(item.secretClass) > localStorage.getItem('userSecretClass')) { |
| | | this.$alert("当前项目设置的密级高于当前用户的密级,请重新设置") |
| | | flag = false |
| | | } |
| | | }) |
| | | if (!flag) { |
| | | return |
| | | } |
| | | if (submitType === 'tj' || submitType === 'bl') { |
| | | if (this.stepMarker === 'wplz_wpjs') { |
| | | if (this.dataForm.circulatOrder.acceptSituation == null || this.dataForm.circulatOrder.virusLibraryVersion == null) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | if (this.stepMarker === 'wplz_jcjs') { |
| | | if (this.dataForm.circulatOrder.detectAcceptSituation == null) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | if (this.stepMarker === 'wplz_xzjc') { |
| | | if (this.dataForm.circulatOrder.detectSituation == null) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | if (this.stepMarker === 'wplz_wprk') { |
| | | if (this.dataForm.circulatOrder.depositSituation == null) { |
| | | this.$alert("当前有未填写的情况说明") |
| | | return |
| | | } |
| | | } |
| | | this.dataForm.technicalList.forEach(item => { |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | }) |
| | | console.log(this.dataForm, "this.dataForm11111") |
| | | if (submitType == 'tj' || submitType == 'bl') { |
| | | if (!isFiles){ |
| | | if (!isFiles) { |
| | | return |
| | | } |
| | | |
| | | let flowInfo = { |
| | | flowCode: 'wplz', |
| | | stepIdMark: this.stepMarker, |
| | |
| | | } |
| | | let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/itemCirculatOrder/ItemCirculatOrder/', this.dataForm) |
| | | if (res.success) { |
| | | if (this.stepMarker === 'wplz_wprk' && submitType == 'bl') { |
| | | if (this.stepMarker === 'wplz_wprk' && submitType === 'bl') { |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.$refs.dialog.init(null, { |
| | | id: res.data, |