瀏覽代碼

修改bug

chenrui 2 年之前
父節點
當前提交
b734658d56
共有 1 個文件被更改,包括 4 次插入31 次删除
  1. 4 31
      src/views/promotionManagement/promotionInfo/list.vue

+ 4 - 31
src/views/promotionManagement/promotionInfo/list.vue

@@ -84,25 +84,22 @@
 
 <script>
 import { commonMixin } from '@/utils/mixin'
-import { promoTerminalList, promoTerminalDetail } from '@/api/promoTerminal'
+import { promoTerminalList } from '@/api/promoTerminal'
 import { STable, VSelect } from '@/components'
 import rangeDate from '@/views/common/rangeDate.vue'
-import stateIcon from '@/views/common/stateIcon'
-import custList from '@/views/common/custList.vue'
 import promotionDescModal from './promotionDescModal'
 import promotionShowModal from './promotionShowModal'
 
 export default {
   name: 'UrgentOffsetList',
-  components: { STable, VSelect, rangeDate, custList, stateIcon, promotionDescModal, promotionShowModal },
+  components: { STable, VSelect, rangeDate, promotionDescModal, promotionShowModal },
   mixins: [commonMixin],
   data () {
     return {
       spinning: false,
       tableHeight: 0,
-      openCustomerModal: false, // 参与客户弹窗
       openDescModal: false, // 促销描述弹窗
-      openShowModal: true, // 促销展示弹窗
+      openShowModal: false, // 促销展示弹窗
       time: [],
       queryParam: { //  查询条件
         beginDate: undefined,
@@ -158,27 +155,7 @@ export default {
         _this.openDescModal = true
       })
     },
-    // 冲减
-    handleWriteDown (row) {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确定要进行冲减吗?',
-        centered: true,
-        onOk () {
-          _this.disabled = true
-          _this.spinning = true
-          urgentWriteDown({ urgentBillSn: row.urgentBillSn }).then(res => {
-            if (res.status == 200) {
-              _this.$message.success(res.message)
-              _this.$refs.table.refresh()
-            }
-            _this.disabled = false
-            _this.spinning = false
-          })
-        }
-      })
-    },
+    // 促销展示
     handleSaleShow (row) {
       const _this = this
       _this.openShowModal = true
@@ -196,10 +173,6 @@ export default {
       this.queryParam.state = undefined
       this.$refs.table.refresh(true)
     },
-    //  详情
-    handleDetail (row) {
-      this.$router.push({ path: `/salesManagement/urgentItemsOffset/detail/${row.urgentBillSn}` })
-    },
     pageInit () {
       const _this = this
       this.$nextTick(() => { // 页面渲染完成后的回调