Bladeren bron

订单导入列表部分 弹窗取消,增加接口必填字段

lucky-lzx 2 jaren geleden
bovenliggende
commit
b529a94bf5

+ 5 - 0
src/views/goodStore/dealGoodsPool/columns.js

@@ -36,6 +36,11 @@ const options7 = [
   { id: "1", name: "是" },
 ]
 const listCol = [
+  {
+  type: "selection",
+    fixed: "left",
+    _noset_: true
+  },
   {
     prop: "spuCode",
     label: "编号",

+ 20 - 1
src/views/goodStore/dealGoodsPool/index.vue

@@ -52,7 +52,24 @@
                 placeholder="商品名称"
               ></el-input>
             </el-col>
-
+            <el-col
+              :span="3"
+              class="fr"
+              style="width: 110px; padding: 0 0 0 10px"
+             
+            >
+              <!-- v-if="powers.some((item) => item == '055')" -->
+              <el-button
+                :size="searchSize"
+                type="warning"
+                style="float: right"
+                @click="add_online"
+                 
+              >
+                <i class="el-icon-circle-plus-outline"></i>
+                <span>商品上线</span>
+              </el-button>
+            </el-col>
             <el-col
               :span="3"
               class="fr"
@@ -400,6 +417,7 @@ export default {
       const res = await asyncRequest.list(this.parmValue);
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;
+        console.log("11111111",this.tableData)
         this.tableData.forEach((a) => {
           a.cat_name = "";
           let list = a.cat_info || [];
@@ -407,6 +425,7 @@ export default {
             a.cat_name += i == 0 ? b.name : "/" + b.name;
           });
         });
+        
         this.pageInfo.total = Number(res.data.count);
       } else if (res && res.code >= 100 && res.code <= 104) {
         await this.logout();

+ 7 - 5
src/views/orderEntry/orderEnter/index.vue

@@ -229,14 +229,14 @@
         </template>
       </ex-table>
 
-      <el-dialog
+      <!-- <el-dialog
         title="当前可用库存"
         :visible.sync="centerDialogVisible"
         width="30%"
         center
       >
         <span>等待数据返回</span>
-      </el-dialog>
+      </el-dialog> -->
     </div>
   </div>
 </template>
@@ -251,7 +251,7 @@ export default {
   mixins: [mixinPage, resToken],
   data() {
     return {
-      centerDialogVisible: false,
+      // centerDialogVisible: false,
       loading: true,
       //咨询类型
       statusArr: [
@@ -395,11 +395,13 @@ export default {
       }
 
       let ids = [];
+      let plat_code = this.changeList[0].plat_code;
       this.changeList.forEach((item)=>{
         ids.push(item.id)
       })
       let model = {
-        ids
+        ids,
+        plat_code
       };
       let res = await asyncRequest.relationstockbatch(model);
       if (res && res.code === 0) {
@@ -407,7 +409,7 @@ export default {
         this.$message.success(res.message);
         this.searchList()
         //成功展示弹窗
-        this.centerDialogVisible = true;
+        // this.centerDialogVisible = true;
         
       } else if (res && res.code >= 100 && res.code <= 104) {
         await this.logout();