chenrui 3 år sedan
förälder
incheckning
a1a7321da9
4 ändrade filer med 12 tillägg och 5 borttagningar
  1. 1 1
      babel.config.js
  2. 0 1
      src/libs/LodopFuncs.js
  3. 9 1
      src/views/salesManagement/salesQuery/edit.vue
  4. 2 2
      vue.config.js

+ 1 - 1
babel.config.js

@@ -2,7 +2,7 @@ const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
 
 const plugins = []
 if (IS_PROD) {
-  // plugins.push('transform-remove-console')
+  plugins.push('transform-remove-console')
 }
 
 module.exports = {

+ 0 - 1
src/libs/LodopFuncs.js

@@ -124,7 +124,6 @@ function getLodop (oOBJECT, oEMBED) {
     //= ==如下空白位置适合调用统一功能(如注册语句、语言选择等):==
     LODOP.SET_LICENSES('', 'E89B8C436467D381F32C0B7F5674838FA59', '', '')
     //= ==============================================.com//.com台级//.net
-    console.log('SET_LICENSES执行了')
     alert('SET_LICENSES执行了')
     console.log(msgHtml)
     return LODOP

+ 9 - 1
src/views/salesManagement/salesQuery/edit.vue

@@ -165,7 +165,6 @@
 </template>
 
 <script>
-import moment from 'moment'
 import { STable, VSelect } from '@/components'
 import queryPart from './queryPart.vue'
 import chooseCustomModal from './chooseCustomModal.vue'
@@ -377,6 +376,10 @@ export default {
           salesDetailDelAll({ salesBillSn: _this.detailData.salesBillSn }).then(res => {
             if (res.status == 200) {
               _this.resetSearchForm(true)
+              _this.productForm = {
+                productName: '',
+                productCode: ''
+              }
             }
             _this.$message.info(res.message)
             _this.delLoading = false
@@ -423,6 +426,11 @@ export default {
           }
           this.$refs.table.refresh(true)
           return
+        } else {
+          this.productForm = {
+            productName: '',
+            productCode: ''
+          }
         }
       }
       // 库存不足时

+ 2 - 2
vue.config.js

@@ -109,8 +109,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.16.151:80/qpls-md',
-        // target: 'http://qpls-md.360arrow.com.cn/qpls-md', //  Ô¤·¢²¼
+        // target: 'http://192.168.16.151:80/qpls-md',
+        target: 'http://qpls-md.360arrow.com.cn/qpls-md', //  Ô¤·¢²¼
         // target: 'http://qpls-md.360arrow.com/qpls-md', //  Éú²ú
         // ws: false,
         ws: true,