Преглед на файлове

微信批量发货,订单删除接口

yjwang преди 2 седмици
родител
ревизия
3ee53ce762
променени са 2 файла, в които са добавени 57 реда и са изтрити 3 реда
  1. 28 1
      src/views/hisStore/storeOrder/healthStoreList.vue
  2. 29 2
      src/views/hisStore/storeOrder/index.vue

+ 28 - 1
src/views/hisStore/storeOrder/healthStoreList.vue

@@ -197,7 +197,19 @@
           size="mini"
           type="warning"
           @click="openDeliveryNote"
-        >批量更新订单状态
+        >批量导入物流单号
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleOrderDelete"
+          v-hasPermi="['store:storeOrder:remove']"
+        >删除
         </el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -976,6 +988,21 @@ export default {
       })
     },
     /** 删除按钮操作 */
+    handleOrderDelete(row) {
+      const ids = row.id || this.ids;
+      this.$confirm('是否确认删除当前选择的订单数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(function () {
+        return delStoreOrder(ids);
+      }).then(() => {
+        this.getList();
+        this.msgSuccess("删除成功");
+      }).catch(() => {
+      });
+    },
+    /** 删除按钮操作 */
     handleDelete(row) {
       this.products.splice(this.products.findIndex(item => item.id === row.id), 1)
       this.compute()

+ 29 - 2
src/views/hisStore/storeOrder/index.vue

@@ -208,7 +208,19 @@
           icon="el-icon-s-order"
           size="mini"
           @click="openDeliveryNote"
-        >批量更新订单状态</el-button>
+        >批量导入物流单号</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleOrderDelete"
+          v-hasPermi="['store:storeOrder:remove']"
+        >删除
+        </el-button>
       </el-col>
       <el-col :span="1.5">
         <el-input
@@ -507,7 +519,7 @@
     <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :visible.sync="importMsgOpen"
                append-to-body title="导入结果" width="500px"
     >
-      <h1>操作成功!</h1>
+      <h1>{{importMsg}}</h1>
     </el-dialog>
 
     <!-- 批量发货 -->
@@ -1059,6 +1071,21 @@ export default {
        this.compute();
 
     },
+    /** 删除按钮操作 */
+    handleOrderDelete(row) {
+      const ids = row.id || this.ids;
+      this.$confirm('是否确认删除当前选择的订单数据项?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(function () {
+        return delStoreOrder(ids);
+      }).then(() => {
+        this.getList();
+        this.msgSuccess("删除成功");
+      }).catch(() => {
+      });
+    },
     /** 导出按钮操作 */
     handleExport() {
       if(this.queryParams.status=='00'){