소스 검색

no message

linwenxin 1 년 전
부모
커밋
c10fbc6136
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 3
      src/views/salesPurchasing/goodsPurchasedStored/index.vue
  2. 4 3
      src/views/salesPurchasing/merchandisePurchaseReturn/index.vue

+ 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',