|
@@ -65,11 +65,13 @@
|
|
|
>磅单</el-button
|
|
>磅单</el-button
|
|
|
>
|
|
>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ class="mr20"
|
|
|
:type="distributeType == 4 ? 'primary' : ''"
|
|
:type="distributeType == 4 ? 'primary' : ''"
|
|
|
@click="distributeType = 4"
|
|
@click="distributeType = 4"
|
|
|
size="small"
|
|
size="small"
|
|
|
>汽运装货单</el-button
|
|
>汽运装货单</el-button
|
|
|
>
|
|
>
|
|
|
|
|
+ <el-button @click="fail" size="small" type="danger">不通过</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="distributeType != -1" class="mb20">
|
|
<div v-if="distributeType != -1" class="mb20">
|
|
|
<h5 class="mb10">请选择卸货港:</h5>
|
|
<h5 class="mb10">请选择卸货港:</h5>
|
|
@@ -239,7 +241,7 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="df jcfe">
|
|
|
|
|
|
|
+ <div class="df jcfe" v-if="distributeType != -1 && distributeType != 5">
|
|
|
<el-button size="large" type="primary" @click="submitDistribute"
|
|
<el-button size="large" type="primary" @click="submitDistribute"
|
|
|
>提交</el-button
|
|
>提交</el-button
|
|
|
>
|
|
>
|
|
@@ -330,6 +332,21 @@ async function ocr() {
|
|
|
ocrImageList.value.push(i.viewUrl);
|
|
ocrImageList.value.push(i.viewUrl);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+async function fail() {
|
|
|
|
|
+ let res = await api.distribute({
|
|
|
|
|
+ voyageId: route.query.id,
|
|
|
|
|
+ recordIds: recordIds.value,
|
|
|
|
|
+ type: 5,
|
|
|
|
|
+ });
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ distributeType.value = -1;
|
|
|
|
|
+ recordIds.value = [];
|
|
|
|
|
+ distributePortId.value = -1;
|
|
|
|
|
+ ocrTruckRecordTableData.value = [];
|
|
|
|
|
+ isCheckAll.value = false;
|
|
|
|
|
+ isIndeterminate.value = false;
|
|
|
|
|
+ getBill();
|
|
|
|
|
+}
|
|
|
async function submitDistribute() {
|
|
async function submitDistribute() {
|
|
|
if (recordIds.value.length == 0) {
|
|
if (recordIds.value.length == 0) {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
@@ -391,6 +408,17 @@ async function submitDistribute() {
|
|
|
recordIds: recordIds.value,
|
|
recordIds: recordIds.value,
|
|
|
type,
|
|
type,
|
|
|
});
|
|
});
|
|
|
|
|
+ if (res.data.status == 0) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ message: res.data.msg,
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "info",
|
|
|
|
|
+ message: res.data.msg,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
distributeType.value = -1;
|
|
distributeType.value = -1;
|
|
|
recordIds.value = [];
|
|
recordIds.value = [];
|
|
|
distributePortId.value = -1;
|
|
distributePortId.value = -1;
|