|
@@ -244,7 +244,12 @@
|
|
|
>未提交审核</span
|
|
|
>
|
|
|
<span
|
|
|
- v-if="scope.row.audit == 1 && (scope.row.approveStatus == 0 || scope.row.approveStatus == null) && scope.row.approveTime == null"
|
|
|
+ v-if="
|
|
|
+ scope.row.audit == 1 &&
|
|
|
+ (scope.row.approveStatus == 0 ||
|
|
|
+ scope.row.approveStatus == null) &&
|
|
|
+ scope.row.approveTime == null
|
|
|
+ "
|
|
|
>未审核</span
|
|
|
>
|
|
|
|
|
@@ -471,23 +476,32 @@
|
|
|
:label="item.normName"
|
|
|
:name="item.normName"
|
|
|
>
|
|
|
- <el-row :gutter="10">
|
|
|
- <template v-for="listItem in form.feeLists">
|
|
|
- <el-form
|
|
|
- v-if="listItem.normId == item.normId"
|
|
|
- :rules="validatorList(listItem.normfeeCode,listItem.normfeeName,listItem.sendValue)"
|
|
|
- :model="listItem"
|
|
|
- :ref="'form' + listItem.normfeeId"
|
|
|
- :key="listItem.normfeeId"
|
|
|
- :disabled = "listItem.sendValue == 1"
|
|
|
- >
|
|
|
- <!-- :key="index + listIndex + listItem.normId" -->
|
|
|
- <!-- :rules="rules" ref="form" -->
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <template v-for="listItem in form.feeLists">
|
|
|
+ <el-form
|
|
|
+ v-if="listItem.normId == item.normId"
|
|
|
+ :rules="
|
|
|
+ validatorList(
|
|
|
+ listItem.normfeeCode,
|
|
|
+ listItem.normfeeName,
|
|
|
+ listItem.sendValue
|
|
|
+ )
|
|
|
+ "
|
|
|
+ :model="listItem"
|
|
|
+ :ref="'form' + listItem.normfeeId"
|
|
|
+ :key="listItem.normfeeId"
|
|
|
+ :disabled="listItem.sendValue == 1"
|
|
|
+ >
|
|
|
+ <!-- :key="index + listIndex + listItem.normId" -->
|
|
|
+ <!-- :rules="rules" ref="form" -->
|
|
|
|
|
|
- <el-col :span="12" >
|
|
|
+ <el-col :span="12">
|
|
|
<el-form-item
|
|
|
:label="
|
|
|
- listItem.normfeeName + '(' + listItem.funit_dictText + ')'
|
|
|
+ listItem.normfeeName +
|
|
|
+ '(' +
|
|
|
+ listItem.funit_dictText +
|
|
|
+ ')'
|
|
|
"
|
|
|
prop="collCalue"
|
|
|
>
|
|
@@ -499,12 +513,10 @@
|
|
|
:placeholder="'请输入' + listItem.normfeeName"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col >
|
|
|
-
|
|
|
- </el-form>
|
|
|
-
|
|
|
- </template>
|
|
|
- </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </el-row>
|
|
|
<!-- 这里是第二种写法 -->
|
|
|
<!-- <el-form :model="form" label-width="300px">
|
|
|
<el-form-item
|
|
@@ -574,32 +586,39 @@
|
|
|
:label="item.normName"
|
|
|
:name="item.normName"
|
|
|
>
|
|
|
- <template v-for="listItem in form.feeLists">
|
|
|
- <el-form
|
|
|
- v-if="listItem.normId == item.normId"
|
|
|
- :model="listItem"
|
|
|
- :ref="'form' + listItem.normfeeId"
|
|
|
- :rules="rules"
|
|
|
- :key="listItem.normfeeId"
|
|
|
- >
|
|
|
- <!-- :rules="rules" ref="form" -->
|
|
|
- <el-form-item
|
|
|
- prop="collCalue"
|
|
|
- :label="
|
|
|
- listItem.normfeeName + '(' + listItem.funit_dictText + ')'
|
|
|
- "
|
|
|
+ <el-row :gutter="10">
|
|
|
+ <template v-for="listItem in form.feeLists">
|
|
|
+ <el-form
|
|
|
+ v-if="listItem.normId == item.normId"
|
|
|
+ :model="listItem"
|
|
|
+ :ref="'form' + listItem.normfeeId"
|
|
|
+ :rules="rules"
|
|
|
+ :key="listItem.normfeeId"
|
|
|
>
|
|
|
- <!-- 这里科研失败!想动态绑定校验规则的 -->
|
|
|
- <!-- :prop="listItem.normfeeId" -->
|
|
|
- <!-- :rules="rules.listItem.normfeeId" -->
|
|
|
- <el-input
|
|
|
- :disabled="!edit"
|
|
|
- v-model="listItem.collCalue"
|
|
|
- :placeholder="'请输入' + listItem.normfeeName"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </template>
|
|
|
+ <!-- :rules="rules" ref="form" -->
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item
|
|
|
+ prop="collCalue"
|
|
|
+ :label="
|
|
|
+ listItem.normfeeName +
|
|
|
+ '(' +
|
|
|
+ listItem.funit_dictText +
|
|
|
+ ')'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <!-- 这里科研失败!想动态绑定校验规则的 -->
|
|
|
+ <!-- :prop="listItem.normfeeId" -->
|
|
|
+ <!-- :rules="rules.listItem.normfeeId" -->
|
|
|
+ <el-input
|
|
|
+ :disabled="!edit"
|
|
|
+ v-model="listItem.collCalue"
|
|
|
+ :placeholder="'请输入' + listItem.normfeeName"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </el-row>
|
|
|
|
|
|
<!-- 这里是第二种写法 -->
|
|
|
<!-- <el-form :model="form" label-width="150px">
|
|
@@ -834,14 +853,28 @@ export default {
|
|
|
callback();
|
|
|
}
|
|
|
},
|
|
|
- validatorList(code,name,sendValue) {
|
|
|
+ validatorList(code, name, sendValue) {
|
|
|
if (typeof name != "string") return;
|
|
|
- if (sendValue==1) return;
|
|
|
+ if (sendValue == 1) return;
|
|
|
|
|
|
- if(code == 'A001' || code == 'A002' || code == 'A003' || code == 'A004' || code == 'A005' || code == 'A006' || code == 'A007' || code == 'A008' ||
|
|
|
- code == 'C002' || code == 'C003' || code == 'D001' ||
|
|
|
- code == 'E001' || code == 'E002' || code == 'E003' || code == 'E004' ||
|
|
|
- code == 'F001' || code == 'F002'
|
|
|
+ if (
|
|
|
+ code == "A001" ||
|
|
|
+ code == "A002" ||
|
|
|
+ code == "A003" ||
|
|
|
+ code == "A004" ||
|
|
|
+ code == "A005" ||
|
|
|
+ code == "A006" ||
|
|
|
+ code == "A007" ||
|
|
|
+ code == "A008" ||
|
|
|
+ code == "C002" ||
|
|
|
+ code == "C003" ||
|
|
|
+ code == "D001" ||
|
|
|
+ code == "E001" ||
|
|
|
+ code == "E002" ||
|
|
|
+ code == "E003" ||
|
|
|
+ code == "E004" ||
|
|
|
+ code == "F001" ||
|
|
|
+ code == "F002"
|
|
|
) {
|
|
|
return {
|
|
|
collCalue: [
|
|
@@ -849,7 +882,7 @@ export default {
|
|
|
{ trigger: "blur", validator: this.validatorFloatNum },
|
|
|
],
|
|
|
};
|
|
|
- } else if(code == 'A009' || code == 'A010') {
|
|
|
+ } else if (code == "A009" || code == "A010") {
|
|
|
return {
|
|
|
collCalue: [
|
|
|
{ required: true, message: "不能为空", trigger: "blur" },
|
|
@@ -1034,7 +1067,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleCheck(val,value) {
|
|
|
+ handleCheck(val, value) {
|
|
|
// console.log(value)
|
|
|
let data = {
|
|
|
gatherId: this.dataId,
|
|
@@ -1074,7 +1107,7 @@ export default {
|
|
|
})
|
|
|
.then(({ value }) => {
|
|
|
// console.log(666,value);
|
|
|
- this.handleCheck(2,value);
|
|
|
+ this.handleCheck(2, value);
|
|
|
// this.$message({
|
|
|
// type: 'success',
|
|
|
// message: '你的邮箱是: ' + value
|
|
@@ -1201,7 +1234,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
-
|
|
|
handleAudit(row) {
|
|
|
let data = {
|
|
|
type: "1",
|
|
@@ -1302,7 +1334,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
});
|
|
|
Promise.all(p)
|
|
|
.then(() => {
|