Browse Source

轮胎商城9.11更改内容

caojunjie 1 year ago
parent
commit
ddab71b0ad

+ 7 - 1
src/views/tirePartsMall/basicData/accountManagement/detailsPage.vue

@@ -123,7 +123,8 @@ export default {
           type: "success",
           message: data.enableOrNot ? "禁用成功!" : "启用成功!"
         });
-        this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
+        this.queryData(data.id)
+        // this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
       })
     },
     // 查询
@@ -136,6 +137,11 @@ export default {
       })
       detail({ id }).then(res => {
         this.form = res.data.data;
+        if (this.form.enableOrNot == 1) {
+            this.$set(this.optionForm,'disabled',true)
+        }else {
+            this.$set(this.optionForm,'disabled',false)
+        }
         loading.close()
       }).finally(() => {
         loading.close()

+ 5 - 0
src/views/tirePartsMall/basicData/brandPage/detailsPage.vue

@@ -112,6 +112,11 @@ export default {
       })
       getDetails({id: id}).then(res => {
         this.form = res.data.data
+          if (this.form.enableOrNot == 1) {
+              this.$set(this.optionForm,'disabled',true)
+          }else {
+              this.$set(this.optionForm,'disabled',false)
+          }
         loading.close();
       }).catch(() => {
         loading.close();

+ 11 - 5
src/views/tirePartsMall/basicData/customerInformation/detailsPage.vue

@@ -12,7 +12,7 @@
             保存数据
           </el-button>
           <el-button class="el-button--small-yh" size="small" v-if="form.id" @click="editEnable">
-            {{ form.enableOrNot ? '禁用' : '启用' }}
+            {{ form.enableOrNot == 0 ? '启用' : '禁用' }}
           </el-button>
         </div>
       </div>
@@ -20,7 +20,7 @@
         <avue-form ref="form" class="trading-form" v-model="form" :option="option">
           <template slot="corpsTypeId">
             <div style="display:flex;">
-              <avue-input-tree v-model="form.corpsTypeId" placeholder="请选择客户分类" :dic="corpTypeList" :props="props">
+              <avue-input-tree v-model="form.corpsTypeId" :disabled="option.disabled" placeholder="请选择客户分类" :dic="corpTypeList" :props="props">
               </avue-input-tree>
               <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px"
                 @click="corpTypeVisible = true"></i>
@@ -28,7 +28,7 @@
           </template>
           <template slot="deliveryWarehouseId">
             <div style="display:flex;">
-              <avue-input-tree v-model="form.deliveryWarehouseId" placeholder="请选择发货仓库" :dic="corpTypeListCk"
+              <avue-input-tree v-model="form.deliveryWarehouseId" :disabled="option.disabled" placeholder="请选择发货仓库" :dic="corpTypeListCk"
                 :props="propsCk">
               </avue-input-tree>
               <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px"
@@ -334,7 +334,7 @@ export default {
         //       trigger: "blur"
         //     }
         //   ]
-        // }, 
+        // },
         {
           label: "备注",
           prop: "remarks",
@@ -592,7 +592,8 @@ export default {
           type: "success",
           message: data.enableOrNot ? "禁用成功!" : "启用成功!"
         });
-        this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
+        this.getDetail(this.detailData.id)
+        // this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
       })
     },
     addressUnique(row, index) {
@@ -693,6 +694,11 @@ export default {
       getDetails({ id: id })
         .then(res => {
           this.form = res.data.data;
+            if (this.form.enableOrNot == 1) {
+                this.$set(this.option,'disabled',true)
+            }else {
+                this.$set(this.option,'disabled',false)
+            }
           this.data = res.data.data.corpsAddrList
           this.corpsFiles = res.data.data.corpsFilesList
           this.contactsData = res.data.data.corpsAttnList

+ 10 - 4
src/views/tirePartsMall/basicData/supplier/detailsPage.vue

@@ -14,16 +14,16 @@
         </el-button>
 
         <el-button class="el-button--small-yh" type="primary" size="small" v-if="form.id" @click="editEnable">
-          {{ form.enableOrNot ? '禁用' : '启用' }}
+          {{ form.enableOrNot == 0 ? '启用' : '禁用' }}
         </el-button>
       </div>
     </div>
     <div style="margin-top: 50px">
       <trade-card title="基础信息">
         <avue-form :option="optionForm" v-model="form" ref="form">
-          <template slot="corpsTypeId">
+          <template slot="corpsTypeId" slot-scope="{ row }">
             <div style="display:flex;">
-              <avue-input-tree v-model="form.corpsTypeId" placeholder="请选择供货商分类" :dic="corpTypeList" :props="props">
+              <avue-input-tree v-model="form.corpsTypeId" :disabled="optionForm.disabled" placeholder="请选择供货商分类" :dic="corpTypeList" :props="props">
               </avue-input-tree>
               <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px"
                 @click="corpTypeVisible = true"></i>
@@ -262,7 +262,8 @@ export default {
           type: "success",
           message: data.enableOrNot ? "禁用成功!" : "启用成功!"
         });
-        this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
+        this.refresh(this.onLoad.id, true)
+        // this.$set(this.form, 'enableOrNot', data.enableOrNot == 1 ? 0 : 1)
       })
     },
     refresh(id, type) {
@@ -274,6 +275,11 @@ export default {
       })
       getDetails({ id: id }).then(res => {
         this.form = res.data.data
+          if (this.form.enableOrNot == 1) {
+              this.$set(this.optionForm,'disabled',true)
+          }else {
+              this.$set(this.optionForm,'disabled',false)
+          }
         loading.close();
       }).catch(() => {
         loading.close();

+ 7 - 2
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue

@@ -310,6 +310,8 @@ export default {
             formContacts: {},
             optionContacts: {},
             optionContactsBack: {
+                cancelBtn:false, // 行内查看取消按钮
+
                 align: "center",
                 addBtn: false,
                 addBtnText: "录入明细",
@@ -327,9 +329,11 @@ export default {
                 dialogWidth: "80%",
                 showSummary: true,
 
-
                 saveBtn:false, // 表格弹窗保存按钮
-                cancelBtn:false, // 行内查看取消按钮
+
+
+                cancelBtnText:'',
+
                 cellBtn:true, // 行编辑
                 sumColumnList: [
                     {
@@ -914,6 +918,7 @@ export default {
                 this.findObject(this.optionContactsBack.column, "dot").dicData = res.data.data
                 // console.log(this.dicData)
             })
+            console.log(this.optionContacts,802)
             // this.$refs.formContacts.rowEdit(row, index)
         },
         rowDelBox(row, index) {

+ 2 - 1
src/views/tirePartsMall/salesManagement/saleOrder/index.vue

@@ -171,10 +171,11 @@ export default {
         sumColumnList: [{
           name: 'goodsTotalNum',
           type: 'sum',
+          decimals: 0
         }, {
           name: 'totalMoney',
           type: 'sum',
-        },],
+        }],
         column: [{
           label: '销售单号',
           prop: "ordNo",