|
@@ -19,6 +19,7 @@
|
|
|
style="width: 80%;"
|
|
|
class="elSelect"
|
|
|
placeholder="请输入模糊查找起运港口"
|
|
|
+ :disabled="noEditing"
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
@@ -42,6 +43,7 @@
|
|
|
remote
|
|
|
@change="estimatedTime"
|
|
|
style="width: 80%;"
|
|
|
+ :disabled="noEditing"
|
|
|
class="elSelect"
|
|
|
placeholder="请输入模糊查找目的港口"
|
|
|
>
|
|
@@ -63,6 +65,7 @@
|
|
|
<el-date-picker
|
|
|
v-model="form.fBsdate"
|
|
|
style="width:80%;"
|
|
|
+ :disabled="noEditing"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择日期">
|
|
@@ -73,6 +76,7 @@
|
|
|
<el-form-item label="运输条款" prop="fServiceitems">
|
|
|
<el-select style="width:80%;"
|
|
|
placeholder="请选择"
|
|
|
+ :disabled="noEditing"
|
|
|
v-model="form.fServiceitems">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in transport"
|
|
@@ -86,7 +90,7 @@
|
|
|
<div class="mainModules">
|
|
|
<!-- <span>付款方式</span>-->
|
|
|
<el-form-item label="付款方式" prop="fPaymode">
|
|
|
- <el-select style="width:80%;" placeholder="请选择"
|
|
|
+ <el-select style="width:80%;" placeholder="请选择" :disabled="noEditing"
|
|
|
v-model="form.fPaymode">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in paymentMethod"
|
|
@@ -100,7 +104,7 @@
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="受票方" prop="fInvoceobj">
|
|
|
- <el-select style="width:80%;" placeholder="请选择"
|
|
|
+ <el-select style="width:80%;" placeholder="请选择" :disabled="noEditing"
|
|
|
v-model="form.fInvoceobj">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in drawee"
|
|
@@ -114,7 +118,7 @@
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="航线" prop="fLaneid">
|
|
|
- <el-select style="width:80%;" placeholder="请选择"
|
|
|
+ <el-select style="width:80%;" placeholder="请选择" :disabled="noEditing"
|
|
|
v-model="form.fLaneid">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in rouTe"
|
|
@@ -128,7 +132,7 @@
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="箱内签收单" prop="fSign">
|
|
|
<!-- <el-input style="width:80%;" v-model="form.fSign"/>-->
|
|
|
- <el-select style="width:80%;" placeholder="请选择"
|
|
|
+ <el-select style="width:80%;" placeholder="请选择" :disabled="noEditing"
|
|
|
v-model="form.fSign">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in cEsign"
|
|
@@ -142,7 +146,7 @@
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="订舱人扣货" prop="fDetentioncargo">
|
|
|
<!-- <el-input style="width:80%;" v-model="form.fDetentioncargo"/>-->
|
|
|
- <el-select style="width:80%;" placeholder="请选择"
|
|
|
+ <el-select style="width:80%;" placeholder="请选择" :disabled="noEditing"
|
|
|
v-model="form.fDetentioncargo">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in etentioncargo"
|
|
@@ -155,8 +159,8 @@
|
|
|
</div>
|
|
|
<div style="width: 70%;">
|
|
|
<el-form-item label="备注" prop="remarks" style="width: 80%;float: left;text-align: left">
|
|
|
- <el-input style="width:80%;float: left" placeholder="如有特殊需求,请再此说明" v-model="form.remarks"/>
|
|
|
- <el-button type="text" style="display: inline; color: red">附件上传<i
|
|
|
+ <el-input style="width:80%;float: left" placeholder="如有特殊需求,请再此说明" :disabled="noEditing" v-model="form.remarks"/>
|
|
|
+ <el-button type="text" style="display: inline; color: red" :disabled="noEditing">附件上传<i
|
|
|
class="el-icon-upload el-icon--right"></i></el-button>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -169,7 +173,7 @@
|
|
|
<span class="redBlock"> </span>
|
|
|
<span>预计时间</span>
|
|
|
<el-button type="primary" size="mini" style="float: right;margin-right: 20px" @click="dialogVisible = true"
|
|
|
- :disabled="!form.fLoadportid || !form.fDestportid">查看船期
|
|
|
+ :disabled="!form.fLoadportid || !form.fDestportid || noEditing">查看船期
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<span style="color:red;display: block;margin:0 auto;margin-bottom: -20px;">{{estimaTe.pidName}} {{estimaTe.fNo}}</span>
|
|
@@ -226,13 +230,13 @@
|
|
|
</div>
|
|
|
<div class="receiveInfo">
|
|
|
<el-form-item label="发货人全称" prop="fShippername">
|
|
|
- <el-input v-model="form.fShippername"/>
|
|
|
+ <el-input v-model="form.fShippername" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发货人联系人">
|
|
|
- <el-input v-model="form.fShipperattn"/>
|
|
|
+ <el-input v-model="form.fShipperattn" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="发货人电话">
|
|
|
- <el-input v-model="form.fShippertel"/>
|
|
|
+ <el-input v-model="form.fShippertel" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -244,13 +248,13 @@
|
|
|
</div>
|
|
|
<div class="receiveInfo">
|
|
|
<el-form-item label="收货人全称" prop="fConsigneername">
|
|
|
- <el-input v-model="form.fConsigneername"/>
|
|
|
+ <el-input v-model="form.fConsigneername" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="收货人联系人">
|
|
|
- <el-input v-model="form.fConsigneeattn"/>
|
|
|
+ <el-input v-model="form.fConsigneeattn" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="收货人电话">
|
|
|
- <el-input v-model="form.fConsigneetel"/>
|
|
|
+ <el-input v-model="form.fConsigneetel" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -274,6 +278,7 @@
|
|
|
style="width: 80%;"
|
|
|
class="elSelect"
|
|
|
placeholder="请输入模糊查找货物名称"
|
|
|
+ :disabled="noEditing"
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
@@ -288,13 +293,13 @@
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="货类">
|
|
|
- <el-input style="width:80%;" v-model="typeGoods"/>
|
|
|
+ <el-input style="width:80%;" v-model="typeGoods" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="包装类型" prop="fPackageid">
|
|
|
<el-select style="width:80%;" placeholder="请选择"
|
|
|
- v-model="list.fPackageid">
|
|
|
+ v-model="list.fPackageid" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in packing"
|
|
|
:key="dict.dictValue"
|
|
@@ -307,7 +312,7 @@
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="箱型" prop="fCntrid">
|
|
|
<el-select style="width:80%;" placeholder="请选择"
|
|
|
- v-model="list.fCntrid" @change="seleEt">
|
|
|
+ v-model="list.fCntrid" @change="seleEt" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in container"
|
|
|
:key="dict.fId"
|
|
@@ -319,18 +324,18 @@
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="箱量" prop="fCntrcount">
|
|
|
- <el-input style="width:80%;" v-model.number="list.fCntrcount" placeholder="请输入箱量" :maxlength="3" @input="calculation" oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
|
|
|
+ <el-input style="width:80%;" :disabled="noEditing" v-model.number="list.fCntrcount" placeholder="请输入箱量" :maxlength="3" @input="calculation" oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="单箱重量(吨)" prop="fCntrweight">
|
|
|
- <el-input style="width:80%;" v-model="list.fCntrweight" @input="cntrWeight"/>
|
|
|
+ <el-input style="width:80%;" :disabled="noEditing" v-model="list.fCntrweight" @input="cntrWeight"/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="箱态" prop="fCntrstatus">
|
|
|
<el-select style="width:80%;" placeholder="请选择"
|
|
|
- v-model="list.fCntrstatus">
|
|
|
+ v-model="list.fCntrstatus" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in fStatus"
|
|
|
:key="dict.dictValue"
|
|
@@ -343,7 +348,7 @@
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="自备货柜" prop="fSoc">
|
|
|
<el-select style="width:80%;" placeholder="请选择"
|
|
|
- v-model="list.fSoc">
|
|
|
+ v-model="list.fSoc" :disabled="noEditing">
|
|
|
<el-option label="是" value="0"></el-option>
|
|
|
<el-option label="否" value="1"></el-option>
|
|
|
</el-select>
|
|
@@ -351,22 +356,22 @@
|
|
|
</div>
|
|
|
<div class="mainModules" v-if="whether === true">
|
|
|
<el-form-item label="设置温度(℃)">
|
|
|
- <el-input style="width:80%;" v-model="list.fTemperature" @input="temperature" oninput='this.value=this.value.replace(/[^\-?\d.]/g,"")'/>
|
|
|
+ <el-input style="width:80%;" :disabled="noEditing" v-model="list.fTemperature" @input="temperature" oninput='this.value=this.value.replace(/[^\-?\d.]/g,"")'/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="mainModules" v-if="whether === true">
|
|
|
<el-form-item label="风门开度(%)">
|
|
|
- <el-input style="width:80%;" v-model.number="list.fDraught" @input="throttleOpening" oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
|
|
|
+ <el-input style="width:80%;" :disabled="noEditing" v-model.number="list.fDraught" @input="throttleOpening" oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="mainModules" v-if="whether === true">
|
|
|
<el-form-item label="湿度设置(%)">
|
|
|
- <el-input style="width:80%;" v-model="list.fHumidity" @input="throttleOpening" oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
|
|
|
+ <el-input style="width:80%;" :disabled="noEditing" v-model="list.fHumidity" @input="throttleOpening" oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="mainModules" v-if="whether === true">
|
|
|
<el-form-item label="预冷要求">
|
|
|
- <el-select style="width:80%;" v-model="list.fPrecooling" placeholder="请选择">
|
|
|
+ <el-select style="width:80%;" v-model="list.fPrecooling" :disabled="noEditing" placeholder="请选择">
|
|
|
<el-option label="是" value="1"></el-option>
|
|
|
<el-option label="否" value="2"></el-option>
|
|
|
</el-select>
|
|
@@ -375,7 +380,7 @@
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="危险化学品" prop="fIfdanger">
|
|
|
<el-select style="width:80%;" placeholder="请选择"
|
|
|
- v-model="list.fIfdanger">
|
|
|
+ v-model="list.fIfdanger" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in dangerous"
|
|
|
:key="dict.dictValue"
|
|
@@ -383,14 +388,14 @@
|
|
|
:value="dict.dictValue"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
- <el-button type="text" style="display: inline; color: red">
|
|
|
+ <el-button type="text" style="display: inline; color: red" :disabled="noEditing">
|
|
|
<i class="el-icon-upload el-icon--right"></i>
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div style="width: 72%;height: 100px;text-align: left;">
|
|
|
<el-form-item label="备注" prop="remarks">
|
|
|
- <el-input style="width:80%;" placeholder="如有特殊需求,请再此说明" v-model="list.remarks"/>
|
|
|
+ <el-input style="width:80%;" placeholder="如有特殊需求,请再此说明" v-model="list.remarks" :disabled="noEditing"/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -406,7 +411,7 @@
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="是否办理保险" prop="fInsurance">
|
|
|
<el-select style="width:80%;" placeholder="请选择"
|
|
|
- v-model="form.fInsurance">
|
|
|
+ v-model="form.fInsurance" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in insurance"
|
|
|
:key="dict.dictValue"
|
|
@@ -418,7 +423,7 @@
|
|
|
</div>
|
|
|
<div class="mainModules">
|
|
|
<el-form-item label="保险货值(万元)" prop="fInsuranceamt">
|
|
|
- <el-input style="width:80%;" v-model="form.fInsuranceamt" :disabled="list.fInsurance == '2'"/>
|
|
|
+ <el-input style="width:80%;" v-model="form.fInsuranceamt" :disabled="list.fInsurance == '2' ||noEditing"/>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -429,7 +434,7 @@
|
|
|
<div class="titleBox">
|
|
|
<span class="redBlock"> </span>
|
|
|
<span>箱信息</span>
|
|
|
- <el-button type="primary" size="mini" style="float: right;margin-right: 20px" @click="newlyAdded">新行
|
|
|
+ <el-button type="primary" size="mini" style="float: right;margin-right: 20px" @click="newlyAdded" :disabled="noEditing">新行
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="basicData" style="display:flex;justify-content: flex-start">
|
|
@@ -439,45 +444,45 @@
|
|
|
<el-table-column
|
|
|
prop="fCntrno"
|
|
|
align="center"
|
|
|
- width="160"
|
|
|
+ width="155"
|
|
|
label="箱号">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.fCntrno" placeholder="请输入箱号"></el-input>
|
|
|
+ <el-input v-model="scope.row.fCntrno" placeholder="请输入箱号" :disabled="noEditing"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fSealno"
|
|
|
align="center"
|
|
|
- width="160"
|
|
|
+ width="135"
|
|
|
label="铅封号">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.fSealno" placeholder="请输入铅封号"></el-input>
|
|
|
+ <el-input v-model="scope.row.fSealno" placeholder="请输入铅封号" :disabled="noEditing"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fCntrweight"
|
|
|
align="center"
|
|
|
- width="170"
|
|
|
- label="单箱重量(吨)">
|
|
|
+ width="80"
|
|
|
+ label="单箱(吨)">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.fCntrweight" placeholder="请输入单箱重量(吨)"></el-input>
|
|
|
+ <el-input v-model="scope.row.fCntrweight" placeholder="请输入" :disabled="noEditing"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="fGoodsid"
|
|
|
align="center"
|
|
|
- width="160"
|
|
|
+ width="110"
|
|
|
label="货名">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-input v-model="scope.row.fGoodsid" placeholder="请输入货名"></el-input>-->
|
|
|
<el-select
|
|
|
v-model="scope.row.fGoodsid"
|
|
|
+ :disabled="noEditing"
|
|
|
filterable
|
|
|
remote
|
|
|
@change="select"
|
|
|
- style="width: 80%;border: none"
|
|
|
class="elSelect"
|
|
|
- placeholder="请输入模糊查找货物名称"
|
|
|
+ placeholder="请输入"
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
@@ -493,12 +498,11 @@
|
|
|
<el-table-column
|
|
|
prop="fPackageid"
|
|
|
align="center"
|
|
|
- width="160"
|
|
|
+ width="100"
|
|
|
label="包装类型">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-input v-model="scope.row.fGoodsid" placeholder="请输入货名"></el-input>-->
|
|
|
- <el-select style="width:80%;" slot="prepend" placeholder="请选择"
|
|
|
- v-model="scope.row.fPackageid">
|
|
|
+ <el-select slot="prepend" placeholder="请选" v-model="scope.row.fPackageid" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in packing"
|
|
|
:key="dict.dictValue"
|
|
@@ -511,12 +515,11 @@
|
|
|
<el-table-column
|
|
|
prop="fCntrid"
|
|
|
align="center"
|
|
|
- width="160"
|
|
|
+ width="105"
|
|
|
label="箱型">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- <el-input v-model="scope.row.fGoodsid" placeholder="请输入货名"></el-input>-->
|
|
|
- <el-select style="width:80%;" slot="prepend" placeholder="请选择"
|
|
|
- v-model="scope.row.fCntrid">
|
|
|
+ <el-select slot="prepend" placeholder="请选择" v-model="scope.row.fCntrid" :disabled="noEditing">
|
|
|
<el-option
|
|
|
v-for="(dict, index) in container"
|
|
|
:key="dict.fId"
|
|
@@ -532,6 +535,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
+ :disabled="noEditing"
|
|
|
@click.native.prevent="deleteRow(scope.$index, tableData)"
|
|
|
>删除
|
|
|
</el-button>
|
|
@@ -591,7 +595,7 @@
|
|
|
<div class="confirmOrder" @click="confirmOrder" v-if="boxStatus">
|
|
|
确认下单
|
|
|
</div>
|
|
|
- <div class="confirmOrder" @click="submit" v-else>
|
|
|
+ <div class="confirmOrder" @click="submit" v-else v-show="!noEditing">
|
|
|
提交箱信息
|
|
|
</div>
|
|
|
</div>
|
|
@@ -660,6 +664,7 @@ export default {
|
|
|
return {
|
|
|
boxType:'',
|
|
|
cntrcount:0,
|
|
|
+ noEditing:false,
|
|
|
rules: {
|
|
|
fLoadportid: [{ required: true, message: " ", trigger: "blur" }],
|
|
|
fDestportid: [{ required: true, message: " ", trigger: "blur" }],
|
|
@@ -750,6 +755,7 @@ export default {
|
|
|
}else if( res == '' || res == null){
|
|
|
return;
|
|
|
} else {
|
|
|
+ this.list.fCntrweight = ''
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: '单箱重量应在0-40吨之间',
|
|
@@ -809,6 +815,9 @@ export default {
|
|
|
.then(res => {
|
|
|
console.log(res.data.rows[0]);
|
|
|
this.form = res.data.rows[0];
|
|
|
+ if (this.form.fBillstatus >= 11){
|
|
|
+ this.noEditing = true
|
|
|
+ }
|
|
|
this.form.fPaymode = this.form.fPaymode +''
|
|
|
this.form.fSign = this.form.fSign +''
|
|
|
this.form.fDetentioncargo = this.form.fDetentioncargo +''
|
|
@@ -853,18 +862,19 @@ export default {
|
|
|
method: 'post',
|
|
|
data: formData
|
|
|
}).then(res => {
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
if (res.data.code === 500){
|
|
|
- console.log(res.data.msg);
|
|
|
+ // console.log(res.data.msg);
|
|
|
+ // this.$message.error(res.data.msg);
|
|
|
}else {
|
|
|
this.goods = res.data.data;
|
|
|
this.$router.push({
|
|
|
path: '/',
|
|
|
});
|
|
|
}
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.log(err);
|
|
|
+ }).catch(err => {
|
|
|
+ // console.log(err);
|
|
|
+ this.$message.error(err);
|
|
|
});
|
|
|
},
|
|
|
queryGoods() {
|
|
@@ -877,7 +887,7 @@ export default {
|
|
|
this.goods = res.data.data;
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- console.log(err);
|
|
|
+ this.$message.error('未知错误');
|
|
|
});
|
|
|
},
|
|
|
calculation(){
|