Jelajahi Sumber

箱分布修改

wengyuwen 4 tahun lalu
induk
melakukan
949bd8ea8d

+ 8 - 1
src/api/kaihe/containerNews/boxDistribution.js

@@ -3,7 +3,14 @@ import request from '@/utils/request'
 
 export function listCorps(query) {
   return request({
-    url: '/shipping/address/selectStockDump',
+    url: '/shipping/cntrno/getTCntrnoMessage',
+    method: 'get',
+    params: query
+  })
+}
+export function listName(query) {
+  return request({
+    url: '/shipping/cntrno/getTCntrnoChange',
     method: 'get',
     params: query
   })

+ 47 - 48
src/views/kaihe/containerNews/boxDistribution/index.vue

@@ -2,15 +2,9 @@
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-row>
-          <el-form-item label="地点" prop="fTypeid">
-            <el-select style="width: 240px" v-model="queryParams.fTypeid" placeholder="请选择客户类别" clearable size="small">
-              <el-option
-                v-for="dict in fTypeidOptions"
-                :key="dict.dictValue"
-                :label="dict.dictLabel"
-                :value="dict.dictValue"
-              />
-            </el-select>
+          <el-form-item label="地点" prop="fUpdateaddress">
+            <el-input style="width: 240px" v-model="queryParams.fUpdateaddress" placeholder="请选择客户类别" clearable size="small">
+            </el-input>
           </el-form-item>
 
           <el-form-item label="箱号" prop="fNo">
@@ -33,20 +27,28 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="corpsList" @selection-change="handleSelectionChange">
+    <el-table @cell-click="modiEy" v-loading="loading" :data="corpsList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column type="index" width="55" label="行号" align="center" />
-      <el-table-column :show-overflow-tooltip="true" label="地点" align="center" prop="fTypename" width="200px"/>
-      <el-table-column label="20GP" align="center" prop="fNo" width="100px"/>
-      <el-table-column :show-overflow-tooltip="true" label="40GP" align="center" prop="fName" width="100px"
-      />
-      <el-table-column :show-overflow-tooltip="true" label="40HC" align="center" width="100px" prop="fCname" />
-      <el-table-column :show-overflow-tooltip="true" label="40HR" align="center" prop="fEname" />
-      <el-table-column :show-overflow-tooltip="true" label="空" align="center" prop="fTel" />
+      <el-table-column
+        v-for="(item,index) in boxDistributionName"
+        :key="item.index"
+        :label="item"
+        :value="item.index"
+        :prop="item"
+      >
+      </el-table-column>
+<!--      <el-table-column :show-overflow-tooltip="true" label="地点" align="center" prop="fTypename" width="200px"/>-->
+<!--      <el-table-column label="20GP" align="center" prop="fNo" width="100px"/>-->
+<!--      <el-table-column :show-overflow-tooltip="true" label="40GP" align="center" prop="fName" width="100px"-->
+<!--      />-->
+<!--      <el-table-column :show-overflow-tooltip="true" label="40HC" align="center" width="100px" prop="fCname" />-->
+<!--      <el-table-column :show-overflow-tooltip="true" label="40HR" align="center" prop="fEname" />-->
+<!--      <el-table-column :show-overflow-tooltip="true" label="空" align="center" prop="fTel" />-->
 
-      <el-table-column label="重" align="center" prop="createBy" />
-      <el-table-column label="好" align="center" prop="createTime" width="100"/>
-      <el-table-column label="坏" align="center" prop="updateBy" width="100px"/>
+<!--      <el-table-column label="重" align="center" prop="createBy" />-->
+<!--      <el-table-column label="好" align="center" prop="createTime" width="100"/>-->
+<!--      <el-table-column label="坏" align="center" prop="updateBy" width="100px"/>-->
     </el-table>
 
     <pagination
@@ -61,7 +63,7 @@
 </template>
 
 <script>
-  import { listCorps, getCorps, delCorps, addCorps, updateCorps, changeCorpsStatus,exportCorps } from "@/api/basicdata/corps";
+  import { listCorps, listName, getCorps, delCorps, changeCorpsStatus,exportCorps } from "@/api/kaihe/containerNews/boxDistribution";
   import {queryUserVal} from "@/api/system/user";
   import { isArray } from '@/utils/validate'
   import Vue from 'vue'
@@ -73,6 +75,9 @@
       return {
         //默认显示第一行
         queryParamsHidden:false,
+        //标签名
+        boxDistributionName:[],
+
 
         //全屏放大
         dialogFull:false,
@@ -107,33 +112,7 @@
         queryParams: {
           pageNum: 1,
           pageSize: 10,
-          fTypeid: null,
-          fNo: null,
-          fName: null,
-          fCname: null,
-          fEname: null,
-          fTel: null,
-          fFax: null,
-          fEmail: null,
-          fManage: null,
-          fAddr: null,
-          fEaddr: null,
-          fScale: null,
-          fProvince: null,
-          fCity: null,
-          fStltypeid: null,
-          fStldays: null,
-          fContractno: null,
-          fContractb: null,
-          fContracte: null,
-          fTax: null,
-          fInvtel: null,
-          fInvaddr: null,
-          fBankno: null,
-          fBankname: null,
-          fUbankno: null,
-          fUbankname: null,
-          fStatus: null,
+          fUpdateaddress:null,
         },
         // 表单参数
         form: {},
@@ -173,6 +152,23 @@
       });
     },
     methods: {
+      modiEy(row, column, cell, event){
+        // console.log(row)
+        console.log(column)
+        // console.log(cell)
+        // console.log(event)
+        // console.log(column.property)
+        console.log(column.label)
+        console.log(row["地点"])
+        let res = {
+          column:column.label,
+          row:row["地点"]
+        }
+        this.$router.push({
+          path: "/containerNews/modifyPage",
+          query: { data: JSON.stringify(res) },
+        });
+      },
       full(){
         this.dialogFull = !this.dialogFull
       },
@@ -193,6 +189,9 @@
       /** 查询客户详情列表 */
       getList() {
         this.loading = true;
+        listName().then(response =>{
+          this.boxDistributionName = response.rows
+        })
         listCorps(this.queryParams).then(response => {
           this.corpsList = response.rows;
           this.total = response.total;

+ 8 - 3
src/views/kaihe/containerNews/modifyPage/index.vue

@@ -48,9 +48,10 @@
     </el-form>
 
     <el-row :gutter="10" class="mb8">
-        <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>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      <el-button type="cyan"  size="mini" @click="">提交</el-button>
+<!--        <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>-->
+<!--      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
     </el-row>
 
     <el-table v-loading="loading" :data="corpsList" @selection-change="handleSelectionChange">
@@ -198,6 +199,10 @@
         this.statusOptions = response.data;
       });
     },
+    activated() {
+      console.log(this.$route.query.data)
+
+    },
     methods: {
       full(){
         this.dialogFull = !this.dialogFull

+ 26 - 11
src/views/warehouseBusiness/cargoClearance/index.vue

@@ -2795,7 +2795,7 @@ import {
   exportStockTransfer,
   delstockTransfer_s,
   serialNumber
-} from "@/api/warehouseBusiness/cargoClearance";
+} from "@/api/warehouseBusiness/stockTransfer";
 
 import { listAgreement, operationAgreement } from "@/api/agreement/agreement";
 
@@ -3294,6 +3294,7 @@ export default {
       queryParams: {
         pageNum: 1,
         pageSize: 50,
+        type:2,
         fBillno: null,
         createBy: null,
         createTime: null,
@@ -3344,7 +3345,7 @@ export default {
         fMblno: null,
         fCorpid: null,
         fWarehouseid: null,
-        fInwarehouseid:null
+        fInwarehouseid:null,
       },
       // 表单参数
       form: {
@@ -3354,7 +3355,7 @@ export default {
         fBsdates: null,
         fTrademodeid: null,
         fWarehouseid: null,
-        fBstime:''
+        fBstime:'',
       },
       // 表单校验
       rules: {
@@ -3481,7 +3482,7 @@ export default {
     save() {
       this.showSetting = false;
       this.data = {
-        tableName: "调拨",
+        tableName: "货物通关",
         userId: Cookies.get("userName"),
         sysTableSetList: this.setRowList,
       };
@@ -4197,17 +4198,14 @@ export default {
           fBusinessType: this.dialogWhgenlegList[whgen].fBusinessType + '',
           fPlangrossweight: this.dialogWhgenlegList[whgen].fGrossweightblc,
           fOriginalbilldate: this.dialogWhgenlegList[whgen].fOriginalbilldate,
-
-
           fWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
-
-
           fWarehouselocids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fTransferWarehouselocid: null,
           remark: null,
         });
       }
+      this.updateDeduplication()
       this.whgenlegVisible = false;
     },
     // 作业单打印
@@ -4552,7 +4550,8 @@ export default {
       this.title = "调拨单";
       this.formBrowseStatus = false;
       this.form = {
-        fBstime:new Date()
+        fBstime:new Date(),
+        type:2
       }
       console.log(this.Operator,this.Lander)
     },
@@ -4859,7 +4858,7 @@ export default {
         listFees(queryParams).then((response) => {
           this.fWbuOptions = response.rows;
         });
-        console.log(this.Operator,"111",this.Lander)
+        this.register()
       });
     },
     // 数量计算
@@ -5064,6 +5063,7 @@ export default {
         if (valid) {
           let listSelection = JSON.parse(JSON.stringify(this.dataListSelection))
           let formData = new window.FormData();
+          formData.append("type", '2');
           formData.append("warehouseBills", JSON.stringify(this.form));
           formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
           formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
@@ -5183,6 +5183,7 @@ export default {
                 setTimeout(() => {
                   let formData = new window.FormData()
                   this.form.fItemsStatus = 4
+                  formData.append("type", '2');
                   // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid
                   formData.append("warehouseBills", JSON.stringify(this.form));
                   formData.append("warehousebillsitems", JSON.stringify(this.dataList));
@@ -5428,6 +5429,8 @@ export default {
       this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
       this.$set(this.form, 'fProductName', Array.from(new Set(fProductName)).join(","))
       this.$set(this.form, 'fMblno', Array.from(new Set(fMblno)).join(","))
+      this.form.fMblno = this.form.fMblno.substring(0,this.form.fMblno.length-1)
+      console.log(this.form.fMblno)
 
     },
     // 保存
@@ -5448,8 +5451,10 @@ export default {
           }
           setTimeout(() => {
             this.form.fBillstatus = 2
+            console.log(this.dataList)
             let formData = new window.FormData()
             // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid
+            formData.append("type", '2');
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("warehousebillsitems", JSON.stringify(this.dataList));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
@@ -5467,9 +5472,11 @@ export default {
               this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
               this.$set(this.form, 'fChargedate', Date.parse(this.form.fChargedate))
               this.dataList = response.data.warehousebillsitems
+              console.log(response.data.warehousebillsitems)
               for (let li in this.dataList) {
                 this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
                 this.$set(this.dataList[li], 'fBusinessType', this.dataList[li].fBusinessType + '')
+                console.log(this.dataList[li].fMblno)
               }
             })
           }, 200);
@@ -5491,7 +5498,6 @@ export default {
     },
     /** 提交按钮 */
     submitForm() {
-      this.updateDeduplication()
       this.$refs['form'].validate((valid) => {
         if (this.dataList.length === 0) {
           this.$message.error('请新增库存明细!')
@@ -5581,6 +5587,7 @@ export default {
               this.form.fId = this.fid
             }
             let formData = new window.FormData()
+            formData.append("type", '2');
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("warehousebillsitems", JSON.stringify(this.dataList));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
@@ -5697,8 +5704,16 @@ export default {
     deleteRow(index, rows) {
       rows.splice(index, 1);
       if (this.dataList.length === 0) {
+        this.form.fMblno = ''
         this.formBrowseStatus = false
         return false
+      }else {
+        let fMblno = []
+        for(let item in this.dataList){
+          fMblno.push(this.dataList[item].fMblno)
+          this.$set(this.form,'fMblno',Array.from(new Set(fMblno)).join(","))
+          this.form.fMblno = this.form.fMblno.substring(0,this.form.fMblno.length-1)
+        }
       }
       let sum = 0
       for (let li in this.dataList) {

+ 17 - 8
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -3276,6 +3276,7 @@ export default {
       queryParams: {
         pageNum: 1,
         pageSize: 50,
+        type:1,
         fBillno: null,
         createBy: null,
         createTime: null,
@@ -3326,7 +3327,7 @@ export default {
         fMblno: null,
         fCorpid: null,
         fWarehouseid: null,
-        fInwarehouseid:null
+        fInwarehouseid:null,
       },
       // 表单参数
       form: {
@@ -3336,7 +3337,7 @@ export default {
         fBsdates: null,
         fTrademodeid: null,
         fWarehouseid: null,
-        fBstime:''
+        fBstime:'',
       },
       // 表单校验
       rules: {
@@ -4177,17 +4178,14 @@ export default {
           fBusinessType: this.dialogWhgenlegList[whgen].fBusinessType + '',
           fPlangrossweight: this.dialogWhgenlegList[whgen].fGrossweightblc,
           fOriginalbilldate: this.dialogWhgenlegList[whgen].fOriginalbilldate,
-
-
           fWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
-
-
           fWarehouselocids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fTransferWarehouselocid: null,
           remark: null,
         });
       }
+      this.updateDeduplication()
       this.whgenlegVisible = false;
     },
     // 作业单打印
@@ -4834,6 +4832,7 @@ export default {
         listFees(queryParams).then((response) => {
           this.fWbuOptions = response.rows;
         });
+        this.register()
       });
     },
     // 数量计算
@@ -5038,6 +5037,7 @@ export default {
         if (valid) {
           let listSelection = JSON.parse(JSON.stringify(this.dataListSelection))
           let formData = new window.FormData();
+          formData.append("type", '1');
           formData.append("warehouseBills", JSON.stringify(this.form));
           formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
           formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
@@ -5157,6 +5157,7 @@ export default {
                 setTimeout(() => {
                   let formData = new window.FormData()
                   this.form.fItemsStatus = 4
+                  formData.append("type", '1');
                   // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid
                   formData.append("warehouseBills", JSON.stringify(this.form));
                   formData.append("warehousebillsitems", JSON.stringify(this.dataList));
@@ -5406,7 +5407,6 @@ export default {
     },
     // 保存
     saveForm () {
-      this.updateDeduplication()
       this.$refs['form'].validate((valid) => {
         // if (this.dataList.length === 0) {
         //   this.$message.error('请添加库存明细!')
@@ -5419,7 +5419,7 @@ export default {
           setTimeout(() => {
             this.form.fBillstatus = 2
             let formData = new window.FormData()
-            // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid
+            formData.append("type", '1');
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("warehousebillsitems", JSON.stringify(this.dataList));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
@@ -5550,6 +5550,7 @@ export default {
               this.form.fId = this.fid
             }
             let formData = new window.FormData()
+            formData.append("type", '1');
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("warehousebillsitems", JSON.stringify(this.dataList));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
@@ -5666,8 +5667,16 @@ export default {
     deleteRow(index, rows) {
       rows.splice(index, 1);
       if (this.dataList.length === 0) {
+        this.form.fMblno = ''
         this.formBrowseStatus = false
         return false
+      }else {
+        let fMblno = []
+        for(let item in this.dataList){
+          fMblno.push(this.dataList[item].fMblno)
+          this.$set(this.form,'fMblno',Array.from(new Set(fMblno)).join(","))
+          this.form.fMblno = this.form.fMblno.substring(0,this.form.fMblno.length-1)
+        }
       }
       let sum = 0
       for (let li in this.dataList) {