修改wenti

master
sunzehua 1 year ago
parent 4357b1398e
commit e8726290a7

@ -101,7 +101,7 @@ export function BookingTemplate(parameter) {
* @params Type : 10, 20, 30, 40
* @params SearchValue
*/
export function GetTemplateShare (parameter) {
export function GetTemplateShare(parameter) {
return axios({
url: '/BookingTemplate/GetTemplateShare',
method: 'get',
@ -910,7 +910,7 @@ export function checkUpdateManifestNo(parameter) {
})
}
export function singleBCFileRead (parameter, query) {
export function singleBCFileRead(parameter, query) {
return axios({
url: '/BookingValueAdded/SingleBCFileRead',
method: 'post',
@ -918,7 +918,7 @@ export function singleBCFileRead (parameter, query) {
})
}
export function singleBCFilSingleBCUpdateBookingOrdereRead (parameter) {
export function singleBCFilSingleBCUpdateBookingOrdereRead(parameter) {
return axios({
url: '/BookingValueAdded/SingleBCUpdateBookingOrder',
method: 'post',
@ -926,14 +926,14 @@ export function singleBCFilSingleBCUpdateBookingOrdereRead (parameter) {
})
}
export function sysOrgTreeList () {
export function sysOrgTreeList() {
return axios({
url: '/sysOrg/treeList',
method: 'get'
})
}
export function refreshSailingDate (parameter) {
export function refreshSailingDate(parameter) {
return axios({
url: '/BookingOrder/RefreshSailingDate',
method: 'post',
@ -941,7 +941,7 @@ export function refreshSailingDate (parameter) {
})
}
export function PageDataByBooking (parameter) {
export function PageDataByBooking(parameter) {
return axios({
url: '/BookingOrder/PageData',
method: 'post',
@ -949,21 +949,21 @@ export function PageDataByBooking (parameter) {
})
}
export function RefreshBillTrace (parameter) {
export function RefreshBillTrace(parameter) {
return axios({
url: '/BookingYunZong/RefreshYunZong?' + parameter,
method: 'post'
})
}
export function GetToDoBCList (parameter) {
export function GetToDoBCList(parameter) {
return axios({
url: '/TaskManageBC/GetToDoBCList',
method: 'get'
})
}
export function BatchBCUpdate (parameter) {
export function BatchBCUpdate(parameter) {
return axios({
url: '/BookingValueAdded/BatchBCUpdate',
method: 'post',
@ -971,7 +971,7 @@ export function BatchBCUpdate (parameter) {
})
}
export function QuervBookingOrderList (parameter) {
export function QuervBookingOrderList(parameter) {
return axios({
url: '/TaskManageBC/QueryBookingOrderList',
method: 'post',
@ -979,7 +979,7 @@ export function QuervBookingOrderList (parameter) {
})
}
export function GetRuleOpinionLog (parameter) {
export function GetRuleOpinionLog(parameter) {
return axios({
url: '/BookingValueAdded/GetRuleOpinionLog',
method: 'post',
@ -987,7 +987,7 @@ export function GetRuleOpinionLog (parameter) {
})
}
export function SubmitRule0pinion (parameter) {
export function SubmitRule0pinion(parameter) {
return axios({
url: '/BookingValueAdded/SubmitRuleOpinion',
method: 'post',
@ -995,7 +995,7 @@ export function SubmitRule0pinion (parameter) {
})
}
export function BookingCustomerOrderPage (parameter) {
export function BookingCustomerOrderPage(parameter) {
return axios({
url: '/BookingCustomerOrder/PageData',
method: 'post',
@ -1003,7 +1003,7 @@ export function BookingCustomerOrderPage (parameter) {
})
}
export function BookingCustomerOrderSave (parameter) {
export function BookingCustomerOrderSave(parameter) {
return axios({
url: '/BookingCustomerOrder/Save',
method: 'post',
@ -1011,7 +1011,7 @@ export function BookingCustomerOrderSave (parameter) {
})
}
export function BookingCustomerOrderGet (parameter) {
export function BookingCustomerOrderGet(parameter) {
return axios({
url: '/BookingCustomerOrder/Get',
method: 'post',
@ -1019,7 +1019,7 @@ export function BookingCustomerOrderGet (parameter) {
})
}
export function BookingCustomerOrderDelete (parameter) {
export function BookingCustomerOrderDelete(parameter) {
return axios({
url: 'BookingCustomerOrder/Delete',
method: 'post',
@ -1027,7 +1027,7 @@ export function BookingCustomerOrderDelete (parameter) {
})
}
export function BookingCustomerOrderSubmit (parameter) {
export function BookingCustomerOrderSubmit(parameter) {
return axios({
url: 'BookingCustomerOrder/Submit',
method: 'post',
@ -1035,7 +1035,7 @@ export function BookingCustomerOrderSubmit (parameter) {
})
}
export function BookingCustomerOrderCancelSubmit (parameter) {
export function BookingCustomerOrderCancelSubmit(parameter) {
return axios({
url: 'BookingCustomerOrder/CancelSubmit',
method: 'post',
@ -1043,7 +1043,7 @@ export function BookingCustomerOrderCancelSubmit (parameter) {
})
}
export function BookingCustomerOrderAuditBooking (parameter) {
export function BookingCustomerOrderAuditBooking(parameter) {
return axios({
url: 'BookingCustomerOrder/AuditBooking',
method: 'post',
@ -1051,7 +1051,7 @@ export function BookingCustomerOrderAuditBooking (parameter) {
})
}
export function LetterYardHis (parameter) {
export function LetterYardHis(parameter) {
return axios({
url: '/BookingOrder/LetterYardHis',
method: 'post',
@ -1059,7 +1059,7 @@ export function LetterYardHis (parameter) {
})
}
export function SaveInList (parameter) {
export function SaveInList(parameter) {
return axios({
url: '/BookingOrder/SaveInList',
method: 'post',
@ -1067,7 +1067,7 @@ export function SaveInList (parameter) {
})
}
export function SaveDataInList (parameter) {
export function SaveDataInList(parameter) {
return axios({
url: '/BookingOrder/SaveDataInList',
method: 'post',
@ -1075,14 +1075,14 @@ export function SaveDataInList (parameter) {
})
}
export function yardLetterYardHis (parameter) {
export function yardLetterYardHis(parameter) {
return axios({
url: '/BookingLetteryard/LetterYardHis',
method: 'get',
params: parameter
})
}
export function GetSeryiceProjectList (parameter) {
export function GetSeryiceProjectList(parameter) {
return axios({
url: '/BookingValueAdded/GetServiceProjectList',
method: 'post',
@ -1090,7 +1090,7 @@ export function GetSeryiceProjectList (parameter) {
})
}
export function SaveServiceProject (parameter) {
export function SaveServiceProject(parameter) {
return axios({
url: '/BookingValueAdded/SaveServiceProject',
method: 'post',
@ -1098,7 +1098,7 @@ export function SaveServiceProject (parameter) {
})
}
export function CancelSeryiceProject (parameter) {
export function CancelSeryiceProject(parameter) {
return axios({
url: '/BookingValueAdded/CancelServiceProject',
method: 'post',
@ -1106,7 +1106,7 @@ export function CancelSeryiceProject (parameter) {
})
}
export function GetServiceStatusList (parameter) {
export function GetServiceStatusList(parameter) {
return axios({
url: '/BookingValueAdded/GetServiceStatusList',
method: 'post',
@ -1114,7 +1114,7 @@ export function GetServiceStatusList (parameter) {
})
}
export function SaveServiceStatus (parameter) {
export function SaveServiceStatus(parameter) {
return axios({
url: '/BookingValueAdded/SaveServiceStatus',
method: 'post',
@ -1122,7 +1122,7 @@ export function SaveServiceStatus (parameter) {
})
}
export function CancelServiceStatus (parameter) {
export function CancelServiceStatus(parameter) {
return axios({
url: '/BookingValueAdded/CancelServiceStatus',
method: 'post',
@ -1130,7 +1130,7 @@ export function CancelServiceStatus (parameter) {
})
}
export function SaveBookingTxxp (parameter) {
export function SaveBookingTxxp(parameter) {
return axios({
url: '/BookingOrder/SaveBookingTxxp',
method: 'post',
@ -1138,21 +1138,21 @@ export function SaveBookingTxxp (parameter) {
})
}
export function GetEnableStatusDictTreeList (parameter) {
export function GetEnableStatusDictTreeList(parameter) {
return axios({
url: '/ServiceWorkFlowBase/GetEnableStatusDictTreeList',
method: 'get'
})
}
export function GetEnableProjectDictTreeList (parameter) {
export function GetEnableProjectDictTreeList(parameter) {
return axios({
url: '/ServiceWorkFlowBase/GetEnableProjectDictTreeList',
method: 'get'
})
}
export function ReadAutoYardImport (parameter) {
export function ReadAutoYardImport(parameter) {
return axios({
url: '/BookingOrder/ReadAutoYardImport',
method: 'get',
@ -1160,7 +1160,7 @@ export function ReadAutoYardImport (parameter) {
})
}
export function GetDraftCompareResultInfo (parameter) {
export function GetDraftCompareResultInfo(parameter) {
return axios({
url: '/TaskDraftCompare/GetDraftCompareResultInfo',
method: 'post',
@ -1168,10 +1168,18 @@ export function GetDraftCompareResultInfo (parameter) {
})
}
export function GetShippingOrderCompareResult (parameter) {
export function GetShippingOrderCompareResult(parameter) {
return axios({
url: '/TaskShippingOrderCompare/GetShippingOrderCompareResult',
method: 'get',
params: parameter
})
}
export function GetWebData(parameter) {
return axios({
url: '/BookingOrder/GetWebData',
method: 'get',
params: parameter
})
}

@ -254,9 +254,9 @@
:key="bindex">
<a-popover placement="topLeft" v-if="btn.staTime">
<div slot="content">{{ btn.staTime }}</div>
<span :class="{ active: btn.isChecked }">{{ enmuBookingBtn(btn.staCode) }}</span>
<span @click="handleGetWebDataYZ(row,btn.staCode)" :class="{ active: btn.isChecked }">{{ enmuBookingBtn(btn.staCode) }}</span>
</a-popover>
<span :class="{ active: btn.isChecked }" v-else>{{ enmuBookingBtn(btn.staCode) }}</span>
<span style="cursor: pointer;" @click="handleGetWebDataYZ(row,btn.staCode)" :class="{ active: btn.isChecked }" v-else>{{ enmuBookingBtn(btn.staCode) }}</span>
<i
class="iconfont icon-xiaoyoujiantou"
:class="{ hide: bindex === row.bookstatus.length - 1 }"></i>
@ -269,22 +269,24 @@
<div v-if="row.statuslogs1">
<div v-if="row.statuslogs1.length > 0">
<div class="billtrace-btn1">
<a-popover placement="topLeft">
<div slot="content">
<div>
<span class="txfcSpan" style="width: 120px;">箱号</span>
<span class="txfcSpan">提箱</span>
<span class="txfcSpan">返场</span>
</div>
<div v-for="(item, index) in row.statuslogs1" :key="index">
<span class="txfcSpan" style="width: 120px;">{{ item.cntrno }}</span>
<span class="txfcSpan">{{ item.txopTime }}</span>
<span class="txfcSpan">{{ item.fcopTime }}</span>
<a-spin :spinning="row.webDataLoad">
<a-popover placement="topLeft">
<div slot="content">
<div>
<span class="txfcSpan" style="width: 120px;">箱号</span>
<span @click="handleGetWebData(row,'YARD')" class="txfcSpan">提箱</span>
<span @click="handleGetWebData(row,'YARD')" class="txfcSpan">返场</span>
</div>
<div v-for="(item, index) in row.statuslogs1" :key="index">
<span class="txfcSpan" style="width: 120px;">{{ item.cntrno }}</span>
<span class="txfcSpan">{{ item.txopTime }}</span>
<span class="txfcSpan">{{ item.fcopTime }}</span>
</div>
</div>
</div>
<div :class="{ active: row.statuslogs1[0].txopTime }">提箱</div>
<div :class="{ active: row.statuslogs1[0].fcopTime }">返场</div>
</a-popover>
<div @click="handleGetWebData(row,'YARD')" :class="{ active: row.statuslogs1[0].txopTime }">提箱</div>
<div @click="handleGetWebData(row,'YARD')" :class="{ active: row.statuslogs1[0].fcopTime }">返场</div>
</a-popover>
</a-spin>
</div>
</div>
</div>
@ -1099,7 +1101,12 @@
</a-form-item>
</a-form>
</a-modal>
<a-modal :title="webDataTitle" width="1400px" :visible="webDataFlag" :footer="null" @cancel="webDataFlag = false">
<iframe frameborder="0" height="700px" style="width: 100%;" :srcdoc="webData">
<!-- <div v-html="webData" style="overflow: hidden;"></div> -->
<!-- {{ webData }} -->
</iframe>
</a-modal>
</a-spin>
</div>
</template>
@ -1141,7 +1148,8 @@ import {
SaveBookingTxxp,
GetDraftCompareResultInfo,
BookingOrderDownload,
GetShippingOrderCompareResult
GetShippingOrderCompareResult,
GetWebData
} from '@/api/modular/main/BookingLedger'
import initData from './modules/initData'
@ -1170,8 +1178,12 @@ export default {
return {
spinning: false,
isUpload: false,
webDataTitle: '',
markFlag: false,
webDataLoading: false,
pdfLoading: false,
webDataFlag: false,
webData: '',
marktitle: '',
refshYZloading: false,
nowFirst: false,
@ -1340,6 +1352,49 @@ export default {
this.getConfigUser(true)
this.getCarrier()
},
handleGetWebData(row, code) {
const data = {
bookingId: row.id,
webCode: code
}
this.webData = ''
this.webDataTitle = '场站数据'
row.webDataLoad = true
GetWebData(data).then(res => {
if (res.code === 200) {
this.webData = res.data
this.webDataFlag = true
} else {
this.$message.error(res.message)
}
row.webDataLoad = false
})
},
handleGetWebDataYZ(row, code) {
let webCode = ''
this.webData = ''
if (code === 'sta_haifang' || code === 'sta_cangdan') {
webCode = 'HLW_CD'
this.webDataTitle = '物流信息数据'
} else {
webCode = 'YGT'
this.webDataTitle = '云港通数据'
}
const data = {
bookingId: row.id,
webCode: webCode
}
row.refshYzitemLoad = true
GetWebData(data).then(res => {
if (res.code === 200) {
this.webData = res.data
this.webDataFlag = true
} else {
this.$message.error(res.message)
}
row.refshYzitemLoad = false
})
},
bcClose() {
this.bcObj = {}
},
@ -1375,6 +1430,7 @@ export default {
}
item.bookstatus = bookstatus
item.refshYzitemLoad = false
item.webDataLoad = false
item.dzmarkLoading = false
item.czmarkLoading = false
item.custnoLoading = false
@ -2410,6 +2466,7 @@ export default {
}
item.bookstatus = bookstatus
item.refshYzitemLoad = false
item.webDataLoad = false
item.atdLoading = false
item.rowDzMark = false
item.rowCzMark = false

@ -9,8 +9,7 @@
@select="handleClick"
:defaultExpandAll="true"
:defaultExpandedKeys="defaultExpandedKeys"
:replaceFields="replaceFields"
/>
:replaceFields="replaceFields" />
</div>
<div v-else>
<a-empty :image="simpleImage" />
@ -31,8 +30,7 @@
<a-form-item label="状态">
<a-select v-model="queryParam.searchStatus" allow-clear placeholder="请选择状态" default-value="0">
<a-select-option v-for="(item, index) in statusDictTypeDropDown" :key="index" :value="item.code">
{{ item.value }}</a-select-option
>
{{ item.value }}</a-select-option>
</a-select>
</a-form-item>
</a-col>
@ -52,23 +50,16 @@
:alert="true"
:pageSizeOptions="['10', '20', '50', '100']"
:rowKey="record => record.id"
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
>
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<template slot="operator">
<a-button
type="primary"
v-if="hasPerm('sysUser:add')"
icon="plus"
@click="$refs.addForm.add()"
>新增用户
<a-button type="primary" v-if="hasPerm('sysUser:add')" icon="plus" @click="$refs.addForm.add()">
</a-button>
<a-upload
:customRequest="customRequest"
:multiple="true"
:showUploadList="false"
name="file"
v-if="hasPerm('sysUser:import')"
>
v-if="hasPerm('sysUser:import')">
<a-button icon="up-circle">导入</a-button>
</a-upload>
<a-button v-if="hasPerm('sysUser:export')" icon="down-circle" @click="sysUserExport()"> </a-button>
@ -85,8 +76,7 @@
<a-popconfirm
placement="top"
:title="text === 0 ? '确定停用该用户?' : '确定启用该用户?'"
@confirm="() => editUserStatus(text, record)"
>
@confirm="() => editUserStatus(text, record)">
<a>{{ statusFilter(text) }}</a>
</a-popconfirm>
</span>
@ -97,13 +87,11 @@
<a v-if="hasPerm('sysUser:edit')" @click="$refs.editForm.edit(record)"></a>
<a-divider type="vertical" v-if="hasPerm('sysUser:edit')" />
<a-dropdown
v-if="
hasPerm('sysUser:resetPwd') ||
hasPerm('sysUser:grantRole') ||
hasPerm('sysUser:grantData') ||
hasPerm('sysUser:delete')
"
>
v-if="hasPerm('sysUser:resetPwd') ||
hasPerm('sysUser:grantRole') ||
hasPerm('sysUser:grantData') ||
hasPerm('sysUser:delete')
">
<a class="ant-dropdown-link">
更多
<a-icon type="down" />
@ -133,6 +121,16 @@
<edit-form ref="editForm" @ok="handleOk" />
<user-role-form ref="userRoleForm" @ok="handleOk" />
<user-org-form ref="userOrgForm" @ok="handleOk" />
<a-modal title="重置密码" :width="600" :visible="resetPwdFlag" @ok="handleSubmitReset" @cancel="resetPwdFlag = false">
<a-form-model ref="resetForm" :rules="rules" :model="resetForm" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-form-model-item label="新密码" prop="newPassword">
<a-input v-model="resetForm.newPassword" />
</a-form-model-item>
<a-form-model-item label="确认" prop="confirm">
<a-input v-model="resetForm.confirm" />
</a-form-model-item>
</a-form-model>
</a-modal>
</a-card>
</a-col>
</a-row>
@ -220,9 +218,20 @@ export default {
sexDictTypeDropDown: [],
statusDictTypeDropDown: [],
treeLoading: true,
labelCol: { span: 4 },
wrapperCol: { span: 14 },
resetPwdFlag: false,
resetForm: {
confirm: '',
newPassword: ''
},
simpleImage: Empty.PRESENTED_IMAGE_SIMPLE,
replaceFields: {
key: 'id'
},
rules: {
newPassword: [{ required: true, trigger: 'blur', min: 5, message: '请输入至少五个字符的账号!' }],
confirm: [{ required: true, message: '请输入', trigger: 'blur' }]
}
}
},
@ -266,8 +275,8 @@ export default {
console.log(pagination, filters, sorter);
},
departmentFilter(sysEmpInfo) {
// console.log('sysEmpInfo===>>',sysEmpInfo)
return sysEmpInfo.orgName
// console.log('sysEmpInfo===>>',sysEmpInfo)
return sysEmpInfo.orgName
},
sexFilter(sex) {
// eslint-disable-next-line eqeqeq
@ -323,20 +332,34 @@ export default {
}
})
},
handleSubmitReset() {
this.$refs.resetForm.validate(valid => {
if (valid) {
if (this.resetForm.newPassword !== this.resetForm.confirm) {
this.$message.warning('两次输入的密码不一致')
} else {
sysUserResetPwd({
id: this.resetPwdFId,
...this.resetForm
}).then(res => {
if (res.success) {
this.$message.success('重置成功')
this.resetPwdFlag = false
} else {
this.$message.error('重置失败:' + res.message.newPassword[0])
}
})
}
}
})
},
/**
* 重置密码
*/
resetPwd(record) {
sysUserResetPwd({
id: record.id
}).then(res => {
if (res.success) {
this.$message.success('重置成功')
// this.$refs.table.refresh()
} else {
this.$message.error('重置失败:' + res.message)
}
})
this.resetPwdFlag = true
this.resetPwdFId = record.id
this.resetForm = {}
},
/**
* 删除用户
@ -372,7 +395,7 @@ export default {
downloadfile(res) {
const fileReader = new FileReader()
const _this = this
fileReader.onload = function() {
fileReader.onload = function () {
try {
// JSON.parse(this.result)this.resultjson
// JSON.parse(this.result)catch

Loading…
Cancel
Save