446441d0 by lihua

数据申请问题解决

1 parent abd63db0
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
93 </div> 93 </div>
94 <div class="tool_btns"> 94 <div class="tool_btns">
95 <div class="btns"> 95 <div class="btns">
96 <el-button v-for="btn in toolBtns" :type="btn.type" :plain="btn.plain" @click="btnClick(btn)">{{ btn.label 96 <el-button v-for="btn in toolBtns" :type="btn.type" :plain="btn.plain" @click="btn.click ? btn.click() : btnClick(btn)">{{ btn.label
97 }}</el-button> 97 }}</el-button>
98 </div> 98 </div>
99 </div> 99 </div>
...@@ -142,6 +142,33 @@ const toolBtns: any = computed(() => { ...@@ -142,6 +142,33 @@ const toolBtns: any = computed(() => {
142 let btnsArr: any = [{ 142 let btnsArr: any = [{
143 label: "关闭", value: "cancel", plain: true 143 label: "关闭", value: "cancel", plain: true
144 }]; 144 }];
145 const approveVO = detailInfo.value.applicationApproveRSVO || {}
146 let approveState = approveVO.approveState || null;
147 const staffGuid = detailInfo.value.createUserId || '';
148 const currentStaffGuid = userData.userGuid;
149 if (approveState == 'A' && staffGuid == currentStaffGuid) {
150 btnsArr.push({
151 label: "撤销", value: "revoke", click: () => {
152 proxy.$openMessageBox('确定撤销该数据申请审批吗??', () => {
153 fullscreenLoading.value = true;
154 updateDataApplyState({
155 guid: detailInfo.value.guid,
156 approveState: 'C'
157 }).then((res: any) => {
158 fullscreenLoading.value = false;
159 if (res?.code == proxy.$passCode) {
160 proxy.$ElMessage.success('该数据申请撤销成功');
161 getDetail();
162 } else {
163 res?.msg && proxy.$ElMessage.error(res.msg);
164 }
165 });
166 }, () => {
167 proxy.$ElMessage.info("已取消撤销");
168 });
169 }
170 })
171 }
145 return btnsArr; 172 return btnsArr;
146 } else { 173 } else {
147 let btnsArr: any = [{ 174 let btnsArr: any = [{
...@@ -153,11 +180,11 @@ const toolBtns: any = computed(() => { ...@@ -153,11 +180,11 @@ const toolBtns: any = computed(() => {
153 let approveStaffGuid = approveVO?.approveInstanceRSVOS?.[1]?.operator || ''; 180 let approveStaffGuid = approveVO?.approveInstanceRSVOS?.[1]?.operator || '';
154 if (approveState == 'A' && approveStaffGuid == userData.tenantGuid) { 181 if (approveState == 'A' && approveStaffGuid == userData.tenantGuid) {
155 btnsArr.push(...[{ 182 btnsArr.push(...[{
156 label: "通过", value: "pass", click: () => { 183 label: "通过", value: "pass", type: 'primary', click: () => {
157 passDialogInfo.value.visible = true; 184 passDialogInfo.value.visible = true;
158 } 185 }
159 }, { 186 }, {
160 label: "驳回", value: "reject", click: () => { 187 label: "驳回", value: "reject", type: 'danger', plain: true, click: () => {
161 rejectDialogInfo.value.visible = true; 188 rejectDialogInfo.value.visible = true;
162 } 189 }
163 }]) 190 }])
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!