Browse Source

no message

linwenxin 1 year ago
parent
commit
c10fbc6136

+ 4 - 3
src/views/salesPurchasing/goodsPurchasedStored/index.vue

@@ -31,7 +31,8 @@
           <div v-if="activeName == 'goodsInfo'" style="text-align: right; box-sizing: border-box; padding: 16px 20px">
             <el-button v-if="formDialogType == 0" size="mini" type="primary" @click="save">保存</el-button>
             <el-button v-if="formDialogType == 1" size="mini" type="primary" @click="submit">提交</el-button>
-            <el-button v-if="formDialogType == 3" size="mini" type="primary" @click="examine">审核通过</el-button>
+            <el-button v-if="formDialogType == 3" size="mini" type="primary" @click="examine('OK')">审核通过</el-button>
+            <el-button v-if="formDialogType == 3" size="mini" type="primary" @click="examine('FAIL')">审核驳回</el-button>
           </div>
         </zj-page-container>
       </el-dialog>
@@ -319,10 +320,10 @@ export default {
       })
     },
     // 审核
-    examine() {
+    examine(type) {
       goodsPurchaseConfirm({
         id: this.formData.id,
-        statusEnum: 'OK'
+        statusEnum: type
       }).then(res => {
         this.$message({
           type: 'success',

+ 4 - 3
src/views/salesPurchasing/merchandisePurchaseReturn/index.vue

@@ -31,7 +31,8 @@
           <div v-if="activeName == 'goodsInfo'" style="text-align: right; box-sizing: border-box; padding: 16px 20px">
             <el-button v-if="formDialogType == 0" size="mini" type="primary" @click="save">保存</el-button>
             <el-button v-if="formDialogType == 1" size="mini" type="primary" @click="submit">提交</el-button>
-            <el-button v-if="formDialogType == 3" size="mini" type="primary" @click="examine">审核通过</el-button>
+            <el-button v-if="formDialogType == 3" size="mini" type="primary" @click="examine('OK')">审核通过</el-button>
+            <el-button v-if="formDialogType == 3" size="mini" type="primary" @click="examine('FAIL')">审核驳回</el-button>
           </div>
         </zj-page-container>
       </el-dialog>
@@ -314,10 +315,10 @@ export default {
       })
     },
     // 审核
-    examine() {
+    examine(type) {
       goodsPurchaseRetConfirm({
         id: this.formData.id,
-        statusEnum: 'OK'
+        statusEnum: type
       }).then(res => {
         this.$message({
           type: 'success',