Browse Source

提交达沃特、箱管

caojunjie 2 years ago
parent
commit
608aa19926

+ 5 - 1
src/components/trade-card/main.vue

@@ -5,7 +5,7 @@
         <div class="redcolumn"></div>
         <div class="redcolumn"></div>
         <div class="container-title">{{ title }}</div>
         <div class="container-title">{{ title }}</div>
       </div>
       </div>
-      <div v-if="showBtn" class="container-foot" @click="show = !show">
+      <div v-if="showBtn" class="container-foot" @click="open">
         <div v-show="show" style="height: 20px">
         <div v-show="show" style="height: 20px">
           <span><i class="el-icon-arrow-up" /></span>
           <span><i class="el-icon-arrow-up" /></span>
         </div>
         </div>
@@ -60,6 +60,10 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
+    open(){
+      this.show = !this.show
+      this.$emit("openClose",this.show)
+    }
   },
   },
   computed: {
   computed: {
     styleName() {
     styleName() {

+ 2 - 0
src/views/approveData/index.vue

@@ -39,6 +39,8 @@
         <span v-else-if="scope.row.checkType == 'YPJ-XS'">易配件销售</span>
         <span v-else-if="scope.row.checkType == 'YPJ-XS'">易配件销售</span>
         <span v-else-if="scope.row.checkType == 'YPJ-CG'">易配件采购</span>
         <span v-else-if="scope.row.checkType == 'YPJ-CG'">易配件采购</span>
         <span v-else-if="scope.row.checkType == 'YPJ-XSJH'">销售计划</span>
         <span v-else-if="scope.row.checkType == 'YPJ-XSJH'">销售计划</span>
+        <span v-else-if="scope.row.checkType == 'ZR'">租入</span>
+        <span v-else-if="scope.row.checkType == 'ZC'">租出</span>
       </template>
       </template>
       <template slot="menuLeft">
       <template slot="menuLeft">
         <el-button size="small" type="success" :disabled="selectionList.length == 0" @click.stop="batchCheck">批量审批
         <el-button size="small" type="success" :disabled="selectionList.length == 0" @click.stop="batchCheck">批量审批

+ 1 - 1
src/views/boxManagement/exportShipment/detailsPage.vue

@@ -54,7 +54,7 @@
         </template>
         </template>
       </avue-form>
       </avue-form>
     </trade-card>
     </trade-card>
-    <trade-card title="箱信息">
+    <trade-card title="箱信息" @openClose="key++">
       <avue-crud
       <avue-crud
           :option="option"
           :option="option"
           :data="dataList"
           :data="dataList"

+ 1 - 1
src/views/boxManagement/importReturnTrip/detailsPage.vue

@@ -53,7 +53,7 @@
         </template>
         </template>
       </avue-form>
       </avue-form>
     </trade-card>
     </trade-card>
-    <trade-card title="箱信息">
+    <trade-card title="箱信息" @openClose="key++">
       <avue-crud
       <avue-crud
           :option="option"
           :option="option"
           :data="dataList"
           :data="dataList"

+ 21 - 8
src/views/boxManagement/leaseIn/detailsPage.vue

@@ -13,7 +13,7 @@
         <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" :disabled="form.status>0"
         <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" :disabled="form.status>0"
                    @click="confirmEdit" v-if="optionForm.disabled === true">编辑
                    @click="confirmEdit" v-if="optionForm.disabled === true">编辑
         </el-button>
         </el-button>
-        <el-dropdown style="margin-right: 10px" v-if="false">
+        <el-dropdown style="margin-right: 10px">
           <el-button type="primary" size="small">
           <el-button type="primary" size="small">
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
           </el-button>
           </el-button>
@@ -21,7 +21,8 @@
             <el-dropdown-item @click.native="pleaseCheck" :disabled="form.status>0">请核数据</el-dropdown-item>
             <el-dropdown-item @click.native="pleaseCheck" :disabled="form.status>0">请核数据</el-dropdown-item>
             <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id">审核进度</el-dropdown-item>
             <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id">审核进度</el-dropdown-item>
             <el-dropdown-item @click.native="repealCancel" :disabled="form.status === 0 || !form.status" v-if="!detailData.id">撤销请核</el-dropdown-item>
             <el-dropdown-item @click.native="repealCancel" :disabled="form.status === 0 || !form.status" v-if="!detailData.id">撤销请核</el-dropdown-item>
-            <!--            <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>-->
+            <el-dropdown-item @click.native="checkDialog = true,checkData = detailData.check;" v-if="detailData.id">特殊审批
+            </el-dropdown-item>
           </el-dropdown-menu>
           </el-dropdown-menu>
         </el-dropdown>
         </el-dropdown>
         <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0"
         <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0"
@@ -190,6 +191,11 @@
           @choceScheduleFun="choceScheduleFun"
           @choceScheduleFun="choceScheduleFun"
       ></check-schedule>
       ></check-schedule>
     </el-dialog>
     </el-dialog>
+    <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
+               :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
+      <check :checkData="checkData" :checkDetail="false" :idList="[]" @choceCheckFun="choceCheckFun">
+      </check>
+    </el-dialog>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -212,6 +218,7 @@ import {getToken} from "@/util/auth";
 import {dateFormat, defaultDate} from "@/util/date";
 import {dateFormat, defaultDate} from "@/util/date";
 import reportDialog from "@/components/report-dialog/main.vue";
 import reportDialog from "@/components/report-dialog/main.vue";
 import {generateStack} from "@/api/boxManagement/exportShipment";
 import {generateStack} from "@/api/boxManagement/exportShipment";
+import check from "@/components/check/check.vue";
 export default {
 export default {
   name: "detailsPage",
   name: "detailsPage",
   props: {
   props: {
@@ -219,10 +226,12 @@ export default {
     detailData: Object
     detailData: Object
   },
   },
   components:{
   components:{
-    checkSchedule,reportDialog
+    checkSchedule,reportDialog,check
   },
   },
   data() {
   data() {
     return {
     return {
+      checkData: {},
+      checkDialog: false,
       switchDialog:false,
       switchDialog:false,
       excelOption: {
       excelOption: {
         submitBtn: false,
         submitBtn: false,
@@ -797,6 +806,10 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
+    //关闭审核
+    choceCheckFun() {
+      this.checkDialog = false;
+    },
     //堆存
     //堆存
     stockpiling() {
     stockpiling() {
       this.title = "堆存"
       this.title = "堆存"
@@ -1092,8 +1105,8 @@ export default {
       }).then(() => {
       }).then(() => {
         const data = {
         const data = {
           id : this.form.id,
           id : this.form.id,
-          pageLabel:"买箱",
-          checkFlag: 1,
+          pageLabel:"租入",
+          checkFlag: 3,
         }
         }
         const loading = this.$loading({
         const loading = this.$loading({
           lock: true,
           lock: true,
@@ -1148,10 +1161,10 @@ export default {
             submit(data).then(res => {
             submit(data).then(res => {
               const data = {
               const data = {
                 id: res.data.data.id,
                 id: res.data.data.id,
-                url: '/boxManagement/buyContainer/index',
+                url: '/boxManagement/leaseIn/index',
                 pageStatus: "this.$store.getters.domSaleStatus",
                 pageStatus: "this.$store.getters.domSaleStatus",
-                pageLabel: "买箱",
-                checkFlag: 1,
+                pageLabel: "租入",
+                checkFlag: 3,
               }
               }
               pleaseCheck({
               pleaseCheck({
                 ...data,
                 ...data,

+ 20 - 7
src/views/boxManagement/leaseOut/detailsPage.vue

@@ -13,7 +13,7 @@
         <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" :disabled="form.status>0"
         <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small" :disabled="form.status>0"
                    @click="confirmEdit" v-if="optionForm.disabled === true">编辑
                    @click="confirmEdit" v-if="optionForm.disabled === true">编辑
         </el-button>
         </el-button>
-        <el-dropdown style="margin-right: 10px" v-if="false">
+        <el-dropdown style="margin-right: 10px">
           <el-button type="primary" size="small">
           <el-button type="primary" size="small">
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
           </el-button>
           </el-button>
@@ -21,7 +21,8 @@
             <el-dropdown-item @click.native="pleaseCheck" :disabled="form.status>0">请核数据</el-dropdown-item>
             <el-dropdown-item @click.native="pleaseCheck" :disabled="form.status>0">请核数据</el-dropdown-item>
             <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id">审核进度</el-dropdown-item>
             <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id">审核进度</el-dropdown-item>
             <el-dropdown-item @click.native="repealCancel" :disabled="form.status === 0 || !form.status" v-if="!detailData.id">撤销请核</el-dropdown-item>
             <el-dropdown-item @click.native="repealCancel" :disabled="form.status === 0 || !form.status" v-if="!detailData.id">撤销请核</el-dropdown-item>
-            <!--            <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>-->
+            <el-dropdown-item @click.native="checkDialog = true,checkData = detailData.check;" v-if="detailData.id">特殊审批
+            </el-dropdown-item>
           </el-dropdown-menu>
           </el-dropdown-menu>
         </el-dropdown>
         </el-dropdown>
         <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0"
         <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0"
@@ -186,6 +187,11 @@
           @choceScheduleFun="choceScheduleFun"
           @choceScheduleFun="choceScheduleFun"
       ></check-schedule>
       ></check-schedule>
     </el-dialog>
     </el-dialog>
+    <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
+               :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
+      <check :checkData="checkData" :checkDetail="false" :idList="[]" @choceCheckFun="choceCheckFun">
+      </check>
+    </el-dialog>
   </div>
   </div>
 </template>
 </template>
 
 
@@ -208,15 +214,18 @@ import {getToken} from "@/util/auth";
 import {dateFormat} from "@/util/date";
 import {dateFormat} from "@/util/date";
 import reportDialog from "@/components/report-dialog/main.vue";
 import reportDialog from "@/components/report-dialog/main.vue";
 import {generateStack} from "@/api/boxManagement/exportShipment";
 import {generateStack} from "@/api/boxManagement/exportShipment";
+import check from "@/components/check/check.vue";
 export default {
 export default {
   name: "detailsPage",
   name: "detailsPage",
   props: {
   props: {
     onLoad: Object,
     onLoad: Object,
     detailData: Object
     detailData: Object
   },
   },
-  components:{checkSchedule,reportDialog},
+  components:{checkSchedule,reportDialog,check},
   data() {
   data() {
     return {
     return {
+      checkData: {},
+      checkDialog: false,
       switchDialog:false,
       switchDialog:false,
       excelOption: {
       excelOption: {
         submitBtn: false,
         submitBtn: false,
@@ -794,6 +803,10 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
+    //关闭审核
+    choceCheckFun() {
+      this.checkDialog = false;
+    },
     //堆存
     //堆存
     stockpiling() {
     stockpiling() {
       this.title = "堆存"
       this.title = "堆存"
@@ -1100,8 +1113,8 @@ export default {
       }).then(() => {
       }).then(() => {
         const data = {
         const data = {
           id : this.form.id,
           id : this.form.id,
-          pageLabel:"买箱",
-          checkFlag: 1,
+          pageLabel:"租出",
+          checkFlag: 4,
         }
         }
         const loading = this.$loading({
         const loading = this.$loading({
           lock: true,
           lock: true,
@@ -1158,8 +1171,8 @@ export default {
                 id: res.data.data.id,
                 id: res.data.data.id,
                 url: '/boxManagement/buyContainer/index',
                 url: '/boxManagement/buyContainer/index',
                 pageStatus: "this.$store.getters.domSaleStatus",
                 pageStatus: "this.$store.getters.domSaleStatus",
-                pageLabel: "买箱",
-                checkFlag: 1,
+                pageLabel: "租出",
+                checkFlag: 4,
               }
               }
               pleaseCheck({
               pleaseCheck({
                 ...data,
                 ...data,

+ 17 - 5
src/views/statisticAnalysis/profitStatistics/index.vue

@@ -39,7 +39,8 @@ export default {
       form: {},
       form: {},
       search: {
       search: {
         date:`${new Date().getFullYear()}-${(new Date().getMonth()+1)}-1 00:00:00`,
         date:`${new Date().getFullYear()}-${(new Date().getMonth()+1)}-1 00:00:00`,
-        whetherStatistics:0
+        whetherStatistics:0,
+        show:0
       },
       },
       condition: {},
       condition: {},
       dataList: [],
       dataList: [],
@@ -112,10 +113,6 @@ export default {
           prop: "corpName",
           prop: "corpName",
           overHidden: true
           overHidden: true
         }, {
         }, {
-          label: "所属公司",
-          prop: "company",
-          overHidden: true
-        }, {
           label: "日期",
           label: "日期",
           prop: "date",
           prop: "date",
           width: 100,
           width: 100,
@@ -157,6 +154,21 @@ export default {
             label:'箱号',
             label:'箱号',
             value:1
             value:1
           }]
           }]
+        },{
+          label: '为0是否显示',
+          prop: 'show',
+          search: true,
+          type: 'select',
+          showColumn: false,
+          hide: true,
+          searchValue:0,
+          dicData:[{
+            label:'不显示',
+            value:0
+          },{
+            label:'显示',
+            value:1
+          }]
         }]
         }]
       }
       }
     };
     };