|
@@ -137,7 +137,7 @@
|
|
|
<HcIcon name="close"/>
|
|
|
<span>取消查阅</span>
|
|
|
</el-button>
|
|
|
- <el-button type="primary" hc-btn @click="submitOpinion" :loading="submitLoading">
|
|
|
+ <el-button type="primary" hc-btn @click="submitOpinion" :loading="submitLoading" :disabled="ishowAllopinion">
|
|
|
<HcIcon name="check"/>
|
|
|
<span>保存抽检意见</span>
|
|
|
</el-button>
|
|
@@ -329,6 +329,12 @@ const changePdf=(row)=>{
|
|
|
checkId.value=row.id
|
|
|
ishowAllopinion.value=true
|
|
|
getopiniondata()
|
|
|
+ if(pdfUrl.value&&pdfUrl?.value.length>0&& isCarrySpotChecksDrawer.value){
|
|
|
+ setTimeout(() => {
|
|
|
+ serReviewFile()
|
|
|
+ }, 20000);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
const opid=ref('')
|
|
@@ -350,7 +356,6 @@ const getopiniondata=async()=>{
|
|
|
//保存抽检意见
|
|
|
const submitLoading=ref(false)
|
|
|
const submitOpinion=async()=>{
|
|
|
- console.log(reform.value.content,'reform.content');
|
|
|
submitLoading.value=true
|
|
|
const {error, code, data, msg} = await inspectApi.addOpinion({
|
|
|
fileId: checkId.value,
|
|
@@ -366,6 +371,8 @@ const submitOpinion=async()=>{
|
|
|
submitLoading.value=false
|
|
|
if (!error && code === 200) {
|
|
|
window.$message.success(msg)
|
|
|
+ serReviewFile()
|
|
|
+ getTableData()
|
|
|
|
|
|
}
|
|
|
// addOpinion
|
|
@@ -490,6 +497,7 @@ const cscTableDataModalShow = () => {
|
|
|
//关闭弹窗
|
|
|
const cscTableDataModalClose = () => {
|
|
|
cscTableDataModal.value = false
|
|
|
+ getTableData()
|
|
|
}
|
|
|
|
|
|
|