|
|
@@ -31,6 +31,9 @@
|
|
|
<el-button v-if="form.status == 1" class="el-button--small-yh" style="margin-left: 6px;" type="danger"
|
|
|
size="small" @click="revokeApplication">撤销单据请核
|
|
|
</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-dropdown style="line-height: 0" v-if="importTemplate == 1">
|
|
|
<el-button size="small" type="warning" style="margin-left: 8px" :disabled="form.status > 0 || showLock">
|
|
|
导入模板<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
@@ -288,7 +291,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col span="12">
|
|
|
- <el-form-item label="SI备注" prop="siRemarks">
|
|
|
+ <el-form-item label="SI备注" prop="siRemarks">
|
|
|
<el-input type="textarea" style="width: 100%;" v-model="form.siRemarks" size="small"
|
|
|
autocomplete="off" :disabled="editDisabled" :rows="2" clearable placeholder="请输入备注"
|
|
|
@change="textareaBlur('siRemarks', $event)"></el-input>
|
|
|
@@ -465,7 +468,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { submit, getDetail, submitBookingCabin, sendMessageBooking, copyAgent, pleaseCheck, repealCancel, submitItemList, itemRemove, submitFeeList, itemFeeRemove } from "@/api/iosBasicData/businessCenter/bookingCabin.js";
|
|
|
+import { submit, getDetail, submitBookingCabin, sendMessageBooking, copyAgent, pleaseCheck, repealCancel, submitItemList, itemRemove, submitFeeList, itemFeeRemove, rejectBooking } from "@/api/iosBasicData/businessCenter/bookingCabin.js";
|
|
|
import { losbfeestemplateGetListTemplate } from "@/api/iosBasicData/bills";
|
|
|
import { losbfeestemplateDetail } from "@/api/iosBasicData/losbfeestemplate";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
@@ -1182,12 +1185,12 @@ export default {
|
|
|
item.costPrice = row.hc40Cost
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
- this.form.carrierId=row.actualShippingCompanyId
|
|
|
- this.form.carrierCode=row.actualShippingCompanyCode
|
|
|
- this.form.carrierEnName=row.actualShippingCompanyEname
|
|
|
- this.form.carrierCnName=row.actualShippingCompanyCname
|
|
|
- this.form.carrierArgreementNo=row.actualShippingCompanyAbbreviation
|
|
|
+
|
|
|
+ this.form.carrierId = row.actualShippingCompanyId
|
|
|
+ this.form.carrierCode = row.actualShippingCompanyCode
|
|
|
+ this.form.carrierEnName = row.actualShippingCompanyEname
|
|
|
+ this.form.carrierCnName = row.actualShippingCompanyCname
|
|
|
+ this.form.carrierArgreementNo = row.actualShippingCompanyAbbreviation
|
|
|
this.submit()
|
|
|
},
|
|
|
textareaBlur(name, row) {
|
|
|
@@ -1699,6 +1702,59 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ if (name == '订舱驳回') {
|
|
|
+ this.$DialogForm.show({
|
|
|
+ title: '订舱驳回',
|
|
|
+ width: '30%',
|
|
|
+ menuPosition: 'right',
|
|
|
+ option: {
|
|
|
+ submitText: '确定',
|
|
|
+ emptyText: '取消',
|
|
|
+ span: 24,
|
|
|
+ column: [{
|
|
|
+ label: "驳回原因",
|
|
|
+ prop: "reason",
|
|
|
+ type: 'textarea',
|
|
|
+ rows: 5,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: "请输入驳回原因",
|
|
|
+ trigger: "blur",
|
|
|
+
|
|
|
+ }],
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ beforeClose: (done) => {
|
|
|
+ done()
|
|
|
+ },
|
|
|
+ callback: (res) => {
|
|
|
+ res.done()
|
|
|
+ this.$confirm('是否确认订舱驳回?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ let obj = {
|
|
|
+ ...this.form,
|
|
|
+ reason: res.data.reason,
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ rejectBooking(obj).then(res => {
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.getDetail(this.form.id)
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ res.close()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
submit(type) {
|
|
|
this.$refs["form"].validate((valid) => {
|