0123需求
parent
db464aa5b9
commit
e555771f1b
|
@ -56,7 +56,7 @@ module.exports = {
|
||||||
// 创建船舶基本信息 shipInfoTable
|
// 创建船舶基本信息 shipInfoTable
|
||||||
createShipInfoTable() {
|
createShipInfoTable() {
|
||||||
let sql =
|
let sql =
|
||||||
'CREATE TABLE if not exists shipInfoTable ("webId" text NOT NULL,"vtpId" text,"agencyCname" text,"ctyCnname" text,"ctyCode" text,"dataVersion" text,"shipCname" text,"shipTypeName" text,"spmBoardCentrele" text,"spmBoardCentrerg" text,"spmBoardFrontle" text,"spmBoardFrontrg" text,"spmBoardLaterle" text,"spmBoardLaterrg" text,"spmCab" text,"spmCabinht" text,"spmCountrycd" text,"spmEdicd" text,"spmId" text,"spmLightWeight" text,"spmMadeTime" text,"spmMintide" text,"spmMmsi" text,"spmNationality" text,"spmPilot" text,"spmPilotName" text,"spmRemark" text,"spmShipSign" text,"spmShipType" text,"spmTotalCargo" text,"spmTrade" text,"spmTradeName" text,"tenantId" text,"termcd" text,"valid" text,"vslAudio" text,"vslBaynum" text,"vslBkbaynum" text,"vslBkendbay" text,"vslBkstartbay" text,"vslBksternnum" text,"vslBreadth" text,"vslCallid" text,"vslCallsign" text,"vslCd" text,"vslCnname" text,"vslCstAgency" text,"vslCstShippingline" text,"vslCtyCountrycd" text,"vslDeckmaxrows" text,"vslDeckmaxtiers" text,"vslDepth" text,"vslDerrickamount" text,"vslDraftload" text,"vslDraftunload" text,"vslEndlength" text,"vslEnname" text,"vslGton" text,"vslHatchamount" text,"vslHatchcoveramount" text,"vslHatchmaxrows" text,"vslHatchmaxtiers" text,"vslImono" text,"vslLcg" text,"vslLoa" text,"vslLoaddisargereq" text,"vslMadedt" text,"vslNetton" text,"vslOrigin" text,"vslPilotage" text,"vslRfsocket" text,"vslSailspeed" text,"vslSpoptp" text,"vslStdId" text,"vslStopsign" text,"vslStowagereq" text,"vslSummaryloading" text,"vslTcg" text,"vslTotallocation" text,"vslUncode" text,"vslVcg" text,"vslVtpcode" text,"webDate" text, PRIMARY KEY("webId"));'
|
'CREATE TABLE if not exists shipInfoTable ("webId" text NOT NULL,"vtpId" text,"agencyCname" text,"ctyCnname" text,"ctyCode" text,"dataVersion" text,"shipCname" text,"shipTypeName" text,"spmBoardCentrele" text,"spmBoardCentrerg" text,"spmBoardFrontle" text,"spmBoardFrontrg" text,"spmBoardLaterle" text,"spmBoardLaterrg" text,"spmCab" text,"spmCabinht" text,"spmCountrycd" text,"spmEdicd" text,"spmId" text,"spmLightWeight" text,"spmMadeTime" text,"spmMintide" text,"spmMmsi" text,"spmNationality" text,"spmPilot" text,"spmPilotName" text,"spmRemark" text,"spmShipSign" text,"spmShipType" text,"spmTotalCargo" text,"spmTrade" text,"spmTradeName" text,"tenantId" text,"termcd" text,"valid" text,"vslAudio" text,"vslBaynum" text,"vslBkbaynum" text,"vslBkendbay" text,"vslBkstartbay" text,"vslBksternnum" text,"vslBreadth" text,"vslCallid" text,"vslCallsign" text,"vslCd" text,"vslCnname" text,"vslCstAgency" text,"vslCstShippingline" text,"vslCtyCountrycd" text,"vslDeckmaxrows" text,"vslDeckmaxtiers" text,"vslDepth" text,"vslDerrickamount" text,"vslDraftload" text,"vslDraftunload" text,"vslEndlength" text,"vslEnname" text,"vslGton" text,"vslHatchamount" text,"vslHatchcoveramount" text,"vslHatchmaxrows" text,"vslHatchmaxtiers" text,"vslImono" text,"vslLcg" text,"vslLoa" text,"vslLoaddisargereq" text,"vslMadedt" text,"vslNetton" text,"vslOrigin" text,"vslPilotage" text,"vslRfsocket" text,"vslSailspeed" text,"vslSpoptp" text,"vslStdId" text,"vslStopsign" text,"vslStowagereq" text,"vslSummaryloading" text,"vslTcg" text,"vslTotallocation" text,"vslUncode" text,"vslVcg" text,"vslVtpcode" text,"webDate" text,"actualBerthingTime" text, PRIMARY KEY("webId"));'
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
},
|
},
|
||||||
// 创建船舶计划信息 voyageScheduleDataPadRespDTO
|
// 创建船舶计划信息 voyageScheduleDataPadRespDTO
|
||||||
|
@ -134,7 +134,7 @@ module.exports = {
|
||||||
// 创建质量意见征询 shipmentQualityConsultationRespList
|
// 创建质量意见征询 shipmentQualityConsultationRespList
|
||||||
createShipmentQualityConsultationRespList() {
|
createShipmentQualityConsultationRespList() {
|
||||||
let sql =
|
let sql =
|
||||||
'CREATE TABLE if not exists shipmentQualityConsultationRespList ("vqcId" text NOT NULL,"vtpId" text,"vvyId" text,"vvyName" text,"importExportFlagName" text,"bthId" text,"bthIdName" text,"handlingType" text,"handlingName" text,"vehiclesNumber" text,"spareNumber" text,"operationDate" text,"webStatus" text,"webDate" text, PRIMARY KEY("vqcId"));'
|
'CREATE TABLE if not exists shipmentQualityConsultationRespList ("vqcId" text NOT NULL,"vtpId" text,"vvyId" text,"vvyName" text,"importExportFlagName" text,"bthId" text,"bthIdName" text,"handlingType" text,"handlingName" text,"vehiclesNumber" text,"spareNumber" text,"operationDate" text,"webStatus" text,"webDate" text,"vehiclesNumberDe" text,"spareNumberDe" text, PRIMARY KEY("vqcId"));'
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
},
|
},
|
||||||
// 创建质量意见征询评价表 evaluateTable
|
// 创建质量意见征询评价表 evaluateTable
|
||||||
|
|
|
@ -245,7 +245,7 @@
|
||||||
},
|
},
|
||||||
dropTable() {
|
dropTable() {
|
||||||
console.log('删除表');
|
console.log('删除表');
|
||||||
let sql = 'DROP TABLE workQueryDetails;'
|
let sql = 'DROP TABLE shipmentQualityConsultationRespList;'
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
},
|
},
|
||||||
dropData() {
|
dropData() {
|
||||||
|
@ -370,7 +370,7 @@
|
||||||
'${info.vslHatchmaxtiers}','${info.vslImono}','${info.vslLcg}','${info.vslLoa}','${info.vslLoaddisargereq}','${info.vslMadedt}',
|
'${info.vslHatchmaxtiers}','${info.vslImono}','${info.vslLcg}','${info.vslLoa}','${info.vslLoaddisargereq}','${info.vslMadedt}',
|
||||||
'${info.vslNetton}','${info.vslOrigin}','${info.vslPilotage}','${info.vslRfsocket}','${info.vslSailspeed}','${info.vslSpoptp}',
|
'${info.vslNetton}','${info.vslOrigin}','${info.vslPilotage}','${info.vslRfsocket}','${info.vslSailspeed}','${info.vslSpoptp}',
|
||||||
'${info.vslStdId}','${info.vslStopsign}','${info.vslStowagereq}','${info.vslSummaryloading}','${info.vslTcg}','${info.vslTotallocation}',
|
'${info.vslStdId}','${info.vslStopsign}','${info.vslStowagereq}','${info.vslSummaryloading}','${info.vslTcg}','${info.vslTotallocation}',
|
||||||
'${info.vslUncode}','${info.vslVcg}','${info.vslVtpcode}','${webDate}')`
|
'${info.vslUncode}','${info.vslVcg}','${info.vslVtpcode}','${webDate}','${info.actualBerthingTime}')`
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
},
|
},
|
||||||
// 船舶计划信息
|
// 船舶计划信息
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<view class="leftHead">
|
<view class="leftHead">
|
||||||
<image id="HT-logo" src="../../static/images/theme/logo.png" mode="widthFix">
|
<image id="HT-logo" src="../../static/images/theme/logo.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="rightHead">
|
<view class="rightHead">
|
||||||
<p>上海海通国际汽车码头有限公司</p>
|
<p>上海海通国际汽车码头有限公司</p>
|
||||||
|
@ -55,15 +55,15 @@
|
||||||
<table class="t-zx headZx">
|
<table class="t-zx headZx">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="2" style="width: 50px;"></td>
|
<td rowspan="2" style="width: 140px;"></td>
|
||||||
<td colspan="6">Working time</td>
|
<td colspan="6">Working time</td>
|
||||||
<td colspan="4">Kind Of Works</td>
|
<td colspan="4">Kind Of Works</td>
|
||||||
<td rowspan="2">B/L</td>
|
<td rowspan="2">B/L</td>
|
||||||
<td colspan="3">Handling method</td>
|
<td colspan="3">Handling method</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" style="width: 120px;">From</td>
|
<td colspan="3" style="width: 88.5px;">From</td>
|
||||||
<td colspan="3" style="width: 120px;">To</td>
|
<td colspan="3" style="width: 88.5px;">To</td>
|
||||||
<td colspan="4">Loading/UnLoading</td>
|
<td colspan="4">Loading/UnLoading</td>
|
||||||
<td>Ro/Ro</td>
|
<td>Ro/Ro</td>
|
||||||
<td>PortDevices</td>
|
<td>PortDevices</td>
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<view v-for="(item2,index2) in shiftInfo" :key="index2 + 'shift'" class="rowBox">
|
<view v-for="(item2,index2) in shiftInfo" :key="index2 + 'shift'" class="rowBox">
|
||||||
<view class="name">{{item2.pwcTypeName}}</view>
|
<view class="name">{{item2.pwcTypeName == '一工班' ? 'First Shift(一工班)' : item2.pwcTypeName == '二工班' ? 'Second Shift(二工班)' : item2.pwcTypeName == '三工班' ? 'Third Shift(三工班)' : ''}}</view>
|
||||||
<view class="time">{{item2.workStartTime}}</view>
|
<view class="time">{{item2.workStartTime}}</view>
|
||||||
<view class="time">{{item2.workEndTime}}</view>
|
<view class="time">{{item2.workEndTime}}</view>
|
||||||
<view class="infoBox">
|
<view class="infoBox">
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
<table class="t-zx">
|
<table class="t-zx">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td :rowspan="fcList.length + 2">翻仓信息</td>
|
<td :rowspan="fcList.length + 2">Rehangdling(翻舱)</td>
|
||||||
<td colspan="2" rowspan="2">Kind of Rehangdling</td>
|
<td colspan="2" rowspan="2">Kind of Rehangdling</td>
|
||||||
<td colspan="2">DK/H</td>
|
<td colspan="2">DK/H</td>
|
||||||
<td colspan="6">Working time</td>
|
<td colspan="6">Working time</td>
|
||||||
|
@ -121,11 +121,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<!-- <td colspan="2">Reason</td> -->
|
<!-- <td colspan="2">Reason</td> -->
|
||||||
<td colspan="3">技术工人</td>
|
<td colspan="3">Tech Stev</td>
|
||||||
<td>From</td>
|
<td>From</td>
|
||||||
<td>To</td>
|
<td>To</td>
|
||||||
<td>Weight/Measure</td>
|
<td>Weight/Measure</td>
|
||||||
<td colspan="3">普通工人</td>
|
<td colspan="3">Men</td>
|
||||||
<td>From</td>
|
<td>From</td>
|
||||||
<td>To</td>
|
<td>To</td>
|
||||||
<td>Weight/Measure</td>
|
<td>Weight/Measure</td>
|
||||||
|
@ -759,7 +759,7 @@
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
border-right: 1px solid #000;
|
border-right: 1px solid #000;
|
||||||
width: 70px;
|
width: 200px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -113,6 +113,9 @@
|
||||||
this.optionData = value
|
this.optionData = value
|
||||||
} else if (tableName == 'shipInfoTable') {
|
} else if (tableName == 'shipInfoTable') {
|
||||||
this.shipInfo = value[0]
|
this.shipInfo = value[0]
|
||||||
|
if(this.obj.state == "edit" || this.obj.state == "add") {
|
||||||
|
if(this.shipInfo.actualBerthingTime) this.workDate = this.shipInfo.actualBerthingTime.split(' ')[0]
|
||||||
|
}
|
||||||
} else if (tableName == 'voyageScheduleDataDetailRespDTOList') {
|
} else if (tableName == 'voyageScheduleDataDetailRespDTOList') {
|
||||||
this.vvyInfo = value
|
this.vvyInfo = value
|
||||||
value.forEach((v, index) => {
|
value.forEach((v, index) => {
|
||||||
|
|
|
@ -13,8 +13,12 @@
|
||||||
<text>航次:{{item.vvyName}}</text>
|
<text>航次:{{item.vvyName}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="liInfo">
|
<view class="liInfo">
|
||||||
<p>进出口:<text>{{item.importExportFlagName}}</text></p>
|
<!-- <p>进出口:<text>{{item.importExportFlagName}}</text></p>
|
||||||
<p>贸易类型:<text>{{shipInfo.spmTradeName}}</text></p>
|
<p>贸易类型:<text>{{shipInfo.spmTradeName}}</text></p> -->
|
||||||
|
<p v-show="item.handlingType == 2 || item.handlingType == 1">车辆数:<text>{{item.handlingType == 2 ? 'discharge' : item.handlingType == 1 ? 'load' : ''}}</text><text>{{item.vehiclesNumber}}</text></p>
|
||||||
|
<p v-show="item.handlingType == 2 || item.handlingType == 1">备件数:<text>{{item.handlingType == 2 ? 'discharge' : item.handlingType == 1 ? 'load' : ''}}</text><text>{{item.spareNumber}}</text></p>
|
||||||
|
<p v-show="item.handlingType == '1/2' || item.handlingType == '2/1'">车辆数:<text>{{item.handlingType == '1/2' ? `load${item.vehiclesNumber}/discharge${item.vehiclesNumberDe}` : item.handlingType == '2/1' ? `discharge${item.vehiclesNumber}/load${item.vehiclesNumberDe}` : ''}}</text></p>
|
||||||
|
<p v-show="item.handlingType == '1/2' || item.handlingType == '2/1'">备件数:<text>{{item.handlingType == '1/2' ? `load${item.spareNumber}/discharge${item.spareNumberDe}` : item.handlingType == '2/1' ? `discharge${item.spareNumber}/load${item.spareNumberDe}` : ''}}</text></p>
|
||||||
<p>作业日期:<text>{{item.operationDate}}</text></p>
|
<p>作业日期:<text>{{item.operationDate}}</text></p>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -54,8 +58,10 @@
|
||||||
// 在resolve时执行的回调函数
|
// 在resolve时执行的回调函数
|
||||||
if (tableName == 'shipInfoTable') {
|
if (tableName == 'shipInfoTable') {
|
||||||
this.shipInfo = value[0]
|
this.shipInfo = value[0]
|
||||||
|
console.log(this.shipInfo);
|
||||||
} else {
|
} else {
|
||||||
this.infoList = value
|
this.infoList = value
|
||||||
|
console.log(this.infoList);
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
// 在reject时执行的回调函数
|
// 在reject时执行的回调函数
|
||||||
|
@ -123,7 +129,7 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
.li {
|
.li {
|
||||||
width: 33%;
|
width: 100%;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@ -151,12 +157,12 @@
|
||||||
|
|
||||||
.liInfo {
|
.liInfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
// flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
width: 49%;
|
width: 30%;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
|
||||||
|
|
|
@ -8,42 +8,12 @@
|
||||||
<p>船名:</p>
|
<p>船名:</p>
|
||||||
<text>{{shipInfo.vslCnname}}</text>
|
<text>{{shipInfo.vslCnname}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
|
||||||
<p><text class="required" v-if="obj.state != 'look'">*</text>航次:</p>
|
|
||||||
<uni-data-select v-model="vvyId" :localdata="hcList" @change="hcChange"
|
|
||||||
v-if="obj.state != 'look'"></uni-data-select>
|
|
||||||
<text v-else>{{vvyName}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="li">
|
|
||||||
<p>进出口:</p>
|
|
||||||
<text>{{importExportFlagName}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="li">
|
|
||||||
<p>贸易类型:</p>
|
|
||||||
<text>{{spmTradeName}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p><text class="required" v-if="obj.state != 'look'">*</text>泊位:</p>
|
<p><text class="required" v-if="obj.state != 'look'">*</text>泊位:</p>
|
||||||
<uni-data-select v-model="bthId" :localdata="bwList" @change="bwChange"
|
<uni-data-select v-model="bthId" :localdata="bwList" @change="bwChange"
|
||||||
v-if="obj.state != 'look'"></uni-data-select>
|
v-if="obj.state != 'look'"></uni-data-select>
|
||||||
<text v-else>{{bthIdName}}</text>
|
<text v-else>{{bthIdName}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
|
||||||
<p><text class="required" v-if="obj.state != 'look'">*</text>装卸类型:</p>
|
|
||||||
<!-- <uni-data-select v-model="handlingType" :localdata="zxList" @change="zxChange"
|
|
||||||
v-if="obj.state != 'look'"></uni-data-select> -->
|
|
||||||
<text>{{handlingName}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="li">
|
|
||||||
<p><text class="required" v-if="obj.state != 'look'">*</text>车辆数量:</p>
|
|
||||||
<uni-number-box v-model="vehiclesNumber" :max="1000000000" v-if="obj.state != 'look'" />
|
|
||||||
<text v-else>{{vehiclesNumber}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="li">
|
|
||||||
<p><text class="required" v-if="obj.state != 'look'">*</text>备件数量:</p>
|
|
||||||
<uni-number-box v-model="spareNumber" :max="1000000000" v-if="obj.state != 'look'" />
|
|
||||||
<text v-else>{{spareNumber}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p><text class="required" v-if="obj.state != 'look'">*</text>作业日期:</p>
|
<p><text class="required" v-if="obj.state != 'look'">*</text>作业日期:</p>
|
||||||
<uni-datetime-picker v-model="operationDate" type="date" :clear-icon="false" @change="changeLog"
|
<uni-datetime-picker v-model="operationDate" type="date" :clear-icon="false" @change="changeLog"
|
||||||
|
@ -51,6 +21,42 @@
|
||||||
<text v-else>{{operationDate}}</text>
|
<text v-else>{{operationDate}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="ul" v-for="(item,index) in vvyInfo">
|
||||||
|
<view class="li">
|
||||||
|
<p><text class="required" v-if="obj.state != 'look'">*</text>航次:</p>
|
||||||
|
<!-- <uni-data-select v-model="vvyId" :localdata="hcList" @change="hcChange"
|
||||||
|
v-if="obj.state != 'look'"></uni-data-select>
|
||||||
|
<text v-else>{{vvyName}}</text> -->
|
||||||
|
<text>{{ item.vvyName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<p>进出口:</p>
|
||||||
|
<!-- <text>{{importExportFlagName}}</text> -->
|
||||||
|
<text>{{ item.importExportFlagName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<p>贸易类型:</p>
|
||||||
|
<!-- <text>{{spmTradeName}}</text> -->
|
||||||
|
<text>{{ item.tradeTypeName }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<p><text class="required" v-if="obj.state != 'look'">*</text>装卸类型:</p>
|
||||||
|
<!-- <uni-data-select v-model="handlingType" :localdata="zxList" @change="zxChange"
|
||||||
|
v-if="obj.state != 'look'"></uni-data-select> -->
|
||||||
|
<!-- <text>{{handlingName}}</text> -->
|
||||||
|
<text>{{ item.importExportFlagName == "进口" ? '卸货' : '装货' }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<p><text class="required" v-if="obj.state != 'look'">*</text>车辆数量:</p>
|
||||||
|
<uni-number-box v-model="item['vehiclesNumber' + index]" :max="1000000000" v-if="obj.state != 'look'" />
|
||||||
|
<text v-else>{{item['vehiclesNumber' + index]}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="li">
|
||||||
|
<p><text class="required" v-if="obj.state != 'look'">*</text>备件数量:</p>
|
||||||
|
<uni-number-box v-model="item['spareNumber' + index]" :max="1000000000" v-if="obj.state != 'look'" />
|
||||||
|
<text v-else>{{item['spareNumber' + index]}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<uni-popup ref="popup" type="dialog">
|
<uni-popup ref="popup" type="dialog">
|
||||||
<uni-popup-dialog type="error" confirmText="确定" title="通知" content="是否删除此条数据"
|
<uni-popup-dialog type="error" confirmText="确定" title="通知" content="是否删除此条数据"
|
||||||
@confirm="delConfirm"></uni-popup-dialog>
|
@confirm="delConfirm"></uni-popup-dialog>
|
||||||
|
@ -148,8 +154,20 @@
|
||||||
this.getShip()
|
this.getShip()
|
||||||
} else if (tableName == 'shipInfoTable') {
|
} else if (tableName == 'shipInfoTable') {
|
||||||
this.shipInfo = value[0]
|
this.shipInfo = value[0]
|
||||||
|
// console.log(this.shipInfo);
|
||||||
|
if(this.obj.state == "edit" || this.obj.state == "add") {
|
||||||
|
if(this.shipInfo.actualBerthingTime) this.operationDate = this.shipInfo.actualBerthingTime.split(' ')[0]
|
||||||
|
}
|
||||||
} else if (tableName == 'voyageScheduleDataDetailRespDTOList') {
|
} else if (tableName == 'voyageScheduleDataDetailRespDTOList') {
|
||||||
this.vvyInfo = value
|
this.vvyInfo = value
|
||||||
|
this.vvyInfo.map((item,index) => {
|
||||||
|
let vehiclesNumber = 'vehiclesNumber' + index
|
||||||
|
let spareNumber = 'spareNumber' + index
|
||||||
|
item[vehiclesNumber] = 0
|
||||||
|
item[spareNumber] = 0
|
||||||
|
return item
|
||||||
|
})
|
||||||
|
// console.log(this.vvyInfo);
|
||||||
value.forEach((v, index) => {
|
value.forEach((v, index) => {
|
||||||
this.hcList.push({
|
this.hcList.push({
|
||||||
text: v.vvyName,
|
text: v.vvyName,
|
||||||
|
@ -202,8 +220,12 @@
|
||||||
this.bthIdName = this.opinionRow.bthIdName
|
this.bthIdName = this.opinionRow.bthIdName
|
||||||
this.handlingType = this.opinionRow.handlingType
|
this.handlingType = this.opinionRow.handlingType
|
||||||
this.handlingName = this.opinionRow.handlingName
|
this.handlingName = this.opinionRow.handlingName
|
||||||
this.vehiclesNumber = this.opinionRow.vehiclesNumber
|
this.vvyInfo[0].vehiclesNumber0 = this.opinionRow.vehiclesNumber
|
||||||
this.spareNumber = this.opinionRow.spareNumber
|
this.vvyInfo[0].spareNumber0 = this.opinionRow.spareNumber
|
||||||
|
if(this.vvyInfo.length > 1) {
|
||||||
|
this.vvyInfo[1].vehiclesNumber1 = this.opinionRow.vehiclesNumberDe
|
||||||
|
this.vvyInfo[1].spareNumber1 = this.opinionRow.spareNumberDe
|
||||||
|
}
|
||||||
this.operationDate = this.opinionRow.operationDate
|
this.operationDate = this.opinionRow.operationDate
|
||||||
this.vvyInfo.forEach(v => {
|
this.vvyInfo.forEach(v => {
|
||||||
if (this.vvyId == v.vvyId) {
|
if (this.vvyId == v.vvyId) {
|
||||||
|
@ -286,18 +308,53 @@
|
||||||
let webStatus = 0
|
let webStatus = 0
|
||||||
let webDate = api.getDate(date)
|
let webDate = api.getDate(date)
|
||||||
if (this.obj.state == "edit") {
|
if (this.obj.state == "edit") {
|
||||||
|
if(this.vvyInfo.length == 1) {
|
||||||
let sql =
|
let sql =
|
||||||
`UPDATE shipmentQualityConsultationRespList SET vvyId = '${this.vvyId}', vvyName = '${this.vvyName}', importExportFlagName = '${this.importExportFlagName}',
|
`UPDATE shipmentQualityConsultationRespList SET vvyId = '${this.vvyInfo[0].vvyId}',vvyName = '${this.vvyInfo[0].vvyName}',importExportFlagName = '${this.vvyInfo[0].importExportFlagName}',
|
||||||
bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',handlingType = '${this.handlingType}',
|
bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',handlingType = '${this.vvyInfo[0].importExportFlagName == '进口' ? '2' : '1'}',handlingName = '${this.vvyInfo[0].importExportFlagName == '进口' ? '卸货' : '装货'}',
|
||||||
handlingName = '${this.handlingName}', vehiclesNumber = '${this.vehiclesNumber}', spareNumber = '${this.spareNumber}',
|
vehiclesNumber = '${this.vvyInfo[0].vehiclesNumber0}',spareNumber = '${this.vvyInfo[0].spareNumber0}',operationDate = '${this.operationDate}',webStatus = '${webStatus}',webDate = '${webDate}',vehiclesNumberDe='null',spareNumberDe='null' WHERE vqcId = '${this.opinionRow.vqcId}';`
|
||||||
operationDate = '${this.operationDate}',webStatus = '${webStatus}',webDate = '${webDate}' WHERE vqcId = '${this.opinionRow.vqcId}';`
|
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
|
}
|
||||||
|
if(this.vvyInfo.length > 1) {
|
||||||
|
let vvyId = this.vvyInfo[0].vvyId+'/'+this.vvyInfo[1].vvyId
|
||||||
|
let vvyName = this.vvyInfo[0].vvyName+'/'+this.vvyInfo[1].vvyName
|
||||||
|
let importExportFlagName = this.vvyInfo[0].importExportFlagName+'/'+this.vvyInfo[1].importExportFlagName
|
||||||
|
let handlingType0 = this.vvyInfo[0].importExportFlagName == '进口' ? '2' : '1'
|
||||||
|
let handlingType1 = this.vvyInfo[1].importExportFlagName == '进口' ? '2' : '1'
|
||||||
|
let handlingType = handlingType0+'/'+handlingType1
|
||||||
|
let handlingName0 = this.vvyInfo[0].importExportFlagName == '进口' ? '卸货' : '装货'
|
||||||
|
let handlingName1 = this.vvyInfo[1].importExportFlagName == '进口' ? '卸货' : '装货'
|
||||||
|
let handlingName = handlingName0+'/'+handlingName1
|
||||||
|
let sql =
|
||||||
|
`UPDATE shipmentQualityConsultationRespList SET vvyId = '${vvyId}',vvyName = '${vvyName}',importExportFlagName = '${importExportFlagName}',
|
||||||
|
bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',handlingType = '${handlingType}',handlingName = '${handlingName}',
|
||||||
|
vehiclesNumber = '${this.vvyInfo[0].vehiclesNumber0}',spareNumber = '${this.vvyInfo[0].spareNumber0}',operationDate = '${this.operationDate}',webStatus = '${webStatus}',webDate = '${webDate}',vehiclesNumberDe='${this.vvyInfo[1].vehiclesNumber1}',spareNumberDe='${this.vvyInfo[1].spareNumber1}' WHERE vqcId = '${this.opinionRow.vqcId}';`
|
||||||
|
this.executeSql(sql)
|
||||||
|
}
|
||||||
} else if (this.obj.state == "add") {
|
} else if (this.obj.state == "add") {
|
||||||
let sql = `insert into shipmentQualityConsultationRespList values('${vqcId}','${this.vtpId}','${this.vvyId}','${this.vvyName}','${this.importExportFlagName}',
|
if(this.vvyInfo.length == 1) {
|
||||||
'${this.bthId}','${this.bthIdName}','${this.handlingType}','${this.handlingName}','${this.vehiclesNumber}',
|
let sql = `insert into shipmentQualityConsultationRespList values('${vqcId}','${this.vvyInfo[0].vtpId}','${this.vvyInfo[0].vvyId}','${this.vvyInfo[0].vvyName}','${this.vvyInfo[0].importExportFlagName}',
|
||||||
'${this.spareNumber}','${this.operationDate}','${webStatus}','${webDate}')`
|
'${this.bthId}','${this.bthIdName}','${this.vvyInfo[0].importExportFlagName == '进口' ? '2' : '1'}','${this.vvyInfo[0].importExportFlagName == '进口' ? '卸货' : '装货'}','${this.vvyInfo[0].vehiclesNumber0}',
|
||||||
|
'${this.vvyInfo[0].spareNumber0}','${this.operationDate}','${webStatus}','${webDate}','null','null')`
|
||||||
this.executeSql(sql)
|
this.executeSql(sql)
|
||||||
}
|
}
|
||||||
|
if(this.vvyInfo.length > 1) {
|
||||||
|
let vtpId = this.vvyInfo[0].vtpId
|
||||||
|
let vvyId = this.vvyInfo[0].vvyId+'/'+this.vvyInfo[1].vvyId
|
||||||
|
let vvyName = this.vvyInfo[0].vvyName+'/'+this.vvyInfo[1].vvyName
|
||||||
|
let importExportFlagName = this.vvyInfo[0].importExportFlagName+'/'+this.vvyInfo[1].importExportFlagName
|
||||||
|
let handlingType0 = this.vvyInfo[0].importExportFlagName == '进口' ? '2' : '1'
|
||||||
|
let handlingType1 = this.vvyInfo[1].importExportFlagName == '进口' ? '2' : '1'
|
||||||
|
let handlingType = handlingType0+'/'+handlingType1
|
||||||
|
let handlingName0 = this.vvyInfo[0].importExportFlagName == '进口' ? '卸货' : '装货'
|
||||||
|
let handlingName1 = this.vvyInfo[1].importExportFlagName == '进口' ? '卸货' : '装货'
|
||||||
|
let handlingName = handlingName0+'/'+handlingName1
|
||||||
|
let sql = `insert into shipmentQualityConsultationRespList values('${vqcId}','${vtpId}','${vvyId}','${vvyName}','${importExportFlagName}',
|
||||||
|
'${this.bthId}','${this.bthIdName}','${handlingType}','${handlingName}','${this.vvyInfo[0].vehiclesNumber0}',
|
||||||
|
'${this.vvyInfo[0].spareNumber0}','${this.operationDate}','${webStatus}','${webDate}','${this.vvyInfo[1].vehiclesNumber1}','${this.vvyInfo[1].spareNumber1}')`
|
||||||
|
this.executeSql(sql)
|
||||||
|
}
|
||||||
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shipWork/opinion'
|
url: '/pages/shipWork/opinion'
|
||||||
})
|
})
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<view class="leftHead">
|
<view class="leftHead">
|
||||||
<image id="HT-logo" src="../../static/images/theme/logo.png" mode="widthFix">
|
<image id="HT-logo" src="../../static/images/theme/logo.png" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="rightHead">
|
<view class="rightHead">
|
||||||
<p>上海海通国际汽车码头有限公司</p>
|
<p>上海海通国际汽车码头有限公司</p>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p>装卸量(件)/Qualitu/Pkg’s:</p>
|
<p>装卸量(件)/Qualitu/Pkg’s:</p>
|
||||||
<p>{{tableInfo.spareNumber}}</p>
|
<p><text>{{tableInfo.handlingType == 2 ? 'discharge' : 'load'}}</text><text>{{tableInfo.vehiclesNumber}}</text>+{{tableInfo.spareNumber}}</p>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p>泊位/Berth:</p>
|
<p>泊位/Berth:</p>
|
||||||
|
@ -405,6 +405,7 @@
|
||||||
// 在resolve时执行的回调函数
|
// 在resolve时执行的回调函数
|
||||||
this.tabsList = []
|
this.tabsList = []
|
||||||
this.tableInfo = value[tabsValue]
|
this.tableInfo = value[tabsValue]
|
||||||
|
// console.log(this.tableInfo);
|
||||||
this.executeSq4()
|
this.executeSq4()
|
||||||
this.vvyId = value[0].vvyId
|
this.vvyId = value[0].vvyId
|
||||||
value.forEach((v, index) => {
|
value.forEach((v, index) => {
|
||||||
|
@ -775,7 +776,7 @@
|
||||||
|
|
||||||
p {
|
p {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
// flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,11 +183,13 @@
|
||||||
@change="fcChange(item,index)"></uni-data-select>
|
@change="fcChange(item,index)"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p class="liTitle"><text class="required">*</text>翻舱起点位置:</p>
|
<p class="liTitle">翻舱起点位置:</p>
|
||||||
|
<!-- <p class="liTitle"><text class="required">*</text>翻舱起点位置:</p> -->
|
||||||
<uni-easyinput v-model="item.retallyOrigin" placeholder="请输入翻舱起点位置"></uni-easyinput>
|
<uni-easyinput v-model="item.retallyOrigin" placeholder="请输入翻舱起点位置"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
<view class="li">
|
<view class="li">
|
||||||
<p class="liTitle"><text class="required">*</text>翻舱终点位置:</p>
|
<p class="liTitle">翻舱终点位置:</p>
|
||||||
|
<!-- <p class="liTitle"><text class="required">*</text>翻舱终点位置:</p> -->
|
||||||
<uni-easyinput v-model="item.retallyTerminus"
|
<uni-easyinput v-model="item.retallyTerminus"
|
||||||
placeholder="请输入翻舱终点位置"></uni-easyinput>
|
placeholder="请输入翻舱终点位置"></uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
|
|
Loading…
Reference in New Issue