0123需求
parent
db464aa5b9
commit
e555771f1b
|
@ -56,7 +56,7 @@ module.exports = {
|
|||
// 创建船舶基本信息 shipInfoTable
|
||||
createShipInfoTable() {
|
||||
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)
|
||||
},
|
||||
// 创建船舶计划信息 voyageScheduleDataPadRespDTO
|
||||
|
@ -134,7 +134,7 @@ module.exports = {
|
|||
// 创建质量意见征询 shipmentQualityConsultationRespList
|
||||
createShipmentQualityConsultationRespList() {
|
||||
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)
|
||||
},
|
||||
// 创建质量意见征询评价表 evaluateTable
|
||||
|
|
|
@ -245,7 +245,7 @@
|
|||
},
|
||||
dropTable() {
|
||||
console.log('删除表');
|
||||
let sql = 'DROP TABLE workQueryDetails;'
|
||||
let sql = 'DROP TABLE shipmentQualityConsultationRespList;'
|
||||
this.executeSql(sql)
|
||||
},
|
||||
dropData() {
|
||||
|
@ -370,7 +370,7 @@
|
|||
'${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.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)
|
||||
},
|
||||
// 船舶计划信息
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<view class="container">
|
||||
<view class="head">
|
||||
<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 class="rightHead">
|
||||
<p>上海海通国际汽车码头有限公司</p>
|
||||
|
@ -55,15 +55,15 @@
|
|||
<table class="t-zx headZx">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td rowspan="2" style="width: 50px;"></td>
|
||||
<td rowspan="2" style="width: 140px;"></td>
|
||||
<td colspan="6">Working time</td>
|
||||
<td colspan="4">Kind Of Works</td>
|
||||
<td rowspan="2">B/L</td>
|
||||
<td colspan="3">Handling method</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="width: 120px;">From</td>
|
||||
<td colspan="3" style="width: 120px;">To</td>
|
||||
<td colspan="3" style="width: 88.5px;">From</td>
|
||||
<td colspan="3" style="width: 88.5px;">To</td>
|
||||
<td colspan="4">Loading/UnLoading</td>
|
||||
<td>Ro/Ro</td>
|
||||
<td>PortDevices</td>
|
||||
|
@ -72,7 +72,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<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.workEndTime}}</view>
|
||||
<view class="infoBox">
|
||||
|
@ -90,7 +90,7 @@
|
|||
<table class="t-zx">
|
||||
<tbody>
|
||||
<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">DK/H</td>
|
||||
<td colspan="6">Working time</td>
|
||||
|
@ -121,11 +121,11 @@
|
|||
<tr>
|
||||
<td> </td>
|
||||
<!-- <td colspan="2">Reason</td> -->
|
||||
<td colspan="3">技术工人</td>
|
||||
<td colspan="3">Tech Stev</td>
|
||||
<td>From</td>
|
||||
<td>To</td>
|
||||
<td>Weight/Measure</td>
|
||||
<td colspan="3">普通工人</td>
|
||||
<td colspan="3">Men</td>
|
||||
<td>From</td>
|
||||
<td>To</td>
|
||||
<td>Weight/Measure</td>
|
||||
|
@ -759,7 +759,7 @@
|
|||
|
||||
.name {
|
||||
border-right: 1px solid #000;
|
||||
width: 70px;
|
||||
width: 200px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
@ -113,6 +113,9 @@
|
|||
this.optionData = value
|
||||
} else if (tableName == 'shipInfoTable') {
|
||||
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') {
|
||||
this.vvyInfo = value
|
||||
value.forEach((v, index) => {
|
||||
|
|
|
@ -13,8 +13,12 @@
|
|||
<text>航次:{{item.vvyName}}</text>
|
||||
</view>
|
||||
<view class="liInfo">
|
||||
<p>进出口:<text>{{item.importExportFlagName}}</text></p>
|
||||
<p>贸易类型:<text>{{shipInfo.spmTradeName}}</text></p>
|
||||
<!-- <p>进出口:<text>{{item.importExportFlagName}}</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>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -54,8 +58,10 @@
|
|||
// 在resolve时执行的回调函数
|
||||
if (tableName == 'shipInfoTable') {
|
||||
this.shipInfo = value[0]
|
||||
console.log(this.shipInfo);
|
||||
} else {
|
||||
this.infoList = value
|
||||
console.log(this.infoList);
|
||||
}
|
||||
}).catch((error) => {
|
||||
// 在reject时执行的回调函数
|
||||
|
@ -123,7 +129,7 @@
|
|||
flex-wrap: wrap;
|
||||
|
||||
.li {
|
||||
width: 33%;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #fff;
|
||||
|
@ -151,12 +157,12 @@
|
|||
|
||||
.liInfo {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
// flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
margin-top: 24px;
|
||||
|
||||
p {
|
||||
width: 49%;
|
||||
width: 30%;
|
||||
margin-bottom: 12px;
|
||||
color: #999;
|
||||
|
||||
|
|
|
@ -8,48 +8,54 @@
|
|||
<p>船名:</p>
|
||||
<text>{{shipInfo.vslCnname}}</text>
|
||||
</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">
|
||||
<p><text class="required" v-if="obj.state != 'look'">*</text>泊位:</p>
|
||||
<uni-data-select v-model="bthId" :localdata="bwList" @change="bwChange"
|
||||
v-if="obj.state != 'look'"></uni-data-select>
|
||||
<text v-else>{{bthIdName}}</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>
|
||||
</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">
|
||||
<p><text class="required" v-if="obj.state != 'look'">*</text>作业日期:</p>
|
||||
<uni-datetime-picker v-model="operationDate" type="date" :clear-icon="false" @change="changeLog"
|
||||
v-if="obj.state != 'look'" :border="false" />
|
||||
<text v-else>{{operationDate}}</text>
|
||||
</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-dialog type="error" confirmText="确定" title="通知" content="是否删除此条数据"
|
||||
|
@ -148,8 +154,20 @@
|
|||
this.getShip()
|
||||
} else if (tableName == 'shipInfoTable') {
|
||||
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') {
|
||||
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) => {
|
||||
this.hcList.push({
|
||||
text: v.vvyName,
|
||||
|
@ -202,8 +220,12 @@
|
|||
this.bthIdName = this.opinionRow.bthIdName
|
||||
this.handlingType = this.opinionRow.handlingType
|
||||
this.handlingName = this.opinionRow.handlingName
|
||||
this.vehiclesNumber = this.opinionRow.vehiclesNumber
|
||||
this.spareNumber = this.opinionRow.spareNumber
|
||||
this.vvyInfo[0].vehiclesNumber0 = this.opinionRow.vehiclesNumber
|
||||
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.vvyInfo.forEach(v => {
|
||||
if (this.vvyId == v.vvyId) {
|
||||
|
@ -286,17 +308,52 @@
|
|||
let webStatus = 0
|
||||
let webDate = api.getDate(date)
|
||||
if (this.obj.state == "edit") {
|
||||
if(this.vvyInfo.length == 1) {
|
||||
let sql =
|
||||
`UPDATE shipmentQualityConsultationRespList SET vvyId = '${this.vvyId}', vvyName = '${this.vvyName}', importExportFlagName = '${this.importExportFlagName}',
|
||||
bthId = '${this.bthId}',bthIdName = '${this.bthIdName}',handlingType = '${this.handlingType}',
|
||||
handlingName = '${this.handlingName}', vehiclesNumber = '${this.vehiclesNumber}', spareNumber = '${this.spareNumber}',
|
||||
operationDate = '${this.operationDate}',webStatus = '${webStatus}',webDate = '${webDate}' WHERE vqcId = '${this.opinionRow.vqcId}';`
|
||||
`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.vvyInfo[0].importExportFlagName == '进口' ? '2' : '1'}',handlingName = '${this.vvyInfo[0].importExportFlagName == '进口' ? '卸货' : '装货'}',
|
||||
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}';`
|
||||
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") {
|
||||
let sql = `insert into shipmentQualityConsultationRespList values('${vqcId}','${this.vtpId}','${this.vvyId}','${this.vvyName}','${this.importExportFlagName}',
|
||||
'${this.bthId}','${this.bthIdName}','${this.handlingType}','${this.handlingName}','${this.vehiclesNumber}',
|
||||
'${this.spareNumber}','${this.operationDate}','${webStatus}','${webDate}')`
|
||||
if(this.vvyInfo.length == 1) {
|
||||
let sql = `insert into shipmentQualityConsultationRespList values('${vqcId}','${this.vvyInfo[0].vtpId}','${this.vvyInfo[0].vvyId}','${this.vvyInfo[0].vvyName}','${this.vvyInfo[0].importExportFlagName}',
|
||||
'${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)
|
||||
}
|
||||
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({
|
||||
url: '/pages/shipWork/opinion'
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<view class="container">
|
||||
<view class="head">
|
||||
<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 class="rightHead">
|
||||
<p>上海海通国际汽车码头有限公司</p>
|
||||
|
@ -41,7 +41,7 @@
|
|||
</view>
|
||||
<view class="li">
|
||||
<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 class="li">
|
||||
<p>泊位/Berth:</p>
|
||||
|
@ -405,6 +405,7 @@
|
|||
// 在resolve时执行的回调函数
|
||||
this.tabsList = []
|
||||
this.tableInfo = value[tabsValue]
|
||||
// console.log(this.tableInfo);
|
||||
this.executeSq4()
|
||||
this.vvyId = value[0].vvyId
|
||||
value.forEach((v, index) => {
|
||||
|
@ -775,7 +776,7 @@
|
|||
|
||||
p {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
|
|
@ -183,11 +183,13 @@
|
|||
@change="fcChange(item,index)"></uni-data-select>
|
||||
</view>
|
||||
<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>
|
||||
</view>
|
||||
<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"
|
||||
placeholder="请输入翻舱终点位置"></uni-easyinput>
|
||||
</view>
|
||||
|
|
Loading…
Reference in New Issue