|
|
|
@ -598,9 +598,16 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" style="margin-left: 10px;">
|
|
|
|
|
<el-form-item prop="fgfzrlxfs" :rules="{
|
|
|
|
|
<el-form-item prop="fgfzrlxfs" :rules="[
|
|
|
|
|
{
|
|
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
|
message: '请输入正确的手机号码',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
required: true, message: '请输入', trigger: 'blur'
|
|
|
|
|
}">
|
|
|
|
|
}
|
|
|
|
|
]">
|
|
|
|
|
<el-input v-model="ruleForm.fgfzrlxfs" style="width: 100%;" placeholder="请输入联系方式"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -1364,9 +1371,16 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="display: flex;">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item class="daoqitixingren" required :prop="`xtjsUnit[${index}].lxr`" :rules="{
|
|
|
|
|
required: true, message: '请输入', trigger: 'blur'
|
|
|
|
|
}" :label="'联系人' + (index == 0 ? '' : index)">
|
|
|
|
|
<el-form-item class="daoqitixingren" required :prop="`xtjsUnit[${index}].lxr`" :rules="[
|
|
|
|
|
{
|
|
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
|
message: '请输入正确的手机号码',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
required: true, message: '请输入', trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
]" :label="'联系人' + (index == 0 ? '' : index)">
|
|
|
|
|
<el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -1432,9 +1446,16 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="display: flex;">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item class="daoqitixingren" required :prop="`xtyyUnit[${index}].lxr`" :rules="{
|
|
|
|
|
required: true, message: '请输入', trigger: 'blur'
|
|
|
|
|
}" :label="'联系人' + (index == 0 ? '' : index)">
|
|
|
|
|
<el-form-item class="daoqitixingren" required :prop="`xtyyUnit[${index}].lxr`" :rules="[
|
|
|
|
|
{
|
|
|
|
|
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
|
message: '请输入正确的手机号码',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
required: true, message: '请输入', trigger: 'blur'
|
|
|
|
|
}
|
|
|
|
|
]" :label="'联系人' + (index == 0 ? '' : index)">
|
|
|
|
|
<el-input v-model="domain.lxr" placeholder="请输入联系人"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -2605,6 +2626,12 @@
|
|
|
|
|
</myUpload>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0;" v-if="ruleForm.bfyy">
|
|
|
|
|
<span class="top-title-box">报废原因</span>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 20px 0;">
|
|
|
|
|
<div>{{ ruleForm.bfyy }}</div>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin: 10px 0 ;padding-bottom: 50px; text-align: center;">
|
|
|
|
|
<el-button type="danger" @click="newAssets(0)">报废</el-button>
|
|
|
|
|
<el-button @click="newAssets(1)">取消</el-button>
|
|
|
|
@ -3035,8 +3062,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 新增资产确认按钮
|
|
|
|
|
newAssets(type) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
//取消
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
this.loading = false
|
|
|
|
@ -3092,6 +3120,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (type == 2) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
//暂存
|
|
|
|
|
assetTaskzc(this.ruleForm).then(res => {
|
|
|
|
|
console.log(res, "res");
|
|
|
|
@ -3102,6 +3132,8 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (type == 3) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
|
|
//提交
|
|
|
|
|
this.$refs['ruleForm'].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|