|
|
@@ -150,6 +150,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { format } from 'date-fns';
|
|
|
export default {
|
|
|
name: 'InternationalPatentEdit',
|
|
|
created() {
|
|
|
@@ -224,9 +225,10 @@ export default {
|
|
|
},
|
|
|
attachment4: {
|
|
|
validator: (rule, value, callback) => {
|
|
|
- if (!value.url && value.name) {
|
|
|
- callback(new Error('请上传' + value.name));
|
|
|
- } else if (value.url && !value.name) {
|
|
|
+ console.log(value);
|
|
|
+ if (!value.url && value.attachmentName) {
|
|
|
+ callback(new Error('请上传' + value.attachmentName));
|
|
|
+ } else if (value.url && !value.attachmentName) {
|
|
|
callback(new Error('请输入附件名称'));
|
|
|
} else {
|
|
|
callback();
|