Răsfoiți Sursa

处理供货商pc东单列表自取流程

jf 5 ani în urmă
părinte
comite
3543435cab
1 a modificat fișierele cu 10 adăugiri și 10 ștergeri
  1. 10 10
      ghs/src/views/order/list.vue

+ 10 - 10
ghs/src/views/order/list.vue

@@ -60,14 +60,14 @@
               <el-button v-if="res.type=='send'&&res.show==1&&res.disable==0" @click="shipDrawFn(scope.row)" size="mini" type="primary" plain >发货</el-button>
               <el-button v-if="res.type=='send'&&res.show==1&&res.disable==1" disabled size="mini" type="primary" plain >发货</el-button>
 
-              <el-popover v-if="res.type=='selfGet'&&res.show==1&&res.disable==0" style="margin-left:14px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
-              <p>确认已自取?</p>
-              <div style="text-align: right; margin: 0">
-                <el-button size="mini" type="text" @click="selfGetCancel(scope.row.id)">取消</el-button>
-                <el-button type="primary" size="mini" @click="noSendShipFn(scope.row)">确定</el-button>
-              </div>
-              <el-button slot="reference" size="mini" type="primary" plain>自取</el-button>
-            </el-popover>
+              <el-popover v-if="res.type=='selfGet'&&res.show==1&&res.disable==0" style="margin-left:14px;" placement="top" width="160" :ref="'popover-'+scope.row.id">
+                <p>确认已自取?</p>
+                <div style="text-align: right; margin: 0">
+                  <el-button size="mini" type="text" @click="selfGetCancel(scope.row.id)">取消</el-button>
+                  <el-button type="primary" size="mini" @click="noSendShipFn(scope.row)">确定</el-button>
+                </div>
+                <el-button slot="reference" size="mini" type="primary" plain>自取</el-button>
+              </el-popover>
               <el-button v-if="res.type=='selfGet'&&res.show==1&&res.disable==1" style="margin-left:14px;" size="small" disabled>自取</el-button>
 
               <el-button v-if="res.type=='print'&&res.show==1&&res.disable==0" @click="printOrder(scope.row)" size="mini" type="primary" plain style="margin-left:14px;">打印</el-button>
@@ -255,10 +255,10 @@ export default {
     },
 		//取消自取
 		selfGetCancel(id) {
-			this.$refs[`popover-` + id].doClose();
+			this.$refs[`popover-` + id][1].doClose();
 		},
 		noSendShipFn(item) {
-			this.$refs[`popover-` + item.id].doClose();
+			this.$refs[`popover-` + item.id][1].doClose();
 
 			this.$service.order.freeShipping({ id: item.id }).then(res => {
 				this.$message.success('操作成功!');