zhongtianhaoyuan 2 年之前
父節點
當前提交
e54432a040

+ 2 - 2
src/layout/components/Sidebar/SidebarItem.vue

@@ -66,7 +66,7 @@ export default {
     flushCom:function(){
     flushCom:function(){
       this.$router.go(0);  
       this.$router.go(0);  
    },
    },
-    hasOneShowingChild(children = [], parent) {debugger
+    hasOneShowingChild(children = [], parent) {
       const showingChildren = children.filter(item => {
       const showingChildren = children.filter(item => {
         if (item.hidden) {
         if (item.hidden) {
           return false
           return false
@@ -90,7 +90,7 @@ export default {
 
 
       return false
       return false
     },
     },
-    resolvePath(routePath) {debugger
+    resolvePath(routePath) {
       if (isExternal(routePath)) {
       if (isExternal(routePath)) {
         return routePath
         return routePath
       }
       }

+ 57 - 0
src/views/cargoOwnerManagement/empowerExamine.vue

@@ -74,6 +74,15 @@
             </div>
             </div>
           </template>
           </template>
         </el-table-column>
         </el-table-column>
+        <el-table-column prop="chargeProportion" label="收费比例(%)" width="100px">
+          <template slot-scope="scope">
+            <div class="advancePayment-style">
+              <el-input placeholder="0" v-model="scope.row.chargeProportion"></el-input>
+              <i class="el-icon-edit" style="margin-top: 8px" @click="editchargeProportion(scope.row)"></i>
+              <!-- <span class="btn_css" @click="userSee(scope.row)">查看</span> -->
+            </div>
+          </template>
+        </el-table-column>
         <el-table-column label="账户" min-width="180">
         <el-table-column label="账户" min-width="180">
           <template slot-scope="scope">
           <template slot-scope="scope">
             <el-popover placement="right" width="400" trigger="click" @show="getBillList(scope.row.commonId)">
             <el-popover placement="right" width="400" trigger="click" @show="getBillList(scope.row.commonId)">
@@ -318,6 +327,14 @@
           cancelButtonText: "取消",
           cancelButtonText: "取消",
           type: "warning",
           type: "warning",
         }).then(() => {
         }).then(() => {
+            // 收费比例/100
+          if(val.chargeProportion){
+             val.chargeProportion = (val.chargeProportion/100).toFixed(2)
+          }
+          //垫付比例
+          if(val.advancePayment){
+             val.advancePayment = (val.advancePayment/100).toFixed(2)
+          }
           this.listLoading = true;
           this.listLoading = true;
           editInfo(val)
           editInfo(val)
             .then((response) => {
             .then((response) => {
@@ -335,6 +352,38 @@
             });
             });
         });
         });
       },
       },
+      editchargeProportion(val){
+         this.$confirm("确定修改该货主的收费比例?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        }).then(() => {
+          // 收费比例/100
+          if(val.chargeProportion){
+             val.chargeProportion = (val.chargeProportion/100).toFixed(2)
+          }
+          //垫付比例
+          if(val.advancePayment){
+             val.advancePayment = (val.advancePayment/100).toFixed(2)
+          }
+          this.listLoading = true;
+          editInfo(val)
+            .then((response) => {
+              if (response.code == 200) {
+                this.$notify({
+                  title: "成功",
+                  message: "修改成功!",
+                  type: "success",
+                });
+                this.getList();
+              }
+            })
+            .catch(() => {
+              this.listLoading = false;
+            });
+        });
+
+      },
       getBillList(id) {
       getBillList(id) {
         let _obj = {
         let _obj = {
           commonId: id,
           commonId: id,
@@ -359,6 +408,14 @@
         getList(_obj)
         getList(_obj)
           .then((response) => {
           .then((response) => {
             this.tableData = response.data.records;
             this.tableData = response.data.records;
+            for(let i = 0 ;i<this.tableData.length;i++){
+              if(this.tableData[i].advancePayment){
+                this.tableData[i].advancePayment = this.tableData[i].advancePayment*100
+              }
+              if(this.tableData[i].chargeProportion){
+                this.tableData[i].chargeProportion = this.tableData[i].chargeProportion*100
+              }
+            }
             this.deptBudgetTotal = response.data.total;
             this.deptBudgetTotal = response.data.total;
             this.listLoading = false;
             this.listLoading = false;
           })
           })

+ 0 - 1
src/views/officialWebsiteManagement/publicityAdd.vue

@@ -146,7 +146,6 @@ export default {
     },
     },
 
 
     uploadSuccess(res) {
     uploadSuccess(res) {
-      debugger
       // 获取富文本组件实例
       // 获取富文本组件实例
       let quill = this.$refs.QuillEditor.quill
       let quill = this.$refs.QuillEditor.quill
       // 如果上传成功
       // 如果上传成功

+ 2 - 2
src/views/orderManagement/orderAudit.vue

@@ -73,13 +73,13 @@
         <el-table-column prop="advanceCharge" label="预付运费(元)"></el-table-column>
         <el-table-column prop="advanceCharge" label="预付运费(元)"></el-table-column>
 
 
         <el-table-column prop="amountMoney" label="司机费用结算">
         <el-table-column prop="amountMoney" label="司机费用结算">
-          <el-table-column prop="driverServiceCharge" label="服务费(元)"></el-table-column>
+          <!-- <el-table-column prop="driverServiceCharge" label="服务费(元)"></el-table-column> -->
           <el-table-column prop="payable" label="应付(元)"></el-table-column>
           <el-table-column prop="payable" label="应付(元)"></el-table-column>
           <el-table-column prop="payabled" label="已付(元)"></el-table-column>
           <el-table-column prop="payabled" label="已付(元)"></el-table-column>
           <el-table-column prop="nopayable" label="未付(元)"></el-table-column>
           <el-table-column prop="nopayable" label="未付(元)"></el-table-column>
         </el-table-column>
         </el-table-column>
         <el-table-column prop="amountMoney" label="货主费用结算">
         <el-table-column prop="amountMoney" label="货主费用结算">
-          <el-table-column prop="ownerServiceCharge" label="服务费(元)"></el-table-column>
+          <el-table-column prop="ownerServiceCharge" label="工本费(元)"></el-table-column>
           <el-table-column prop="overdueFee" label="超期费(元)">
           <el-table-column prop="overdueFee" label="超期费(元)">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <span class="btn_css" @click="costLook(scope.row)">{{scope.row.overdueFee }}</span>
               <span class="btn_css" @click="costLook(scope.row)">{{scope.row.overdueFee }}</span>