|
@@ -42,10 +42,7 @@
|
|
|
size="small"
|
|
|
v-if="goodsForm.status > 0"
|
|
|
:disabled="
|
|
|
- (this.roleName.indexOf('平台') !== -1
|
|
|
- ||this.roleName.indexOf('经理') !== -1
|
|
|
- ||this.roleName.indexOf('部门经理') !== -1
|
|
|
- ||this.roleName.indexOf('总经理') !== -1) && !(this.roleName.indexOf('admin') !== -1)"
|
|
|
+ !((this.roleName.indexOf('平台') !== -1 && this.roleName.indexOf('分管调度') !== -1)||this.roleName.indexOf('经理') !== -1||this.roleName.indexOf('部门经理') !== -1||this.roleName.indexOf('总经理') !== -1 || this.roleName.indexOf('admin') !== -1)"
|
|
|
@click="confirmChange"
|
|
|
>变更
|
|
|
</el-button>
|
|
@@ -94,12 +91,12 @@
|
|
|
<e-crop-jump label="公司名称" corp-type="KH" :value="goodsForm.corpName"></e-crop-jump>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="corpId">
|
|
|
-<!-- <crop-select-->
|
|
|
-<!-- :disabled="goodsForm.status !== 0"-->
|
|
|
-<!-- v-model="goodsForm.corpId"-->
|
|
|
-<!-- @getCorpData="getCorpData"-->
|
|
|
-<!-- :corpType="'KH'"-->
|
|
|
-<!-- ></crop-select>-->
|
|
|
+ <!-- <crop-select-->
|
|
|
+ <!-- :disabled="goodsForm.status !== 0"-->
|
|
|
+ <!-- v-model="goodsForm.corpId"-->
|
|
|
+ <!-- @getCorpData="getCorpData"-->
|
|
|
+ <!-- :corpType="'KH'"-->
|
|
|
+ <!-- ></crop-select>-->
|
|
|
<e-crop-select
|
|
|
v-model="goodsForm.corpId"
|
|
|
:name.sync="goodsForm.corpName"
|
|
@@ -112,10 +109,10 @@
|
|
|
<e-crop-jump label="场站" corp-type="DD" :value="goodsForm.station"></e-crop-jump>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="station">
|
|
|
-<!-- <port-info-->
|
|
|
-<!-- v-model="goodsForm.station"-->
|
|
|
-<!-- :disabled="goodsForm.status !== 0"-->
|
|
|
-<!-- />-->
|
|
|
+ <!-- <port-info-->
|
|
|
+ <!-- v-model="goodsForm.station"-->
|
|
|
+ <!-- :disabled="goodsForm.status !== 0"-->
|
|
|
+ <!-- />-->
|
|
|
<e-crop-select
|
|
|
v-model="goodsForm.station"
|
|
|
corp-type="DD"
|
|
@@ -204,13 +201,13 @@
|
|
|
@getCropId="getCropId"
|
|
|
/>
|
|
|
</template>
|
|
|
-<!-- <template slot-scope="scope" slot="polId">-->
|
|
|
-<!-- <port-info-->
|
|
|
-<!-- :type="'id'"-->
|
|
|
-<!-- v-model="goodsForm.polId"-->
|
|
|
-<!-- :disabled="goodsForm.status !== 0"-->
|
|
|
-<!-- />-->
|
|
|
-<!-- </template>-->
|
|
|
+ <!-- <template slot-scope="scope" slot="polId">-->
|
|
|
+ <!-- <port-info-->
|
|
|
+ <!-- :type="'id'"-->
|
|
|
+ <!-- v-model="goodsForm.polId"-->
|
|
|
+ <!-- :disabled="goodsForm.status !== 0"-->
|
|
|
+ <!-- />-->
|
|
|
+ <!-- </template>-->
|
|
|
<template slot-scope="{}" slot="polIdLabel">
|
|
|
<e-crop-jump label="起运港" corp-type="DD" :value="goodsForm.polName"></e-crop-jump>
|
|
|
</template>
|
|
@@ -234,13 +231,13 @@
|
|
|
:disabled="goodsForm.status !== 0"
|
|
|
/>
|
|
|
</template>
|
|
|
-<!-- <template slot-scope="scope" slot="podId">-->
|
|
|
-<!-- <port-info-->
|
|
|
-<!-- :type="'id'"-->
|
|
|
-<!-- v-model="goodsForm.podId"-->
|
|
|
-<!-- :disabled="goodsForm.status !== 0"-->
|
|
|
-<!-- />-->
|
|
|
-<!-- </template>-->
|
|
|
+ <!-- <template slot-scope="scope" slot="podId">-->
|
|
|
+ <!-- <port-info-->
|
|
|
+ <!-- :type="'id'"-->
|
|
|
+ <!-- v-model="goodsForm.podId"-->
|
|
|
+ <!-- :disabled="goodsForm.status !== 0"-->
|
|
|
+ <!-- />-->
|
|
|
+ <!-- </template>-->
|
|
|
</avue-form>
|
|
|
</trade-card>
|
|
|
<trade-card title="箱信息" v-if="goodsForm.status === 0 || !goodsForm.status">
|
|
@@ -418,12 +415,15 @@
|
|
|
<div v-if="scope.$index !== tableData.length-1" style="margin: -5px auto">
|
|
|
<el-tooltip class="item" effect="dark" content="向上移动" placement="right" v-if="scope.$index > 1">
|
|
|
<div class="single" style="margin-bottom: -5px">
|
|
|
- <el-button type="text" style="margin-right: -0.5rem" icon="el-icon-arrow-up" size="mini" @click="moveUp(scope.row,scope.$index)"></el-button>
|
|
|
+ <el-button type="text" style="margin-right: -0.5rem" icon="el-icon-arrow-up" size="mini"
|
|
|
+ @click="moveUp(scope.row,scope.$index)"></el-button>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip class="item" effect="dark" content="向下移动" placement="right" v-if="scope.$index > 0 && scope.$index < tableData.length-2">
|
|
|
+ <el-tooltip class="item" effect="dark" content="向下移动" placement="right"
|
|
|
+ v-if="scope.$index > 0 && scope.$index < tableData.length-2">
|
|
|
<div class="single" style="margin-top: -5px">
|
|
|
- <el-button type="text" style="margin-right: -0.5rem" icon="el-icon-arrow-down" size="mini" @click="moveDown(scope.row,scope.$index)"></el-button>
|
|
|
+ <el-button type="text" style="margin-right: -0.5rem" icon="el-icon-arrow-down" size="mini"
|
|
|
+ @click="moveDown(scope.row,scope.$index)"></el-button>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
@@ -447,8 +447,9 @@
|
|
|
</trade-card>
|
|
|
<trade-card title="杂费明细">
|
|
|
<el-tabs v-model="activeIndex" @tab-click="handleSelect">
|
|
|
- <el-tab-pane label="应收" name="1"></el-tab-pane>
|
|
|
- <!-- <el-tab-pane label="应付" name="2"></el-tab-pane>-->
|
|
|
+ <el-tab-pane label="应收" name="1"
|
|
|
+ v-if="!(roleName.indexOf('调度中心业务员') !== -1 || roleName.indexOf('调度中心经理') !== -1)"></el-tab-pane>
|
|
|
+ <el-tab-pane label="应付" name="2" v-else></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<avue-crud
|
|
|
v-if="activeIndex === '1'"
|
|
@@ -544,32 +545,32 @@
|
|
|
</breakdown-select>
|
|
|
<span v-else>{{ row.feeName }}</span>
|
|
|
</template>
|
|
|
- <template slot-scope="{row,index}" slot="menu">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- :disabled="goodsForm.status === 1"
|
|
|
- :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"
|
|
|
- @click="paymentRowCell(row,index)"
|
|
|
- >{{ row.$cellEdit ? '保存' : '编辑' }}
|
|
|
- </el-button>
|
|
|
- <el-button type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- size="small"
|
|
|
- :disabled="goodsForm.status === 1"
|
|
|
- @click="$refs.payment.rowDel(row,index)"
|
|
|
- >删除
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- <template slot="menuLeft">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- :disabled="goodsForm.status === 1"
|
|
|
- @click="addRowPayment"
|
|
|
- size="small">录入明细
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
+ <!-- <template slot-scope="{row,index}" slot="menu">-->
|
|
|
+ <!-- <el-button-->
|
|
|
+ <!-- type="text"-->
|
|
|
+ <!-- size="small"-->
|
|
|
+ <!-- :disabled="goodsForm.status === 1"-->
|
|
|
+ <!-- :icon="row.$cellEdit?'el-icon-circle-plus-outline':'el-icon-edit'"-->
|
|
|
+ <!-- @click="paymentRowCell(row,index)"-->
|
|
|
+ <!-- >{{ row.$cellEdit ? '保存' : '编辑' }}-->
|
|
|
+ <!-- </el-button>-->
|
|
|
+ <!-- <el-button type="text"-->
|
|
|
+ <!-- icon="el-icon-delete"-->
|
|
|
+ <!-- size="small"-->
|
|
|
+ <!-- :disabled="goodsForm.status === 1"-->
|
|
|
+ <!-- @click="$refs.payment.rowDel(row,index)"-->
|
|
|
+ <!-- >删除-->
|
|
|
+ <!-- </el-button>-->
|
|
|
+ <!-- </template>-->
|
|
|
+ <!-- <template slot="menuLeft">-->
|
|
|
+ <!-- <el-button-->
|
|
|
+ <!-- type="primary"-->
|
|
|
+ <!-- icon="el-icon-plus"-->
|
|
|
+ <!-- :disabled="goodsForm.status === 1"-->
|
|
|
+ <!-- @click="addRowPayment"-->
|
|
|
+ <!-- size="small">录入明细-->
|
|
|
+ <!-- </el-button>-->
|
|
|
+ <!-- </template>-->
|
|
|
</avue-crud>
|
|
|
</trade-card>
|
|
|
<containerTitle title="上传附件"></containerTitle>
|
|
@@ -1465,6 +1466,7 @@ export default {
|
|
|
align: 'center',
|
|
|
menuAlign: 'center',
|
|
|
index: true,
|
|
|
+ menu: false,
|
|
|
cancelBtn: false,
|
|
|
refreshBtn: false,
|
|
|
editBtn: false,
|
|
@@ -1540,6 +1542,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
+ this.activeIndex = this.roleName.indexOf('调度中心业务员') !== -1 ? '2' : this.roleName.indexOf('调度中心经理') !== -1 ? '2' : '1'
|
|
|
this.entrustOptionTwo = await this.getColumnData(this.getColumnName(85.1), this.entrustOptionTwoBackup);
|
|
|
this.KeyBox++
|
|
|
this.entrustOptionTwoT = await this.getColumnData(this.getColumnName(85.2), this.entrustOptionTwoTBackup);
|
|
@@ -1648,7 +1651,7 @@ export default {
|
|
|
// })
|
|
|
//查询业务员
|
|
|
this.salesmanQuery()
|
|
|
- if (this.goodsForm.status == 2){
|
|
|
+ if (this.goodsForm.status == 2) {
|
|
|
if (this.roleName.indexOf('平台') !== -1 || this.roleName.indexOf('经理') !== -1 || this.roleName.indexOf('部门经理') !== -1 || this.roleName.indexOf('总经理') !== -1) {
|
|
|
this.goodsForm.status = 2
|
|
|
}
|
|
@@ -1677,6 +1680,13 @@ export default {
|
|
|
} else {
|
|
|
this.initData();
|
|
|
}
|
|
|
+
|
|
|
+ if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1) {
|
|
|
+ this.findObject(this.entrustOptionTwoT.column, "landAmountD").hide = true
|
|
|
+ this.findObject(this.entrustOptionTwoT.column, "landAmountD").showColumn = false
|
|
|
+ this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
|
|
|
+ this.findObject(this.entrustOptionTwo.column, "landAmountD").showColumn = false
|
|
|
+ }
|
|
|
this.$refs.other.show = false
|
|
|
},
|
|
|
methods: {
|
|
@@ -1694,8 +1704,8 @@ export default {
|
|
|
// // console.log(this.lineArr[this.lineArr.length - 1])
|
|
|
// })
|
|
|
},
|
|
|
- getCropId(row){
|
|
|
- if (row){
|
|
|
+ getCropId(row) {
|
|
|
+ if (row) {
|
|
|
this.goodsForm.corpId = row.id
|
|
|
this.goodsForm.corpName = row.cname
|
|
|
this.goodsForm.belongCompany = row.belongCompany
|
|
@@ -1794,6 +1804,12 @@ export default {
|
|
|
if (inSave) {
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs.crudBox.$refs.dialogColumn.columnBox = false;
|
|
|
+ if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1) {
|
|
|
+ this.findObject(this.entrustOptionTwoT.column, "landAmountD").hide = true
|
|
|
+ this.findObject(this.entrustOptionTwoT.column, "landAmountD").showColumn = false
|
|
|
+ this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
|
|
|
+ this.findObject(this.entrustOptionTwo.column, "landAmountD").showColumn = false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//自定义列保存
|
|
@@ -1817,6 +1833,12 @@ export default {
|
|
|
if (inSave) {
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs.crudBoxTwo.$refs.dialogColumn.columnBox = false;
|
|
|
+ if (this.roleName.indexOf('调度中心业务员') !== -1 || this.roleName.indexOf('调度中心经理') !== -1) {
|
|
|
+ this.findObject(this.entrustOptionTwoT.column, "landAmountD").hide = true
|
|
|
+ this.findObject(this.entrustOptionTwoT.column, "landAmountD").showColumn = false
|
|
|
+ this.findObject(this.entrustOptionTwo.column, "landAmountD").hide = true
|
|
|
+ this.findObject(this.entrustOptionTwo.column, "landAmountD").showColumn = false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//自定义列保存
|
|
@@ -1845,9 +1867,9 @@ export default {
|
|
|
//刷新数据
|
|
|
refreshData(id) {
|
|
|
let ids = ''
|
|
|
- if (id){
|
|
|
+ if (id) {
|
|
|
ids = id
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
ids = this.id
|
|
|
}
|
|
|
detailDelegationList({id: ids, kind: '1'}).then(res => {
|
|
@@ -1900,11 +1922,11 @@ export default {
|
|
|
addAddress() {
|
|
|
this.tableData.splice(this.tableData.length - 1, 0, {})
|
|
|
},
|
|
|
- moveUp(row,index){
|
|
|
- this.tableData[index] = this.tableData.splice(index -1 ,1,row)[0]
|
|
|
+ moveUp(row, index) {
|
|
|
+ this.tableData[index] = this.tableData.splice(index - 1, 1, row)[0]
|
|
|
},
|
|
|
- moveDown(row,index){
|
|
|
- this.tableData[index] = this.tableData.splice(index +1 ,1,row)[0]
|
|
|
+ moveDown(row, index) {
|
|
|
+ this.tableData[index] = this.tableData.splice(index + 1, 1, row)[0]
|
|
|
},
|
|
|
//返回主列表
|
|
|
backToList(value) {
|
|
@@ -1993,14 +2015,14 @@ export default {
|
|
|
confirmChange() {
|
|
|
// validChange({id:this.id}).then(res => {
|
|
|
// if (res.data.data){
|
|
|
- this.goodsForm.status = 0
|
|
|
- this.goodsOptionFormC.disabled = false
|
|
|
- this.goodsOptionForm.disabled = false
|
|
|
- this.goodsOptionFormTwo.disabled = false
|
|
|
- this.typeTwo = true
|
|
|
- // }else {
|
|
|
- // this.$message.error('不允许变更')
|
|
|
- // }
|
|
|
+ this.goodsForm.status = 0
|
|
|
+ this.goodsOptionFormC.disabled = false
|
|
|
+ this.goodsOptionForm.disabled = false
|
|
|
+ this.goodsOptionFormTwo.disabled = false
|
|
|
+ this.typeTwo = true
|
|
|
+ // }else {
|
|
|
+ // this.$message.error('不允许变更')
|
|
|
+ // }
|
|
|
// })
|
|
|
},
|
|
|
//变更保存
|
|
@@ -2115,7 +2137,7 @@ export default {
|
|
|
this.type = false
|
|
|
this.$message.success('提交成功');
|
|
|
this.refreshData(res.data.data)
|
|
|
- }).finally(()=>{
|
|
|
+ }).finally(() => {
|
|
|
this.type = false
|
|
|
})
|
|
|
})
|
|
@@ -2263,7 +2285,8 @@ export default {
|
|
|
padding: 10px 15px;
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
-.single ::v-deep .el-button--mini{
|
|
|
+
|
|
|
+.single ::v-deep .el-button--mini {
|
|
|
padding: 0 0 !important;
|
|
|
}
|
|
|
</style>
|