瀏覽代碼

修改禅道问题

Qukatie 1 周之前
父節點
當前提交
523490d9ac

+ 8 - 0
src/api/boxManagement/buyContainer/index.js

@@ -316,4 +316,12 @@ export function revokePickUpCost(params) {
     method: 'get',
     params: params
   })
+}
+//追加目的港
+export function batchAddPod(params) {
+  return request({
+    url: '/api/blade-los/tradingBox/batchAddPod',
+    method: 'get',
+    params: params
+  })
 }

+ 219 - 217
src/lang/en.js

@@ -64,8 +64,8 @@ export default {
     data: 'data',
     error: 'error',
     test: 'test',
-    seExport:'Export(F)',
-    seImport:'Import(F)'
+    seExport: 'Export(F)',
+    seImport: 'Import(F)'
   },
   login: {
     title: 'Login ',
@@ -108,220 +108,222 @@ export default {
     closeOthers: 'Close Others',
     closeAll: 'Close All'
   },
-    sea118n: {
-        corpName: 'corpName',
-        branchName: 'branchName',
-        mblno:'mblno',
-        hblno:'hblno',
-        billType:'billType',
-        localStatus:'localStatus',
-        transferOrderStatus:'transferOrderStatus',
-        billNo:'billNo',
-        billDate:'billDate',
-        vessel:'vessel',
-        voy:'voy',
-        op:'op',
-        etd:'etd',
-        eta:'eta',
-        carrier:'carrier',
-        pol:'pol',
-        pod:'pod',
-        placeDestination:'placeDestination',
-        placeDelivery:'placeDelivery',
-        lane:'lane',
-        CY:'CY',
-        ctnrPack:'ctnrPack',
-        businessSource:'businessSource',
-        businessName:'businessName',
-        scndesc:'scndesc',
-        feeStatus:'feeStatus',
-        sourceBillNo:'sourceBillNo',
-        debitStatus:'debitStatus',
-        creditStatus:'creditStatus',
-        createBy:'createBy',
-        orderBy:'orderBy',
-        processing:'processing',
-        waitApply:'waitApply',
-        completed:'completed',
-        all:'all',
-        entering:'entering',
-        enteringStatus:'enteringStatus',
-        officeApplyStatus:'officeApplyStatus',
-        generateNo :'generateNo',
-        onBoard:'onBoard',
-        onArrival:'onArrival',
-        returnEmpty:'returnDate',
-        pickUp:'pickUpDate',
-        customs:'customs',
-        customsNo:'customsNo',
-        changeDoc:'changeDoc',
-        unChangeDoc:'unChangeDoc',
-        masteNo:'masteNo',
-        hblCount:'hblCount',
-        customerService:'CS',
-        ctnrTypeQty:'ctnrTypeQty',
-        cargoType:'cargoType',
-        bookingAgent:'bookingAgent',
-        marks:'marks',
-        descOfGoods:'goods',
-        QTY:'QTY',
-        package:'package',
-        GW:'GW',
-        NETGW:'NETGW',
-        CBM:'CBM',
-        TEU:'TEU',
-        hblTeu:'hblTeu',
-        ttlDebit:'ttlDebit',
-        auditStatus:'auditStatus',
-        applyStatus:'applyStatus',
-        checkStatus:'checkStatus',
-        debitStlStatus:'debitStlStatus',
-        creditStlStatus:'creditStlStatus',
-        invoiceStatus:'invoiceStatus',
-        createTime:'createTime',
-        billStatus:'billStatus',
-        bookStatus:'bookStatus',
-        financeStatus:'financeStatus',
-        remarks:'remarks',
-        orderInfo:'orderInfo',
-        info:'Info',
-        billInfo:'billInfo',
-        feeInfo:'feeInfo',
-        docCenter:'docCenter',
-        ctnrList:'ctnrList',
-        masterBill:'masterBill',
-        reportManage:'reportManage',
-        fileCerter:'fileCerter',
-        hblnolist:'hblnolist',
-        shipper:'shipper',
-        cnee:'cnee',
-        notify:'notify',
-        agent:'agent',
-        issueDate:'issueDate',
-        issueType:'issueType',
-        issuePlace:'issuePlace',
-        bookRemarks:'bookRemarks',
-        siRemarks:'siRemarks',
-        SOCORCOC:'SOCORCOC',
-        ctnrType:'ctnrType',
-        ctnrQty:'ctnrQty',
-        ctnrTare:'ctnrTare',
-        payment:'payment',
-        releaseRefNo:'releaseRefNo',
-        ctnrNo:'ctnrNo',
-        sealNo:'sealNo',
-        bookingDate:'bookingDate',
-        polFreeTime:'polFreeTime',
-        podTreeTime:'podTreeTime',
-        noOfCopy:'noOfCopy',
-        businessType:'businessType',
-        limitWeight:'limitWeight',
-        limitSpace:'limitSpace',
-        shippingTerms:'shippingTerms',
-        docCutofftime:'docCutofftime',
-        portCutofftime:'portCutofftime',
-        shippingAgent:'shippingAgent',
-        spaceType:'spaceType',
-        spaceQty:'spaceQty',
-        bookCanceldate:'bookCanceldate',
-        loadingType:'V',
-        noOfForiginal:'noOfForiginal',
-        hblPaymentPlace:'hblPaymentPlace',
-        mblPaymentPlace:'mblPaymentPlace',
-        modifier:'modifier',
-        modifiedDate:'modifiedDate',
-        debit:'debit',
-        credit:'credit',
-        corpType:'corpType',
-        chargeCorp:'chargeCorp',
-        payCorp:'payCorp',
-        unitNo:'unitNo',
-        currency:'currency',
-        exrate:'exrate',
-        price:'price',
-        taxRate:'taxRate',
-        quantity:'quantity',
-        localCurrency:'localCurrency',
-        foreignCurrency:'foreignCurrency',
-        reportNo:'reportNo'
-    },
-    btn118n: {
-        newDD:'newDD',
-        newMM:'newMM',
-        newMH:'newMH',
-        copy:'copy',
-        new:'new',
-        importTemplate:'importTemplate',
-        preview:'preview',
-        mdBillType:'mdBillType',
-        mhAddmm:'mhAddmm',
-        offLoad:'offLoad',
-        cancelOffLoad:'cancelOffLoad',
-        save:'save',
-        deleted:'deleted',
-        edit:'edit',
-        toDebit:'toDebit',
-        toCredit:'toCredit',
-        exportData:'exportData',
-        debitTemplate:'debitTemplate',
-        creditTemplate:'creditTemplate',
-        costTemplate:'costTemplate',
-        submitDebit:'submitDebit',
-        submitCredit:'submitCredit',
-        toList:'toList',
-        previous:'previous',
-        next:'next',
-        localApply:'localApply',
-        unlocalApply:'unlocalApply',
-        transferApply:'transferApply',
-        untransferApply:'untransferApply',
-        received:'received',
-        unReceived:'unReceived',
-        setInfoMMToMH:'setInfoMMToMH',
-        getInfoMMToMH:'getInfoMMToMH',
-        printBill:'printBill',
-        apply:'apply',
-        unapply:'unapply',
-        checked:'checked',
-        applyFee:'applyFee',
-        unApplyFee:'unApplyFee',
-        applyModify:'applyModify',
-        applyDelete:'applyDelete',
-        unAplly:'unAplly',
-        applyInvoice:'applyInvoice',
-        applyPay:'applyPay',
-        SIInfoImport:'SIInfoImport',
-        shortcut:'shortcut',
-        export:'export',
-        import:'import',
-        owGet:'owGet',
-        owRelease:'owRelease',
-        ctnrInOut:'ctnrInOut',
-        ctnrApply:'ctnrApply',
-        ctnrCost:'ctnrCost',
-        socCost:'socCost',
-        cocCost:'cocCost',
-        needChecked:'needChecked',
-        businessReminder:'businessReminder',
-        timeData:'timeData',
-        theDay:'day',
-        theMonth:'mon',
-        orderTtlCount:'orderTtlCount',
-        offLoadCount:'offLoadCount',
-        completeCount:'completeCount',
-        completeRate:'completeRate',
-        needDebit:'needDebit',
-        returnDeposit:'returnDeposit',
-        unReturnDeposit:'unReturnDeposit',
-        generateCtnrList:'generateCtnrList',
-        packCtnrTeu:'packCtnrTeu',
-        packCtnrQty:'packCtnrQty',
-        importCtnr:'importCtnr',
-        getCtnr:'getCtnr',
-        clearCtnrNo:'clearCtnrNo',
-        selectclearCtnrLlist:'selectclearCtnrLlist',
-        clearCtnrLlist:'clearCtnrLlist',
-        deleteCtnrList:'deleteCtnrList'
+  sea118n: {
+    corpName: 'corpName',
+    branchName: 'branchName',
+    mblno: 'mblno',
+    hblno: 'hblno',
+    billType: 'billType',
+    localStatus: 'localStatus',
+    transferOrderStatus: 'transferOrderStatus',
+    billNo: 'billNo',
+    billDate: 'billDate',
+    vessel: 'vessel',
+    voy: 'voy',
+    op: 'op',
+    etd: 'etd',
+    eta: 'eta',
+    carrier: 'carrier',
+    pol: 'pol',
+    pod: 'pod',
+    placeDestination: 'placeDestination',
+    placeDelivery: 'placeDelivery',
+    lane: 'lane',
+    CY: 'CY',
+    ctnrPack: 'ctnrPack',
+    businessSource: 'businessSource',
+    businessName: 'businessName',
+    scndesc: 'scndesc',
+    feeStatus: 'feeStatus',
+    sourceBillNo: 'sourceBillNo',
+    debitStatus: 'debitStatus',
+    creditStatus: 'creditStatus',
+    createBy: 'createBy',
+    orderBy: 'orderBy',
+    processing: 'processing',
+    waitApply: 'waitApply',
+    completed: 'completed',
+    all: 'all',
+    entering: 'entering',
+    enteringStatus: 'enteringStatus',
+    officeApplyStatus: 'officeApplyStatus',
+    generateNo: 'generateNo',
+    onBoard: 'onBoard',
+    onArrival: 'onArrival',
+    returnEmpty: 'returnDate',
+    pickUp: 'pickUpDate',
+    customs: 'customs',
+    customsNo: 'customsNo',
+    changeDoc: 'changeDoc',
+    unChangeDoc: 'unChangeDoc',
+    masteNo: 'masteNo',
+    hblCount: 'hblCount',
+    customerService: 'CS',
+    ctnrTypeQty: 'ctnrTypeQty',
+    cargoType: 'cargoType',
+    bookingAgent: 'bookingAgent',
+    marks: 'marks',
+    descOfGoods: 'goods',
+    QTY: 'QTY',
+    package: 'package',
+    GW: 'GW',
+    NETGW: 'NETGW',
+    CBM: 'CBM',
+    TEU: 'TEU',
+    hblTeu: 'hblTeu',
+    ttlDebit: 'ttlDebit',
+    auditStatus: 'auditStatus',
+    applyStatus: 'applyStatus',
+    checkStatus: 'checkStatus',
+    debitStlStatus: 'debitStlStatus',
+    statusDr: 'statusDr',
+    statusCr: 'statusCr',
+    creditStlStatus: 'creditStlStatus',
+    invoiceStatus: 'invoiceStatus',
+    createTime: 'createTime',
+    billStatus: 'billStatus',
+    bookStatus: 'bookStatus',
+    financeStatus: 'financeStatus',
+    remarks: 'remarks',
+    orderInfo: 'orderInfo',
+    info: 'Info',
+    billInfo: 'billInfo',
+    feeInfo: 'feeInfo',
+    docCenter: 'docCenter',
+    ctnrList: 'ctnrList',
+    masterBill: 'masterBill',
+    reportManage: 'reportManage',
+    fileCerter: 'fileCerter',
+    hblnolist: 'hblnolist',
+    shipper: 'shipper',
+    cnee: 'cnee',
+    notify: 'notify',
+    agent: 'agent',
+    issueDate: 'issueDate',
+    issueType: 'issueType',
+    issuePlace: 'issuePlace',
+    bookRemarks: 'bookRemarks',
+    siRemarks: 'siRemarks',
+    SOCORCOC: 'SOCORCOC',
+    ctnrType: 'ctnrType',
+    ctnrQty: 'ctnrQty',
+    ctnrTare: 'ctnrTare',
+    payment: 'payment',
+    releaseRefNo: 'releaseRefNo',
+    ctnrNo: 'ctnrNo',
+    sealNo: 'sealNo',
+    bookingDate: 'bookingDate',
+    polFreeTime: 'polFreeTime',
+    podTreeTime: 'podTreeTime',
+    noOfCopy: 'noOfCopy',
+    businessType: 'businessType',
+    limitWeight: 'limitWeight',
+    limitSpace: 'limitSpace',
+    shippingTerms: 'shippingTerms',
+    docCutofftime: 'docCutofftime',
+    portCutofftime: 'portCutofftime',
+    shippingAgent: 'shippingAgent',
+    spaceType: 'spaceType',
+    spaceQty: 'spaceQty',
+    bookCanceldate: 'bookCanceldate',
+    loadingType: 'V',
+    noOfForiginal: 'noOfForiginal',
+    hblPaymentPlace: 'hblPaymentPlace',
+    mblPaymentPlace: 'mblPaymentPlace',
+    modifier: 'modifier',
+    modifiedDate: 'modifiedDate',
+    debit: 'debit',
+    credit: 'credit',
+    corpType: 'corpType',
+    chargeCorp: 'chargeCorp',
+    payCorp: 'payCorp',
+    unitNo: 'unitNo',
+    currency: 'currency',
+    exrate: 'exrate',
+    price: 'price',
+    taxRate: 'taxRate',
+    quantity: 'quantity',
+    localCurrency: 'localCurrency',
+    foreignCurrency: 'foreignCurrency',
+    reportNo: 'reportNo'
+  },
+  btn118n: {
+    newDD: 'newDD',
+    newMM: 'newMM',
+    newMH: 'newMH',
+    copy: 'copy',
+    new: 'new',
+    importTemplate: 'importTemplate',
+    preview: 'preview',
+    mdBillType: 'mdBillType',
+    mhAddmm: 'mhAddmm',
+    offLoad: 'offLoad',
+    cancelOffLoad: 'cancelOffLoad',
+    save: 'save',
+    deleted: 'deleted',
+    edit: 'edit',
+    toDebit: 'toDebit',
+    toCredit: 'toCredit',
+    exportData: 'exportData',
+    debitTemplate: 'debitTemplate',
+    creditTemplate: 'creditTemplate',
+    costTemplate: 'costTemplate',
+    submitDebit: 'submitDebit',
+    submitCredit: 'submitCredit',
+    toList: 'toList',
+    previous: 'previous',
+    next: 'next',
+    localApply: 'localApply',
+    unlocalApply: 'unlocalApply',
+    transferApply: 'transferApply',
+    untransferApply: 'untransferApply',
+    received: 'received',
+    unReceived: 'unReceived',
+    setInfoMMToMH: 'setInfoMMToMH',
+    getInfoMMToMH: 'getInfoMMToMH',
+    printBill: 'printBill',
+    apply: 'apply',
+    unapply: 'unapply',
+    checked: 'checked',
+    applyFee: 'applyFee',
+    unApplyFee: 'unApplyFee',
+    applyModify: 'applyModify',
+    applyDelete: 'applyDelete',
+    unAplly: 'unAplly',
+    applyInvoice: 'applyInvoice',
+    applyPay: 'applyPay',
+    SIInfoImport: 'SIInfoImport',
+    shortcut: 'shortcut',
+    export: 'export',
+    import: 'import',
+    owGet: 'owGet',
+    owRelease: 'owRelease',
+    ctnrInOut: 'ctnrInOut',
+    ctnrApply: 'ctnrApply',
+    ctnrCost: 'ctnrCost',
+    socCost: 'socCost',
+    cocCost: 'cocCost',
+    needChecked: 'needChecked',
+    businessReminder: 'businessReminder',
+    timeData: 'timeData',
+    theDay: 'day',
+    theMonth: 'mon',
+    orderTtlCount: 'orderTtlCount',
+    offLoadCount: 'offLoadCount',
+    completeCount: 'completeCount',
+    completeRate: 'completeRate',
+    needDebit: 'needDebit',
+    returnDeposit: 'returnDeposit',
+    unReturnDeposit: 'unReturnDeposit',
+    generateCtnrList: 'generateCtnrList',
+    packCtnrTeu: 'packCtnrTeu',
+    packCtnrQty: 'packCtnrQty',
+    importCtnr: 'importCtnr',
+    getCtnr: 'getCtnr',
+    clearCtnrNo: 'clearCtnrNo',
+    selectclearCtnrLlist: 'selectclearCtnrLlist',
+    clearCtnrLlist: 'clearCtnrLlist',
+    deleteCtnrList: 'deleteCtnrList'
 
-    }
+  }
 }

+ 2 - 0
src/lang/zh.js

@@ -175,6 +175,8 @@ export default {
     checkStatus:'对账状态',
     debitStlStatus:'收费状态',
     creditStlStatus:'付费状态',
+    statusDr:'应收费用审核状态',
+    statusCr:'应付费用审核状态',
     invoiceStatus:'发票状态',
     createTime:'创建时间',
     billStatus:'业务状态',

+ 57 - 1
src/views/iosBasicData/OceanFreightImport/bills/index.vue

@@ -162,6 +162,50 @@
             </span>
           </div>
         </template>
+        <template slot="statusDr" slot-scope="{ row }">
+          <div>
+            <span
+              v-if="row.statusDr == '未审核'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #409EFF;"
+            >
+              未审核
+            </span>
+            <span
+              v-if="row.statusDr == '审核中'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #F56C6C;"
+            >
+              审核中
+            </span>
+            <span
+              v-if="row.statusDr == '审核通过'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #67C23A;"
+            >
+              审核通过
+            </span>
+          </div>
+        </template>
+        <template slot="statusCr" slot-scope="{ row }">
+          <div>
+            <span
+              v-if="row.statusCr == '未审核'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #409EFF;"
+            >
+              未审核
+            </span>
+            <span
+              v-if="row.statusCr == '审核中'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #F56C6C;"
+            >
+              审核中
+            </span>
+            <span
+              v-if="row.statusCr == '审核通过'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #67C23A;"
+            >
+              审核通过
+            </span>
+          </div>
+        </template>
         <!-- <template slot="status" slot-scope="{ row }">
                     <div>
                         <span v-if="row.status == item.dictKey" v-for="(item, index) in auditStatusList" :key="index"
@@ -297,7 +341,7 @@ import { getDeptTree } from "@/api/system/dept";
 import { getToken } from "@/util/auth";
 import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfeestemplate";
 export default {
-  name:'海运进口(F)',
+  name: "海运进口(F)",
   components: {
     TreeSelect,
     SearchQuery,
@@ -1205,6 +1249,18 @@ export default {
             overHidden: true
           },
           {
+            label: this.$t("sea118n.statusDr"),
+            prop: "statusDr",
+            width: 120,
+            overHidden: true
+          },
+          {
+            label: this.$t("sea118n.statusCr"),
+            prop: "statusCr",
+            width: 120,
+            overHidden: true
+          },
+          {
             label: this.$t("sea118n.invoiceStatus"),
             prop: "invoiceDrStatusDescr",
             width: "160",

+ 57 - 1
src/views/iosBasicData/SeafreightExportF/bills/index.vue

@@ -392,6 +392,50 @@
             {{ row.transferOrderStatus }}</span
           >
         </template>
+        <template slot="statusDr" slot-scope="{ row }">
+          <div>
+            <span
+              v-if="row.statusDr == '未审核'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #409EFF;"
+            >
+              未审核
+            </span>
+            <span
+              v-if="row.statusDr == '审核中'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #F56C6C;"
+            >
+              审核中
+            </span>
+            <span
+              v-if="row.statusDr == '审核通过'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #67C23A;"
+            >
+              审核通过
+            </span>
+          </div>
+        </template>
+        <template slot="statusCr" slot-scope="{ row }">
+          <div>
+            <span
+              v-if="row.statusCr == '未审核'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #409EFF;"
+            >
+              未审核
+            </span>
+            <span
+              v-if="row.statusCr == '审核中'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #F56C6C;"
+            >
+              审核中
+            </span>
+            <span
+              v-if="row.statusCr == '审核通过'"
+              style="color: #fff;border-radius: 30px;padding: 2px 15px;text-align: center;background-color: #67C23A;"
+            >
+              审核通过
+            </span>
+          </div>
+        </template>
       </avue-crud>
     </basic-container>
 
@@ -497,7 +541,7 @@ import { getDeptTree } from "@/api/system/dept";
 import { getToken } from "@/util/auth";
 import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfeestemplate";
 export default {
-  name:'海运出口(F)',
+  name: "海运出口(F)",
   components: {
     TreeSelect,
     SearchQuery,
@@ -1301,6 +1345,18 @@ export default {
             overHidden: true
           },
           {
+            label: this.$t("sea118n.statusDr"),
+            prop: "statusDr",
+            width: 120,
+            overHidden: true
+          },
+          {
+            label: this.$t("sea118n.statusCr"),
+            prop: "statusCr",
+            width: 120,
+            overHidden: true
+          },
+          {
             label: this.$t("sea118n.invoiceStatus"),
             prop: "invoiceDrStatusDescr",
             width: "160",

+ 9 - 3
src/views/iosBasicData/agingAnalysis/index.vue

@@ -129,7 +129,7 @@ export default {
         pageSize: 20,
         currentPage: 1,
         total: 0,
-        pageSizes:[10, 20, 30, 40, 50, 100,500,1000],
+        pageSizes: [10, 20, 30, 40, 50, 100, 500, 1000]
       },
       query: {
         dc: "D",
@@ -140,7 +140,7 @@ export default {
       },
       option: {},
       optionBack: {
-        height:500,
+        height: 500,
         calcHeight: 30,
         tip: false,
         searchShow: true,
@@ -662,7 +662,7 @@ export default {
     // 清空搜索回调方法
     searchReset() {
       this.query = {};
-      this.onLoad(this.page);
+      // this.onLoad(this.page);
     },
     // 搜索
     searchChange(params, done) {
@@ -681,6 +681,12 @@ export default {
       this.onLoad(this.page, this.query);
     },
     onLoad(page, params = {}) {
+      // if (!this.query.etdEnd) {
+      //  return this.$message.error("结束日期不能为空");
+      //  }
+      if (!this.query.dc) {
+        return this.$message.error("请选择应收或者应付");
+      }
       this.loading = true;
       financeStatisticsAgingAnalysis(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
         const data = res.data.data;

+ 62 - 2
src/views/ow/owPut/index.vue

@@ -25,7 +25,8 @@
         <template slot="menuLeft">
           <el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">创建单据 </el-button>
           <el-button type="success" size="small" :disabled="selectionList.length != 1" @click="copyButton">复制单据 </el-button>
-          <el-button type="warning" size="small" disabled @click="outExport">导 出 </el-button>
+          <!-- <el-button type="warning" size="small" disabled @click="outExport">导 出 </el-button> -->
+          <el-button type="info" size="small" :disabled="selectionList.length == 0" @click="append">追加目的港 </el-button>
         </template>
         <template slot="menu" slot-scope="{ row, index }">
           <el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row)">编辑</el-button>
@@ -49,7 +50,7 @@
 </template>
 
 <script>
-import { getList, remove } from "@/api/boxManagement/buyContainer/index.js";
+import { getList, remove, batchAddPod } from "@/api/boxManagement/buyContainer/index.js";
 import { getWorkDicts } from "@/api/system/dictbiz";
 import detailsPage from "./detailsPage";
 import { getToken } from "@/util/auth";
@@ -501,6 +502,65 @@ export default {
         copyId: this.selectionList[0].id
       };
     },
+    append() {
+      let ids = [];
+      for (let item of this.selectionList) {
+        ids.push(item.id);
+      }
+      this.$DialogForm.show({
+        title: "追加目的港",
+        width: "30%",
+        menuPosition: "right",
+        option: {
+          submitText: "确定",
+          emptyText: "取消",
+          column: [
+            {
+              label: "目的港",
+              prop: "podId",
+              type: "select",
+              filterable: true,
+              multiple: true,
+              dicUrl: "/api/blade-los/bports/listAll?status=0",
+              props: {
+                label: "code",
+                value: "id"
+              },
+              dataType: "string",
+              span: 24,
+              rules: [
+                {
+                  required: true,
+                  message: "请选择目的港",
+                  trigger: "blur"
+                }
+              ]
+            }
+          ]
+        },
+        beforeClose: done => {
+          done();
+        },
+        callback: res => {
+          res.done();
+          this.$confirm("是否确认追加目的港?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+          }).then(() => {
+            let obj = {
+              podIds: res.data.podId,
+              ids: ids.join(",")
+            };
+            batchAddPod(obj).then(res => {
+              this.onLoad(this.page, this.query);
+              this.$message.success("操作成功");
+            });
+          });
+          res.close();
+        }
+      });
+    },
     rowEdit(row) {
       this.detailData = {
         id: row.id

+ 63 - 3
src/views/ow/owTask/index.vue

@@ -32,7 +32,8 @@
           </el-tabs>
           <el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">创建单据 </el-button>
           <el-button type="success" size="small" :disabled="selectionList.length != 1" @click="copyButton">复制单据 </el-button>
-          <el-button type="warning" size="small" disabled @click="outExport">导 出 </el-button>
+          <!-- <el-button type="warning" size="small" disabled @click="outExport">导 出 </el-button> -->
+          <el-button type="info" size="small" :disabled="selectionList.length == 0" @click="append">追加目的港 </el-button>
         </template>
         <template slot="menu" slot-scope="{ row, index }">
           <el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row)">编辑</el-button>
@@ -56,7 +57,7 @@
 </template>
 
 <script>
-import { getList, remove } from "@/api/boxManagement/buyContainer/index.js";
+import { getList, remove, batchAddPod } from "@/api/boxManagement/buyContainer/index.js";
 import { getWorkDicts } from "@/api/system/dictbiz";
 import detailsPage from "./detailsPage";
 import { getToken } from "@/util/auth";
@@ -69,7 +70,7 @@ export default {
       form: {},
       query: {
         type: "OW-N",
-        whetherDisplay: '2'
+        whetherDisplay: "2"
       },
       loading: false,
       page: {
@@ -613,6 +614,65 @@ export default {
         copyId: this.selectionList[0].id
       };
     },
+    append() {
+      let ids = [];
+      for (let item of this.selectionList) {
+        ids.push(item.id);
+      }
+      this.$DialogForm.show({
+        title: "追加目的港",
+        width: "30%",
+        menuPosition: "right",
+        option: {
+          submitText: "确定",
+          emptyText: "取消",
+          column: [
+            {
+              label: "目的港",
+              prop: "podId",
+              type: "select",
+              filterable: true,
+              multiple: true,
+              dicUrl: "/api/blade-los/bports/listAll?status=0",
+              props: {
+                label: "code",
+                value: "id"
+              },
+              dataType: "string",
+              span: 24,
+              rules: [
+                {
+                  required: true,
+                  message: "请选择目的港",
+                  trigger: "blur"
+                }
+              ]
+            }
+          ]
+        },
+        beforeClose: done => {
+          done();
+        },
+        callback: res => {
+          res.done();
+          this.$confirm("是否确认追加目的港?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+          }).then(() => {
+            let obj = {
+              podIds: res.data.podId,
+              ids: ids.join(",")
+            };
+            batchAddPod(obj).then(res => {
+              this.onLoad(this.page, this.query);
+              this.$message.success("操作成功");
+            });
+          });
+          res.close();
+        }
+      });
+    },
     rowEdit(row) {
       this.detailData = {
         id: row.id