Browse Source

bug 修改

lilei 1 year ago
parent
commit
51911b534c

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
 {
   "message": "发现有新版本发布,确定更新系统?",
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
   "vendorJsVersion": "",
-  "version": 1702539671464
+  "version": 1704360480019
 }
 }

+ 25 - 9
src/views/numsGoodsShelves/approveStore/authPass.vue

@@ -142,19 +142,30 @@
                 <template slot="label">
                 <template slot="label">
                   <a-tooltip placement="top">
                   <a-tooltip placement="top">
                     <template slot="title">
                     <template slot="title">
-                      1、不勾选则不显示价格,非货架产品只显示车主价,不选择车主价时,非货架产品不显示价格<br>
-                      2、结算价:即易码通进货价
+                     不勾选则不显示价格,结算价:即易码通进货价。
                     </template>
                     </template>
                     价格权限设置<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
                     价格权限设置<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
                   </a-tooltip>
                   </a-tooltip>
                 </template>
                 </template>
                 <a-checkbox-group v-model="showPrice">
                 <a-checkbox-group v-model="showPrice">
-                  <a-checkbox value="shelf_price_show">
-                    车主价
-                  </a-checkbox>
-                  <a-checkbox value="shelf_cost_show">
-                    结算价
-                  </a-checkbox>
+                  <div style="display: flex;padding:10px 0;">
+                    <div style="width: 80px;font-weight: bold;">货架产品:</div>
+                    <a-checkbox value="shelf_price_show">
+                      车主价
+                    </a-checkbox>
+                    <a-checkbox value="shelf_cost_show">
+                      结算价
+                    </a-checkbox>
+                  </div>
+                  <div style="display: flex;padding:10px 0;">
+                    <div style="width: 80px;font-weight: bold;">非货架产品:</div>
+                    <a-checkbox value="non_shelf_price_show">
+                      车主价
+                    </a-checkbox>
+                    <a-checkbox value="non_shelf_cost_show">
+                      结算价
+                    </a-checkbox>
+                  </div>
                 </a-checkbox-group>
                 </a-checkbox-group>
               </a-form-model-item>
               </a-form-model-item>
             </a-col>
             </a-col>
@@ -294,7 +305,12 @@ export default {
         if (res.status == 200) {
         if (res.status == 200) {
           const shelfSn = res.data.shelfSn
           const shelfSn = res.data.shelfSn
           // 更新价格显示设置
           // 更新价格显示设置
-          const priceStr = [{paramCode: 'shelf_price_show',paramValue:0},{paramCode: 'shelf_cost_show',paramValue:0}]
+          const priceStr = [
+            {paramCode: 'shelf_price_show',paramValue:0},
+            {paramCode: 'shelf_cost_show',paramValue:0},
+            {paramCode: 'non_shelf_price_show',paramValue:0},
+            {paramCode: 'non_shelf_cost_show',paramValue:0}
+            ]
           priceStr.map(item => {
           priceStr.map(item => {
              item.paramValue = _this.showPrice.includes(item.paramCode) ? 1 : 0
              item.paramValue = _this.showPrice.includes(item.paramCode) ? 1 : 0
           })
           })

+ 4 - 3
src/views/numsGoodsShelves/approveStore/list.vue

@@ -109,12 +109,13 @@ export default {
         { title: '联系人手机', dataIndex: 'contactPhone', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '联系人手机', dataIndex: 'contactPhone', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '联系人姓名', dataIndex: 'contactName', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '联系人姓名', dataIndex: 'contactName', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '门店名称', dataIndex: 'storeName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '门店名称', dataIndex: 'storeName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '门店地址', dataIndex: 'addrDetail', width: '22%', align: 'center', scopedSlots: { customRender: 'addr' } },
+        { title: '门店地址', dataIndex: 'addrDetail', width: '20%', align: 'center', scopedSlots: { customRender: 'addr' } },
         { title: '门头照片', dataIndex: 'storeImage', width: '6%', align: 'center', scopedSlots: { customRender: 'imageUrl' } },
         { title: '门头照片', dataIndex: 'storeImage', width: '6%', align: 'center', scopedSlots: { customRender: 'imageUrl' } },
         { title: '营业执照', dataIndex: 'licenseImage', width: '6%', align: 'center', scopedSlots: { customRender: 'imageUrl' } },
         { title: '营业执照', dataIndex: 'licenseImage', width: '6%', align: 'center', scopedSlots: { customRender: 'imageUrl' } },
         { title: '审核状态', dataIndex: 'auditStatusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '审核状态', dataIndex: 'auditStatusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '价格权限设置', dataIndex: 'priceShowName', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
+        { title: '货架产品', dataIndex: 'priceShowName', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '非货架产品', dataIndex: 'nonPriceShowName', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: '6%', align: 'center' }
       ],
       ],
       // 加载数据方法 必须为 Promise 对象
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
       loadData: parameter => {

+ 19 - 8
src/views/numsGoodsShelves/shelfSet/basicInfoModal.vue

@@ -35,19 +35,30 @@
           <template slot="label">
           <template slot="label">
             <a-tooltip placement="top">
             <a-tooltip placement="top">
               <template slot="title">
               <template slot="title">
-                1、不勾选则不显示价格,非货架产品只显示车主价,不选择车主价时,非货架产品不显示价格<br>
-                2、结算价:即易码通进货价
+                不勾选则不显示价格,结算价:即易码通进货价。
               </template>
               </template>
               价格权限设置<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
               价格权限设置<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
             </a-tooltip>
             </a-tooltip>
           </template>
           </template>
           <a-checkbox-group v-model="form.showPrice">
           <a-checkbox-group v-model="form.showPrice">
-            <a-checkbox value="shelf_price_show">
-              车主价
-            </a-checkbox>
-            <a-checkbox value="shelf_cost_show">
-              结算价
-            </a-checkbox>
+            <div style="display: flex;padding:10px 0;">
+              <div style="width: 80px;font-weight: bold;">货架产品:</div>
+              <a-checkbox value="shelf_price_show">
+                车主价
+              </a-checkbox>
+              <a-checkbox value="shelf_cost_show">
+                结算价
+              </a-checkbox>
+            </div>
+            <div style="display: flex;padding:10px 0;">
+              <div style="width: 80px;font-weight: bold;">非货架产品:</div>
+              <a-checkbox value="non_shelf_price_show">
+                车主价
+              </a-checkbox>
+              <a-checkbox value="non_shelf_cost_show">
+                结算价
+              </a-checkbox>
+            </div>
           </a-checkbox-group>
           </a-checkbox-group>
         </a-form-model-item>
         </a-form-model-item>
       </a-form-model>
       </a-form-model>

+ 24 - 6
src/views/numsGoodsShelves/shelfSet/set.vue

@@ -15,8 +15,19 @@
               <span>基础信息</span>
               <span>基础信息</span>
               <a-button icon="edit" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="openInfoModal = true">编辑</a-button>
               <a-button icon="edit" size="small" type="link" style="margin-left: 20px;color: #39f;" @click.stop="openInfoModal = true">编辑</a-button>
             </template>
             </template>
-            <a-descriptions :column="3">
+            <a-descriptions :column="2">
               <a-descriptions-item label="货架名称">{{ basicInfoData&&basicInfoData.shelfName || '--' }}</a-descriptions-item>
               <a-descriptions-item label="货架名称">{{ basicInfoData&&basicInfoData.shelfName || '--' }}</a-descriptions-item>
+              <a-descriptions-item>
+                <template slot="label">
+                  <a-tooltip placement="top">
+                    <template slot="title">
+                      不勾选则不显示价格,结算价:即易码通进货价。
+                    </template>
+                    货架产品<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
+                  </a-tooltip>
+                </template>
+                <span>{{showPriceStr.length ? showPriceStr.join("/") : '--'}}</span>
+              </a-descriptions-item>
               <a-descriptions-item>
               <a-descriptions-item>
                 <template slot="label">
                 <template slot="label">
                   <a-tooltip placement="top">
                   <a-tooltip placement="top">
@@ -32,13 +43,12 @@
                 <template slot="label">
                 <template slot="label">
                   <a-tooltip placement="top">
                   <a-tooltip placement="top">
                     <template slot="title">
                     <template slot="title">
-                      1、不勾选则不显示价格,非货架产品只显示车主价,不选择车主价时,非货架产品不显示价格<br>
-                      2、结算价:即易码通进货价
+                      不勾选则不显示价格,结算价:即易码通进货价。
                     </template>
                     </template>
-                    价格权限设置<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
+                    非货架产品<a-icon type="question-circle" style="color: rgba(0,0,0,.65);font-size: 16px;margin-left: 2px;vertical-align: sub;cursor: pointer;" />
                   </a-tooltip>
                   </a-tooltip>
                 </template>
                 </template>
-                <span>{{showPriceStr.length ? showPriceStr.join("/") : '--'}}</span>
+                <span>{{showNoShelfPriceStr.length ? showNoShelfPriceStr.join("/") : '--'}}</span>
               </a-descriptions-item>
               </a-descriptions-item>
             </a-descriptions>
             </a-descriptions>
           </a-collapse-panel>
           </a-collapse-panel>
@@ -228,13 +238,15 @@ export default {
       openInfoModal: false,
       openInfoModal: false,
       openHwModal: false,
       openHwModal: false,
       openImportModal: false,
       openImportModal: false,
-      showPriceStr: []
+      showPriceStr: [],
+      showNoShelfPriceStr: []
     }
     }
   },
   },
   methods: {
   methods: {
     // 获取价格显示设置
     // 获取价格显示设置
     getShelfPriceShow () {
     getShelfPriceShow () {
       this.showPriceStr = []
       this.showPriceStr = []
+      this.showNoShelfPriceStr = []
       getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => {
       getShelfPriceShow({ shelfSn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {
         if (res.status == 200) {
           const ret = res.data&&res.data
           const ret = res.data&&res.data
@@ -246,6 +258,12 @@ export default {
             if(item.paramCode == 'shelf_cost_show'&&item.paramValue == 1){
             if(item.paramCode == 'shelf_cost_show'&&item.paramValue == 1){
               this.showPriceStr.push("结算价")
               this.showPriceStr.push("结算价")
             }
             }
+            if(item.paramCode == 'non_shelf_price_show'&&item.paramValue == 1){
+              this.showNoShelfPriceStr.push("车主价")
+            }
+            if(item.paramCode == 'non_shelf_cost_show'&&item.paramValue == 1){
+              this.showNoShelfPriceStr.push("结算价")
+            }
           })
           })
         }
         }
       })
       })

+ 22 - 22
vue.config.js

@@ -23,12 +23,12 @@ function isProd () {
 }
 }
 
 
 // 项目部署基础
 // 项目部署基础
-// 默认情况下,我们假设你的应用将被部署在域的根目录丄1�7
+// 默认情况下,我们假设你的应用将被部署在域的根目录丄1�7
 // 例如:https://www.my-app.com/
 // 例如:https://www.my-app.com/
-// 默认$1�7/'
+// 默认$1�7/'
 // 如果您的应用程序部署在子路径中,则需要在这指定子路径
 // 如果您的应用程序部署在子路径中,则需要在这指定子路径
 // 例如:https://www.foobar.com/my-app/
 // 例如:https://www.foobar.com/my-app/
-// 霄1�7要将它改丄1�7/my-app/'
+// 霄1�7要将它改丄1�7/my-app/'
 const BASE_URL = isProd ? '/' : '/'
 const BASE_URL = isProd ? '/' : '/'
 const assetsCDN = {
 const assetsCDN = {
   css: [],
   css: [],
@@ -59,14 +59,14 @@ const prodExternals = {
 
 
 // vue.config.js
 // vue.config.js
 const vueConfig = {
 const vueConfig = {
-  runtimeCompiler: true, // 动��1�7�编译组仄1�7
+  runtimeCompiler: true, // 动��1�7�编译组仄1�7
   publicPath: BASE_URL,
   publicPath: BASE_URL,
   configureWebpack: {
   configureWebpack: {
     optimization: isProd() ? {
     optimization: isProd() ? {
       minimize: true,
       minimize: true,
       minimizer: [new TerserPlugin({
       minimizer: [new TerserPlugin({
-        test: /\.js(\?.*)?$/i, // 匹配参与压缩的文仄1�7
-        parallel: true, // 使用多进程并发运衄1�7
+        test: /\.js(\?.*)?$/i, // 匹配参与压缩的文仄1�7
+        parallel: true, // 使用多进程并发运衄1�7
         terserOptions: { // Terser 压缩配置
         terserOptions: { // Terser 压缩配置
           output: { comments: false },
           output: { comments: false },
           compress: {// console删除
           compress: {// console删除
@@ -81,15 +81,15 @@ const vueConfig = {
       // Ignore all locale files of moment.js
       // Ignore all locale files of moment.js
       new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
       new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
       new compressionWebpackPlugin({
       new compressionWebpackPlugin({
-        // [file] 会被替换成原始资源��1�7�[path] 会被替换成原始资源的路径$1�7[query] 会被替换成查询字符串。默认��1�7�是 "[path].gz[query]"〄1�7
+        // [file] 会被替换成原始资源��1�7�[path] 会被替换成原始资源的路径$1�7[query] 会被替换成查询字符串。默认��1�7�是 "[path].gz[query]"〄1�7
         filename: '[path].gz[query]', // 提示compression-webpack-plugin@3.0.0的话asset改为filename
         filename: '[path].gz[query]', // 提示compression-webpack-plugin@3.0.0的话asset改为filename
-        // 可以昄1�7function(buf, callback) 或��1�7�字符串。对于字符串来说依照 zlib 的算泄1�7或��1�7�1�7zopfli 的算泄1�7。默认��1�7�是 "gzip"〄1�7
+        // 可以昄1�7function(buf, callback) 或��1�7�字符串。对于字符串来说依照 zlib 的算泄1�7或��1�7�1�7zopfli 的算泄1�7。默认��1�7�是 "gzip"〄1�7
         algorithm: 'gzip',
         algorithm: 'gzip',
-        // 扄1�7有匹配该正则的资源都会被处理。默认��1�7�是全部资源〄1�7
+        // 扄1�7有匹配该正则的资源都会被处理。默认��1�7�是全部资源〄1�7
         test: new RegExp('\\.(' + ['js', 'css'].join('|') + ')$'),
         test: new RegExp('\\.(' + ['js', 'css'].join('|') + ')$'),
-        // 只有大小大于该��1�7�的资源会被处理。单位是 bytes。默认��1�7�是 0〄1�7
+        // 只有大小大于该��1�7�的资源会被处理。单位是 bytes。默认��1�7�是 0〄1�7
         threshold: 10240,
         threshold: 10240,
-        // 只有压缩率小于这个��1�7�的资源才会被处理��1�7�默认��1�7�是 0.8〄1�7
+        // 只有压缩率小于这个��1�7�的资源才会被处理��1�7�默认��1�7�是 0.8〄1�7
         minRatio: 0.8
         minRatio: 0.8
       }),
       }),
       new WebpackVersionPlugin({
       new WebpackVersionPlugin({
@@ -136,16 +136,16 @@ const vueConfig = {
 
 
     config.optimization && config.optimization.splitChunks({
     config.optimization && config.optimization.splitChunks({
       // 拆包配置
       // 拆包配置
-      chunks: 'all', // 三��1�7�一$1�7initial" 初始化,"all"(默认就是all)$1�7async"(动态加载)
-      minSize: 30000, // 形成丄1�7个新代码块最小的体积,只有 >= minSize 的bundle会被拆分出来 30000
-      maxSize: 0, // 拆分之前朄1�7大的数��1�7�,默认丄1�7�即不做限制
-      minChunks: 1, // 引入次数,如果为2 那么丄1�7个资源最少被引用两次才可以被拆分出来
+      chunks: 'all', // 三��1�7�一$1�7initial" 初始化,"all"(默认就是all)$1�7async"(动态加载)
+      minSize: 30000, // 形成丄1�7个新代码块最小的体积,只有 >= minSize 的bundle会被拆分出来 30000
+      maxSize: 0, // 拆分之前朄1�7大的数��1�7�,默认丄1�7�即不做限制
+      minChunks: 1, // 引入次数,如果为2 那么丄1�7个资源最少被引用两次才可以被拆分出来
       maxAsyncRequests: 5, // 按需加载的最大并行请求数
       maxAsyncRequests: 5, // 按需加载的最大并行请求数
-      maxInitialRequests: 4, // 丄1�7个入口最大并行请求数
-      automaticNameDelimiter: '~', // 文件名的连接笄1�7
+      maxInitialRequests: 4, // 丄1�7个入口最大并行请求数
+      automaticNameDelimiter: '~', // 文件名的连接笄1�7
       name: true,
       name: true,
       cacheGroups: {
       cacheGroups: {
-        // node_modules模块匄1�7
+        // node_modules模块匄1�7
         vendors: {
         vendors: {
           test: /[\\/]node_modules[\\/]/,
           test: /[\\/]node_modules[\\/]/,
           name: 'chunk-vendors',
           name: 'chunk-vendors',
@@ -156,7 +156,7 @@ const vueConfig = {
           chunks: 'all',
           chunks: 'all',
           priority: -10
           priority: -10
         },
         },
-        // UI库单独拆匄1�7
+        // UI库单独拆匄1�7
         antDesign: {
         antDesign: {
           name: 'chunk-antDesign',
           name: 'chunk-antDesign',
           priority: 19, //  the weight needs to be larger than libs and app or it will be packaged into libs or app
           priority: 19, //  the weight needs to be larger than libs and app or it will be packaged into libs or app
@@ -171,7 +171,7 @@ const vueConfig = {
         common: {
         common: {
           name: 'chunk-common',
           name: 'chunk-common',
           minChunks: 2,
           minChunks: 2,
-          maxSize: 1024, // 拆分之前朄1�7大的数��1�7�,默认丄1�7�即不做限制
+          maxSize: 1024, // 拆分之前朄1�7大的数��1�7�,默认丄1�7�即不做限制
           priority: -20,
           priority: -20,
           reuseExistingChunk: true
           reuseExistingChunk: true
         }
         }
@@ -209,8 +209,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
     proxy: {
       '/api': {
       '/api': {
-        // target: 'http://192.168.2.103/qpls-md',
-        target: 'https://p.iscm.360arrow.com/qpls-md',
+        target: 'http://192.168.2.103:8503/qpls-md',
+        // target: 'https://p.iscm.360arrow.com/qpls-md',
         // ws: false,
         // ws: false,
         ws: true,
         ws: true,
         changeOrigin: true,
         changeOrigin: true,