zhangqiOMG 3 éve
szülő
commit
3467566498

+ 21 - 2
src/HDrpManagement/orderManage/details/tabs/productlist.vue

@@ -6,6 +6,7 @@
         <el-button style="margin:0 0 10px 10px" size="small" type="primary" :disabled="data.status !== '新建'" v-if="type !== 'confirmdate'" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
         <el-button style="margin:0 0 10px 10px" size="small" type="primary" :disabled="data.status !== '新建'" v-if="type !== 'confirmdate'" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
         <excel style="margin:0 0 10px 10px" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
         <excel style="margin:0 0 10px 10px" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
       </div>
       </div>
+      <p class="normal-margin" style="font-size: 13px !important;color:red;font-weight: normal">{{data.amount > freefreightamount?'当前订单免运费':`订单满${tool.formatAmount(freefreightamount,2)}元免运费,当前还差${tool.formatAmount(freefreightamount - data.amount,2)}元`}}</p>
       <el-table
       <el-table
         ref="multipleTable"
         ref="multipleTable"
         :data="tableData"
         :data="tableData"
@@ -349,6 +350,7 @@ export default {
   },
   },
   data () {
   data () {
     return {
     return {
+      freefreightamount:null,
       drawer:false,
       drawer:false,
       dataRefresh:true,
       dataRefresh:true,
       setcol:24,
       setcol:24,
@@ -396,6 +398,7 @@ export default {
           this.$refs.multipleTable.doLayout()
           this.$refs.multipleTable.doLayout()
         });
         });
       }, 300);
       }, 300);
+      this.queryBasicInfo()
     },
     },
     handleSizeChange(val) {
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);
       // console.log(`每页 ${val} 条`);
@@ -464,8 +467,16 @@ export default {
         "id": 20221109093602,
         "id": 20221109093602,
         "content": val
         "content": val
       })
       })
-      this.$emit('onSuccess')
-      this.listData()
+       if (res.code == 1) {
+        this.$emit('onSuccess')
+        this.listData()
+      } else {
+        this.$message({
+          message:res.data + ':' + res.msg,
+          type:'error'
+        })
+      }
+     
     },
     },
     async dateChangeNeed(val){
     async dateChangeNeed(val){
       const res = await this.$api.requested({
       const res = await this.$api.requested({
@@ -554,6 +565,14 @@ export default {
 
 
       })
       })
       this.stockOptions = res.data
       this.stockOptions = res.data
+    },
+    async queryBasicInfo () {
+      const res = await this.$api.requested({
+        "id":20220920084001,"content":{
+          sys_enterpriseid:this.data.sys_enterpriseid
+        },
+      })
+      this.freefreightamount = res.data.freefreightamount?res.data.freefreightamount:0
     }
     }
   },
   },
   mounted () {
   mounted () {

+ 1 - 3
src/HDrpManagement/orderManage/modules/edit.vue

@@ -13,7 +13,7 @@
         <p><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥&nbsp;{{tool.formatAmount(data.defaultamount,2)}}</b></span></p>
         <p><span style="font-size:14px">订单合计:</span><span style="color:red;font-size:16px;"><b>¥&nbsp;{{tool.formatAmount(data.defaultamount,2)}}</b></span></p>
       </div>
       </div>
         <div class="flex-align-center">
         <div class="flex-align-center">
-        <p v-if="freefreightamount" style="font-size: 13px !important;color: #8888;font-weight: normal">{{data.amount > freefreightamount?'当前订单免运费':`订单满${tool.formatAmount(freefreightamount,2)}元免运费,当前还差${tool.formatAmount(freefreightamount - data.amount,2)}元`}}</p>
+        <p v-if="freefreightamount" style="font-size: 13px !important;color: #8888;font-weight: normal">{{data.amount >= freefreightamount?'当前订单免运费':`订单满${tool.formatAmount(freefreightamount,2)}元免运费,当前还差${tool.formatAmount(freefreightamount - data.amount,2)}元`}}</p>
       </div>
       </div>
     </div>
     </div>
     <div class="drawer__panel">
     <div class="drawer__panel">
@@ -333,8 +333,6 @@ export default {
         },
         },
       })
       })
       this.freefreightamount = res.data.freefreightamount
       this.freefreightamount = res.data.freefreightamount
-      console.log(res.data);
-      
     },
     },
     async rebateUsedChange(){
     async rebateUsedChange(){
       console.log(this.data)
       console.log(this.data)

+ 3 - 1
src/HManagement/accountManage/modules/teamInformation/add.vue

@@ -86,6 +86,7 @@
 
 
 <script>
 <script>
 export default {
 export default {
+  props:['data'],
   name: "add",
   name: "add",
   data(){
   data(){
     return {
     return {
@@ -127,7 +128,8 @@ export default {
         "id":"20230302174301",
         "id":"20230302174301",
         "content":{
         "content":{
           "editable":1,
           "editable":1,
-          "userid":row.userid
+          "userid":row.userid,
+          "leaderuserid":this.$route.query.id
         }
         }
       })
       })
       this.tool.showMessage(res,()=>{
       this.tool.showMessage(res,()=>{

+ 3 - 1
src/HManagement/accountManage/modules/teamInformation/index.vue

@@ -111,6 +111,7 @@ export default {
   methods:{
   methods:{
     /*我负责的*/
     /*我负责的*/
     async leaderData(){
     async leaderData(){
+      this.leader.params.content.leaderuserid = this.$route.query.id
       const res = await this.$api.requested(this.leader.params)
       const res = await this.$api.requested(this.leader.params)
       this.leader.list = res.data
       this.leader.list = res.data
     },
     },
@@ -172,7 +173,8 @@ export default {
       const res = await this.$api.requested({
       const res = await this.$api.requested({
         "id":"20230302174401",
         "id":"20230302174401",
         "content":{
         "content":{
-          "userid":row.userid
+          "userid":row.userid,
+          "leaderuserid":this.$route.query.id
         }
         }
       })
       })
       this.tool.showMessage(res,()=>{
       this.tool.showMessage(res,()=>{

+ 1 - 1
src/SDrpManagement/agentOrder/modules/edit.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <div>
   <div>
     <!-- <el-button :disabled="data.status !=='新建'" type="primary" size="mini" @click="onShow(drawer = true)">编 辑</el-button> -->
     <!-- <el-button :disabled="data.status !=='新建'" type="primary" size="mini" @click="onShow(drawer = true)">编 辑</el-button> -->
-    <el-button type="primary" size="mini" @click="onShow(drawer = true)">编 辑</el-button>
+    <el-button type="primary" :disabled="data.type === '特殊订单'" size="mini" @click="onShow(drawer = true)">编 辑</el-button>
     <el-drawer
     <el-drawer
     :visible.sync="drawer"
     :visible.sync="drawer"
     direction="rtl"
     direction="rtl"

+ 21 - 2
src/SDrpManagement/agentOrder/modules/productlist.vue

@@ -3,9 +3,10 @@
   <el-col :span="setcol">
   <el-col :span="setcol">
     <div  class="flex-align-center normal-margin">
     <div  class="flex-align-center normal-margin">
       <slot name="operation"></slot>
       <slot name="operation"></slot>
-      <el-button v-if="data.status === '新建'" class="inline-16" size="small" type="primary"  @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
+      <el-button v-if="data.status === '新建'" class="inline-16" :disabled="data.type === '特殊订单'" size="small" type="primary"  @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
       <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
       <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
     </div>
     </div>
+    <p class="normal-margin" style="font-size: 13px !important;color:red;font-weight: normal">{{data.amount >= freefreightamount?'当前订单免运费':`订单满${tool.formatAmount(freefreightamount,2)}元免运费,当前还差${tool.formatAmount(freefreightamount - data.amount,2)}元`}}</p>
     <el-table
     <el-table
       ref="multipleTable"
       ref="multipleTable"
       :data="tableData"
       :data="tableData"
@@ -240,6 +241,7 @@ export default {
   props:['data','type'],
   props:['data','type'],
   data () {
   data () {
     return {
     return {
+      freefreightamount:null,
       drawer:false,
       drawer:false,
       setcol:24,
       setcol:24,
       dataRefresh:true,
       dataRefresh:true,
@@ -281,6 +283,7 @@ export default {
       this.tableData = res.data
       this.tableData = res.data
       this.total = res.total
       this.total = res.total
       this.currentPage = res.pageNumber
       this.currentPage = res.pageNumber
+      this.queryBasicInfo()
     },
     },
     handleSizeChange(val) {
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);
       // console.log(`每页 ${val} 条`);
@@ -362,7 +365,15 @@ export default {
         "id": 20221109093602,
         "id": 20221109093602,
         "content": val
         "content": val
       })
       })
-      this.$emit('onSuccess')
+      if (res.code == 1) {
+        this.$emit('onSuccess')
+      } else {
+        this.$message({
+          message:res.data + ':' + res.msg,
+          type:'error'
+        })
+        this.listData()
+      }
     },
     },
     setPickerOptions (val) {
     setPickerOptions (val) {
       var startDate = val.deliverydate
       var startDate = val.deliverydate
@@ -399,6 +410,14 @@ export default {
         this.$emit('onSuccess')
         this.$emit('onSuccess')
       })
       })
     },
     },
+    async queryBasicInfo () {
+      const res = await this.$api.requested({
+        "id":20220920084001,"content":{
+          sys_enterpriseid:this.data.sys_enterpriseid
+        },
+      })
+      this.freefreightamount = res.data.freefreightamount?res.data.freefreightamount:0
+    }
   },
   },
   mounted () {
   mounted () {
     this.listData()
     this.listData()

+ 1 - 1
src/SDrpManagement/myaccountclass/index.vue

@@ -8,7 +8,7 @@
             <el-col v-for="(item,index) in acountlist" :key="index" :span="6" class="mt-10" @click.native="handleClick(index)">
             <el-col v-for="(item,index) in acountlist" :key="index" :span="6" class="mt-10" @click.native="handleClick(index)">
               <div class="acccounet__panel" :style="activeName == index?{border:'1px solid #d8dde8'}:''">
               <div class="acccounet__panel" :style="activeName == index?{border:'1px solid #d8dde8'}:''">
                 <p class="normal-margin">{{item.accountname}}</p>
                 <p class="normal-margin">{{item.accountname}}</p>
-                <p class="normal-title" style="font-size:1.825rem" :style="activeName == index?{color:'#3874f6'}:''"><small>¥</small>&nbsp;{{tool.formatAmount(item.balance)}}</p>
+                <p class="normal-title" style="font-size:1.825rem" :style="activeName == index?{color:'#3874f6'}:''"><small>¥</small>&nbsp;{{tool.formatAmount(item.balance,2)}}</p>
                 <div class="score">
                 <div class="score">
                   <p style="margin-top:16px">信用额度:{{item.creditquota}}</p>
                   <p style="margin-top:16px">信用额度:{{item.creditquota}}</p>
                 </div>
                 </div>

+ 1 - 1
src/SDrpManagement/salerOrder/modules/edit.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <div>
   <div>
     <!-- <el-button :disabled="data.status !=='新建'" type="primary" size="mini" @click="onShow(drawer = true)">编 辑</el-button> -->
     <!-- <el-button :disabled="data.status !=='新建'" type="primary" size="mini" @click="onShow(drawer = true)">编 辑</el-button> -->
-    <el-button type="primary" size="mini" @click="onShow(drawer = true)">编 辑</el-button>
+    <el-button type="primary" :disabled="data.type === '特殊订单'" size="mini" @click="onShow(drawer = true)">编 辑</el-button>
     <el-drawer
     <el-drawer
     :visible.sync="drawer"
     :visible.sync="drawer"
     direction="rtl"
     direction="rtl"

+ 15 - 3
src/SDrpManagement/salerOrder/modules/productlist.vue

@@ -3,9 +3,10 @@
   <el-col :span="setcol">
   <el-col :span="setcol">
     <div  class="flex-align-center normal-margin">
     <div  class="flex-align-center normal-margin">
       <slot name="operation"></slot>
       <slot name="operation"></slot>
-      <el-button class="inline-16" size="small" type="primary" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
+      <el-button :disabled="data.type === '特殊订单'"  v-if="data.status === '新建'" class="inline-16" size="small" type="primary" @click="drawer = true">{{setcol === 24?'添 加':'取 消'}}</el-button>
       <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
       <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
     </div>
     </div>
+    <p class="normal-margin" style="font-size: 13px !important;color:red;font-weight: normal">{{data.amount >= freefreightamount?'当前订单免运费':`订单满${tool.formatAmount(freefreightamount,2)}元免运费,当前还差${tool.formatAmount(freefreightamount - data.amount,2)}元`}}</p>
     <el-table
     <el-table
       ref="multipleTable"
       ref="multipleTable"
       :data="tableData"
       :data="tableData"
@@ -256,6 +257,7 @@ export default {
   props:['data','type'],
   props:['data','type'],
   data () {
   data () {
     return {
     return {
+      freefreightamount:null,
       drawer:false,
       drawer:false,
       setcol:24,
       setcol:24,
       dataRefresh:true,
       dataRefresh:true,
@@ -286,8 +288,8 @@ export default {
   },
   },
   computed:{
   computed:{
     canUseInput () {
     canUseInput () {
-      if (this.data.saler.length === 0) return false
-      let salerIsEditPrice = this.data.saler[0].iseditprice
+      if (this.data.saler && this.data.saler.length === 0) return false
+      let salerIsEditPrice = this.data.saler?this.data.saler[0].iseditprice:0
       if (this.data.type === '标准订单' && salerIsEditPrice && this.data.status === '新建') {
       if (this.data.type === '标准订单' && salerIsEditPrice && this.data.status === '新建') {
         return true
         return true
       } else {
       } else {
@@ -306,6 +308,7 @@ export default {
       this.tableData = res.data
       this.tableData = res.data
       this.total = res.total
       this.total = res.total
       this.currentPage = res.pageNumber
       this.currentPage = res.pageNumber
+      this.queryBasicInfo()
     },
     },
     handleSizeChange(val) {
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);
       // console.log(`每页 ${val} 条`);
@@ -394,6 +397,7 @@ export default {
           type:'error',
           type:'error',
           message:res.data + ':' + res.msg
           message:res.data + ':' + res.msg
         })
         })
+        this.listData()
       }
       }
     },
     },
     setPickerOptions (val) {
     setPickerOptions (val) {
@@ -441,6 +445,14 @@ export default {
       },()=>{
       },()=>{
          this.$set(this.tableData,index,row)
          this.$set(this.tableData,index,row)
       })
       })
+    },
+    async queryBasicInfo () {
+      const res = await this.$api.requested({
+        "id":20220920084001,"content":{
+          sys_enterpriseid:this.data.sys_enterpriseid
+        },
+      })
+      this.freefreightamount = res.data.freefreightamount?res.data.freefreightamount:0
     }
     }
   },
   },
   mounted () {
   mounted () {

+ 1 - 0
src/components/uploadBindMediaStock/modules/list.vue

@@ -81,6 +81,7 @@ export default {
           "pageNumber": 1,
           "pageNumber": 1,
           "pageSize": 20,
           "pageSize": 20,
           "where": {
           "where": {
+            "isonlycollect":1,
             "condition":"",
             "condition":"",
             "parentid":''
             "parentid":''
           }
           }