lilei před 2 roky
rodič
revize
4efff5b7f6

+ 0 - 27
src/views/salesManagement/salesQuery/edit.vue

@@ -523,33 +523,6 @@ export default {
         }
       })
     },
-    // 删除已选产品
-    delSalerDetailAll () {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确认要清空列表吗?',
-        centered: true,
-        closable: true,
-        onOk () {
-          _this.delLoading = true
-          _this.spinning = true
-          salesDetailDelAll({ salesBillSn: _this.detailData.salesBillSn }).then(res => {
-            if (res.status == 200) {
-              _this.resetSearchForm(true)
-              _this.productForm = {
-                productName: '',
-                productCode: '',
-                orderBy: 'sales_bill_detail.CREATE_DATE desc'
-              }
-            }
-            _this.$message.info(res.message)
-            _this.delLoading = false
-            _this.spinning = false
-          })
-        }
-      })
-    },
     // 出入库明细
     handleViewDetail (row) {
       this.showOutInModal = true

+ 1 - 1
src/views/salesManagement/salesQuery/list.vue

@@ -440,7 +440,7 @@ export default {
         closable: true,
         onOk () {
           _this.spinning = true
-          salesDel({ id: row.id }).then(res => {
+          salesDel({ id: row.id, mainFlag: 1 }).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
               _this.$refs.table.refresh()