张同海 2 years ago
commit 4c2d3a08f5

@ -67,7 +67,7 @@ export function GetVessellist(parameter) {
*/ */
export function GetSysUserPage(parameter) { export function GetSysUserPage(parameter) {
return axios({ return axios({
url: '/sysUser/page', url: '/sysUser/GetTenantUser',
method: 'get', method: 'get',
params: parameter params: parameter
}) })

@ -11,7 +11,7 @@
> >
<a-textarea <a-textarea
placeholder="请输入委托方" placeholder="请输入委托方"
v-model="details.weituo" v-model="details.bookingEDIExt.weiTuoFang"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -37,6 +37,7 @@
> >
<a-input <a-input
placeholder="请输入EDI联系人名称" placeholder="请输入EDI联系人名称"
v-model="details.bookingEDIExt.ediAttn"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -49,6 +50,7 @@
> >
<a-input <a-input
placeholder="请输入EDI联系人电话" placeholder="请输入EDI联系人电话"
v-model="details.bookingEDIExt.ediAttnTel"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -61,6 +63,7 @@
> >
<a-input <a-input
placeholder="请输入EDI联系人邮箱" placeholder="请输入EDI联系人邮箱"
v-model="details.bookingEDIExt.ediAttnMail"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>

@ -139,6 +139,7 @@ export default {
isNoSave: true, isNoSave: true,
// //
customername: '', customername: '',
customerid: '',
carrier: '', carrier: '',
carrierid: this.type, carrierid: this.type,
forwarder: '', forwarder: '',
@ -226,7 +227,13 @@ export default {
freightpayer: '', freightpayer: '',
scaccode: '', scaccode: '',
itncode: '', itncode: '',
iscontainersoc: 0 iscontainersoc: 0,
bookingEDIExt: {
weiTuoFang: '',
ediAttn: '',
ediAttnTel: '',
ediAttnMail: ''
},
} }
this.editDetails = data this.editDetails = data
this.editIndex = this.sedOrderList.length this.editIndex = this.sedOrderList.length
@ -246,7 +253,6 @@ export default {
// this.init() // this.init()
}, },
saveFun () { saveFun () {
debugger
if (this.editDetails.id !== 0) { if (this.editDetails.id !== 0) {
this.bookingOrderUpdate() this.bookingOrderUpdate()
} else { } else {
@ -262,7 +268,6 @@ export default {
} }
let data = JSON.parse(JSON.stringify(this.editDetails)) let data = JSON.parse(JSON.stringify(this.editDetails))
delete data.isNoSave delete data.isNoSave
debugger
BookingOrderUpdate(data) BookingOrderUpdate(data)
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {

@ -74,6 +74,7 @@ export default {
return { return {
type: this.$route.query.type, type: this.$route.query.type,
id: this.$route.query.id, id: this.$route.query.id,
isCopy: this.$route.query.isCopy || false,
inPageLoading: false, inPageLoading: false,
bookingDetails: {}, bookingDetails: {},
tabBarStyle: { tabBarStyle: {
@ -82,22 +83,29 @@ export default {
}, },
excuteRules: [], excuteRules: [],
isAdd: false, isAdd: false,
moreStr: '' moreStr: '',
} }
}, },
watch: { watch: {
bookingDetails: { bookingDetails: {
handler (nval, oval) { handler (nval, oval) {
console.log('父级 -- 数据改变', nval) // console.log(' -- ', nval)
}, },
deep: true deep: true
}, },
'$route': 'init' '$route': 'routerChange'
}, },
created() { created() {
this.init() this.init()
}, },
methods: { methods: {
routerChange () {
console.log('路由变化')
this.id = this.$route.query.id
this.type = this.$route.query.type
this.isCopy = this.$route.query.isCopy || false
this.init()
},
init() { init() {
this.bookingDetails = {} this.bookingDetails = {}
if (this.id) { if (this.id) {
@ -109,6 +117,7 @@ export default {
parentId: 0, parentId: 0,
// //
customername: '', customername: '',
customerid: '',
carrier: '', carrier: '',
carrierid: this.type, carrierid: this.type,
forwarder: '', forwarder: '',
@ -169,7 +178,7 @@ export default {
issueplace: '', issueplace: '',
issueplaceid: '', issueplaceid: '',
nobill: 'THREE', nobill: 'THREE',
copynobilll: 'ONE', copynobilll: 'THREE',
prepardat: '', prepardat: '',
payableat: '', payableat: '',
blfrt: '', blfrt: '',
@ -197,6 +206,12 @@ export default {
scaccode: '', scaccode: '',
itncode: '', itncode: '',
iscontainersoc: 0, iscontainersoc: 0,
bookingEDIExt: {
weiTuoFang: '',
ediAttn: '',
ediAttnTel: '',
ediAttnMail: ''
},
// //
hbList: [] hbList: []
} }
@ -228,6 +243,9 @@ export default {
}, },
getDetail() { getDetail() {
if (this.inPageLoading) {
return false
}
this.inPageLoading = true this.inPageLoading = true
this.$message.loading({ content: '加载中...' }); this.$message.loading({ content: '加载中...' });
BookingOrderGet({ BookingOrderGet({
@ -237,6 +255,10 @@ export default {
this.inPageLoading = false this.inPageLoading = false
this.$message.destroy() this.$message.destroy()
this.$message.success({ content: '加载完成' }) this.$message.success({ content: '加载完成' })
if (this.isCopy) {
res.data.mblno = ''
this.isAdd = true
}
this.$set(this, 'bookingDetails', res.data) this.$set(this, 'bookingDetails', res.data)
this.$forceUpdate() this.$forceUpdate()
}) })
@ -258,9 +280,12 @@ export default {
} }
const _data = JSON.parse(JSON.stringify(this.bookingDetails)) const _data = JSON.parse(JSON.stringify(this.bookingDetails))
delete _data.hbList delete _data.hbList
console.log(JSON.stringify(_data))
BookingOrderUpdate(_data) BookingOrderUpdate(_data)
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.isCopy = false
this.isAdd = false
this.$message.success('保存成功') this.$message.success('保存成功')
this.init() this.init()
this.$forceUpdate() this.$forceUpdate()
@ -285,7 +310,6 @@ export default {
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.isAdd = false this.isAdd = false
debugger
this.id = res.data this.id = res.data
this.$message.success('保存成功') this.$message.success('保存成功')
this.init() this.init()

@ -760,10 +760,12 @@ export default {
}, },
customerSelect(value) { customerSelect(value) {
this.details.customername = value this.details.customername = value
const index = this['customerDataArr'].indexOf(value)
this.details.customerid = this.customerData[index].id
}, },
customerChange(value) { customerChange(value) {
// this.getCustomer(value) // this.getCustomer(value)
this.getDjyCustomerpage(value, 'customer', 'djy_cust_prop') this.getDjyCustomerpage(value, 'customer', 'consignor')
}, },
// - end // - end
@ -881,18 +883,18 @@ export default {
// - start // - start
getUserList(name = '', type) { getUserList(name = '', type) {
GetSysUserPage({ GetSysUserPage({
SearchValue: name name: name
}) })
.then(res => { .then(res => {
if (res.code === 200) { if (res.success) {
if (type === 'sale') { if (type === 'sale') {
this.saleUserList = res.data.rows this.saleUserList = res.data
} else if (type === 'op') { } else if (type === 'op') {
this.opUserList = res.data.rows this.opUserList = res.data
} else if (type === 'doc') { } else if (type === 'doc') {
this.docUserList = res.data.rows this.docUserList = res.data
} else if (type === 'custservice') { } else if (type === 'custservice') {
this.custserviceUserList = res.data.rows this.custserviceUserList = res.data
} }
} }
}) })

@ -90,7 +90,7 @@
</a-col> </a-col>
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6"> <a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="6">
<a-form-item class="from-label" label="副本份数" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item class="from-label" label="副本份数" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-select :default-value="details.copynobilll || 'ONE'" style="width: 120px" @change="handleChange"> <a-select :default-value="details.copynobilll || 'THREE'" style="width: 120px" @change="handleChange">
<a-select-option value="ONE"> <a-select-option value="ONE">
ONE ONE
</a-select-option> </a-select-option>

@ -64,8 +64,7 @@ export default {
}, },
data() { data() {
return { return {
showKey: ['1'], showKey: ['1']
moreIndex: 0
} }
}, },
watch: { watch: {

@ -7,7 +7,7 @@
<a-button class="btn" @click="removeLine"></a-button> <a-button class="btn" @click="removeLine"></a-button>
<a-button class="btn" type="primary" @click="openDialog" :disabled="tableData.length===0">多品名</a-button> <a-button class="btn" type="primary" @click="openDialog" :disabled="tableData.length===0">多品名</a-button>
<a-button class="btn" type="primary" @click="importYarn"></a-button> <a-button class="btn" type="primary" @click="importYarn"></a-button>
<a-button class="btn" type="primary">引入箱皮重</a-button> <a-button class="btn" type="primary" @click="importWeight"></a-button>
</div> </div>
<div class="table-right"> <div class="table-right">
<span>合计: {{ totalCtnall }}</span> <span>合计: {{ totalCtnall }}</span>
@ -851,6 +851,10 @@ export default {
console.log(err) console.log(err)
}) })
}, },
importWeight () {
},
log({ data, selectionRangeIndexes, selectionRangeKeys }) { log({ data, selectionRangeIndexes, selectionRangeKeys }) {
console.log('data::', data); console.log('data::', data);
console.log('selectionRangeIndexes::', selectionRangeIndexes); console.log('selectionRangeIndexes::', selectionRangeIndexes);

@ -617,7 +617,8 @@ export default {
modelType: '', modelType: '',
modelName: '', modelName: '',
yardType: '', yardType: '',
yardVisible: false yardVisible: false,
customerModelconfirm: false
} }
}, },
watch: { watch: {
@ -1117,7 +1118,7 @@ export default {
this.modelName = '' this.modelName = ''
}, },
changeCode(num, type) { changeCodeRemove(num, type) {
const newStr = this.details[type].replace(/\n|\r/g, '') const newStr = this.details[type].replace(/\n|\r/g, '')
console.log(newStr) console.log(newStr)
const indexs = [] const indexs = []
@ -1232,6 +1233,39 @@ export default {
this.details[field] = str1 this.details[field] = str1
this.$emit('spliceMore', strStar + str2) this.$emit('spliceMore', strStar + str2)
} }
},
changeCode (len, type) {
const value = this.details[type]
var textArr = value.match(/.+[\n]*/g); //
var subValue = "";
for (var j = 0; j < textArr.length; j++) {
var subArr = textArr[j].match(/[\w]+[ ]*[\n]*|[\d]+[ ]*[\n]*|[^\w\d]+[ ]*[\n]*/g);
var count = 0;
for (var i = 0; i < subArr.length; i++) {
count += subArr[i].replace(/\n/g, "").length;
while (count > len) {
subValue += "\n";
count = subArr[i].replace(/\n/g, "").length;
if (count > len) {
subValue += subArr[i].substring(0, len);
subValue += "\n";
subArr[i] = subArr[i].substring(len);
count = subArr[i].replace(/\n/g, "").length;
}
}
subValue += subArr[i];
}
if (j + 1 < textArr.length)
{subValue += "\n";}
}
subValue = subValue.replace(/[\n]+/g, "\n"); //
subValue = subValue.replace(/[ ]+[\n]+/g, '\n'); //
subValue = subValue.replace(/[ ]+$/g, ''); //
this.details[type] = subValue
this.$forceUpdate()
} }
} }
} }

@ -4,8 +4,8 @@
<a-col :md="24" :sm="24" style="padding: 0 0 0 0"> <a-col :md="24" :sm="24" style="padding: 0 0 0 0">
<div class="nav-box"> <div class="nav-box">
<div class="nav" @click="addBooking"><i class="iconfont icon-jiahao2fill"></i>新建</div> <div class="nav" @click="addBooking"><i class="iconfont icon-jiahao2fill"></i>新建</div>
<div class="nav" @click="addBooking1"><i class="iconfont icon-fuzhi"></i>复制</div> <div class="nav" @click="copyBooking"><i class="iconfont icon-fuzhi"></i>复制</div>
<div class="nav"><i class="iconfont icon-fuzhi1"></i>复制多票</div> <div class="nav" @click="copyBookingMore"><i class="iconfont icon-fuzhi1"></i>复制多票</div>
<div class="nav"><i class="iconfont icon-bianjiwenjian"></i>批量编辑</div> <div class="nav"><i class="iconfont icon-bianjiwenjian"></i>批量编辑</div>
<div class="nav"><i class="iconfont icon-shujushangchuan-shixin"></i>批量VGM</div> <div class="nav"><i class="iconfont icon-shujushangchuan-shixin"></i>批量VGM</div>
<div class="nav"><i class="iconfont icon-shishijifei"></i>定时订舱</div> <div class="nav"><i class="iconfont icon-shishijifei"></i>定时订舱</div>
@ -57,7 +57,7 @@
</div> </div>
</template> </template>
</vxe-toolbar> </vxe-toolbar>
<vxe-grid ref="xGrid" v-bind="gridOptions" @page-change="handlePageChange" @cell-dblclick="editColumns"> <vxe-grid ref="xGrid" v-bind="gridOptions" @page-change="handlePageChange" @cell-dblclick="handledbclick">
<template #operate="{ row }"> <template #operate="{ row }">
<vxe-button type="text" icon="vxe-icon-edit" @click="editColumns(row)"></vxe-button> <vxe-button type="text" icon="vxe-icon-edit" @click="editColumns(row)"></vxe-button>
</template> </template>
@ -371,6 +371,9 @@ export default {
console.log('=新的clomn=', this.columns) console.log('=新的clomn=', this.columns)
this.$forceUpdate() this.$forceUpdate()
}, },
handledbclick ({row}) {
this.editColumns(row)
},
editColumns(row) { editColumns(row) {
console.log(row) console.log(row)
this.$router.push({ name: 'BookingDetail', query: { id: row.id, type: row.carrierid } }) this.$router.push({ name: 'BookingDetail', query: { id: row.id, type: row.carrierid } })
@ -413,8 +416,33 @@ export default {
addBooking() { addBooking() {
this.addVisible = !this.addVisible this.addVisible = !this.addVisible
}, },
addBooking1() { copyBooking() {
this.$router.push({ name: 'BookingDetail', query: { id: 22 } }) const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => {
return item.id
})
if (pkIdArr.length > 1) {
this.$message.error('请选择一条数据')
return false
} else if (pkIdArr.length === 0) {
this.$message.error('请至少选择一条数据')
return false
}
this.$router.push({ name: 'BookingDetail', query: { id: pkIdArr[0], isCopy: true } })
},
copyBookingMore() {
const select = this.$refs.xGrid.getCheckboxRecords()
const pkIdArr = select.map((item, index) => {
return item.id
})
if (pkIdArr.length === 0) {
this.$message.error('请至少选择一条数据')
return false
}
//
// pkIdArr.map((item, index) => {
// this.$router.push({ name: 'BookingDetail', query: { id: item, isCopy: true } })
// })
}, },
addSubmit() { addSubmit() {
this.addVisible = false this.addVisible = false

Loading…
Cancel
Save