|
|
@ -2663,35 +2663,35 @@
|
|
|
|
<span class="top-title-box">业务系统拓扑图</span>
|
|
|
|
<span class="top-title-box">业务系统拓扑图</span>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item prop="ywxttpwj" label="附件上传">
|
|
|
|
<myUpload :fileSize="30" :limit="1" :fileType="accept" v-model="ruleForm.ywxttpwj">
|
|
|
|
<myUpload :fileSize="30" :limit="1" :fileType="accept" v-model="ruleForm.ywxttpwj">
|
|
|
|
<div class="upload-file">
|
|
|
|
<div class="upload-file">
|
|
|
|
<i class="el-icon-paperclip"></i>
|
|
|
|
<i class="el-icon-paperclip"></i>
|
|
|
|
<span>附件上传,支持xls、xlsx、doc、docx、pdf、rar、zip、pcap、txt、最多上传1个文件,每个不超过30M</span>
|
|
|
|
<span>支持xls、xlsx、doc、docx、pdf、rar、zip、pcap、txt、最多上传1个文件,每个不超过30M</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</myUpload>
|
|
|
|
</myUpload>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item prop="ywxttpt" label="图片上传">
|
|
|
|
<myUpload :fileSize="30" :limit="1" :fileType="acceptTwo" v-model="ruleForm.ywxttpt">
|
|
|
|
<myUpload :fileSize="30" :limit="1" :fileType="acceptTwo" v-model="ruleForm.ywxttpt">
|
|
|
|
<div class="upload-file">
|
|
|
|
<div class="upload-file">
|
|
|
|
<i class="el-icon-paperclip"></i>
|
|
|
|
<i class="el-icon-paperclip"></i>
|
|
|
|
<span>图片上传,支持jpg、jpeg、png、最多上传1张图片,每个不超过30M</span>
|
|
|
|
<span>支持jpg、jpeg、png、最多上传1张图片,每个不超过30M</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</myUpload>
|
|
|
|
</myUpload>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
|
|
|
|
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
|
|
|
|
<span class="top-title-box">报废原因</span>
|
|
|
|
<span class="top-title-box">关停原因</span>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<div>{{ruleForm.bfyy}}</div>
|
|
|
|
<div>{{ruleForm.bfyy}}</div>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="$route.query.pageType == 'change'">
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="$route.query.pageType == 'change'">
|
|
|
|
<el-button type="danger" @click="newAssets(0)">报废</el-button>
|
|
|
|
<el-button type="danger" @click="newAssets(0)">关停</el-button>
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
<el-button type="warning" @click="newAssets(2)">暂存</el-button>
|
|
|
|
<el-button type="warning" @click="newAssets(2)">暂存</el-button>
|
|
|
|
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
|
|
|
|
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
|
|
|
@ -2703,8 +2703,8 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="21">
|
|
|
|
<el-col :span="21">
|
|
|
|
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="dialogruleForm" label-width="100px">
|
|
|
|
<el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="dialogruleForm" label-width="100px">
|
|
|
|
<el-form-item label="报废原因:" prop="bfyy">
|
|
|
|
<el-form-item label="关停原因:" prop="bfyy">
|
|
|
|
<el-input v-model="dialogruleForm.bfyy" placeholder="请输入报废原因"></el-input>
|
|
|
|
<el-input v-model="dialogruleForm.bfyy" placeholder="请输入关停原因"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="newTask-form-item">
|
|
|
|
<el-form-item class="newTask-form-item">
|
|
|
|
<el-button @click="resetForm('dialogruleForm')">取消</el-button>
|
|
|
|
<el-button @click="resetForm('dialogruleForm')">取消</el-button>
|
|
|
@ -2728,8 +2728,8 @@ import { assetUnitData, assetInfo } from "@/api/auditPagesApi/index";
|
|
|
|
import { assetTasktaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js"
|
|
|
|
import { assetTasktaskSh, geassetTaskcHc, assetTasksh } from "@/api/renwuApi/index.js"
|
|
|
|
import { assetTaskzc, assetTaskjyTj } from "@/api/renwuApi/index.js"
|
|
|
|
import { assetTaskzc, assetTaskjyTj } from "@/api/renwuApi/index.js"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
|
|
name: "AssetsAuth",
|
|
|
|
name: "AssetsAuth",
|
|
|
|
dicts: [
|
|
|
|
dicts: [
|
|
|
|
'is_no', 'zc_xtlx', 'zc_xtzyx', 'zc_xtzt', 'zc_zxzt', 'zc_c_i_a',
|
|
|
|
'is_no', 'zc_xtlx', 'zc_xtzyx', 'zc_xtzt', 'zc_zxzt', 'zc_c_i_a',
|
|
|
@ -2742,6 +2742,22 @@ export default {
|
|
|
|
myUpload,myDialog
|
|
|
|
myUpload,myDialog
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
|
|
var validateName = (rule, value, callback) => {
|
|
|
|
|
|
|
|
if (!this.ruleForm.ywxttpwj && !this.ruleForm.ywxttpt) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
callback(new Error("附件,图片请任意上传一项"))
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
//任意值被填写,清除验证提示
|
|
|
|
|
|
|
|
if (!this.ruleForm.ywxttpwj || !this.ruleForm.ywxttpt) {
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.$refs.ruleForm.clearValidate("ywxttpwj")
|
|
|
|
|
|
|
|
this.$refs.ruleForm.clearValidate("ywxttpt")
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
callback()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
accept: ['xls', 'xlsx', 'doc', 'docx', 'pdf', 'rar', 'zip', 'pcap', 'txt'],
|
|
|
|
accept: ['xls', 'xlsx', 'doc', 'docx', 'pdf', 'rar', 'zip', 'pcap', 'txt'],
|
|
|
|
acceptTwo: ['jpg', 'jpeg', 'png'],
|
|
|
|
acceptTwo: ['jpg', 'jpeg', 'png'],
|
|
|
@ -2922,7 +2938,22 @@ export default {
|
|
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: {},
|
|
|
|
rules: {
|
|
|
|
|
|
|
|
ywxttpt: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
validator: validateName,
|
|
|
|
|
|
|
|
trigger: "change",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
ywxttpwj: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
validator: validateName,
|
|
|
|
|
|
|
|
trigger: "change",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
disabled: false,
|
|
|
|
disabled: false,
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2972,7 +3003,7 @@ export default {
|
|
|
|
console.log(res, "res");
|
|
|
|
console.log(res, "res");
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: 'info',
|
|
|
|
type: 'info',
|
|
|
|
message: '已报废'
|
|
|
|
message: '已关停'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.loading = false
|
|
|
|
this.loading = false
|
|
|
|
|
|
|
|
|
|
|
|