浏览代码

'修改下单'

魏志佳 4 年之前
父节点
当前提交
aaca5f0cd0

+ 12 - 5
src/views/modules/workBench/designLeader/platForm.vue

@@ -129,17 +129,23 @@
                         <div class="sectionHead">
                             操作记录
                         </div>
+                        <a-spin :spinning="spinning">
                         <div class="optionRecordList">
-                            <a-timeline>
+                            
+                            <a-timeline >
                                 <a-timeline-item color='#F0F2F5' style="height:46px" v-for="(item,index) in operateRecordList" :key="index">
-                                    <p style="margin-bottom:0px">
-                                        <span class="content-item">{{item.userName}}{{item.operate}}{{item.materialName||item.orderTitle}}</span> 
-                                        <span class="time">{{item.time}}</span>
-                                    </p>
+                                <p style="margin-bottom:0px">
+                                    <span class="content-item">{{item.userName}}{{item.operate}}{{item.materialName||item.orderTitle}}</span> 
+                                    <span class="time">{{item.time}}</span>
+                                </p>
                                 </a-timeline-item>
                                 
                             </a-timeline>
+
+                           
+                            
                         </div>
+                        </a-spin>
                     </div>
                     <!-- <div class="rightBottom">
                         <div class="sectionHead">
@@ -174,6 +180,7 @@ export default {
     name:'designlearder-platform',
     data() {
         return {
+            spinning:false,
             moment,
             roleInfo:{},
             orderProgressSpinning:false,

+ 12 - 5
src/views/modules/workBench/designPeople/platForm.vue

@@ -109,17 +109,23 @@
                         <div class="sectionHead">
                             操作记录
                         </div>
+                        <a-spin :spinning="spinning">
                         <div class="optionRecordList">
-                            <a-timeline>
+                            
+                            <a-timeline >
                                 <a-timeline-item color='#F0F2F5' style="height:46px" v-for="(item,index) in operateRecordList" :key="index">
-                                    <p style="margin-bottom:0px">
-                                        <span class="content-item">{{item.userName}}{{item.operate}}{{item.materialName||item.orderTitle}}</span> 
-                                        <span class="time">{{item.time}}</span>
-                                    </p>
+                                <p style="margin-bottom:0px">
+                                    <span class="content-item">{{item.userName}}{{item.operate}}{{item.materialName||item.orderTitle}}</span> 
+                                    <span class="time">{{item.time}}</span>
+                                </p>
                                 </a-timeline-item>
                                 
                             </a-timeline>
+
+                           
+                            
                         </div>
+                        </a-spin>
                     </div>
                     <!-- <div class="rightBottom">
                         <div class="sectionHead">
@@ -154,6 +160,7 @@ export default {
     name:'design-platform',
     data() {
         return {
+            spinning:false,
             moment,
             roleInfo:{},
             orderProgressSpinning:false,

+ 10 - 3
src/views/modules/workBench/placeOrder.vue

@@ -612,7 +612,7 @@ export default {
         saveHandler(){
              this.$refs.ruleForm.validate(valid=> {
                 if (valid) {
-                    
+                    this.saveLoading=true;
                     console.log(valid,this.form);
                     let params={
                         ...this.form,
@@ -624,9 +624,12 @@ export default {
                     if(!this.$parent.isEdit){
                         postAction('/platform/operator/payout',params).then(res=>{
                             console.log(res);
+                            this.saveLoading=false;
                             if(res.success){
-                                this.$parent.currentTabComponent='operatorPlatform';
+                                this.$parent.orderId=res.result.id
                                 this.$parent.isEdit=false;
+                                this.$parent.currentTabComponent='orderDetail';
+                                
                             }else{
                                 this.$message.error(res.success)
                             }
@@ -638,9 +641,13 @@ export default {
                         }
                         postAction('/platform/operator/rePayout',params).then(res=>{
                             console.log(res);
+                            this.saveLoading=false;
                             if(res.success){
-                                this.$parent.currentTabComponent='operatorPlatform';
                                 this.$parent.isEdit=false;
+                                this.$parent.orderId=this.currentOrderInfo.id
+                                this.$parent.currentTabComponent='orderDetail';
+
+                                
                             }else{
                                 this.$message.error(res.success)
                             }

+ 3 - 3
vue.config.js

@@ -72,12 +72,12 @@ module.exports = {
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.188:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
-        target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8888', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目