Bläddra i källkod

【修改】调整

zhouhao 2 år sedan
förälder
incheckning
a4c9801de1

+ 1 - 1
src/views/deposit_home/deposit_list.vue

@@ -451,7 +451,7 @@
               v-if="!isCustomer"
               align="right"
               label="交单编号"
-              prop="billNoNumber"
+              prop="billNo"
               min-width="160"
               show-overflow-tooltip
             />

+ 1 - 1
src/views/supply/deliver/components/design/preview.vue

@@ -90,7 +90,7 @@ export default {
               this.$errorMsg(e)
               // '调用打印次数接口失败'
             }
-
+            console.log(111)
             this.hiprintTemplate = {}
             this.$parent.tableSelection = []
             await this.$parent.getList()

+ 11 - 7
src/views/supply/engin/components/engin_form.vue

@@ -313,7 +313,7 @@
         <el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip />
         <el-table-column align="center" label="操作" width="100" fixed="right">
           <template slot-scope="scope">
-            <el-button type="text" @click="deleteItem(scope.$index, scope.row)">删除</el-button>
+            <el-button type="text" @click="deleteItem(scope.$index, scope.row,scope.row.cid)">删除</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -852,17 +852,21 @@ export default {
     },
 
     // 删除产品
-    deleteItem(index, row) {
+    deleteItem(index, row, id) {
       // if (this.listItem && this.examineStatus === 'OK' && id) {
       //   this.$errorMsg('已审核通过的型号不能删除')
       //   return
       // }
-      delItem({
-        enginInfoNo: row.enginInfoNo,
-        itemId: row.id
-      }).then(res =>{
+      if (id) {
+        delItem({
+          enginInfoNo: row.enginInfoNo,
+          itemId: row.id
+        }).then(res => {
+          this.goodsList.splice(index, 1)
+        })
+      } else {
         this.goodsList.splice(index, 1)
-      })
+      }
     },
 
     // 导入产品

+ 2 - 1
src/views/supply/pickup/components/design/preview.vue

@@ -85,7 +85,8 @@ export default {
             }
             this.hiprintTemplate = {}
             this.$parent.tableSelection = []
-            await this.$parent.getList()
+            console.log(222)
+            this.$parent.getList()
             setTimeout(() => {
               console.error('更新发货汇总列表')
             }, 1000)