Procházet zdrojové kódy

【修改】家用、商用工程单

howie před 2 roky
rodič
revize
1d1d9b1a20

+ 10 - 10
src/views/supply/engin/commerce_list.vue

@@ -239,21 +239,21 @@
                 <el-popconfirm
                   style="margin-right: 10px;"
                   title="确定申请吗?"
-                  @onConfirm="handleSubmit(scope.row.parentId)"
+                  @onConfirm="handleSubmit(scope.row.parentId,scope.row)"
                   v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
                   <el-button slot="reference" type="text">申请</el-button>
                 </el-popconfirm>
                 <el-popconfirm
                   style="margin-right: 10px;"
                   title="确定撤回吗?"
-                  @onConfirm="handleWithdraw(scope.row.parentId)"
+                  @onConfirm="handleWithdraw(scope.row.parentId,scope.row)"
                   v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
                   <el-button slot="reference" type="text">撤回</el-button>
                 </el-popconfirm>
                 <el-popconfirm
                   style="margin-right: 10px;"
                   title="确定弃审吗?"
-                  @onConfirm="handleAbandon(scope.row.parentId)"
+                  @onConfirm="handleAbandon(scope.row.parentId,scope.row)"
                   v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
@@ -283,7 +283,7 @@
                 <el-popconfirm
                   style="margin-left: 10px;"
                   title="确定删除吗?"
-                  @onConfirm="handleDelete(scope.row.parentId)"
+                  @onConfirm="handleDelete(scope.row.parentId,scope.row)"
                   v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
                   <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
@@ -552,24 +552,24 @@ export default {
     },
 
     // 申请
-    handleSubmit(id) {
-      applyCom({id}).then(res => {
+    handleSubmit(id,row) {
+      applyCom({id,refEnginRecordNo:row.refEnginRecordNo}).then(res => {
         this.$successMsg();
         this.getList();
       })
     },
 
     // 撤回
-    handleWithdraw(id) {
-      withdrawCom({id}).then(res => {
+    handleWithdraw(id,row) {
+      withdrawCom({id,refEnginRecordNo:row.refEnginRecordNo}).then(res => {
         this.$successMsg();
         this.getList();
       })
     },
 
     // 弃审
-    handleAbandon(id) {
-      abandonCom({id}).then(res => {
+    handleAbandon(id,row) {
+      abandonCom({id,refEnginRecordNo:row.refEnginRecordNo}).then(res => {
         this.$successMsg();
         this.getList();
       })

+ 11 - 11
src/views/supply/engin/home_list.vue

@@ -310,21 +310,21 @@
                 <el-popconfirm
                   style="margin-right: 10px;"
                   title="确定申请吗?"
-                  @onConfirm="handleSubmit(scope.row.parentId)"
+                  @onConfirm="handleSubmit(scope.row.parentId,scope.row)"
                   v-if="scope.row.examineStatus === 'SAVE'" >
                   <el-button slot="reference" type="text">申请</el-button>
                 </el-popconfirm>
                 <el-popconfirm
                   style="margin-right: 10px;"
                   title="确定撤回吗?"
-                  @onConfirm="handleWithdraw(scope.row.parentId)"
+                  @onConfirm="handleWithdraw(scope.row.parentId,scope.row)"
                   v-if="scope.row.examineStatus === 'WAIT'" >
                   <el-button slot="reference" type="text">撤回</el-button>
                 </el-popconfirm>
                 <el-popconfirm
                   style="margin-right: 10px;"
                   title="确定弃审吗?"
-                  @onConfirm="handleAbandon(scope.row.parentId)"
+                  @onConfirm="handleAbandon(scope.row.parentId,scope.row)"
                   v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
                   <el-button slot="reference" type="text">弃审</el-button>
                 </el-popconfirm>
@@ -354,7 +354,7 @@
                 <el-popconfirm
                   style="margin-left: 10px;"
                   title="确定删除吗?"
-                  @onConfirm="handleDelete(scope.row.parentId)"
+                  @onConfirm="handleDelete(scope.row.parentId,scope.row)"
                   v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'">
                   <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
                 </el-popconfirm>
@@ -653,31 +653,31 @@ export default {
     },
 
     // 申请
-    handleSubmit(id) {
-      applyHome({id}).then(res => {
+    handleSubmit(id,row) {
+      applyHome({id,refEnginRecordNo:row.refEnginRecordNo}).then(res => {
         this.$successMsg();
         this.getList();
       })
     },
 
     // 撤回
-    handleWithdraw(id) {
-      withdrawHome({id}).then(res => {
+    handleWithdraw(id,row) {
+      withdrawHome({id,refEnginRecordNo:row.refEnginRecordNo}).then(res => {
         this.$successMsg();
         this.getList();
       })
     },
 
     // 弃审
-    handleAbandon(id) {
-      abandonHome({id}).then(res => {
+    handleAbandon(id,row) {
+      abandonHome({id,refEnginRecordNo:row.refEnginRecordNo}).then(res => {
         this.$successMsg();
         this.getList();
       })
     },
 
     // 删除
-    handleDelete(id) {
+    handleDelete(id,row) {
       deleteHome({ids: id}).then(res => {
         this.$successMsg();
         this.getList();