|
@@ -104,14 +104,26 @@
|
|
|
</el-button>
|
|
|
<el-button v-hasPermi="['business:individualIncomeTaxDetail:deductionTurnBack']" icon="back" type="warning"
|
|
|
size="small" style="float: right;"
|
|
|
- v-show="(toTenantId() == emptyForm?.entrust?.toTenantId || tenantMyself.tenantId == 0)"
|
|
|
+ v-show="(toTenantId == emptyForm?.entrust?.toTenantId || tenantMyself.tenantId == 0)"
|
|
|
:disabled="(emptyForm == null || emptyForm.status !== 3) " @click="turnBack(emptyForm)">
|
|
|
退回
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <history ref="fromDialog" :currentMember=currentMember></history>
|
|
|
+ <history ref="fromDialog" :currentMember=currentMember></history>
|
|
|
+ <el-dialog title="退回" v-model="returnFlag" width="720px" append-to-body size="small" draggable
|
|
|
+ :close-on-click-modal="false">
|
|
|
+ <el-form-item label="退回理由" prop="refuseReason" style="margin-top: 10px">
|
|
|
+ <el-input v-model="emptyForm.refuseReason" type="textarea" placeholder="请输入取消理由" />
|
|
|
+ </el-form-item>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button type="primary" icon="Finished" size="small" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button icon="close" size="small" @click="returnFlag = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
@@ -154,6 +166,7 @@
|
|
|
const districts = ref([]);
|
|
|
const fileList = ref([]);
|
|
|
const reportFiles = ref([]);
|
|
|
+ const returnFlag = ref(false);
|
|
|
const sourceCategories = ref([]);
|
|
|
const tenantId = ref(0);
|
|
|
const addType = ref(1);
|
|
@@ -292,8 +305,20 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
/** 退回按钮操作 */
|
|
|
function turnBack(row) {
|
|
|
+ returnFlag.value = true;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ function submitForm() {
|
|
|
+
|
|
|
+ if (emptyForm.value.refuseReason == null) {
|
|
|
+ proxy.$modal.msgError("请填写退回原因");
|
|
|
+ return
|
|
|
+ }
|
|
|
loading.value = true
|
|
|
emptyForm.value.status = 1;
|
|
|
// emptyForm.value.workOrderId = workOrderId;
|
|
@@ -304,7 +329,22 @@
|
|
|
loading.value = false;
|
|
|
getList.value();
|
|
|
visible.value = false;
|
|
|
+ returnFlag.value = false;
|
|
|
}
|
|
|
+
|
|
|
+ // /** 退回按钮操作 */
|
|
|
+ // function turnBack(row) {
|
|
|
+ // loading.value = true
|
|
|
+ // emptyForm.value.status = 1;
|
|
|
+ // // emptyForm.value.workOrderId = workOrderId;
|
|
|
+ // emptyForm.value.year = proxy.moment(currentMonth.value).format("YYYY");
|
|
|
+ // emptyForm.value.month = proxy.moment(currentMonth.value).format("MM");
|
|
|
+ // console.log(emptyForm);
|
|
|
+ // updateIndividualIncomeTaxDetail(emptyForm.value);
|
|
|
+ // loading.value = false;
|
|
|
+ // getList.value();
|
|
|
+ // visible.value = false;
|
|
|
+ // }
|
|
|
function changeMonthHandle(parentId) {
|
|
|
isView.value = true
|
|
|
const nowDate = ref(
|