|
@@ -65,6 +65,11 @@
|
|
|
@cancel="handleCancelPayroll"
|
|
|
:getContainer ='()=>$refs.replyModal'
|
|
|
>
|
|
|
+ <template #footer>
|
|
|
+ <a-button @click="handleCancelPayroll" :loading = "loading1">取消</a-button>
|
|
|
+ <a-button @click="handleOkPayroll" type="primary" style="margin-left: 8px;" :loading = "loading1">确认</a-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
<p>{{ ModalText }}</p>
|
|
|
</a-modal>
|
|
|
</div>
|
|
@@ -96,6 +101,7 @@
|
|
|
visibleOk:false,
|
|
|
ModalText:'',
|
|
|
loading:false,
|
|
|
+ loading1:false,
|
|
|
validatorRules: {
|
|
|
type: [{required: true, message: '请选择!' }],
|
|
|
yearWithMonth: [{required: true, message: '请选择!' }],
|
|
@@ -139,6 +145,7 @@
|
|
|
}
|
|
|
},
|
|
|
handleOk(){
|
|
|
+
|
|
|
this.$refs.form.validate((valid,err) => {
|
|
|
if (valid) {
|
|
|
if(this.formState.type=='加班工资单'){
|
|
@@ -171,6 +178,7 @@
|
|
|
handleOkPayroll(){
|
|
|
this.ModalText = ''
|
|
|
this.visibleOk = false
|
|
|
+ this.loading1 = true;
|
|
|
this.generatePayroll(this.formState)
|
|
|
},
|
|
|
handleCancelPayroll(){
|
|
@@ -198,6 +206,7 @@
|
|
|
this.$message.error(res.message);
|
|
|
}
|
|
|
}).finally(() => {
|
|
|
+ this.loading1 = false;
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|