linwenxin 1 rok temu
rodzic
commit
bf6a0ce88f

+ 6 - 4
src/views/auxiliaryFittings/purchasingManagement/components/retStorage.vue

@@ -17,8 +17,10 @@
           <el-button size="mini" @click="formCancel">取 消</el-button>
           <el-button v-if="~[0, 1].indexOf(formDialogType)" size="mini" @click="formConfirm" type="primary">确
             定</el-button>
-          <el-button v-if="~[3].indexOf(formDialogType)" size="mini" @click="passExamination"
+          <el-button v-if="~[3].indexOf(formDialogType)" size="mini" @click="passExamination('OK')"
             type="primary">审核通过</el-button>
+          <el-button v-if="~[3].indexOf(formDialogType)" size="mini" @click="passExamination('FAIL')"
+            type="primary">驳回</el-button>
         </div>
       </el-dialog>
     </div>
@@ -136,11 +138,11 @@ export default {
         }
       })
     },
-    passExamination() {
+    passExamination(flag) {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
         if (valid) {
-          websitPurchaseRetConfirm({ purchaseRetId: this.formData.purchaseRetId, flag: "OK" }).then(res => {
-            this.$message({ type: 'success', message: `审核通过!` })
+          websitPurchaseRetConfirm({ purchaseRetId: this.formData.purchaseRetId, flag: flag }).then(res => {
+            this.$message({ type: 'success', message: flag=='OK'?`审核通过!`:'驳回通过' })
             this.formCancel()
             this.$refs.pageRef.refreshList()
           })