|
|
@@ -22,18 +22,28 @@
|
|
|
@click="inEdit">编 辑
|
|
|
</el-button> -->
|
|
|
<el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small"
|
|
|
+ @click="allClick('模板保存')">模板保存
|
|
|
+ </el-button>
|
|
|
+ <el-button class="el-button--small-yh" style="margin-left: 6px;" type="success" size="small"
|
|
|
+ :disabled="isSaveBtn || editDisabled" @click="allClick('导入模板')">导入模板
|
|
|
+ </el-button>
|
|
|
+ <el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small"
|
|
|
:disabled="isSaveBtn || editDisabled" @click="submit">保 存
|
|
|
</el-button>
|
|
|
- <el-button v-if="form.id" class="el-button--small-yh" style="margin-left: 6px;" type="success" size="small"
|
|
|
- :disabled="form.issueStatus == 1 || form.issueStatus == 2" @click="allClick('提交订舱')">提交订舱
|
|
|
+ <el-button v-if="form.id" class="el-button--small-yh" style="margin-left: 6px;" type="danger" size="small"
|
|
|
+ @click="allClick('退舱')">退 舱
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="form.id && form.issueStatus == 0" class="el-button--small-yh" style="margin-left: 6px;"
|
|
|
+ type="success" size="small" :disabled="form.issueStatus == 1 || form.issueStatus == 2"
|
|
|
+ @click="allClick('提交订舱')">提交订舱
|
|
|
</el-button>
|
|
|
<el-button v-if="form.issueStatus == 2" class="el-button--small-yh" style="margin-left: 6px;" type="danger"
|
|
|
size="small" @click="allClick('撤销订舱')">撤销订舱
|
|
|
</el-button>
|
|
|
- <el-button v-if="form.issueStatus == 1 || form.issueStatus == 2" class="el-button--small-yh"
|
|
|
+ <el-button v-if="(form.issueStatus == 1 || form.issueStatus == 2) && form.hblno" class="el-button--small-yh"
|
|
|
style="margin-left: 6px;" type="danger" size="small" @click="allClick('提单修改')">截单SI修改
|
|
|
</el-button>
|
|
|
- <el-button v-if="form.issueStatus == 1 || form.issueStatus == 2" class="el-button--small-yh"
|
|
|
+ <el-button v-if="(form.issueStatus == 1 || form.issueStatus == 2) && form.hblno" class="el-button--small-yh"
|
|
|
style="margin-left: 6px;" type="success" size="small" :disabled="flxDisabled" @click="allClick('提单确认')">确认提交
|
|
|
</el-button>
|
|
|
<!-- <el-button v-if="form.id" class="el-button--small-yh" style="margin-left: 6px;" type="success" size="small"
|
|
|
@@ -73,33 +83,41 @@
|
|
|
<el-row>
|
|
|
<el-col span="12">
|
|
|
<el-row>
|
|
|
- <el-form-item label="客服" prop="customerServiceName">
|
|
|
- <dic-select v-model="form.customerServiceName" placeholder="客服" :key="form.branchId"
|
|
|
- label="realName" :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + form.branchId"
|
|
|
- :filterable="true" @selectChange="dicChange('customerServiceName', $event)"
|
|
|
- :disabled="editDisabled"></dic-select>
|
|
|
- </el-form-item>
|
|
|
+ <el-col span="12">
|
|
|
+ <el-form-item label="船公司客服" prop="customerServiceName">
|
|
|
+ <dic-select v-model="form.customerServiceName" placeholder="船公司客服" :key="form.branchId"
|
|
|
+ label="realName" :url="'/blade-user/userListAll?roleAlias=客服&deptId=' + form.branchId"
|
|
|
+ :filterable="true" @selectChange="dicChange('customerServiceName', $event)"
|
|
|
+ :disabled="editDisabled"></dic-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col span="12">
|
|
|
+ <el-form-item label="HB/L NO" prop="hblno">
|
|
|
+ <el-input style="width: 100%;" v-model="form.hblno" size="small" :disabled="true" clearable
|
|
|
+ placeholder="HB/L NO"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col span="12">
|
|
|
<el-row>
|
|
|
<el-form-item label="发货人" prop="hshipperDetails">
|
|
|
<el-input type="textarea" style="width: 100%;" v-model="form.detail.hshipperDetails"
|
|
|
- size="small" autocomplete="off" :disabled="editDisabled" :rows="6" clearable
|
|
|
+ size="small" autocomplete="off" :disabled="editDisabled" :rows="7" clearable
|
|
|
placeholder="请输入发货人提单描述" @change="textareaBlur('hshipperDetails', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-form-item label="收货人" prop="hconsigneeDetails">
|
|
|
<el-input type="textarea" style="width: 100%;" v-model="form.detail.hconsigneeDetails"
|
|
|
- size="small" autocomplete="off" :disabled="editDisabled" :rows="6" clearable
|
|
|
+ size="small" autocomplete="off" :disabled="editDisabled" :rows="7" clearable
|
|
|
placeholder="请输入收货人提单描述" @change="textareaBlur('hconsigneeDetails', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-form-item label="通知人" prop="hnotifyDetails">
|
|
|
<el-input type="textarea" style="width: 100%;" v-model="form.detail.hnotifyDetails"
|
|
|
- size="small" autocomplete="off" :disabled="editDisabled" :rows="6" clearable
|
|
|
+ size="small" autocomplete="off" :disabled="editDisabled" :rows="7" clearable
|
|
|
placeholder="请输入通知人提单描述" @change="textareaBlur('hnotifyDetails', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
@@ -109,7 +127,7 @@
|
|
|
<el-form-item label="唛头" prop="marks"
|
|
|
:rules="[{ required: true, message: ' ', trigger: 'blur' }]">
|
|
|
<el-input type="textarea" style="width: 100%;" v-model="form.marks" size="small"
|
|
|
- autocomplete="off" :disabled="editDisabled" :rows="10" clearable placeholder="请输入唛头"
|
|
|
+ autocomplete="off" :disabled="editDisabled" :rows="7" clearable placeholder="请输入唛头"
|
|
|
@change="textareaBlur2('marks', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
@@ -117,7 +135,7 @@
|
|
|
<el-form-item label="货物" prop="commodityDescr"
|
|
|
:rules="[{ required: true, message: ' ', trigger: 'blur' }]">
|
|
|
<el-input type="textarea" style="width: 100%;" v-model="form.commodityDescr" size="small"
|
|
|
- autocomplete="off" :disabled="editDisabled" :rows="10" clearable placeholder="请输入提单上货物描述"
|
|
|
+ autocomplete="off" :disabled="editDisabled" :rows="15" clearable placeholder="请输入提单上货物描述"
|
|
|
@change="textareaBlur2('commodityDescr', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
@@ -126,19 +144,13 @@
|
|
|
</el-col>
|
|
|
<el-col span="12">
|
|
|
<el-row>
|
|
|
- <el-col span="8">
|
|
|
- <el-form-item label="B/L NO" prop="hblno">
|
|
|
- <el-input style="width: 100%;" v-model="form.hblno" size="small" :disabled="true" clearable
|
|
|
- placeholder="B/L NO"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col span="8">
|
|
|
+ <el-col span="12">
|
|
|
<el-form-item label="船名" prop="vesselCnName">
|
|
|
- <el-input style="width: 100%;" v-model="form.vesselCnName" size="small" :disabled="true" clearable
|
|
|
- placeholder="船名"></el-input>
|
|
|
+ <el-input style="width: 100%;" v-model="form.vesselCnName" size="small" :disabled="true"
|
|
|
+ clearable placeholder="船名"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col span="8">
|
|
|
+ <el-col span="12">
|
|
|
<el-form-item label="航次" prop="voyageNo">
|
|
|
<el-input style="width: 100%;" v-model="form.voyageNo" size="small" :disabled="true" clearable
|
|
|
placeholder="航次"></el-input>
|
|
|
@@ -149,70 +161,44 @@
|
|
|
<el-col span="12">
|
|
|
<el-form-item label="起运港" prop="polCnName"
|
|
|
:rules="[{ required: true, message: ' ', trigger: 'blur' }]">
|
|
|
- <el-row>
|
|
|
- <el-col span="12">
|
|
|
- <dic-select v-model="form.polCnName" placeholder="起运港" key="id" label="cnName" res="records"
|
|
|
- url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
- dataName="cnName" @selectChange="dicChange('polCnName', $event)" :disabled="editDisabled"
|
|
|
- :slotRight="true" rightLabel="code"></dic-select>
|
|
|
- </el-col>
|
|
|
- <el-col span="12">
|
|
|
- <el-input style="width: 100%;" v-model="form.polNamePrint" size="small"
|
|
|
- :disabled="editDisabled" clearable placeholder="装货港"
|
|
|
- @change="textareaBlur2('polNamePrint', $event)"></el-input>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <dic-select v-model="form.polCnName" placeholder="起运港" key="id" label="cnName" res="records"
|
|
|
+ url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
+ dataName="cnName" @selectChange="dicChange('polCnName', $event)" :disabled="editDisabled"
|
|
|
+ :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ <el-input style="width: 100%;" v-model="form.polNamePrint" size="small" :disabled="editDisabled"
|
|
|
+ clearable placeholder="装货港" @change="textareaBlur2('polNamePrint', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col span="12">
|
|
|
<el-form-item label="卸货港" prop="podCnName"
|
|
|
:rules="[{ required: true, message: ' ', trigger: 'blur' }]">
|
|
|
- <el-row>
|
|
|
- <el-col span="12">
|
|
|
- <dic-select v-model="form.podCnName" placeholder="卸货港" key="id" label="cnName" res="records"
|
|
|
- url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
- dataName="cnName" @selectChange="dicChange('podCnName', $event)" :disabled="editDisabled"
|
|
|
- :slotRight="true" rightLabel="code"></dic-select>
|
|
|
- </el-col>
|
|
|
- <el-col span="12">
|
|
|
- <el-input style="width: 100%;" v-model="form.podNamePrint" size="small"
|
|
|
- :disabled="editDisabled" clearable placeholder="卸货港"
|
|
|
- @change="textareaBlur2('podNamePrint', $event)"></el-input>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <dic-select v-model="form.podCnName" placeholder="卸货港" key="id" label="cnName" res="records"
|
|
|
+ url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
+ dataName="cnName" @selectChange="dicChange('podCnName', $event)" :disabled="editDisabled"
|
|
|
+ :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ <el-input style="width: 100%;" v-model="form.podNamePrint" size="small" :disabled="editDisabled"
|
|
|
+ clearable placeholder="卸货港" @change="textareaBlur2('podNamePrint', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col span="12">
|
|
|
- <el-form-item label="交货地" prop="polCnName">
|
|
|
- <el-row>
|
|
|
- <el-col span="12">
|
|
|
- <dic-select v-model="form.placeDeliveryName" placeholder="交货地" key="id" label="cnName"
|
|
|
- res="records" url="/blade-los/bports/list?current=1&size=5" :filterable="true"
|
|
|
- :remote="true" dataName="cnName" @selectChange="dicChange('placeDeliveryName', $event)"
|
|
|
- :disabled="editDisabled" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
- </el-col>
|
|
|
- <el-col span="12">
|
|
|
- <el-input style="width: 100%;" v-model="form.placeDeliveryNamePrint" size="small"
|
|
|
- :disabled="editDisabled" clearable placeholder="交货地"
|
|
|
- @change="textareaBlur2('placeDeliveryNamePrint', $event)"></el-input>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-form-item label="交货地" prop="placeDeliveryName">
|
|
|
+ <dic-select v-model="form.placeDeliveryName" placeholder="交货地" key="id" label="cnName"
|
|
|
+ res="records" url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
+ dataName="cnName" @selectChange="dicChange('placeDeliveryName', $event)"
|
|
|
+ :disabled="editDisabled" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ <el-input style="width: 100%;" v-model="form.placeDeliveryNamePrint" size="small"
|
|
|
+ :disabled="editDisabled" clearable placeholder="交货地"
|
|
|
+ @change="textareaBlur2('placeDeliveryNamePrint', $event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col span="12">
|
|
|
<el-form-item label="HS CODE" prop="hscode">
|
|
|
- <el-row>
|
|
|
- <el-col span="12">
|
|
|
- <el-input style="width: 100%;" v-model="form.hscode" size="small" :disabled="editDisabled"
|
|
|
- clearable placeholder="HS CODE"></el-input>
|
|
|
- </el-col>
|
|
|
- <el-col span="12">
|
|
|
- <el-input style="width: 100%;" v-model="form.commodityCnName" size="small"
|
|
|
- :disabled="editDisabled" clearable placeholder="英文名称"></el-input>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-input style="width: 100%;" v-model="form.hscode" size="small" :disabled="editDisabled"
|
|
|
+ clearable placeholder="HS CODE"></el-input>
|
|
|
+ <el-input style="width: 100%;" v-model="form.commodityCnName" size="small"
|
|
|
+ :disabled="editDisabled" clearable placeholder="英文名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -312,7 +298,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col span="12">
|
|
|
- <el-form-item label="签单方式" prop="podCnName">
|
|
|
+ <el-form-item label="签单方式" prop="issueType">
|
|
|
<dic-select v-model="form.issueType" placeholder="签单方式" key="dictKey" label="dictValue"
|
|
|
keyValue="dictKey" url="/blade-system/dict-biz/dictionary?code=issue_type_F"
|
|
|
:filterable="true" :disabled="detailData.seeDisabled" :initData="true"></dic-select>
|
|
|
@@ -352,6 +338,8 @@
|
|
|
@click="allClick('一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
|
|
|
@click="allClick('批量删除')">批量删除</el-button>
|
|
|
+ <el-button v-if="form.issueStatus > 0" type="success" plain size="small"
|
|
|
+ @click="allClick('提交箱型')">修改预配箱</el-button>
|
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
|
<el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled || !form.id" circle
|
|
|
@@ -372,7 +360,7 @@
|
|
|
</trade-card>
|
|
|
<trade-card title="配箱信息">
|
|
|
<DistributionBox :assemblyForm="form" :detailData="detailData" :showLock="showLock"
|
|
|
- :pleasereviewType="editDisabled" @billsAddfun="billsAddfun" @billsDetailfun="getDetails(form.id)">
|
|
|
+ :pleasereviewType="editDisabled" @billsAddfun="billsAddfun" @billsDetailfun="getDetails(form.id, true)">
|
|
|
</DistributionBox>
|
|
|
</trade-card>
|
|
|
<trade-card title="操作记录">
|
|
|
@@ -495,6 +483,7 @@
|
|
|
<check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun"></check-schedule>
|
|
|
</el-dialog>
|
|
|
<freight-rate ref="freightRate" @importData="importData" />
|
|
|
+ <import-temp ref="importTemp" @importData="importTemp"></import-temp>
|
|
|
<!--导入模板-->
|
|
|
<el-dialog title="导入模板" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false"
|
|
|
v-dialog-drag>
|
|
|
@@ -506,12 +495,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { submit, getDetail, submitConfirm, submitCustomerBooking, revokeCustomerBooking, submitBookingCabin, sendMessageBooking, copyAgent, pleaseCheck, repealCancel, submitItemList, itemRemove, submitFeeList, itemFeeRemove, getBCorps } from "@/api/iosBasicData/businessCenter/bookingCabin.js";
|
|
|
+import {
|
|
|
+ submit, getDetail, submitConfirm,
|
|
|
+ submitCustomerBooking, revokeCustomerBooking,
|
|
|
+ submitBookingCabin, sendMessageBooking, copyAgent,
|
|
|
+ pleaseCheck, repealCancel, submitItemList, itemRemove,
|
|
|
+ submitFeeList, itemFeeRemove, getBCorps, submitCommonTemplates,
|
|
|
+ submitBoxType, refundCabin
|
|
|
+} from "@/api/iosBasicData/businessCenter/bookingCabin.js";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
import businessReports from "@/components/boxManagement/businessReportsTS.vue";
|
|
|
import reports from "@/components/boxManagement/reportsTS.vue";
|
|
|
import freightRate from "./components/freightRate.vue";
|
|
|
+import importTemp from "./components/importTemp.vue";
|
|
|
import DistributionBox from "./components/DistributionBox.vue";
|
|
|
import { billsAdd, deptGetDetailPol } from '@/api/iosBasicData/bills'
|
|
|
import { getDicinit } from "@/api/dicSelect/index";
|
|
|
@@ -631,8 +628,8 @@ export default {
|
|
|
form: {
|
|
|
branchId: JSON.parse(localStorage.getItem('sysitemData')).deptId,
|
|
|
branchName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
|
|
|
- customerServiceName: JSON.parse(localStorage.getItem('sysitemData')).name, // OP 默认登录人
|
|
|
- customerServiceId: JSON.parse(localStorage.getItem('sysitemData')).id,
|
|
|
+ // customerServiceName: JSON.parse(localStorage.getItem('sysitemData')).name, // OP 默认登录人
|
|
|
+ // customerServiceId: JSON.parse(localStorage.getItem('sysitemData')).id,
|
|
|
businessType: 'KHTS',
|
|
|
billNoFormat: 'KHTS',
|
|
|
businessTypeCode: 'KHTS',
|
|
|
@@ -1079,7 +1076,8 @@ export default {
|
|
|
businessReports,
|
|
|
reports,
|
|
|
freightRate,
|
|
|
- DistributionBox
|
|
|
+ DistributionBox,
|
|
|
+ importTemp
|
|
|
},
|
|
|
props: {
|
|
|
detailData: Object,
|
|
|
@@ -1132,6 +1130,10 @@ export default {
|
|
|
this.saveLocalCurrency(this.deptId)
|
|
|
},
|
|
|
methods: {
|
|
|
+ importTemp(val) {
|
|
|
+ console.log(val)
|
|
|
+ this.form = val
|
|
|
+ },
|
|
|
lastPage() {
|
|
|
if (this.pageIds.length) {
|
|
|
const index = this.pageIds.indexOf(this.form.id)
|
|
|
@@ -1527,7 +1529,7 @@ export default {
|
|
|
}
|
|
|
this.selectionfeecList = list;
|
|
|
},
|
|
|
- getDetails(id) {
|
|
|
+ getDetails(id, type) {
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: '加载中',
|
|
|
@@ -1546,14 +1548,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.form = res.data.data
|
|
|
- if (res.data.data.issueStatus == 1 || res.data.data.issueStatus == 2 || res.data.data.confirmStatus == 1) {
|
|
|
- this.isSaveBtn = true
|
|
|
- this.editDisabled = true
|
|
|
- this.optionForm.disabled = true
|
|
|
- } else {
|
|
|
- this.editDisabled = false
|
|
|
- this.optionForm.disabled = false
|
|
|
+ if (!type) {
|
|
|
+ if (res.data.data.issueStatus == 1 || res.data.data.issueStatus == 2 || res.data.data.confirmStatus == 1) {
|
|
|
+ this.isSaveBtn = true
|
|
|
+ this.editDisabled = true
|
|
|
+ this.optionForm.disabled = true
|
|
|
+ } else {
|
|
|
+ this.editDisabled = false
|
|
|
+ this.optionForm.disabled = false
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}).finally(() => {
|
|
|
loading.close()
|
|
|
})
|
|
|
@@ -1716,6 +1721,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ if (name == '提交箱型') {
|
|
|
+ this.$confirm('是否提交箱型?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {
|
|
|
+ id: this.form.id
|
|
|
+ }
|
|
|
+ submitBoxType(obj).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.getDetails(this.form.id)
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
if (name == '费用一键保存') {
|
|
|
if (!this.form.feeCenterListC.length) {
|
|
|
return this.$message.error("请添加数据");
|
|
|
@@ -1906,6 +1927,101 @@ export default {
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+ if (name == '模板保存') {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (!this.form.detail.hshipperDetails) {
|
|
|
+ return this.$message.error("请输入发货人提单描述");
|
|
|
+ }
|
|
|
+ if (!this.form.detail.hconsigneeDetails) {
|
|
|
+ return this.$message.error("请输入收货人提单描述");
|
|
|
+ }
|
|
|
+ if (!this.form.detail.hnotifyDetails) {
|
|
|
+ return this.$message.error("请输入通知人提单描述");
|
|
|
+ }
|
|
|
+ for (let row of this.form.preContainersList) {
|
|
|
+ if (!row.cntrTypeCode || !row.quantity) {
|
|
|
+ this.$refs.crud.rowCell(row, row.$index)
|
|
|
+ return this.$message.error("请完善明细信息");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$DialogForm.show({
|
|
|
+ title: '订舱模板',
|
|
|
+ width: '30%',
|
|
|
+ // data: this.assemblyForm.hmmEdi,
|
|
|
+ menuPosition: 'right',
|
|
|
+ option: {
|
|
|
+ submitText: '确定',
|
|
|
+ emptyText: '取消',
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "模板名称",
|
|
|
+ span: 24,
|
|
|
+ prop: "templatesName",
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: "请输入模板名称",
|
|
|
+ trigger: "blur",
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ beforeClose: (done) => {
|
|
|
+ done()
|
|
|
+ },
|
|
|
+ callback: (res) => {
|
|
|
+ res.done()
|
|
|
+ console.log(res)
|
|
|
+ this.form.businessType = 'KHTS'
|
|
|
+ this.form.billNoFormat = 'KHTS'
|
|
|
+ this.form.businessTypeCode = 'KHTS'
|
|
|
+ let obj = {
|
|
|
+ ...this.form,
|
|
|
+ templatesName: res.data.templatesName
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ submitCommonTemplates(obj).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ res.close()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (name == '导入模板') {
|
|
|
+ this.$refs.importTemp.openDialog()
|
|
|
+ }
|
|
|
+ if (name == '退舱') {
|
|
|
+
|
|
|
+ this.$confirm("是否退舱?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ refundCabin(this.form).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.getDetails(this.form.id)
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
submit(type) {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
@@ -2047,6 +2163,14 @@ export default {
|
|
|
return back;
|
|
|
},
|
|
|
goBack(type) {
|
|
|
+ if (this.form.issueStatus > 0 && this.form.whetherModify == 0) {
|
|
|
+ for (let item of this.form.preContainersList) {
|
|
|
+ const names = item.cntrTypeCode + '+' + item.quantity
|
|
|
+ if (names != item.whetherModifyJson) {
|
|
|
+ return this.$message.error("请提交箱型");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$emit("goBack");
|
|
|
},
|
|
|
}
|