|
@@ -75,7 +75,7 @@
|
|
|
@click="track(row)">箱轨迹
|
|
|
</el-button>
|
|
|
<el-button icon="el-icon-edit" :size="size" :disabled="disabled" :type="type"
|
|
|
- @click="$refs.crud.rowEdit(row,index)">编辑
|
|
|
+ @click="xiangbianji(row,index)">编辑
|
|
|
</el-button>
|
|
|
<el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type"
|
|
|
@click="rowDel(row,index,'MX')">删除
|
|
@@ -294,12 +294,14 @@ export default {
|
|
|
components: {checkSchedule,reportDialog,check},
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 箱管理编辑暂存的箱号
|
|
|
+ ZCcode:null,
|
|
|
// 分页
|
|
|
xiangpage: {
|
|
|
pageSize: 20,
|
|
|
currentPage: 1,
|
|
|
total: 0,
|
|
|
- pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
|
|
|
+ pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000]
|
|
|
},
|
|
|
xiangsearch:{},
|
|
|
checkData: {},
|
|
@@ -1455,6 +1457,8 @@ export default {
|
|
|
rowaddfun(){
|
|
|
this.$refs["form"].validate((valid,done) => {
|
|
|
if (valid) {
|
|
|
+ // 把目的港赋值地点
|
|
|
+ this.formTwo.addressId = this.form.objectiveHarborId
|
|
|
const idp = this.form.id?this.form.id:this.onLoad.id
|
|
|
if (!idp) {
|
|
|
return this.$message.warning('请先填写保存数据');
|
|
@@ -1466,6 +1470,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 箱编辑弹窗接口
|
|
|
+ xiangbianji(row,index){
|
|
|
+ // 暂存箱号
|
|
|
+ this.ZCcode = row.code
|
|
|
+ this.$refs.crud.rowEdit(row,index)
|
|
|
+ },
|
|
|
// 箱信息的添加
|
|
|
rowSave(form, done, loading) {
|
|
|
let result = this.dataList.some((item) => {
|
|
@@ -1499,8 +1509,41 @@ export default {
|
|
|
amount: form.amount,
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
this.transportItemSubmitfunfun(form)
|
|
|
+
|
|
|
+ // 费用的保存
|
|
|
+ const obj = {
|
|
|
+ // 费用名称id
|
|
|
+ itemId:'1636526426121347073',
|
|
|
+ itemName: "租金",
|
|
|
+ // 客户id
|
|
|
+ corpId: this.form.corpId,
|
|
|
+ corpName: this.form.corpName,
|
|
|
+ // 排序
|
|
|
+ sort:1,
|
|
|
+ // 数量
|
|
|
+ quantity:1,
|
|
|
+ // 单价
|
|
|
+ price:form.amount,
|
|
|
+ // 金额
|
|
|
+ amount: form.amount,
|
|
|
+ // 币别
|
|
|
+ currency:form.currency,
|
|
|
+ // 1.应收 2.应付
|
|
|
+ feesType: 1,
|
|
|
+ // 箱号
|
|
|
+ code: form.code,
|
|
|
+ // 业务类型
|
|
|
+ billType: "",
|
|
|
+ // 是否自动生成(0否1是)
|
|
|
+ autoGenerate:1,
|
|
|
+ // 是否手动录入
|
|
|
+ identifier:0,
|
|
|
+ pid: form.pid,
|
|
|
+ remarks:form.remarks,
|
|
|
+ }
|
|
|
+ this.$refs.boxCost.data_one.push(obj)
|
|
|
+ this.$refs.boxCost.transportItemFeesSubmitdatafun(obj)
|
|
|
},
|
|
|
// 箱轨迹的编辑
|
|
|
rowUpdateTrack(form, index, done, loading) {
|
|
@@ -1521,6 +1564,7 @@ export default {
|
|
|
this.xiangpagefun(this.page)
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
// 箱信息的编辑
|
|
|
rowUpdate(form, index, done, loading) {
|
|
|
if (!Number(form.price) || Number(form.price) < 0) {
|
|
@@ -1557,6 +1601,46 @@ export default {
|
|
|
})
|
|
|
|
|
|
this.transportItemSubmitfunfun(form)
|
|
|
+
|
|
|
+ // 费用的更改
|
|
|
+ for(let index in this.$refs.boxCost.data_one) {
|
|
|
+ if (this.ZCcode == this.$refs.boxCost.data_one[index].code){
|
|
|
+ this.$refs.boxCost.data_one[index] = {
|
|
|
+ id:this.$refs.boxCost.data_one[index].id,
|
|
|
+ // 费用名称id
|
|
|
+ itemId:'1636526426121347073',
|
|
|
+ itemName: "租金",
|
|
|
+ // 客户id
|
|
|
+ corpId: this.form.corpId,
|
|
|
+ corpName: this.form.corpName,
|
|
|
+ // 排序
|
|
|
+ sort:1,
|
|
|
+ // 数量
|
|
|
+ quantity:1,
|
|
|
+ // 单价
|
|
|
+ price:form.amount,
|
|
|
+ // 金额
|
|
|
+ amount: form.amount,
|
|
|
+ // 币别
|
|
|
+ currency:form.currency,
|
|
|
+ // 1.应收 2.应付
|
|
|
+ feesType: 1,
|
|
|
+ // 箱号
|
|
|
+ code: form.code,
|
|
|
+ // 业务类型
|
|
|
+ billType: "",
|
|
|
+ // 是否自动生成(0否1是)
|
|
|
+ autoGenerate:1,
|
|
|
+ // 是否手动录入
|
|
|
+ identifier:0,
|
|
|
+ pid: form.pid,
|
|
|
+ remarks:form.remarks,
|
|
|
+ }
|
|
|
+ this.$refs.boxCost.transportItemFeesSubmitdatafun(this.$refs.boxCost.data_one[index])
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
getGSData(row, type) {
|
|
|
this[type[0]][type[1]] = row.cname
|