|
@@ -37,10 +37,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
formModel: {},
|
|
|
- ruleValidate: {
|
|
|
- feeId: [
|
|
|
- { required: true, message: '不能为空', trigger: 'blur' }
|
|
|
- ], feeName: [
|
|
|
+ ruleValidate: {feeName: [
|
|
|
{ required: true, message: '发票名称不能为空', trigger: 'blur' }
|
|
|
], createTime: [
|
|
|
{ required: true, message: '不能为空', trigger: 'blur' }
|
|
@@ -60,16 +57,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
closeDialog() {
|
|
|
- this.$emit("close",false);
|
|
|
+ this.$emit("close",false);
|
|
|
},
|
|
|
handleSubmit() {
|
|
|
var self = this;
|
|
|
-
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
(function(){
|
|
|
var id = self.formModel.id;
|
|
|
-
|
|
|
if (id == null || id.length == 0) {
|
|
|
return feeInfoApi.add(self.formModel);
|
|
|
}
|
|
@@ -91,7 +86,6 @@ export default {
|
|
|
message: jsonData.message + "",
|
|
|
type: "warning"
|
|
|
});
|
|
|
-
|
|
|
self.$emit("close",false);
|
|
|
}
|
|
|
});
|
|
@@ -101,7 +95,6 @@ export default {
|
|
|
},
|
|
|
mounted: function() {
|
|
|
var self = this;
|
|
|
-
|
|
|
(function(){
|
|
|
if(self.businessKey.length==0){
|
|
|
return feeInfoApi.create()
|