Browse Source

Merge branch 'master' of git.echepei.com:zhujiawei/Warehouse_management_ui

caojunjie 4 years ago
parent
commit
31a844e456

+ 10 - 0
src/api/basicdata/cntr.js

@@ -0,0 +1,10 @@
+import request from '@/utils/request'
+
+// 入库查询 箱型 基础信息接口 
+export function listCntrs(query) {
+  return request({
+    url: '/shipping/cntr/list',
+    method: 'get',
+    params: query
+  })
+}

File diff suppressed because it is too large
+ 470 - 218
src/views/Warehousing/inStock/AddOrUpdate.vue


+ 36 - 53
src/views/Warehousing/inStock/index.vue

@@ -25,12 +25,8 @@
               <el-select
                 v-model="queryParams.createBy"
                 filterable
-                remote
                 clearable
-                reserve-keyword
                 placeholder="请输入关键词"
-                :remote-method="userremoteMethod"
-                :loading="selectloading"
                 style="width: 200px"
               >
                 <el-option
@@ -67,11 +63,7 @@
                 v-model="queryParams.fCorpid"
                 clearable
                 filterable
-                remote
-                reserve-keyword
                 placeholder="请输入关键词"
-                :remote-method="corpremoteMethod"
-                :loading="selectloading"
                 style="width: 200px"
               >
                 <el-option
@@ -104,11 +96,7 @@
                     v-model="queryParams.fSbu"
                     clearable
                     filterable
-                    remote
-                    reserve-keyword
                     placeholder="请输入关键词"
-                    :remote-method="corpremoteMethod"
-                    :loading="selectloading"
                     style="width: 200px"
                   >
                     <el-option
@@ -227,9 +215,7 @@
             type="primary"
             icon="el-icon-plus"
             size="mini"
-            @click="
-            handleAdd
-            "
+            @click="handleAdd"
             v-hasPermi="['warehouseBusiness:inStock:add']"
             >新增
           </el-button>
@@ -272,7 +258,7 @@
             icon="el-icon-download"
             size="mini"
             :disabled="single"
-            @click="handleUpdate(null, 2)"
+            @click="copyUpdate"
             v-hasPermi="['agreement:agreementStorage:export']"
             >复制新增
           </el-button>
@@ -318,7 +304,12 @@
           </div>
         </div>
       </el-row>
-      <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px" v-dialogDrag>
+      <el-dialog
+        title="自定义列显示"
+        :visible.sync="showSetting"
+        width="700px"
+        v-dialogDrag
+      >
         <template slot="title">
           <div class="avue-crud__dialog__header">
             <span class="el-dialog__title">
@@ -488,6 +479,7 @@
       @changeShow="showAddOrUpdate"
       ref="addOrUpdateRef"
       :chiId="formId"
+      :copyStatus="copyStatus"
       :key="timer"
     ></add-or-update>
   </div>
@@ -508,7 +500,7 @@ export default {
   name: "plans",
   data() {
     return {
-      timer: '',
+      timer: "",
       pageShow: true,
       pageShow2: false,
       queryParams: {
@@ -527,7 +519,6 @@ export default {
         fItemsStatus: null,
         timeInterval: null,
       },
-      selectloading: false,
       // 显示搜索条件
       showSearch: true,
       userOptions: [],
@@ -674,6 +665,8 @@ export default {
       single: true,
       multiple: true,
       formId: null,
+      ids: [],
+      copyStatus:null,
     };
   },
   // 使用子组件
@@ -690,6 +683,12 @@ export default {
     listWarehousesss({ fStatus: 0, delFlag: 0 }).then((response) => {
       this.warehouseOptions = response.rows;
     });
+    listUser().then((response) => {
+      this.userOptions = response.rows;
+    });
+    listCorps({ type: 1 }).then((response) => {
+      this.fMblnoOptions = response.rows;
+    });
     this.getRow();
     this.getList();
   },
@@ -757,7 +756,7 @@ export default {
         if (res.code == 200) {
           this.showSetting = false;
           this.getRowList = this.setRowList.filter((e) => e.checked == 0);
-          console.log(this.tableDate)
+          console.log(this.tableDate);
         }
       });
     },
@@ -812,14 +811,13 @@ export default {
       return sums;
     },
     handleAdd() {
-      this.timer = new Date().getTime()
-      this.pageShow=false
-      this.pageShow2=true
+      this.timer = new Date().getTime();
+      this.pageShow = false;
+      this.pageShow2 = true;
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
       this.ids = selection.map((item) => item.fId);
-      this.idCopy = this.ids[0];
       this.single =
         selection.length !== 1 ||
         selection.map((item) => item.fBillstatus) == 6 ||
@@ -828,7 +826,20 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
-      this.formId = row.fId;
+      const fId = row.fId || this.ids[0];
+      this.copyStatus=null
+      this.formId = fId;
+      this.$nextTick(() => {
+        this.$refs.addOrUpdateRef.init();
+      });
+      setTimeout(() => {
+        this.pageShow = false;
+        this.pageShow2 = true;
+      }, 200);
+    },
+    copyUpdate() {
+      this.formId = this.ids[0];
+      this.copyStatus = 2;
       this.$nextTick(() => {
         this.$refs.addOrUpdateRef.init();
       });
@@ -901,34 +912,6 @@ export default {
       this.fMblnoOptions = [];
       this.handleQuery();
     },
-    //制单人模糊搜索
-    userremoteMethod(query) {
-      if (query !== "") {
-        this.selectloading = true;
-        setTimeout(() => {
-          listUser({ userName: query }).then((response) => {
-            this.selectloading = false;
-            this.userOptions = response.rows;
-          });
-        }, 200);
-      } else {
-        this.userOptions = [];
-      }
-    },
-    //货权方模糊搜索
-    corpremoteMethod(query) {
-      if (query !== "") {
-        this.selectloading = true;
-        setTimeout(() => {
-          listCorps({ fName: query, type: 1 }).then((response) => {
-            this.selectloading = false;
-            this.fMblnoOptions = response.rows;
-          });
-        }, 200);
-      } else {
-        this.fMblnoOptions = [];
-      }
-    },
     showAddOrUpdate(data) {
       if (data) {
         this.getList();

+ 279 - 123
src/views/finance/applyForInvoice/chargeInvoice/index.vue

@@ -8,7 +8,9 @@
         v-show="showSearch"
         label-width="68px"
       >
-        <el-form-item label="系统编号" prop="fCtrlcorpid">
+        <el-row>
+          <el-col :span="6">
+            <el-form-item label="系统编号" prop="fBillno">
           <el-input
             v-model="tableFilter.fBillno"
             placeholder="请输入系统编号"
@@ -18,7 +20,9 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="货权方" prop="fCtrlcorpid">
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="货权方" prop="fCtrlcorpid">
           <el-input
             v-model="tableFilter.fCtrlcorpid"
             placeholder="请输入货权方"
@@ -28,7 +32,9 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="结算单位" prop="fCorpid">
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="结算单位" prop="fCorpid">
           <el-select
             v-model="tableFilter.fCorpid"
             filterable
@@ -48,31 +54,69 @@
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="收费日期" prop="timeInterval">
-          <el-date-picker
-            type="daterange"
-            size="small"
-            style="width: 240px"
-            v-model="tableFilter.timeInterval"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"
-            value-format="yyyy-MM-dd"
-            :default-time="['00:00:00', '23:59:59']"
-          >
-          </el-date-picker>
-        </el-form-item>
-        <el-form-item>
-          <el-button
-            type="cyan"
-            icon="el-icon-search"
-            size="mini"
-            @click="handleQuery"
-          >搜索</el-button
-          >
-          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >重置</el-button
-          >
-        </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="状态" prop="fBillstatus">
+              <el-input
+                v-model="tableFilter.fBillstatus"
+                placeholder="请输入提单号"
+                clearable
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-collapse-transition>
+          <div v-show="show">
+            <el-row>
+              <el-col :span="6">
+                <el-form-item label="实收合计" prop="fAmtcr">
+                  <el-input
+                    v-model="tableFilter.firstMoney"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                  <el-input
+                    v-model="tableFilter.lastMoney"
+                    placeholder="请输入金额"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="备注" prop="fRemarks">
+                  <el-input
+                    v-model="tableFilter.fRemarks"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 200px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="收费日期" prop="timeInterval">
+                  <el-date-picker
+                    type="daterange"
+                    size="small"
+                    style="width: 240px"
+                    v-model="tableFilter.timeInterval"
+                    start-placeholder="开始日期"
+                    end-placeholder="结束日期"
+                    value-format="yyyy-MM-dd"
+                    :default-time="['00:00:00', '23:59:59']"
+                  >
+                  </el-date-picker>
+                </el-form-item>
+              </el-col>
+            </el-row>
+          </div>
+        </el-collapse-transition>
       </el-form>
       <el-row :gutter="10" class="mb8">
         <el-col :span="1.5">
@@ -81,7 +125,7 @@
             icon="el-icon-plus"
             size="mini"
             @click="handleAdd"
-            v-hasPermi="['finance:charge:add']"
+            v-hasPermi="['financial:invoiceApplyFor:add']"
           >新增
           </el-button>
         </el-col>
@@ -92,7 +136,7 @@
             size="mini"
             :disabled="single"
             @click="handleUpdate"
-            v-hasPermi="['finance:charge:edit']"
+            v-hasPermi="['finance:invoiceApplyFor:query']"
           >修改
           </el-button>
         </el-col>
@@ -118,6 +162,32 @@
           </el-button>
         </el-col>
         <div class="tabSetting">
+          <div style="margin-right: 20px">
+            <el-button
+              type="cyan"
+              icon="el-icon-search"
+              size="mini"
+              @click="handleQuery"
+            >搜索</el-button
+            >
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+            >重置</el-button
+            >
+            <el-button
+              v-show="show"
+              @click="show = !show"
+              icon="el-icon-arrow-up"
+              size="mini"
+            >展开</el-button
+            >
+            <el-button
+              v-show="!show"
+              @click="show = !show"
+              icon="el-icon-arrow-down"
+              size="mini"
+            >展开</el-button
+            >
+          </div>
           <right-toolbar
             :showSearch.sync="showSearch"
             @queryTable="getList"
@@ -244,7 +314,7 @@
               type="text"
               icon="el-icon-view"
               @click="check(scope.row, 0)"
-              v-hasPermi="['finance:contrast:edit']"
+              v-hasPermi="['finance:invoiceApplyFor:query']"
             >查看</el-button
             >
             <el-button
@@ -252,7 +322,7 @@
               type="text"
               icon="el-icon-view"
               @click="check(scope.row, 1)"
-              v-hasPermi="['finance:contrast:edit']"
+              v-hasPermi="['finance:invoiceApplyFor:query']"
               v-if="
               scope.row.fBillstatus == '提交审核' ||
               scope.row.fBillstatus == '审核中'
@@ -264,7 +334,7 @@
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row)"
-              v-hasPermi="['finance:charge:edit']"
+              v-hasPermi="['finance:invoiceApplyFor:query']"
               v-if="
               scope.row.fBillstatus == '保存' ||
               scope.row.fBillstatus == '暂存' ||
@@ -277,7 +347,7 @@
               type="text"
               icon="el-icon-delete"
               @click="handleDelete(scope.row)"
-              v-hasPermi="['finance:charge:remove']"
+              v-hasPermi="['financial:invoiceApplyFor:remove']"
               v-if="
               scope.row.fBillstatus == '保存' ||
               scope.row.fBillstatus == '暂存' ||
@@ -312,14 +382,14 @@
         @pagination="getList"
       />
     </div>
-    <div v-show="mainTable == true">
+    <div v-if="mainTable == true">
       <el-form
         :model="queryParams"
         :rules="ruless"
         ref="ruless"
         :inline="true"
         v-show="showSearch"
-        label-width="68px"
+        label-width="78px"
       >
         <el-form-item label="货权方" prop="fCtrlcorpid">
           <el-input
@@ -332,7 +402,7 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="结算单位" label-width="78px" prop="fCorpid">
+        <el-form-item label="结算单位" prop="fCorpid">
           <el-select
             v-model="queryParams.fCorpid"
             filterable
@@ -353,7 +423,7 @@
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="收费日期" label-width="78px" prop="fAccbilldate">
+        <el-form-item label="收费日期" prop="fAccbilldate">
           <el-date-picker
             clearable
             size="small"
@@ -455,6 +525,12 @@
       </el-form>
       <div style="width: 100%; display: flex; justify-content: space-between">
         <div style="display: flex">
+          <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" size="mini" @click="cancel"
+          >返回列表</el-button
+          >
+          <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" size="mini" @click="homePage"
+          >返回首页</el-button
+          >
           <el-button
             type="warning"
             size="mini"
@@ -502,16 +578,10 @@
             @click="addOrUpdateHandle"
           >查看审批流</el-button
           >
-          <el-button type="primary" @click="submitForm" size="mini" :disabled="notChange"
+          <el-button type="success" @click="submitForm" size="mini" :disabled="notChange"
           >保 存</el-button
           >
-          <el-button v-if="cancelButton === true" size="mini" @click="cancel"
-          >返 回</el-button
-          >
-          <el-button v-if="cancelButton === false" size="mini" @click="homePage"
-          >返 回</el-button
-          >
-          <el-button @click="addPage" size="mini">新 增</el-button>
+          <el-button @click="addPage" type="primary" size="mini">新 增</el-button>
         </div>
         <div style="margin: 0 12px">
           <el-button
@@ -527,6 +597,7 @@
         :visible.sync="feeInfo ? showSetting2 : showSetting3"
         width="700px"
         v-dialogDrag
+        :before-close="handleClose"
         append-to-body
       >
         <template slot="title">
@@ -555,7 +626,8 @@
         </div>
         <div style="padding: 4px; display: flex; justify-content: center">
           <draggable
-            v-model="feeInfo ? setRowList2 : setRowList3"
+            v-show="feeInfo == true"
+            v-model="setRowList2"
             group="site"
             animation="300"
             @start="onStart"
@@ -564,7 +636,43 @@
           >
             <transition-group>
               <div
-                v-for="item in feeInfo ? setRowList2 : setRowList3"
+                v-for="item in setRowList2"
+                :key="item.surface"
+                class="listStyle"
+              >
+                <div style="width: 500px" class="indraggable">
+                  <div class="progress" :style="{ width: item.width + 'px' }">
+                    <el-checkbox
+                      :label="item.name"
+                      v-model="item.checked"
+                      :true-label="0"
+                      :false-label="1"
+                    >{{ item.name }}
+                    </el-checkbox>
+                  </div>
+                </div>
+                <el-input-number
+                  v-model.number="item.width"
+                  controls-position="right"
+                  :min="1"
+                  :max="500"
+                  size="mini"
+                ></el-input-number>
+              </div>
+            </transition-group>
+          </draggable>
+          <draggable
+            v-show="feeInfo == false"
+            v-model="setRowList3"
+            group="site"
+            animation="300"
+            @start="onStart"
+            @end="onEnd"
+            handle=".indraggable"
+          >
+            <transition-group>
+              <div
+                v-for="item in setRowList3"
                 :key="item.surface"
                 class="listStyle"
               >
@@ -605,8 +713,8 @@
         active-text-color="#ffd04b"
         style="display: flex;float: left"
       >
-        <el-menu-item index="1">费用信息</el-menu-item>
-        <el-menu-item index="2">发票信息</el-menu-item>
+        <el-menu-item index='1'>费用信息</el-menu-item>
+        <el-menu-item index='2'>发票信息</el-menu-item>
       </el-menu>
       <el-button
         type="success"
@@ -614,14 +722,16 @@
         @click="addList"
         :disabled="notChange"
         style="float: right;margin-top: 10px"
-        v-if="invoiceInfo == true">新 行</el-button>
+        v-if="feeInfo == false">新 行</el-button>
       <el-table
-        v-if="feeInfo"
+        v-if="feeInfo == true"
         v-loading="loading"
         :data="increase_s"
         @selection-change="handleSelectionChange_s"
+        show-summary
+        :summary-method="listTotal"
       >
-         <el-table-column type="selection" width="55" align="center"/>
+         <el-table-column type="selection" width="60" align="center"/>
         <el-table-column label="序号" type="index" align="center" />
         <el-table-column
           v-for="(item, index) in getRowList2"
@@ -679,10 +789,12 @@
         </el-table-column>
       </el-table>
       <el-table
-        v-if="invoiceInfo"
+        v-if="feeInfo == false"
         v-loading="loading"
         :data="invoiceList"
         @selection-change="handleSelectionChange_s"
+        show-summary
+        :summary-method="listTotal"
       >
         <el-table-column type="selection" width="55" align="center"/>
         <el-table-column label="序号" type="index" align="center" />
@@ -1010,6 +1122,7 @@
           show-summary
           :summary-method="getSum"
           @selection-change="handleSelectionChange_s"
+          show-overflow-tooltip
         >
           <el-table-column type="selection" width="55" align="center" />
           <el-table-column
@@ -1018,30 +1131,30 @@
             width="55"
             align="center"
           />
-          <el-table-column label="货权方" align="center" prop="fName" />
+          <el-table-column label="货权方" align="center" prop="fName" width="200px"/>
           <el-table-column label="提单号" align="center" prop="fMblno" />
           <el-table-column label="船名" align="center" prop="boatName" />
           <el-table-column label="航次" align="center" prop="voyageName" />
-          <el-table-column label="品名" align="center" prop="fProductName" />
-          <el-table-column label="业务日期" align="center">
-            <template slot-scope="scope" v-if="scope.row.fBsdate">
-              <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="业务类型" align="center" prop="fBilltype">
-            <template slot-scope="scope">
-              <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
-              <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
-              <span v-else>{{ scope.row.fBilltype }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column
-            label="作业类型"
-            align="center"
-            prop="fBusinessType"
-          />
-          <el-table-column label="审核日期" align="center" prop="fReviewDate" />
-          <el-table-column label="费用名称" align="center" prop="fFeeName" />
+<!--          <el-table-column label="品名" align="center" prop="fProductName" />-->
+<!--          <el-table-column label="业务日期" align="center">-->
+<!--            <template slot-scope="scope" v-if="scope.row.fBsdate">-->
+<!--              <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>-->
+<!--            </template>-->
+<!--          </el-table-column>-->
+<!--          <el-table-column label="业务类型" align="center" prop="fBilltype">-->
+<!--            <template slot-scope="scope">-->
+<!--              <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>-->
+<!--              <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>-->
+<!--              <span v-else>{{ scope.row.fBilltype }}</span>-->
+<!--            </template>-->
+<!--          </el-table-column>-->
+<!--          <el-table-column-->
+<!--            label="作业类型"-->
+<!--            align="center"-->
+<!--            prop="fBusinessType"-->
+<!--          />-->
+          <el-table-column label="审核日期" align="center" prop="fReviewDate" width="100px"/>
+          <el-table-column label="费用名称" align="center" prop="fFeeName" width="100px"/>
           <el-table-column label="金额" align="center" prop="fAmtdr" />
           <el-table-column
             label="本次金额"
@@ -1060,7 +1173,7 @@
               />
             </template>
           </el-table-column>
-          <el-table-column label="备注" align="center" prop="fRemarks">
+          <el-table-column label="备注" align="center" prop="fRemarks" width="200px">
             <template slot-scope="scope">
               <el-input
                 v-model="scope.row.fRemarks"
@@ -1158,13 +1271,13 @@ export default {
   name: "Charge",
   data() {
     return {
+      show:false,
       portOptions:[],
       unitOptions:[],
       fDNameOptions: [],
       invoiceList:[],
-      invoiceInfo:false,
       feeInfo:true,
-      activeIndex:"1",
+      activeIndex:'1',
       vesselOptions:[],
       mainTable:false,
       //全屏放大
@@ -1310,7 +1423,7 @@ export default {
         },
         {
           surface: "6",
-          label: "fSrcdc",
+          label: "fSrcdcName",
           name: "收/付",
           checked: 0,
           width: 100,
@@ -1573,7 +1686,7 @@ export default {
         fCorpid: null,
         tMblno: null,
         fAmtdr: null,
-        fAmtcr: null,
+        fAmtcr: [],
         fBilltype: null,
         fBillstatus: null,
         fRemarks: null,
@@ -1589,17 +1702,13 @@ export default {
       tableFilter: {
         pageNum: 1,
         pageSize: 10,
-        fBillno: null,
-        fCtrlcorpid: null,
-        fCorpid: null,
-        tMblno: null,
-        fAmtdr: null,
-        fAmtcr: null,
-        fBilltype: null,
-        fBillstatus: null,
-        fRemarks: null,
-        fAccbilldate: null,
-        fDeptid: null,
+        fBillno:null,
+        fCtrlcorpid:null,
+        fCorpid:null,
+        fBillstatus:null,
+        fAmtcr:[],
+        fRemarks:null,
+        timeInterval:null
       },
       approval: [],
       // 表单参数
@@ -1648,7 +1757,6 @@ export default {
         }
       });
     }
-
     this.getRow();
     this.getRow2();
     this.getRow3();
@@ -1667,6 +1775,10 @@ export default {
 
   },
   methods: {
+    handleClose(done) {
+      this.showSetting2 = false
+      this.showSetting3 = false
+    },
     //发票信息新行
     addList(){
       this.invoiceList.push({
@@ -1721,10 +1833,8 @@ export default {
     handleSelect(key, keyPath) {
         if(key === '1') {
           this.feeInfo = true
-          this.invoiceInfo = false
         }else{
           this.feeInfo = false
-          this.invoiceInfo = true
         }
     },
     portRemthod(){
@@ -1994,7 +2104,11 @@ export default {
       columns.forEach((column, index) => {
         if (index === 0) {
           sums[index] = "合计";
-        } else if (index === 12 || index === 13) {
+        } else if (column.label == '应收合计' || column.label == '实收合计' ||
+          column.label == '金额' || column.label == '本次金额' ||
+          column.label == '金额(含税)' || column.label == '合计金额(元)' ||
+          column.label == '税额' || column.label == '数量'
+        ) {
           const values = data.map((item) => Number(item[column.property]));
           if (!values.every((value) => isNaN(value))) {
             sums[index] = values.reduce((prev, curr) => {
@@ -2019,6 +2133,7 @@ export default {
       revocation(data).then((data) => {
         if (data.code === 200) {
           this.$message.success("撤销成功");
+          this.mainTable = false
           this.open = false;
           this.getList();
         }
@@ -2150,10 +2265,17 @@ export default {
     immediateApproval() {
       this.addOrUpdateVisib = true;
       this.$nextTick(() => {
-        this.$refs.ApprovalComments.init(
-          this.approval.billId,
-          this.approval.actId
-        );
+        if(Cookies.get("sysType") == 3){
+          this.$refs.ApprovalComments.init(
+            this.approval.billId,
+            470
+          );
+        }else{
+          this.$refs.ApprovalComments.init(
+            this.approval.billId,
+            this.approval.actId
+          );
+        }
       });
     },
     // 查看审批流
@@ -2175,6 +2297,7 @@ export default {
       formDate.append("tFeeDo", JSON.stringify(this.increase_s));
       backCharge(formDate).then((response) => {
         this.open = false;
+        this.mainTable = false
         this.msgSuccess("操作成功");
         this.getList();
       });
@@ -2413,11 +2536,14 @@ export default {
             fName:this.queryParams.fCorpidName
           })
           this.invoiceList = response.data.tFeeInvoiceList
+          this.$set(this.invoiceList,'fSbu',parseInt(this.invoiceList.fSbu))
           this.mainTable = true
           this.title = "收费列表";
           this.tablefilter = true;
           if (res == 1) {
             this.notChange = true;
+            console.log(this.Operator)
+            console.log(this.Lander)
             if (this.Operator == this.Lander) {
               this.tablefilter = false;
               this.reset();
@@ -2445,6 +2571,7 @@ export default {
                     }
                   });
                 }
+                this.feeInfo = true
                 this.increase_s = response.data.feeDoList;
                 this.fWbuOptions = response.data.feesList;
                 this.queryParams = response.data.tFee;
@@ -2453,6 +2580,9 @@ export default {
                   fName:this.queryParams.fCorpidName
                 })
                 this.invoiceList = response.data.tFeeInvoiceList
+                for(let item in this.invoiceList){
+                  this.$set(this.invoiceList[item],'fSbu',this.invoiceList[item].fSbu + '')
+                }
                 this.mainTable = true
               });
             } else {
@@ -2486,6 +2616,7 @@ export default {
                   }
                 });
               }
+              this.feeInfo = true
               this.increase_s = response.data.feeDoList;
               this.fWbuOptions = response.data.feesList;
               this.queryParams = response.data.tFee;
@@ -2494,6 +2625,9 @@ export default {
                 fName:this.queryParams.fCorpidName
               })
               this.invoiceList = response.data.tFeeInvoiceList
+              for(let item in this.invoiceList){
+                this.$set(this.invoiceList[item],'fSbu',this.invoiceList[item].fSbu + '')
+              }
               this.mainTable = true
             });
           }
@@ -2558,25 +2692,14 @@ export default {
               addcheck(formDate).then(response=>{
                 this.msgSuccess("操作成功");
                 this.getList();
-                this.queryParams = {
-                  fId: null,
-                  pageNum: 1,
-                  pageSize: 10,
-                  fCtrlcorpid:null,
-                  fCorpid:null,
-                  fAccbilldate:null,
-                  fBillno:null,
-                  chargingMethod:null,
-                  bank:null,
-                  invoiceNo:null,
-                  waterBillNo:null,
-                  fRemarks:null,
-                  fSystemType:null,
+                this.notChange = true;
+                this.doNot = true
+                this.queryParams.fBillstatus = '4'
+                console.log(this.Operator)
+                console.log(this.Lander)
+                if (this.Operator == this.Lander) {
+                  this.tablefilter = false;
                 }
-                this.invoiceList = []
-                this.increase_s = []
-                this.doNot = false
-                this.queryParams.fBillstatus = 1
               })
             }
           } else {
@@ -2783,7 +2906,7 @@ export default {
               }
             }
           }
-          MessageBox.confirm("第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
+          MessageBox.confirm("选中的第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               type: 'warning'
@@ -2822,6 +2945,8 @@ export default {
           this.loading = false;
         });
       }else if(Cookies.get("sysType") == 3){
+        // this.tableFilter.fAmtcr[0] = this.tableFilter.firstMoney
+        // this.tableFilter.fAmtcr[1] = this.tableFilter.lastMoney
         listInvoice(this.tableFilter).then(response=>{
           console.log(response);
           response.rows.map((e) => {
@@ -2846,6 +2971,8 @@ export default {
             type: 'warning'
           }
         ).then(() => {
+          this.activeIndex = '1'
+          console.log('1')
           this.mainTable = false
           this.approve = false;
           this.getList();
@@ -3036,20 +3163,21 @@ export default {
     },
     /** 新增按钮操作 */
     handleAdd() {
+      console.log(this.activeIndex)
       this.notChange = false;
       this.doNot = false
       this.hide = true;
       this.reset();
-      (this.pass = {
+      this.pass = {
         fAmtdr: 0, //应收合计
         fAmtcr: 0, //应付合计
         fMblno: "", //提单号
         fName: "", //货权方
         fFeesName: "", //结算单位
         fCorpid: "", //结算单位ID
-      }),
-        // this.queryParams = []
-        (this.increase_s = []);
+      },
+      this.increase_s = [];
+      this.invoiceList = []
       this.queryParams = {
         pageNum: 1,
         pageSize: 10,
@@ -3070,6 +3198,7 @@ export default {
         waterBillNo: null,
         fSystemType: Cookies.get("sysType"),
       };
+      this.feeInfo = true
       this.resetForm("queryParams");
       this.mainTable = true;
       this.title = "添加财务数据主";
@@ -3168,11 +3297,14 @@ export default {
               }
             });
           }
+          this.feeInfo = true
           this.increase_s = response.data.feeDoList;
           this.fWbuOptions = response.data.feesList;
           this.queryParams = response.data.tFee;
           this.invoiceList = response.data.tFeeInvoiceList
-          console.log(this.queryParams)
+          for(let item in this.invoiceList){
+            this.$set(this.invoiceList[item],'fSbu',this.invoiceList[item].fSbu + '')
+          }
           this.fMblnoOptions.push({
             fId:this.queryParams.fCorpid,
             fName:this.queryParams.fCorpidName
@@ -3309,6 +3441,28 @@ export default {
             }
           }
         });
+      }else if(Cookies.get("sysType") == 3){
+        delCharge_s(fIds).then((data) => {
+          switch (data.msg) {
+            case "0": {
+              this.$message.error("当前数据已被其他操作员操作请刷新页面");
+              break;
+            }
+            case "1": {
+              tips = "当前主表有数据从表无数据是否删除";
+              this.delete_S(fIds, tips);
+              break;
+            }
+            case "2": {
+              tips = "当前主表有数据从表有数据是否删除";
+              this.delete_S(fIds, tips);
+              break;
+            }
+            default: {
+              return this.$message.error("未知错误,无状态");
+            }
+          }
+        });
       }
     },
     delete_S(fIds, tips) {
@@ -3322,6 +3476,8 @@ export default {
             return delCharge(fIds);
           } else if (Cookies.get("sysType") == 2) {
             return delCharges(fIds);
+          }else if(Cookies.get("sysType") == 3){
+            return delCharge(fIds);
           }
         })
         .then(() => {

+ 137 - 55
src/views/finance/charge/index.vue

@@ -8,7 +8,9 @@
         v-show="showSearch"
         label-width="68px"
       >
-        <el-form-item label="系统编号" prop="fCtrlcorpid">
+        <el-row>
+          <el-col :span="6">
+            <el-form-item label="系统编号" prop="fCtrlcorpid">
           <el-input
             v-model="tableFilter.fBillno"
             placeholder="请输入系统编号"
@@ -18,7 +20,9 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="货权方" prop="fCtrlcorpid">
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="货权方" prop="fCtrlcorpid">
           <el-input
             v-model="tableFilter.fCtrlcorpid"
             placeholder="请输入货权方"
@@ -28,7 +32,9 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="结算单位" prop="fCorpid">
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="结算单位" prop="fCorpid">
           <el-select
             v-model="tableFilter.fCorpid"
             filterable
@@ -48,31 +54,70 @@
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="收费日期" prop="timeInterval">
-          <el-date-picker
-            type="daterange"
-            size="small"
-            style="width: 240px"
-            v-model="tableFilter.timeInterval"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"
-            value-format="yyyy-MM-dd"
-            :default-time="['00:00:00', '23:59:59']"
-          >
-          </el-date-picker>
-        </el-form-item>
-        <el-form-item>
-          <el-button
-            type="cyan"
-            icon="el-icon-search"
-            size="mini"
-            @click="handleQuery"
-          >搜索</el-button
-          >
-          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >重置</el-button
-          >
-        </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="状态" prop="fBillstatus">
+              <el-input
+                v-model="queryParams.fBillstatus"
+                placeholder="请输入提单号"
+                clearable
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+              />
+            </el-form-item>
+
+          </el-col>
+        </el-row>
+        <el-collapse-transition>
+          <div v-show="show">
+            <el-row>
+              <el-col :span="6">
+                <el-form-item label="实收合计" prop="fAmtcr">
+                  <el-input
+                    v-model="queryParams.fMblno"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                  <el-input
+                    v-model="queryParams.fAmtcr"
+                    placeholder="请输入金额"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="备注" prop="fRemarks">
+                  <el-input
+                    v-model="queryParams.fRemarks"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 200px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="收费日期" prop="timeInterval">
+                  <el-date-picker
+                    type="daterange"
+                    size="small"
+                    style="width: 240px"
+                    v-model="tableFilter.timeInterval"
+                    start-placeholder="开始日期"
+                    end-placeholder="结束日期"
+                    value-format="yyyy-MM-dd"
+                    :default-time="['00:00:00', '23:59:59']"
+                  >
+                  </el-date-picker>
+                </el-form-item>
+              </el-col>
+            </el-row>
+          </div>
+        </el-collapse-transition>
       </el-form>
       <el-row :gutter="10" class="mb8">
         <el-col :span="1.5">
@@ -118,6 +163,32 @@
           </el-button>
         </el-col>
         <div class="tabSetting">
+          <div style="margin-right: 20px">
+            <el-button
+              type="cyan"
+              icon="el-icon-search"
+              size="mini"
+              @click="handleQuery"
+            >搜索</el-button
+            >
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+            >重置</el-button
+            >
+            <el-button
+              v-show="show"
+              @click="show = !show"
+              icon="el-icon-arrow-up"
+              size="mini"
+            >展开</el-button
+            >
+            <el-button
+              v-show="!show"
+              @click="show = !show"
+              icon="el-icon-arrow-down"
+              size="mini"
+            >展开</el-button
+            >
+          </div>
           <right-toolbar
             :showSearch.sync="showSearch"
             @queryTable="getList"
@@ -329,7 +400,7 @@
         @pagination="getList"
       />
     </div>
-    <div v-show="mainTable == true">
+    <div v-if="mainTable == true">
       <el-form
         :model="queryParams"
         :rules="ruless"
@@ -528,7 +599,7 @@
           <el-button type="success" @click="submitForm" size="mini" :disabled="notChange"
           >保 存</el-button
           >
-          <el-button @click="addPage" size="mini">新 增</el-button>
+          <el-button type="primary" @click="addPage" size="mini">新 增</el-button>
         </div>
         <div style="margin: 0 12px">
           <el-button
@@ -1133,6 +1204,7 @@ export default {
   name: "Charge",
   data() {
     return {
+      show:false,
       mainTable:false,
       //全屏放大
       dialogFull: false,
@@ -2300,27 +2372,12 @@ export default {
                 this.open = false;
                 this.msgSuccess("操作成功");
                 this.getList();
-                this.queryParams = {
-                  fId: null,
-                    pageNum: 1,
-                    pageSize: 10,
-                    fBillno: null,
-                    fCtrlcorpid: null,
-                    fCorpid: null,
-                    tMblno: null,
-                    fAmtdr: null,
-                    fAmtcr: null,
-                    fBilltype: null,
-                    fBillstatus: null,
-                    fRemarks: null,
-                    fAccbilldate: null,
-                    fDeptid: null,
-                    chargingMethod: null,
-                    invoiceNo: null,
-                    bank: null,
-                    waterBillNo: null,
+                this.notChange = true;
+                this.doNot = true
+                this.queryParams.fBillstatus = '4'
+                if (this.Operator == this.Lander) {
+                  this.tablefilter = false;
                 }
-                this.increase_s = []
               });
             }
           } else {
@@ -2518,7 +2575,7 @@ export default {
               }
             }
           }
-          MessageBox.confirm("第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
+          MessageBox.confirm("选中的第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               type: 'warning'
@@ -2837,7 +2894,7 @@ export default {
           this.fMblnoOptions = response.data.corps;
           this.mainTable = true
           this.title = "修改收费列表";
-          if (this.DzfeeList) {
+          if (this.increase_s.length != 0) {
             this.doNot = true;
           } else {
             this.doNot = false;
@@ -2868,7 +2925,7 @@ export default {
           this.fMblnoOptions = response.data.corps;
           this.mainTable = true
           this.title = "修改收费列表";
-          if (this.DzfeeList) {
+          if (this.increase_s.length != 0) {
             this.doNot = true;
           } else {
             this.doNot = false;
@@ -2897,8 +2954,9 @@ export default {
           this.fWbuOptions = response.data.feesList;
           this.fMblnoOptions = response.data.corps;
           this.mainTable = true
+          console.log("111")
           this.title = "修改收费列表";
-          if (this.DzfeeList) {
+          if (this.increase_s.length != 0) {
             this.doNot = true;
           } else {
             this.doNot = false;
@@ -3024,6 +3082,28 @@ export default {
             }
           }
         });
+      }else if(Cookies.get("sysType") == 3){
+        delCharge_s(fIds).then((data) => {
+          switch (data.msg) {
+            case "0": {
+              this.$message.error("当前数据已被其他操作员操作请刷新页面");
+              break;
+            }
+            case "1": {
+              tips = "当前主表有数据从表无数据是否删除";
+              this.delete_S(fIds, tips);
+              break;
+            }
+            case "2": {
+              tips = "当前主表有数据从表有数据是否删除";
+              this.delete_S(fIds, tips);
+              break;
+            }
+            default: {
+              return this.$message.error("未知错误,无状态");
+            }
+          }
+        });
       }
     },
     delete_S(fIds, tips) {
@@ -3037,6 +3117,8 @@ export default {
             return delCharge(fIds);
           } else if (Cookies.get("sysType") == 2) {
             return delCharges(fIds);
+          }else if(Cookies.get("sysType") == 3){
+            return delCharge(fIds);
           }
         })
         .then(() => {
@@ -3068,7 +3150,7 @@ export default {
         this.queryParams.fAmtcr += this.increase_s[item].fAmt;
         this.queryParams.fAmtdr += this.increase_s[item].fAmtdr;
       }
-      if (this.increase_s == 0) {
+      if (this.increase_s.length == 0) {
         console.log("111");
         this.doNot = false;
       } else {

+ 186 - 90
src/views/finance/contrast/index.vue

@@ -7,80 +7,121 @@
         ref="queryParams_s"
         :inline="true"
         v-show="showSearch"
-        label-width="68px"
+        label-width="70px"
       >
-        <el-form-item label="货权方" prop="fCtrlcorpid">
-          <el-input
-            v-model="tablefilter.fCtrlcorpid"
-            placeholder="请输入客户名称"
-            filterable
-            remote
-            clearable
-            size="small"
-            style="width: 200px"
-            @keyup.enter.native="handleQuery"
-            :remote-method="corpsRemoteMethod"
-          />
-        </el-form-item>
-
-        <el-form-item label="结算单位" prop="fCorpid">
-          <el-select
-            v-model="tablefilter.fCorpid"
-            placeholder="请选择结算单位"
-            filterable
-            remote
-            clearable
-            size="small"
-            style="width: 200px"
-            @keyup.enter.native="handleQuery"
-            :remote-method="corpsRemoteMethod"
-          >
-            <el-option
-              v-for="(dict, index) in fMblnoOptions"
-              :key="index.fId"
-              :label="dict.fName"
-              :value="dict.fId"
-            ></el-option>
-          </el-select>
-        </el-form-item>
-
-        <el-form-item label="对账日期" prop="timeInterval">
-          <el-date-picker
-            v-model="tablefilter.timeInterval"
-            size="small"
-            style="width: 240px"
-            value-format="yyyy-MM-dd"
-            type="daterange"
-            range-separator="-"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"
-          ></el-date-picker>
-        </el-form-item>
-
-        <el-form-item label="系统编号" prop="fBillno">
-          <el-input
-            v-model="tablefilter.fBillno"
-            placeholder="请输入系统编号"
-            clearable
-            size="small"
-            style="width: 200px"
-            @keyup.enter.native="handleQuery"
-          />
-        </el-form-item>
-
-        <el-form-item>
-          <el-button
-            type="cyan"
-            icon="el-icon-search"
-            size="mini"
-            @click="handleQuery"
-          >搜索</el-button
-          >
-          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >重置</el-button
-          >
-        </el-form-item>
+        <el-row>
+          <el-col :span="6">
+            <el-form-item label="货权方" prop="fCtrlcorpid">
+              <el-input
+                v-model="tablefilter.fCtrlcorpid"
+                placeholder="请输入客户名称"
+                filterable
+                remote
+                clearable
+                size="small"
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+                :remote-method="corpsRemoteMethod"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="结算单位" prop="fCorpid">
+              <el-select
+                v-model="tablefilter.fCorpid"
+                placeholder="请选择结算单位"
+                filterable
+                remote
+                clearable
+                size="small"
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+                :remote-method="corpsRemoteMethod"
+              >
+                <el-option
+                  v-for="(dict, index) in fMblnoOptions"
+                  :key="index.fId"
+                  :label="dict.fName"
+                  :value="dict.fId"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="状态" prop="fBillstatus">
+              <el-input
+                v-model="queryParams.fBillstatus"
+                placeholder="请输入提单号"
+                clearable
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="系统编号" prop="fBillno">
+              <el-input
+                v-model="tablefilter.fBillno"
+                placeholder="请输入系统编号"
+                clearable
+                size="small"
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+              />
+          </el-form-item>
+          </el-col>
+        </el-row>
+        <el-collapse-transition>
+          <div v-show="show">
+            <el-row>
+              <el-col :span="6">
+                <el-form-item label="对账金额" prop="fMblno">
+                  <el-input
+                    v-model="queryParams.fMblno"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                  <el-input
+                    v-model="queryParams.fAmtcr"
+                    placeholder="请输入金额"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="备注" prop="fRemarks">
+                  <el-input
+                    v-model="queryParams.fRemarks"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 200px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="对账日期" prop="timeInterval">
+                  <el-date-picker
+                    v-model="tablefilter.timeInterval"
+                    size="small"
+                    style="width: 240px"
+                    value-format="yyyy-MM-dd"
+                    type="daterange"
+                    range-separator="-"
+                    start-placeholder="开始日期"
+                    end-placeholder="结束日期"
+                  ></el-date-picker>
+                </el-form-item>
+              </el-col>
+            </el-row>
+          </div>
+        </el-collapse-transition>
       </el-form>
+
       <el-row :gutter="10" class="mb8">
         <el-col :span="1.5">
           <el-button
@@ -114,6 +155,32 @@
           >
         </el-col>
         <div class="tabSetting">
+          <div style="margin-right: 20px">
+            <el-button
+              type="cyan"
+              icon="el-icon-search"
+              size="mini"
+              @click="handleQuery"
+            >搜索</el-button
+            >
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+            >重置</el-button
+            >
+            <el-button
+              v-show="show"
+              @click="show = !show"
+              icon="el-icon-arrow-up"
+              size="mini"
+            >展开</el-button
+            >
+            <el-button
+              v-show="!show"
+              @click="show = !show"
+              icon="el-icon-arrow-down"
+              size="mini"
+            >展开</el-button
+            >
+          </div>
           <right-toolbar
             :showSearch.sync="showSearch"
             @queryTable="getList"
@@ -315,7 +382,7 @@
       />
     </div>
     <!--    新增修改页面-->
-    <div v-show="mainTable == true">
+    <div v-if="mainTable == true">
       <el-form
         ref="ruless"
         :model="queryParams"
@@ -417,6 +484,12 @@
         </el-form-item>
         <div style="width: 100%; display: flex; justify-content: space-between">
           <div style="display: flex">
+            <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" size="mini" @click="cancel"
+            >返回列表</el-button
+            >
+            <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" size="mini" @click="homePage"
+            >返回首页</el-button
+            >
             <el-button
               type="warning"
               size="mini"
@@ -460,19 +533,13 @@
             >查看审批流</el-button
             >
             <el-button
-              type="primary"
+              type="success"
               size="mini"
               @click="submitForm(typevalue)"
               :disabled="notChange"
             >保 存</el-button
             >
-            <el-button v-if="cancelButton === true" size="mini" @click="cancel"
-            >返 回</el-button
-            >
-            <el-button v-if="cancelButton === false" size="mini" @click="homePage"
-            >返 回</el-button
-            >
-            <el-button @click="addPage" size="mini">新 增</el-button>
+            <el-button @click="addPage" type="primary" size="mini">新 增</el-button>
           </div>
           <div style="margin: 0 12px">
             <el-button
@@ -564,6 +631,8 @@
         v-loading="loading"
         :data="DzfeeList"
         @selection-change="handleSelectionChange_s"
+        show-summary
+        :summary-method="listTotal"
       >
         <el-table-column label="行号" align="center" type="index" />
         <el-table-column
@@ -1178,6 +1247,7 @@ export default {
 
   data() {
     return {
+      show: false,
       mainTable:false,
       //全屏放大
       dialogFull: false,
@@ -1222,7 +1292,7 @@ export default {
         {
           surface: "4",
           label: "fAccbilldate",
-          name: "账日期",
+          name: "账日期",
           checked: 0,
           width: 100,
         },
@@ -1664,8 +1734,7 @@ export default {
       resetModule(this.data).then((res) => {
         if (res.code == 200) {
           this.showSetting = false;
-          this.setRowList = this.tableDate;
-          this.getRowList = this.tableDate;
+          this.setRowList = this.getRowList = this.$options.data().tableDate
         }
       });
     },
@@ -1727,8 +1796,7 @@ export default {
       resetModule(this.data).then((res) => {
         if (res.code == 200) {
           this.showSetting2 = false;
-          this.setRowList2 = this.tableDate2;
-          this.getRowList2 = this.tableDate2;
+          this.setRowList2 = this.getRowList2 = this.$options.data().tableDate2
         }
       });
     },
@@ -1748,7 +1816,7 @@ export default {
       columns.forEach((column, index) => {
         if (index === 0) {
           sums[index] = "合计";
-        } else if (index === 7 || index === 8) {
+        } else if (column.label == '金额' || column.label == '对账金额' || column.label == '本次金额') {
           const values = data.map((item) => Number(item[column.property]));
           if (!values.every((value) => isNaN(value))) {
             sums[index] = values.reduce((prev, curr) => {
@@ -2011,8 +2079,13 @@ export default {
               Cfee(formDate).then((response) => {
                 this.open = false;
                 this.msgSuccess("操作成功");
+                this.doNot = true;
+                this.notChange = true;
+                this.queryParams.fBillstatus = '4'
+                if (this.Operator == this.Lander) {
+                  this.disappear = false;
+                }
                 this.getList();
-                this.handleAdd()
               });
             }
           } else {
@@ -2257,7 +2330,7 @@ export default {
               }
             }
           }
-          MessageBox.confirm("第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
+          MessageBox.confirm("选中的第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               type: 'warning'
@@ -2819,7 +2892,6 @@ export default {
           if (res == 1) {
             this.notChange = true;
             if (this.Operator == this.Lander) {
-              console.log("111")
               this.disappear = false;
               this.reset();
               this.pass = {
@@ -3166,6 +3238,28 @@ export default {
             }
           }
         });
+      }else if(Cookies.get("sysType") == 3){
+        detailFee(fIds).then((res) => {
+          switch (res.msg) {
+            case "0": {
+              this.$message.error("当前数据已被其他操作员操作,请刷新页面");
+              break;
+            }
+            case "1": {
+              tips = "当前主表有数据,从表无数据,确认是否删除?";
+              this.delete_s(fIds, tips);
+              break;
+            }
+            case "2": {
+              tips = "当前主表有数据,从表有数据,确认是否删除?";
+              this.delete_s(fIds, tips);
+              break;
+            }
+            default: {
+              return this.$message.error("未知错误,无状态");
+            }
+          }
+        });
       }
     },
     delete_s(fIds, tips) {
@@ -3179,6 +3273,8 @@ export default {
             return delFee(fIds);
           } else if (Cookies.get("sysType") == 2) {
             return delFleet(fIds);
+          }else if(Cookies.get("sysType") == 3){
+            return delFee(fIds);
           }
         })
         .then(() => {

+ 145 - 77
src/views/finance/payment/index.vue

@@ -9,7 +9,9 @@
         v-show="showSearch"
         label-width="68px"
       >
-        <el-form-item label="系统编号" prop="fCtrlcorpid">
+        <el-row>
+          <el-col :span="6">
+            <el-form-item label="系统编号" prop="fCtrlcorpid">
           <el-input
             v-model="tableFilter.fBillno"
             placeholder="请输入系统编号"
@@ -19,7 +21,9 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="货权方" prop="fCtrlcorpid">
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="货权方" prop="fCtrlcorpid">
           <el-input
             v-model="tableFilter.fCtrlcorpid"
             placeholder="请输入货权方"
@@ -29,7 +33,9 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="结算单位" prop="fCorpid">
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="结算单位" prop="fCorpid">
           <el-select
             v-model="tableFilter.fCorpid"
             filterable
@@ -49,31 +55,69 @@
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="对账日期" prop="timeInterval">
-          <el-date-picker
-            type="daterange"
-            size="small"
-            style="width: 240px"
-            v-model="tableFilter.timeInterval"
-            start-placeholder="开始日期"
-            end-placeholder="结束日期"
-            value-format="yyyy-MM-dd"
-            :default-time="['00:00:00', '23:59:59']"
-          >
-          </el-date-picker>
-        </el-form-item>
-        <el-form-item>
-          <el-button
-            type="cyan"
-            icon="el-icon-search"
-            size="mini"
-            @click="handleQuery"
-          >搜索</el-button
-          >
-          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >重置</el-button
-          >
-        </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="状态" prop="fBillstatus">
+              <el-input
+                v-model="queryParams.fBillstatus"
+                placeholder="请输入提单号"
+                clearable
+                style="width: 200px"
+                @keyup.enter.native="handleQuery"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-collapse-transition>
+          <div v-show="show">
+            <el-row>
+              <el-col :span="6">
+                <el-form-item label="对账金额" prop="fMblno">
+                  <el-input
+                    v-model="queryParams.fMblno"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                  <el-input
+                    v-model="queryParams.fAmtcr"
+                    placeholder="请输入金额"
+                    clearable
+                    style="width: 100px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="备注" prop="fRemarks">
+                  <el-input
+                    v-model="queryParams.fRemarks"
+                    placeholder="请输入提单号"
+                    clearable
+                    style="width: 200px"
+                    @keyup.enter.native="handleQuery"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="6">
+                <el-form-item label="对账日期" prop="timeInterval">
+                  <el-date-picker
+                    type="daterange"
+                    size="small"
+                    style="width: 240px"
+                    v-model="tableFilter.timeInterval"
+                    start-placeholder="开始日期"
+                    end-placeholder="结束日期"
+                    value-format="yyyy-MM-dd"
+                    :default-time="['00:00:00', '23:59:59']"
+                  >
+                  </el-date-picker>
+                </el-form-item>
+              </el-col>
+            </el-row>
+          </div>
+        </el-collapse-transition>
       </el-form>
       <el-row :gutter="10" class="mb8">
         <el-col :span="1.5">
@@ -97,17 +141,6 @@
           >修改
           </el-button>
         </el-col>
-        <!--      <el-col :span="1.5">-->
-        <!--        <el-button-->
-        <!--          type="danger"-->
-        <!--          icon="el-icon-delete"-->
-        <!--          size="mini"-->
-        <!--          :disabled="multiple"-->
-        <!--          @click="handleDelete"-->
-        <!--          v-hasPermi="['finance:charge:remove']"-->
-        <!--        >删除-->
-        <!--        </el-button>-->
-        <!--      </el-col>-->
         <el-col :span="1.5">
           <el-button
             type="warning"
@@ -119,6 +152,32 @@
           </el-button>
         </el-col>
         <div class="tabSetting">
+          <div style="margin-right: 20px">
+            <el-button
+              type="cyan"
+              icon="el-icon-search"
+              size="mini"
+              @click="handleQuery"
+            >搜索</el-button
+            >
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+            >重置</el-button
+            >
+            <el-button
+              v-show="show"
+              @click="show = !show"
+              icon="el-icon-arrow-up"
+              size="mini"
+            >展开</el-button
+            >
+            <el-button
+              v-show="!show"
+              @click="show = !show"
+              icon="el-icon-arrow-down"
+              size="mini"
+            >展开</el-button
+            >
+          </div>
           <right-toolbar
             :showSearch.sync="showSearch"
             @queryTable="getList"
@@ -314,7 +373,7 @@
       />
     </div>
     <!--    新增页面-->
-    <div v-show="mainTable == true">
+    <div v-if="mainTable == true">
       <template slot="title">
         <div class="avue-crud__dialog__header">
           <span class="el-dialog__title">
@@ -488,6 +547,12 @@
       </el-form>
       <div style="width: 100%; display: flex; justify-content: space-between">
         <div style="display: flex">
+          <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" size="mini" @click="cancel"
+          >返回列表</el-button
+          >
+          <el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" size="mini" @click="homePage"
+          >返回首页</el-button
+          >
           <el-button
             type="warning"
             size="mini"
@@ -537,12 +602,6 @@
           <el-button type="primary" @click="submitForm" size="mini" :disabled="notChange"
           >保 存</el-button
           >
-          <el-button v-if="cancelButton === true" size="mini" @click="cancel"
-          >返 回</el-button
-          >
-          <el-button v-if="cancelButton === false" size="mini" @click="homePage"
-          >返 回</el-button
-          >
           <el-button @click="addPage" size="mini">新 增</el-button>
         </div>
         <div style="margin: 0 12px">
@@ -632,6 +691,8 @@
         v-loading="loading"
         :data="increase_s"
         @selection-change="handleSelectionChange_s"
+        show-summary
+        :summary-method="listTotal"
       >
         <!-- <el-table-column type="selection" width="55" align="center"/> -->
         <el-table-column label="序号" type="index" align="center" />
@@ -1844,6 +1905,7 @@ export default {
   name: "Charge",
   data() {
     return {
+      show:false,
       drag: false,
       mainTable:false,
       tableDate: [
@@ -1922,14 +1984,14 @@ export default {
         {
           surface: "11",
           label: "fAmtdr",
-          name: "应合计",
+          name: "应合计",
           checked: 0,
           width: 100,
         },
         {
           surface: "12",
           label: "fAmtcr",
-          name: "实合计",
+          name: "实合计",
           checked: 0,
           width: 100,
         },
@@ -2304,8 +2366,7 @@ export default {
       resetModule(this.data).then((res) => {
         if (res.code == 200) {
           this.showSetting = false;
-          this.setRowList = this.tableDate;
-          this.getRowList = this.tableDate;
+          this.setRowList = this.getRowList = this.$options.data().tableDate
         }
       });
     },
@@ -2367,8 +2428,7 @@ export default {
       resetModule(this.data).then((res) => {
         if (res.code == 200) {
           this.showSetting2 = false;
-          this.setRowList2 = this.tableDate2;
-          this.getRowList2 = this.tableDate2;
+          this.setRowList2 = this.getRowList2 = this.$options.data().tableDate2
         }
       });
     },
@@ -2382,7 +2442,7 @@ export default {
     },
     //财务主取消
     signOut() {
-      if (this.increase_s == 0) {
+      if (this.increase_s.length == 0) {
         this.doNot = false;
       } else {
         this.doNot = true;
@@ -2397,7 +2457,7 @@ export default {
       columns.forEach((column, index) => {
         if (index === 0) {
           sums[index] = "合计";
-        } else if (index === 12 || index === 13 || index === 14) {
+        } else if (column.label == '应付合计' || column.label == '实付合计' || column.label == '金额' || column.label == '本次金额') {
           const values = data.map((item) => Number(item[column.property]));
           if (!values.every((value) => isNaN(value))) {
             sums[index] = values.reduce((prev, curr) => {
@@ -3035,27 +3095,12 @@ export default {
               collectFee(formDate).then((response) => {
                 this.msgSuccess("操作成功");
                 this.getList();
-                this.queryParams = {
-                  fId: null,
-                    pageNum: 1,
-                    pageSize: 10,
-                    fBillno: null,
-                    fCtrlcorpid: null,
-                    fCorpid: null,
-                    tMblno: null,
-                    fAmtdr: null,
-                    fAmtcr: null,
-                    fBilltype: null,
-                    fBillstatus: null,
-                    fRemarks: null,
-                    fAccbilldate: null,
-                    fDeptid: null,
-                    chargingMethod: null,
-                    invoiceNo: null,
-                    bank: null,
-                    waterBillNo: null,
+                this.doNot = true;
+                this.notChange = true;
+                this.queryParams.fBillstatus = '4'
+                if (this.Operator == this.Lander) {
+                  this.tablefilter = false;
                 }
-                this.increase_s = []
               });
             }
           } else {
@@ -3197,7 +3242,6 @@ export default {
               for (let li in this.increase_s) {
                 if (this.selection[item].fSrcid !== this.increase_s[li].fSrcid) {
                   this.Fee = this.increase_s.concat(this.selection);
-                  console.log(this.Fee);
                   let result = [];
                   let obj = {};
                   for (let lis in this.Fee) {
@@ -3253,7 +3297,7 @@ export default {
               }
             }
           }
-          MessageBox.confirm("第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
+          MessageBox.confirm("选中的第" + (Num).slice(0,Num.length-1) + "行重复,请重新选择",{
               confirmButtonText: '确定',
               cancelButtonText: '取消',
               type: 'warning'
@@ -3741,6 +3785,28 @@ export default {
             }
           }
         });
+      }else if(Cookies.get("sysType") == 3){
+        delCharge_s(fIds).then((data) => {
+          switch (data.msg) {
+            case "0": {
+              this.$message.error("当前数据已被其他操作员操作请刷新页面");
+              break;
+            }
+            case "1": {
+              tips = "当前主表有数据从表无数据是否删除";
+              this.delete_S(fIds, tips);
+              break;
+            }
+            case "2": {
+              tips = "当前主表有数据从表有数据是否删除";
+              this.delete_S(fIds, tips);
+              break;
+            }
+            default: {
+              return this.$message.error("未知错误,无状态");
+            }
+          }
+        });
       }
     },
     delete_S(fIds, tips) {
@@ -3754,6 +3820,8 @@ export default {
             return delCharge(fIds);
           } else if (Cookies.get("sysType") == 2) {
             return delCharges(fIds);
+          }else if(Cookies.get("sysType") == 3){
+            return delCharge(fIds);
           }
         })
         .then(() => {
@@ -3785,7 +3853,7 @@ export default {
         this.queryParams.fAmtcr += this.increase_s[item].fAmt;
         this.queryParams.fAmtdr += this.increase_s[item].fAmtdr;
       }
-      if (this.increase_s == 0) {
+      if (this.increase_s.length == 0) {
         this.doNot = false;
       } else {
         this.doNot = true;

Some files were not shown because too many files changed in this diff