|
|
@@ -186,29 +186,49 @@ function findpage() {
|
|
|
}
|
|
|
//费用复制
|
|
|
const agreementcopy = () => {
|
|
|
- ElMessageBox.confirm(
|
|
|
- '没有选中要复制的协议费用,请确认是否继续复制',
|
|
|
- '提示',
|
|
|
- {
|
|
|
- confirmButtonText: '确定复制',
|
|
|
- type: 'info',
|
|
|
- center: true,
|
|
|
- confirmButtonClass: 'el-button--primary',
|
|
|
- }
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- api.agreementApi.agreementCopy({ id: id.value, costIds: sysUpAndDownList.value }).then((res: any) => {
|
|
|
- if (res.code == '200') {
|
|
|
- ElMessage({
|
|
|
- type: 'success',
|
|
|
- message: res.msg,
|
|
|
- plain: true,
|
|
|
- })
|
|
|
+ if (sysUpAndDownList.value.length == 0) {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ '没有选中要复制的协议费用,请确认是否继续复制',
|
|
|
+ '提示',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定复制',
|
|
|
+ type: 'info',
|
|
|
+ center: true,
|
|
|
+ confirmButtonClass: 'el-button--primary',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ api.agreementApi.agreementCopy({ id: id.value, costIds: sysUpAndDownList.value }).then((res: any) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg,
|
|
|
+ plain: true,
|
|
|
+ })
|
|
|
+ setTimeout(() => {
|
|
|
+ router.back()
|
|
|
+ }, 1000);
|
|
|
+ } else {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ api.agreementApi.agreementCopy({ id: id.value, costIds: sysUpAndDownList.value }).then((res: any) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg,
|
|
|
+ plain: true,
|
|
|
+ })
|
|
|
+ setTimeout(() => {
|
|
|
router.back()
|
|
|
- } else {
|
|
|
- }
|
|
|
- });
|
|
|
- })
|
|
|
+ }, 1000);
|
|
|
+
|
|
|
+ } else {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
//多选事件
|