Просмотр исходного кода

产品规格可以修改、修改今天收货的

dong025 3 дней назад
Родитель
Сommit
a4a2381de7

+ 0 - 2
app/admin/controller/goods/ImportList.php

@@ -188,11 +188,9 @@ class ImportList extends Backend
             $shopListModel = new ShopListModel();
 
             $rows = $shopListModel::where('shop_id', $shop_id)->where('status', 1)->find();
-            $sql_data = $importSku->where(['shop_id' => $row['shop_id'], 'sku_id' => $row['sku_id']])->find();
             
             $this->assign('rows', $rows->type_spec ?? '');
             $this->assign('row', $row);
-            $this->assign('now_spec_id', $sql_data['spec_id']);
             
             return $this->fetch();
         }

+ 2 - 9
app/admin/view/goods/import_list/specs.html

@@ -54,8 +54,7 @@
             chooseSpec: [], // 当前分类选中的规格  
             allData: {},
             type: 0, // 1编辑 0新增,
-            shop_allData: [],
-            now_spec_id: 0
+            shop_allData: []
         },
         methods: {
             onSubmit() {
@@ -105,7 +104,6 @@
                         for (var key in Object(res)) {
                             let index = this.tableData.findIndex(item => item.id == res[key]['id']);
                             const isExist = this.shop_allData.includes(res[key]['id'])
-                            let now_spec_state = this.now_spec_id == res[key]['id'] ? true : false;
                             if (index != -1) {
                                 this.tableData.splice(index, 1)
                             } else {
@@ -113,13 +111,9 @@
                                     id: res[key]['id'],
                                     name: res[key]['title'],
                                     type_id: this.tabValue,
-                                    selected_d: isExist,
-                                    now_spec_state: now_spec_state
+                                    selected_d: isExist
                                 }
                                 this.tableData.push(item);
-                                // if(now_spec_state){
-                                //     this.allData[this.tabValue] = item
-                                // }
 
                             }
 
@@ -131,7 +125,6 @@
 
         },
         onLoad: function (query) {
-            this.now_spec_id = Yunqi.data.now_spec_id;
             let rows = Yunqi.data.rows;
             if (rows) {
                 const grouped = JSON.parse(rows).reduce((acc, item) => {