web100 2 vuotta sitten
vanhempi
commit
8d2ec810d1

+ 1 - 1
src/page/login/index.vue

@@ -8,7 +8,7 @@
         <div class="login-time">
           {{time}}
         </div>
-        <img class="img" src="/img/logoTubao.png" alt="">
+        <!-- <img class="img" src="/img/logoTubao.png" alt=""> -->
         <p class="title">{{ $t('login.info') }}</p>
       </div>
       <div class="login-border">

+ 2 - 2
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -110,9 +110,9 @@
               <el-button type="text" size="small" @click="rowCell(row, index)"
                 :disabled="detailData.seeDisabled || arrivalDisabled">{{ row.$cellEdit ? '保存' : '修改' }}
               </el-button>
-              <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
+              <!-- <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
                 :disabled="detailData.seeDisabled || arrivalDisabled || deliverDisabled" v-if="!row.$cellEdit">删
-                除</el-button>
+                除</el-button> -->
             </template>
             <template slot="menuLeft" slot-scope="{size}">
               <el-tabs v-model="goodsActives" @tab-click="handleClick">

+ 7 - 0
src/views/businessManagement/inventoryAccount/index.vue

@@ -41,6 +41,7 @@
           <el-button
             type="primary"
             size="small"
+            v-if="isDisabled"
             icon="el-icon-plus"
             @click="excelBox = !excelBox"
           >导入
@@ -49,6 +50,7 @@
             type="success"
             icon="el-icon-download"
             size="small"
+            v-if="isDisabled"
             @click="derivation()"
           >下载模板
           </el-button>
@@ -56,6 +58,7 @@
             type="info"
             icon="el-icon-printer"
             size="small"
+            v-if="isDisabled"
             :loading="exportLoading"
             @click="derivation()"
           >报表打印
@@ -118,6 +121,7 @@ export default {
         placeholder: "请点击右边按钮选择",
         dicData: []
       },
+      isDisabled:true,
       loading: false,
       exportLoading:false,
       switchDialog:false,
@@ -159,6 +163,9 @@ export default {
     }
   },
   created() {
+    if(this.$store.getters.userInfo.tenant_id == "941197"){
+      this.isDisabled = false
+    }
     // this.search.createTime = defaultDate(1)
     let i = 0;
     this.option.column.forEach(item => {

+ 2 - 2
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -112,8 +112,8 @@
               <el-button type="text" size="small" @click="rowCell(row, index)"
                 :disabled="detailData.seeDisabled || receiveDisabled">{{ row.$cellEdit ? '保存' : '修改' }}
               </el-button>
-              <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
-                :disabled="detailData.seeDisabled || receiveDisabled" v-if="!row.$cellEdit">删 除</el-button>
+              <!-- <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
+                :disabled="detailData.seeDisabled || receiveDisabled" v-if="!row.$cellEdit">删 除</el-button> -->
             </template>
             <template slot="storageId" slot-scope="{ row }">
               <el-select v-if="row.$cellEdit" v-model="row.storageId" allow-create filterable v-input-limit="2"

+ 24 - 42
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -94,6 +94,7 @@ export default {
     name: "detailsPage",
     data() {
         return {
+            isDisabled:false,
             switchDialog:false,
             activeName: "sale_detail",
             disabled: false,
@@ -267,10 +268,7 @@ export default {
                     label: '商品名称',
                     prop: 'goodsId',
                     width: 200,
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     overHidden: true,
                     type: 'select',
                     props: {
@@ -282,18 +280,12 @@ export default {
                     label: '物料编码',
                     prop: 'goodsNo',
                     overHidden: true,
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     width: 100
                 }, {
                     label: '品牌',
                     prop: 'brandId',
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     width: 100,
                     overHidden: true,
                     type: 'select',
@@ -306,46 +298,31 @@ export default {
                     label: '规格型号',
                     prop: 'propertyName',
                     overHidden: true,
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     width: 100
                 }, {
                     label: '花纹',
                     prop: 'pattern',
                     overHidden: true,
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     width: 100
                 }, {
                     label: '商品描述',
                     prop: 'goodsDescription',
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     overHidden: true,
                     width: 100
                 }, {
                     label: '数量',
                     prop: 'goodsNum',
                     overHidden: true,
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     width: 100
                 }, {
                     label: '单位',
                     prop: 'units',
                     type: "select",
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     props: {
                         label: "dictValue",
                         value: "dictValue"
@@ -368,19 +345,17 @@ export default {
                     dicUrl: "/api/blade-sales-part/stockDesc/dotList",
                     overHidden: true,
                 },
-                // {
-                //     label: '价格',
-                //     prop: 'price',
-                //     overHidden: true,
-                //     width: 100
-                // }, 
+                {
+                    label: '价格',
+                    prop: 'price',
+                    overHidden: true,
+                    width: 100,
+                    disabled: false,
+                }, 
                 {
                     label: '发货数量',
                     prop: 'sendNum',
-                    disabled: function (row) {
-                        // 根据行数据进行条件判断
-                        return row.businessSource === '外部销售'; // 如果销售类型为外部销售,禁止编辑
-                    },
+                    disabled: false,
                     overHidden: true,
                     width: 100
                 },
@@ -486,6 +461,7 @@ export default {
         detailData: Object
     },
     async created() {
+
         this.optionContacts = await this.getColumnData(this.getColumnName(269.1), this.optionContactsBack);
         this.findObject(this.optionContacts.column, "goodsId").change = ({ value, column }) => {
             if (this.formContacts.goodsId !== value) {
@@ -581,7 +557,13 @@ export default {
             })
             getDetails({ id: id }).then(res => {
                 this.form = res.data.data
+                // console.log(this.form.businessSource);
                 loading.close();
+                if(this.form.businessSource == "外部销售"){
+                    this.optionContactsBack.column.forEach(item=>{
+                        item.disabled = true
+                    })
+                }
             }).catch(() => {
                 loading.close();
             })