lilei 1 year ago
parent
commit
9ff3ac7d27
2 changed files with 7 additions and 3 deletions
  1. 5 1
      src/views/salesManagement/salesQueryNew/comps/productList.vue
  2. 2 2
      vue.config.js

+ 5 - 1
src/views/salesManagement/salesQueryNew/comps/productList.vue

@@ -155,7 +155,7 @@
       :rowKey="(record) => record.id"
       :columns="columns"
       :data="loadData"
-      :row-selection="{ columnWidth: 40 }"
+      :row-selection="{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.promotionFlag == 'GIFT'&&record.salesPromoDetailParentSn } }) }"
       @rowSelection="rowSelectionFun"
       :pageSize="10"
       bordered>
@@ -197,6 +197,7 @@
       <template slot="salesNums" slot-scope="text, record">
         <a-input-number
           id="salesEdit-qty"
+          :disabled="record.promotionFlag == 'GIFT'&&record.salesPromoDetailParentSn"
           size="small"
           v-model="record.qty"
           :precision="0"
@@ -218,6 +219,7 @@
       <template slot="warehouseBox" slot-scope="text, record">
         <a-select
           size="small"
+          :disabled="record.promotionFlag == 'GIFT'&&record.salesPromoDetailParentSn"
           style="width:100%;" 
           placeholder="请选择仓库"
           v-model="record.warehouseSn"
@@ -235,6 +237,7 @@
           type="link"
           :loading="delLoading"
           class="button-error"
+          v-if="!(record.promotionFlag == 'GIFT'&&record.salesPromoDetailParentSn)"
           @click="handleDel(record)"
         >删除</a-button>
 
@@ -243,6 +246,7 @@
           type="link"
           :loading="delLoading"
           class="button-primary"
+          v-if="record.promotionFlag != 'GIFT'"
           @click="handleUpdateActive(record)"
         >换促销</a-button>
       </template>

+ 2 - 2
vue.config.js

@@ -108,9 +108,9 @@ const vueConfig = {
     // If you want to turn on the proxy, please remosve the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.2.113:8660/ocs-admin',
+        // target: 'http://192.168.2.113:8660/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  练习
-        // target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
+        target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
         ws: false,
         changeOrigin: true,
         pathRewrite: {