|
|
@@ -24,7 +24,7 @@
|
|
|
:disabled="isSaveBtn || form.issueStatus == 1 || form.status == 3" @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.status == 1" @click="allClick('生成订单')">生成订单
|
|
|
+ :disabled="form.issueStatus == 1 || form.status == 1" @click="allClick('生成订单')">生成订单
|
|
|
</el-button>
|
|
|
<el-button v-if="form.id" class="el-button--small-yh" style="margin-left: 6px;" type="success" size="small"
|
|
|
:disabled="form.status != 0 || form.issueStatus == 1" @click="application">运费申请
|
|
|
@@ -248,11 +248,12 @@
|
|
|
@click="allClick('一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
|
|
|
@click="allClick('批量删除')">批量删除</el-button>
|
|
|
- <el-button type="success" plain size="small" :disabled="editDisabled || form.preContainersList.length==0"
|
|
|
+ <el-button type="success" plain size="small"
|
|
|
+ :disabled="editDisabled || form.preContainersList.length == 0"
|
|
|
@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
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled || !form.id" circle
|
|
|
@click="addRow()">
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -287,8 +288,10 @@
|
|
|
<i class="el-icon-coin"></i>
|
|
|
<span>应付费用</span>
|
|
|
</div>
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || !form.id" @click="allClick('费用一键保存')">一键保存</el-button>
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || !form.id" @click="allClick('费用一键编辑')">一键编辑</el-button>
|
|
|
+ <el-button type="info" plain size="small" :disabled="editDisabled || !form.id"
|
|
|
+ @click="allClick('费用一键保存')">一键保存</el-button>
|
|
|
+ <el-button type="info" plain size="small" :disabled="editDisabled || !form.id"
|
|
|
+ @click="allClick('费用一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="selectionfeecList.length == 0"
|
|
|
@click="allClick('费用批量删除')">批量删除</el-button>
|
|
|
<!-- <el-button type="primary" plain size="small" :disabled="selectionfeecList.length == 0"
|
|
|
@@ -1215,7 +1218,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.form = res.data.data
|
|
|
- if (res.data.data.issueStatus == 1 || res.data.data.status >0) {
|
|
|
+ if (res.data.data.issueStatus == 1 || res.data.data.status > 0) {
|
|
|
// this.editButton = true
|
|
|
this.editDisabled = true
|
|
|
this.optionForm.disabled = true
|
|
|
@@ -1290,18 +1293,32 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
+ for (let row of this.form.preContainersList) {
|
|
|
+ if (!row.cntrTypeCode || !row.quantity) {
|
|
|
+ this.$refs.crud.rowCell(row, row.$index)
|
|
|
+ return this.$message.error("请完善明细信息");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.form.businessType = 'KHTS'
|
|
|
+ this.form.billNoFormat = 'KHTS'
|
|
|
+ this.form.businessTypeCode = 'KHTS'
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: '加载中',
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255,255,255,0.7)'
|
|
|
});
|
|
|
- submitBookingCabin(this.form).then(res => {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.getDetails(this.form.id)
|
|
|
- }).finally(() => {
|
|
|
- loading.close();
|
|
|
+ submit(this.form).then(res => {
|
|
|
+ submitBookingCabin(this.form).then(res => {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.getDetails(this.form.id)
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ }).catch(()=>{
|
|
|
+ loading.close();
|
|
|
})
|
|
|
+
|
|
|
});
|
|
|
|
|
|
}
|
|
|
@@ -1482,7 +1499,6 @@ export default {
|
|
|
}).finally(() => {
|
|
|
loading.close();
|
|
|
})
|
|
|
-
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|