修复bug

master
sunzehua 8 months ago
parent f4060967a6
commit 5e604efdbe

@ -1,8 +1,8 @@
NODE_ENV=development
VUE_APP_PREVIEW=true
# VUE_APP_TYPE = 'customer'
# VUE_APP_TYPE = 'hechuan'
VUE_APP_TYPE = 'yunyingduan'
VUE_APP_TYPE = 'hechuan'
# VUE_APP_TYPE = 'yunyingduan'
# VUE_APP_TYPE = 'gangjie'
# 打包部署的三个端 客户端customer 和川端hechuan 运营端yunyingduan
@ -11,8 +11,8 @@ VUE_APP_TYPE = 'yunyingduan'
# VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345
# 和川大简云测试
# VUE_APP_API_BASE_URL=http://60.209.125.238:35100
# VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:35100
VUE_APP_API_BASE_URL=http://60.209.125.238:35100
VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:35100
# 客户端测试
# VUE_APP_API_BASE_URL=http://60.209.125.238:30813
@ -26,8 +26,8 @@ VUE_APP_TYPE = 'yunyingduan'
# VUE_APP_SOCKET_BASE_URL=http://192.168.0.80:7373/
# 港捷
VUE_APP_API_BASE_URL=http://118.190.144.189:5001
VUE_APP_SOCKET_BASE_URL=http://118.190.144.189:5001
# VUE_APP_API_BASE_URL=http://118.190.144.189:5001
# VUE_APP_SOCKET_BASE_URL=http://118.190.144.189:5001
# 运营端正式
# VUE_APP_API_BASE_URL=http://118.190.144.189:6002

@ -7,9 +7,9 @@ import { axios } from '@/utils/request'
*/
export function DJYTenantParamGet(parameter) {
return axios({
url: '/DJYTenantParam/list',
method: 'get',
params: parameter
url: '/DJYTenantParam/page',
method: 'post',
data: parameter
})
}
@ -58,9 +58,9 @@ export function DJYTenantParamDelete(parameter) {
*/
export function DJYTenantParamGetParamValue(parameter) {
return axios({
url: '/DJYTenantParam/getParamValue',
method: 'get',
params: parameter
url: '/DJYTenantParam/PageParamValue',
method: 'post',
data: parameter
})
}

@ -185,14 +185,10 @@ export default {
this.setdpTreeList()
this.setStatusDict()
this.setProjectDict()
if (!localStorage.getItem('booking_form_copy')) {
this.setCopySet()
}
this.setCopySet()
if (process.env.VUE_APP_TYPE === 'gangjie') {
if (!localStorage.getItem('booking_form_yard')) {
this.setYardSet()
}
}
}
}
}

@ -191,7 +191,8 @@ import {
CheckCtnCover,
GetCtnListRefsh,
SaveServiceStatus,
CancelServiceStatus
CancelServiceStatus,
GetBookingVGMResult
} from '@/api/modular/main/BookingLedger'
import { mapActions, mapGetters } from 'vuex'
import rules from '../../BookingLedger/detail/rulesTest'
@ -1266,6 +1267,28 @@ export default {
handleIframeunLoad() {
console.log(22222)
},
getVGM() {
GetBookingVGMResult({ id: this.$route.query.id }).then(res => {
if (res.data && res.data.length > 0) {
if (this.bookingDetails.ctnInputs && this.bookingDetails.ctnInputs.length > 0) {
this.bookingDetails.ctnInputs.forEach(item => {
item.vgm = false
res.data.forEach(ite => {
if (ite.cntrNo === item.cntrno) {
item.vgm = true
item.vgmWeight = ite.vgmWeight
item.isMissing = ite.isMissing
item.submissionDeadLine = ite.submissionDeadLine
item.vgmWeightUnit = ite.vgmWeightUnit
item.vgmWeightMethod = ite.vgmWeightMethod
}
})
})
this.$refs.goodsTable.init()
}
}
})
},
setDeatilsFun(res, overSet = false, refshFlag = false) {
if (!res.data.bookingEDIExt) {
res.data.bookingEDIExt = bookingEDIExt
@ -1339,6 +1362,7 @@ export default {
}
const $BookingEDIExt = { ...JSON.parse(JSON.stringify(bookingEDIExt)), ...res.data.bookingEDIExt }
this.$set(this, 'bookingDetails', { ...this.bookingDetails, ...newData, ...{ bookingEDIExt: $BookingEDIExt } })
this.getVGM()
this.oldBookingDetails = JSON.parse(JSON.stringify(this.bookingDetails))
this.sendMessageFY()
if (this.$route.query.isCopy && this.$route.query.copyId) {

@ -4,24 +4,24 @@
<a-card :bordered="false" :bodyStyle="{ padding: '10px 20px' }">
<div class="from-line">
<div class="left" v-if="!isLockBooking">
<a-button class="btn btn-add" type="primary" @click="addboxLine"></a-button>
<a-button class="btn btn-delete" @click="removeLine" :style="{ marginRight: '20px' }">删除</a-button>
<a-button class="btn btn-add" type="primary" @click="addboxLine"> <span style="margin-right: 5px;" class="iconfont icon-zhizhishu"></span>添加</a-button>
<a-button class="btn btn-delete" @click="removeLine" :style="{ marginRight: '20px' }"><span style="margin-right: 5px;" class="iconfont icon-shanchu1"></span>删除</a-button>
<a-button class="btn btn-more-name" type="primary" @click="openDialog" :disabled="tableData.length === 0">
<a-icon type="appstore" />多品名
</a-button>
<a-button class="btn btn-import-station" type="primary" @click="importYarn" :loading="YarnLoading">
<a-icon type="import" />场站数据
<a-icon type="import" />场站数据
</a-button>
<a-button class="btn btn-import-station" type="primary" @click="importsealno" :loading="sealnoLoading">
<a-icon type="import" />入场站箱封号
<a-icon type="import" />箱封号
</a-button>
<a-button class="btn btn-weight" type="primary" @click="importWeight" :loading="WeightLoading">
<a-icon type="import" />箱皮重
<a-icon type="import" />箱皮重
</a-button>
<a-button class="btn btn-weight" type="primary" @click="arrowsWeight">
<a-icon type="arrows-alt" />展开箱量
</a-button>
<a-button class="btn btn-add" type="primary" @click="handleRefsh"></a-button>
<a-button class="btn btn-add" type="primary" @click="handleRefsh"><span style="margin-right: 5px;" class="iconfont icon-shuaxin"></span>刷新</a-button>
</div>
<div
v-if="details.autoYardImport && !details.autoYardImport.isRead"
@ -623,6 +623,23 @@ export default {
</span>
)
}
},
{
field: 'vgm',
key: 'vgm',
title: 'VGM',
align: 'center',
width: 50,
edit: false,
renderBodyCell: ({ row, column, rowIndex }, h) => {
return (
<div>
<span title={'回执成功 ' + row.vgmWeight + ' ' + row.vgmWeightUnit + ' ' + row.vgmWeightMethod} v-show={row.vgm && !row.isMissing} style="color:green;cursor:pointer;font-weight:bold"><a-icon type="check" /></span>
<span title={'回执未成功' + row.submissionDeadLine } v-show={row.vgm && row.isMissing} style="color:red;cursor:pointer;font-weight:bold"><a-icon type="exclamation" /></span>
<span v-show={!row.vgm}>-</span>
</div>
)
}
}
],
modelColumns: [
@ -1923,7 +1940,7 @@ export default {
if (ite.code !== 'KINDPKGS') {
_data[ite.intoName] = item[ite.code]
} else {
_data.kindpkgs = kindpkgsOld
_data.kindpkgs = kindpkgsOld || item.KINDPKGS
}
})
addTable.push(_data)

@ -159,7 +159,7 @@
<a-button type="primary">导入</a-button>
</a-upload>
<a-button type="danger">作废</a-button>
<a-button type="primary" @click="handleSendAll"></a-button>
<!-- <a-button type="primary" @click="handleSendAll"></a-button> -->
</div>
<div>
<a-button type="primary" @click="FnGetData"></a-button>

@ -141,9 +141,9 @@ export default {
methods: {
FnDJYTenantParamGet() {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data
this.TypeData = res.data.items
let data = []
res.data.forEach(item => {
res.data.items.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {

@ -31,15 +31,6 @@
</a-col>
<a-col :span="8">
<a-form-item label="租户参数类别" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<!-- <a-select
placeholder="请选择租户参数类别"
v-decorator="['paraCode', { rules: [{ required: true, message: '请选择租户参数类别!' }] }]"
@change="FnChangeTypeCode"
>
<a-select-option v-for="item in TypeData" :key="item.id" :value="item.paraCode">
{{ item.paraName }}
</a-select-option>
</a-select> -->
<a-select
placeholder="请选择租户参数类别"
v-decorator="['paraCode', { rules: [{ required: true, message: '请选择租户参数类别!' }] }]"
@ -59,22 +50,24 @@
</a-col>
<a-col :span="8">
<a-form-item label="租户参数名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback disabled>
<a-input
placeholder="请输入租户参数名称"
v-decorator="['itemCode', { rules: [{ required: true, message: '请输入租户参数名称!' }] }]"
:disabled="ItemCodeDisabled"
v-if="ItemData.length == 0"
/>
<a-select
placeholder="请选择租户参数名称"
v-decorator="['itemCode', { rules: [{ required: true, message: '请选择租户参数名称!' }] }]"
:disabled="ItemCodeDisabled"
v-else
>
<a-select-option v-for="item in ItemData" :key="item.id" :value="item.itemCode">
{{ item.itemName }}
</a-select-option>
</a-select>
<a-spin :spinning="ItemCodeLoad">
<a-input
placeholder="请输入租户参数名称"
v-decorator="['itemCode', { rules: [{ required: true, message: '请输入租户参数名称!' }] }]"
:disabled="ItemCodeDisabled"
v-if="ItemData.length == 0"
/>
<a-select
placeholder="请选择租户参数名称"
v-decorator="['itemCode', { rules: [{ required: true, message: '请选择租户参数名称!' }] }]"
:disabled="ItemCodeDisabled"
v-else
>
<a-select-option v-for="item in ItemData" :key="item.id" :value="item.itemCode">
{{ item.itemName }}
</a-select-option>
</a-select>
</a-spin>
</a-form-item>
</a-col>
<a-col :span="8">
@ -123,6 +116,7 @@ export default {
},
typeData: [],
visible: false,
ItemCodeLoad:false,
confirmLoading: false,
form: this.$form.createForm(this),
data: {},
@ -134,6 +128,7 @@ export default {
},
mounted() {
this.YWData = this.$options.filters['dictData']('tenant_param_group')
this.FnDJYTenantParamGet()
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
this.TenantData = res.data.rows
})
@ -141,9 +136,9 @@ export default {
methods: {
FnDJYTenantParamGet() {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data
let data = []
res.data.forEach(item => {
this.TypeData = res.data.items
const data = []
res.data.items.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {
@ -177,8 +172,10 @@ export default {
})
if (e) {
this.ItemCodeDisabled = false
this.ItemCodeLoad = true
DJYTenantParamGetParamItem({ paraCode: e }).then(res => {
this.ItemData = res.data
this.ItemCodeLoad = false
})
}
},
@ -191,7 +188,6 @@ export default {
},
//
edit(record) {
this.FnDJYTenantParamGet()
console.log(record)
this.FnChangeTypeCode(record.paraCode)
this.data = record

@ -10,14 +10,9 @@
<a-row :gutter="48">
<a-col :md="18">
<a-row :gutter="48">
<!-- <a-col :md="8" :sm="24" v-for="item in ColumnsQuery" :key="`${item.dataIndex}1`">
<a-form-item :label="item.title">
<a-input v-model="queryParam[item.dataIndex]" allow-clear :placeholder="`请输入${item.title}`" />
</a-form-item>
</a-col> -->
<a-col :md="8" :sm="24">
<a-form-item label="名称">
<a-input v-model="queryParam.ParaName" allow-clear placeholder="请输入名称" />
<a-input v-model="queryParam.paraName" allow-clear placeholder="请输入名称" />
</a-form-item>
</a-col>
<a-col :md="8" :sm="24">
@ -35,10 +30,6 @@
<span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnGetData"></a-button>
<a-button style="margin-left: 8px" @click="init"></a-button>
<!-- <a @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }}
<a-icon :type="advanced ? 'up' : 'down'" />
</a> -->
</span>
</a-col>
</a-row>
@ -92,15 +83,15 @@
</template>
</vxe-column>
</vxe-table>
<!-- <vxe-pager
<vxe-pager
:loading="loading"
:current-page="queryParam.currentPage"
:current-page="queryParam.pageNo"
:page-size="queryParam.pageSize"
:total="queryParam.totalResult"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange"
>
</vxe-pager> -->
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
<editItemForm ref="editItemForm" @ok="handleOk" />
@ -129,9 +120,8 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
currentPage: 1,
pageSize: 10,
totalResult: 1
pageNo: 1,
pageSize: 10
},
ColumnsQuery: [],
columns: [
@ -167,12 +157,17 @@ export default {
},
created() {},
watch: {
$route() {
this.init()
'$route.query': {
immediate: true,
handler(nval, oval) {
if (this.$route.name === 'tenant_param') {
this.init()
}
}
}
},
mounted() {
this.init()
// this.init()
},
methods: {
FnTurnD(data) {
@ -201,11 +196,11 @@ export default {
FnGetData() {
this.loading = true
DJYTenantParamGet(this.queryParam).then(res => {
this.loadData = res.data
this.loadData = res.data.items
this.loading = false
this.queryParam.currentPage = res.data.pageNo
this.queryParam.currentPage = res.data.pageIndex
this.queryParam.pageSize = res.data.pageSize
this.queryParam.totalResult = res.data.totalRows
this.queryParam.totalResult = res.data.totalCount
})
},
/**

@ -18,12 +18,6 @@
v-show="item.dataIndex != 'itemCode' && item.dataIndex != 'remark'"
>
<a-form-item :label="item.title">
<!-- <a-input
v-model="queryParam[item.dataIndex]"
allow-clear
:placeholder="`请输入${item.title}`"
v-if="item.title == '租户'"
/> -->
<a-select
show-search
placeholder="请选择租户"
@ -33,7 +27,7 @@
:filter-option="false"
:not-found-content="null"
@search="tenantIdSearch"
v-model="queryParam[item.dataIndex]"
v-model="queryParam.tenantId"
allow-clear
v-if="item.title == '租户'"
:style="{ width: '100%' }"
@ -44,14 +38,13 @@
</a-select>
<a-select
placeholder="请选择租户参数类别"
v-model="queryParam[item.dataIndex]"
v-model="queryParam.paraCode"
v-else-if="item.title == '租户参数类别'"
allow-clear
>
<a-select-opt-group
v-for="(item, index) in WTypeData"
:key="`W${index}`"
:label="FnTypeD(item[0].type)"
>
<a-select-option v-for="item2 in item" :key="item2.id" :value="item2.paraCode">
{{ item2.paraName }}
@ -72,10 +65,6 @@
<span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnGetData"></a-button>
<a-button style="margin-left: 8px" @click="init"></a-button>
<!-- <a @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }}
<a-icon :type="advanced ? 'up' : 'down'" />
</a> -->
</span>
</a-col>
</a-row>
@ -99,13 +88,7 @@
:min-width="item.width"
:title="item.title"
:align="item.align"
v-if="item.title != '租户'"
>
<template #default="{ row }">
<span v-if="item.title == '租户参数类别'">{{ FnTurnD(row.paraCode) }}</span>
<span v-if="item.title == '租户参数名称'">{{ FnRTypeCode(row) }}</span>
<span v-else>{{ row[item.dataIndex] }}</span>
</template>
</vxe-column>
<vxe-column title="操作" fixed="right" width="200" align="center">
<template #default="{ row }">
@ -123,20 +106,19 @@
"
>
<a-icon type="delete" :style="{ color: '#13c2c2' }" />
<!-- <vxe-button type="text">删除</vxe-button> -->
</a-popconfirm>
</template>
</vxe-column>
</vxe-table>
<!-- <vxe-pager
<vxe-pager
:loading="loading"
:current-page="queryParam.currentPage"
:current-page="queryParam.pageNo"
:page-size="queryParam.pageSize"
:total="queryParam.totalResult"
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
@page-change="handlePageChange"
>
</vxe-pager> -->
</vxe-pager>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-card>
@ -169,9 +151,8 @@ export default {
setVisible: false,
setVisible1: false,
queryParam: {
currentPage: 1,
pageSize: 10,
totalResult: 1
pageNo: 1,
pageSize: 10
},
ColumnsQuery: [],
columns: [
@ -179,13 +160,13 @@ export default {
title: '租户',
align: 'center',
width: '80',
dataIndex: 'tenantId'
dataIndex: 'tenantName'
},
{
title: '租户参数类别',
align: 'center',
width: '100',
dataIndex: 'paraCode'
dataIndex: 'paraName'
},
{
title: '租户参数名称',
@ -193,7 +174,6 @@ export default {
width: '80',
dataIndex: 'itemCode'
},
// itemCode
{
title: '备注',
align: 'center',
@ -209,32 +189,37 @@ export default {
}
},
watch: {
$route() {
this.init()
'$route.query': {
immediate: true,
handler(nval, oval) {
if (this.$route.name === 'tenant_param_item') {
this.init()
}
}
}
},
created() {},
mounted() {
this.init()
// this.init()
},
methods: {
FnRTypeCode(e) {
let RData = ''
this.TypeData.forEach(item => {
if (item.paraCode == e.paraCode) {
if (item.itemCodeData.length) {
item.itemCodeData.forEach(item2 => {
if (item2.itemCode == e.itemCode) {
console.log(item2, 'item2')
RData = item2.itemName
}
})
} else {
RData = e.itemCode
}
}
})
return RData
// let RData = ''
// this.TypeData.forEach(item => {
// if (item.paraCode == e.paraCode) {
// if (item.itemCodeData.length) {
// item.itemCodeData.forEach(item2 => {
// if (item2.itemCode == e.itemCode) {
// console.log(item2, 'item2')
// RData = item2.itemName
// }
// })
// } else {
// RData = e.itemCode
// }
// }
// })
// return RData
},
tenantIdSearch(value) {
if (value) {
@ -244,22 +229,22 @@ export default {
}
},
FnTurnD(data) {
let Rdata = ''
this.TypeData.forEach(item => {
if (item.paraCode == data) {
Rdata = item.paraName
}
})
return Rdata
// let Rdata = ''
// this.TypeData.forEach(item => {
// if (item.paraCode == data) {
// Rdata = item.paraName
// }
// })
// return Rdata
},
FnTypeD(data) {
let Rdata = ''
this.YWData.forEach(item => {
if (item.code == data) {
Rdata = item.name
}
})
return Rdata
// let Rdata = ''
// this.YWData.forEach(item => {
// if (item.code == data) {
// Rdata = item.name
// }
// })
// return Rdata
},
toggleAdvanced() {
this.advanced = !this.advanced
@ -269,10 +254,13 @@ export default {
this.ColumnsQuery = this.columns
this.FnGetData()
this.YWData = this.$options.filters['dictData']('tenant_param_group')
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
this.TenantData = res.data.rows
})
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data
this.TypeData = res.data.items
let data = []
res.data.forEach(item => {
res.data.items.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {
@ -289,14 +277,6 @@ export default {
}
})
this.WTypeData = data
this.TypeData.forEach(item => {
DJYTenantParamGetParamItem({ paraCode: item.paraCode }).then(res => {
item.itemCodeData = res.data
})
})
})
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
this.TenantData = res.data.rows
})
},
handlePageChange({ currentPage, pageSize }) {
@ -307,15 +287,12 @@ export default {
FnGetData() {
this.loading = true
let data = { ...this.queryParam }
if (!data.tenantId) {
data.tenantId = 0
}
DJYTenantParamGetParamValue(data).then(res => {
this.loadData = res.data
this.loadData = res.data.items
this.loading = false
this.queryParam.currentPage = res.data.pageNo
this.queryParam.pageNo = res.data.pageIndex
this.queryParam.pageSize = res.data.pageSize
this.queryParam.totalResult = res.data.totalRows
this.queryParam.totalResult = res.data.totalCount
})
},
/**

@ -160,7 +160,7 @@
@sort-change="tableSortChange"
@resizable-change="resizableChange"
@checkbox-change="checkboxChangeEvent"
height="600px"
height="650px"
empty-text="没有更多数据了!">
<template #caozuo="{ row }">
<a-icon @click="handleEdit(row.id)" type="form" style="cursor: pointer;" :style="{ color: '#13c2c2' }" />
@ -581,6 +581,17 @@ export default {
this.FnGetData()
}, 200);
},
editPageSizeSave(pageSize) {
const data = {
pageSize: pageSize
}
DjyUserConfigAdd({
type: 'vesselinfo_page',
configJson: JSON.stringify(data)
}).then(res => {
console.log('页码设置成功')
})
},
handlePageChange({ currentPage, pageSize }) {
if (this.queryParam.pageSize !== pageSize) {
this.editPageSizeSave(pageSize)
@ -799,7 +810,9 @@ export default {
/deep/ .ant-form-item {
margin-bottom: 10px !important;
}
/deep/ .ant-card-body{
padding-bottom: 0px !important;
}
.table-operator {
margin-bottom: 18px;
}

Loading…
Cancel
Save