|
|
|
@ -6,106 +6,89 @@
|
|
|
|
|
<span class="top-title-box">基本信息</span>
|
|
|
|
|
</el-row>
|
|
|
|
|
<div class="assets-info-box">
|
|
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm" label-position="right" :disabled="disabled">
|
|
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="170px" class="demo-ruleForm"
|
|
|
|
|
label-position="right" :disabled="disabled">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="所属单位" prop="ssdw">
|
|
|
|
|
<!-- <el-input v-model="ruleForm.ssdw" placeholder="请输入单位名称"></el-input> -->
|
|
|
|
|
<el-autocomplete
|
|
|
|
|
v-model="ruleForm.ssdw"
|
|
|
|
|
:fetch-suggestions="querySearchAsync"
|
|
|
|
|
placeholder="请输入所属单位"
|
|
|
|
|
disabled
|
|
|
|
|
></el-autocomplete>
|
|
|
|
|
<el-autocomplete v-model="ruleForm.ssdw" :fetch-suggestions="querySearchAsync" placeholder="请输入所属单位"
|
|
|
|
|
disabled></el-autocomplete>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="公众号名称" prop="gzhmc">
|
|
|
|
|
<el-input v-model="ruleForm.gzhmc" placeholder="请输入公众号名称" disabled></el-input>
|
|
|
|
|
<el-form-item label="平台类型" prop="ptlx">
|
|
|
|
|
<el-select v-model="ruleForm.ptlx" placeholder="请选择平台类型" >
|
|
|
|
|
<el-option v-for="dict in dict.type.sys_ptlx_type" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<div v-if="ruleForm.ptlx == 1">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="微信号" prop="wxh">
|
|
|
|
|
<el-form-item label="微信号" prop="wxh">
|
|
|
|
|
<el-input v-model="ruleForm.wxh" style="width: 100%;" placeholder="请输入微信号"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="认证主体" prop="rzzt">
|
|
|
|
|
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
|
|
|
|
|
<el-form-item label="公众号名称" prop="gzhmc">
|
|
|
|
|
<el-input v-model="ruleForm.gzhmc" placeholder="请输入公众号名称" disabled></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12" >
|
|
|
|
|
<el-form-item prop="tyshxydm"
|
|
|
|
|
class="daoqitixingren" label="统一社会信用代码" required
|
|
|
|
|
:rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item prop="tyshxydm" class="daoqitixingren" label="统一社会信用代码" required :rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
|
|
pattern: /^[a-zA-Z0-9]{18}$/,
|
|
|
|
|
message: '请输入正确格式的18位统一社会信用代码',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}
|
|
|
|
|
]"
|
|
|
|
|
>
|
|
|
|
|
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
pattern: /^[a-zA-Z0-9]{18}$/,
|
|
|
|
|
message: '请输入正确格式的18位统一社会信用代码',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}
|
|
|
|
|
]">
|
|
|
|
|
<el-input v-model="ruleForm.tyshxydm" placeholder="请输入统一信用代码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="公众号状态" prop="gzhzt">
|
|
|
|
|
<el-form-item label="公众号状态" prop="gzhzt">
|
|
|
|
|
<el-select v-model="ruleForm.gzhzt" placeholder="请选择公众号状态">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.gzh_state"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.gzh_state" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="公众号ID" prop="gzhId">
|
|
|
|
|
<el-form-item label="公众号ID" prop="gzhId">
|
|
|
|
|
<el-input v-model="ruleForm.gzhId" style="width: 100%;" placeholder="请输入公众号ID"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="公众号类型" prop="gzhlx">
|
|
|
|
|
<el-form-item label="公众号类型" prop="gzhlx">
|
|
|
|
|
<el-select v-model="ruleForm.gzhlx" placeholder="请选择公众号类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.gzh_lx"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.gzh_lx" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="认证状态" prop="rzState">
|
|
|
|
|
<el-form-item label="认证状态" prop="rzState">
|
|
|
|
|
<el-select v-model="ruleForm.rzState" placeholder="请选择认证状态">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.gzh_rzzt"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.gzh_rzzt" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="认证时间" prop="rzsj">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="ruleForm.rzsj"
|
|
|
|
|
type="date"
|
|
|
|
|
format="yyyy-MM-dd"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
<el-form-item label="认证时间" prop="rzsj">
|
|
|
|
|
<el-date-picker v-model="ruleForm.rzsj" type="date" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="选择日期">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -113,166 +96,153 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="认证类型" prop="rzlx">
|
|
|
|
|
<el-form-item label="认证类型" prop="rzlx">
|
|
|
|
|
<el-select v-model="ruleForm.rzlx" placeholder="请选择认证类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.gzh_rzlx"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.gzh_rzlx" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="所属行业" prop="sshy">
|
|
|
|
|
<el-form-item label="所属行业" prop="sshy">
|
|
|
|
|
<el-select v-model="ruleForm.sshy" placeholder="请选择所属行业">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.app_sshy"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.app_sshy" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="重点行业" prop="zdhy">
|
|
|
|
|
<el-form-item label="重点行业" prop="zdhy">
|
|
|
|
|
<el-select v-model="ruleForm.zdhy" placeholder="请选择重点行业">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.app_zdhy"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.app_zdhy" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="行政区划" prop="xzqh">
|
|
|
|
|
<el-form-item label="行政区划" prop="xzqh">
|
|
|
|
|
<el-select v-model="ruleForm.xzqh" placeholder="请选择行政区划">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.app_xzqh"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<el-option v-for="dict in dict.type.app_xzqh" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="系统责任人" prop="xtzrr">
|
|
|
|
|
<el-form-item label="系统责任人" prop="xtzrr">
|
|
|
|
|
<el-input v-model="ruleForm.xtzrr" style="width: 100%;" placeholder="请输入系统责任人"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item prop="xtzrrdh"
|
|
|
|
|
label="系统责任人电话" required
|
|
|
|
|
:rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
<el-form-item prop="xtzrrdh" label="系统责任人电话" required :rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
|
message: '请输入正确的手机号码',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}
|
|
|
|
|
]"
|
|
|
|
|
>
|
|
|
|
|
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
|
message: '请输入正确的手机号码',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}
|
|
|
|
|
]">
|
|
|
|
|
<el-input v-model="ruleForm.xtzrrdh" style="width: 100%;" placeholder="请输入系统责任人电话"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item prop="xtzrryx"
|
|
|
|
|
label="系统责任人邮箱" required
|
|
|
|
|
:rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
<el-form-item prop="xtzrryx" label="系统责任人邮箱" required :rules="[
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
|
|
type: 'email',
|
|
|
|
|
message: '请输入正确的邮箱地址',
|
|
|
|
|
trigger: ['change', 'change']
|
|
|
|
|
}
|
|
|
|
|
]"
|
|
|
|
|
>
|
|
|
|
|
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
type: 'email',
|
|
|
|
|
message: '请输入正确的邮箱地址',
|
|
|
|
|
trigger: ['change', 'change']
|
|
|
|
|
}
|
|
|
|
|
]">
|
|
|
|
|
<el-input v-model="ruleForm.xtzrryx" style="width: 100%;" placeholder="请输入系统责任人邮箱"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="系统责任人地址" prop="xtzrrdz">
|
|
|
|
|
<el-form-item label="系统责任人地址" prop="xtzrrdz">
|
|
|
|
|
<el-input v-model="ruleForm.xtzrrdz" style="width: 100%;" placeholder="请输入系统责任人地址"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="菜单信息(菜单名称)" prop="cdmc">
|
|
|
|
|
<el-form-item label="菜单信息(菜单名称)" prop="cdmc">
|
|
|
|
|
<el-input v-model="ruleForm.cdmc" style="width: 100%;" placeholder="请输入菜单信息(菜单名称)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="菜单信息(菜单链接)" prop="cdlj">
|
|
|
|
|
<el-form-item label="菜单信息(菜单链接)" prop="cdlj">
|
|
|
|
|
<el-input v-model="ruleForm.cdlj" style="width: 100%;" placeholder="请输入菜单信息(菜单链接)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="菜单信息(菜单类型)" prop="cdlx">
|
|
|
|
|
<el-form-item label="菜单信息(菜单类型)" prop="cdlx">
|
|
|
|
|
<el-input v-model="ruleForm.cdlx" style="width: 100%;" placeholder="请输入菜单信息(菜单类型)"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="认证主体" prop="rzzt">
|
|
|
|
|
<el-input v-model="ruleForm.rzzt" style="width: 100%;" placeholder="请输入认证主体"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="系统简介" prop="xtjj">
|
|
|
|
|
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5" v-model="ruleForm.xtjj"></el-input>
|
|
|
|
|
<el-form-item label="系统简介" prop="xtjj">
|
|
|
|
|
<el-input type="textarea" resize="none" placeholder="请输入系统简介" :rows="5"
|
|
|
|
|
v-model="ruleForm.xtjj"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
<el-row v-if="ruleForm.bfyy">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="关停原因">
|
|
|
|
|
<div>{{ruleForm.bfyy}}</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<div>{{ ruleForm.bfyy }}</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'mytaskAuditInfo'" >
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"
|
|
|
|
|
v-if="pageType !== 'look' && $route.name == 'mytaskAuditInfo'">
|
|
|
|
|
<el-button type="danger" @click="newAssets(0)">关停</el-button>
|
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
|
<el-button type="warning" @click="newAssets(2)">暂存</el-button>
|
|
|
|
|
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
|
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
|
<el-button type="warning" @click="newAssets(2)">暂存</el-button>
|
|
|
|
|
<el-button type="primary" @click="newAssets(3)" :loading="loading">提交</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;" v-if="pageType !== 'look' &&$route.name == 'taskAuditInfo'" >
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;"
|
|
|
|
|
v-if="pageType !== 'look' && $route.name == 'taskAuditInfo'">
|
|
|
|
|
<el-button type="danger" @click="JGnewAssets(0)">不通过</el-button>
|
|
|
|
|
<el-button type="primary" @click="JGnewAssets(1)" >通过</el-button>
|
|
|
|
|
<el-button type="primary" @click="JGnewAssets(1)">通过</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<baofei ref='baofei' :ruleForm='ruleForm' @assetTaskzc="guanting"></baofei>
|
|
|
|
|
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc' ></butongguo>
|
|
|
|
|
<butongguo ref='butongguo' :chuandemingcheng='ruleForm.gzhmc'></butongguo>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { assetOfficialAccount, assetOfficialAccountInfo, unitAllList } from "@/api/auditPagesApi/index";
|
|
|
|
|
import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh,assetTaskgzhjyTj} from "@/api/renwuApi/index.js"
|
|
|
|
|
import baofei from "@/views/components/renwuType/baofei.vue"
|
|
|
|
|
import butongguo from "@/views/components/renwuType/butongguo.vue"
|
|
|
|
|
import { assetTaskofficetaskSh, assetTaskgzhzc, assetTasksh, assetTaskgzhjyTj } from "@/api/renwuApi/index.js"
|
|
|
|
|
import baofei from "@/views/components/renwuType/baofei.vue"
|
|
|
|
|
import butongguo from "@/views/components/renwuType/butongguo.vue"
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components:{baofei,butongguo},
|
|
|
|
|
components: { baofei, butongguo },
|
|
|
|
|
|
|
|
|
|
dicts:['app_xzqh','app_sshy','app_zdhy','gzh_state','gzh_lx','gzh_rzzt','gzh_rzlx','gzh_cdlx'],
|
|
|
|
|
dicts: ['app_xzqh', 'app_sshy', 'app_zdhy', 'gzh_state', 'gzh_lx', 'gzh_rzzt', 'gzh_rzlx', 'gzh_cdlx', 'sys_ptlx_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
ruleForm:{
|
|
|
|
|
ruleForm: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
@ -347,16 +317,16 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
loading:false,
|
|
|
|
|
disabled:false,
|
|
|
|
|
loading: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
props:['pageType', 'id'],
|
|
|
|
|
mounted(){
|
|
|
|
|
if(this.pageType == 'look') {
|
|
|
|
|
props: ['pageType', 'id'],
|
|
|
|
|
mounted() {
|
|
|
|
|
if (this.pageType == 'look') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
const inputElements = document.querySelectorAll('.el-input__inner');
|
|
|
|
|
const textareaInputElements = document.querySelectorAll('.el-textarea__inner');
|
|
|
|
|
inputElements.forEach((input) => {
|
|
|
|
@ -366,30 +336,30 @@ export default {
|
|
|
|
|
input.placeholder = '';
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
} else if(this.pageType == 'change') {
|
|
|
|
|
} else if (this.pageType == 'change') {
|
|
|
|
|
this.getInfo(this.id)
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
|
|
|
|
|
getInfo(id){
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
getInfo(id) {
|
|
|
|
|
let obj = {
|
|
|
|
|
taskId: this.$route.query.taskId,
|
|
|
|
|
assetId: this.$route.query.assetId
|
|
|
|
|
}
|
|
|
|
|
assetTaskofficetaskSh(obj).then(res=>{
|
|
|
|
|
taskId: this.$route.query.taskId,
|
|
|
|
|
assetId: this.$route.query.assetId
|
|
|
|
|
}
|
|
|
|
|
assetTaskofficetaskSh(obj).then(res => {
|
|
|
|
|
this.ruleForm = res.data;
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.$refs.ruleForm.clearValidate()
|
|
|
|
|
|
|
|
|
|
this.$refs.ruleForm.clearValidate()
|
|
|
|
|
|
|
|
|
|
}, 100);
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 单位名称模糊查询
|
|
|
|
|
querySearchAsync(queryString, cb){
|
|
|
|
|
querySearchAsync(queryString, cb) {
|
|
|
|
|
let results = [];
|
|
|
|
|
unitAllList({nickName: queryString}).then(res => {
|
|
|
|
|
unitAllList({ nickName: queryString }).then(res => {
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
results.push({
|
|
|
|
|
value: item.nickName,
|
|
|
|
@ -399,87 +369,87 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
cb(results);
|
|
|
|
|
},
|
|
|
|
|
guanting(ruleForm){
|
|
|
|
|
assetTaskgzhzc(ruleForm).then(res=>{
|
|
|
|
|
guanting(ruleForm) {
|
|
|
|
|
assetTaskgzhzc(ruleForm).then(res => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已关停'
|
|
|
|
|
});
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.ruleForm.bfyy = ""
|
|
|
|
|
this.$refs.baofei.resetForm()
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已关停'
|
|
|
|
|
});
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.ruleForm.bfyy = ""
|
|
|
|
|
this.$refs.baofei.resetForm()
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 新增资产确认按钮
|
|
|
|
|
newAssets(type){
|
|
|
|
|
newAssets(type) {
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
//取消
|
|
|
|
|
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.ruleForm.taskId= this.$route.query.taskId
|
|
|
|
|
this.ruleForm.assetId= this.$route.query.assetId
|
|
|
|
|
this.ruleForm.taskId = this.$route.query.taskId
|
|
|
|
|
this.ruleForm.assetId = this.$route.query.assetId
|
|
|
|
|
|
|
|
|
|
if (type == 0) {
|
|
|
|
|
this.$refs.baofei.open()
|
|
|
|
|
this.$refs.baofei.open()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//暂存
|
|
|
|
|
if (type == 2) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
assetTaskgzhzc(this.ruleForm).then(res => {
|
|
|
|
|
console.log(res, "res");
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.loading = true
|
|
|
|
|
assetTaskgzhzc(this.ruleForm).then(res => {
|
|
|
|
|
console.log(res, "res");
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(type == 3){
|
|
|
|
|
if (type == 3) {
|
|
|
|
|
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
if(valid) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
assetTaskgzhjyTj(this.ruleForm).then(res=>{
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$modal.msgSuccess("提交成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
assetTaskgzhjyTj(this.ruleForm).then(res => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$modal.msgSuccess("提交成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
JGnewAssets(type){
|
|
|
|
|
|
|
|
|
|
this.ruleForm.taskId= this.$route.query.taskId
|
|
|
|
|
this.ruleForm.assetId= this.$route.query.assetId
|
|
|
|
|
if(type == 0){
|
|
|
|
|
|
|
|
|
|
this.$refs.butongguo.open()
|
|
|
|
|
JGnewAssets(type) {
|
|
|
|
|
|
|
|
|
|
this.ruleForm.taskId = this.$route.query.taskId
|
|
|
|
|
this.ruleForm.assetId = this.$route.query.assetId
|
|
|
|
|
if (type == 0) {
|
|
|
|
|
|
|
|
|
|
this.$refs.butongguo.open()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(type == 1){
|
|
|
|
|
let tijioaobj = {
|
|
|
|
|
taskId: this.$route.query.taskId,
|
|
|
|
|
assetId: this.$route.query.assetId,
|
|
|
|
|
xtmc:this.ruleForm.gzhmc,
|
|
|
|
|
status: 3,
|
|
|
|
|
type:this.$route.query.type
|
|
|
|
|
}
|
|
|
|
|
assetTasksh(tijioaobj).then(res=>{
|
|
|
|
|
if(res.code == 200){
|
|
|
|
|
this.$modal.msgSuccess("审核成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
let tijioaobj = {
|
|
|
|
|
taskId: this.$route.query.taskId,
|
|
|
|
|
assetId: this.$route.query.assetId,
|
|
|
|
|
xtmc: this.ruleForm.gzhmc,
|
|
|
|
|
status: 3,
|
|
|
|
|
type: this.$route.query.type
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
sendBack(){
|
|
|
|
|
assetTasksh(tijioaobj).then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$modal.msgSuccess("审核成功");
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
sendBack() {
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|