|
@@ -333,7 +333,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
- :disabled="disabled"
|
|
|
+ :disabled="form.orderStatus === 80"
|
|
|
@click.native.prevent="change(scope)"
|
|
|
>变更</el-button>
|
|
|
</template>
|
|
@@ -353,15 +353,8 @@
|
|
|
icon="el-icon-plus"
|
|
|
size="mini"
|
|
|
@click="addRelevtTwo"
|
|
|
- :disabled="form.orderStatus < 80"
|
|
|
+ :disabled="form.orderStatus === 80"
|
|
|
>保存</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="addRelevt2"
|
|
|
- :disabled="form.orderStatus < 80"
|
|
|
- >提交请核</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -380,7 +373,7 @@
|
|
|
filterable
|
|
|
size="mini"
|
|
|
style="width: 160px"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(dict, index) in fMblnoOptions"
|
|
@@ -401,7 +394,7 @@
|
|
|
<el-select
|
|
|
v-model="scope.row.fFeeid"
|
|
|
filterable
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
remote
|
|
|
placeholder="费用名称"
|
|
|
>
|
|
@@ -419,7 +412,7 @@
|
|
|
<el-select
|
|
|
v-model="scope.row.fDc"
|
|
|
placeholder="请选择"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
>
|
|
|
<el-option label="收" value="D"></el-option>
|
|
|
<el-option label="付" value="C"></el-option>
|
|
@@ -436,7 +429,7 @@
|
|
|
<el-select
|
|
|
v-model="scope.row.fFeeunitid"
|
|
|
placeholder="请选择计费单位"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
@@ -457,7 +450,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fBillingQty"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
@input="total(scope.row)"
|
|
|
v-input-limit="2"
|
|
@@ -473,7 +466,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fUnitprice"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
@input="total(scope.row)"
|
|
|
v-input-limit="2"
|
|
@@ -489,7 +482,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fCurrency"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -498,7 +491,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fExrate"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -507,7 +500,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fAmount"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -521,7 +514,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fTaxrate"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -540,7 +533,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.remarks"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="disabledtwo"
|
|
|
placeholder="请输入内容"
|
|
|
></el-input>
|
|
|
</template>
|
|
@@ -557,15 +550,15 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
- :disabled="form.orderStatus < 80"
|
|
|
+ :disabled="scope.row.fBillstatus === 6"
|
|
|
@click.native.prevent="deleteRow(scope,scope.$index)"
|
|
|
>删除</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
- :disabled="form.orderStatus < 80"
|
|
|
- @click.native.prevent="deleteRow(scope,scope.$index)"
|
|
|
+ :disabled="scope.row.fBillstatus === 6"
|
|
|
+ @click.native.prevent="changerequest(scope)"
|
|
|
>请核</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -620,14 +613,13 @@
|
|
|
type="success"
|
|
|
@click="submitAllowChanges"
|
|
|
v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
- :disabled="form.orderStatus <= 80"
|
|
|
>修 改</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="info"
|
|
|
@click="addRelevtTwo"
|
|
|
v-hasPermi="['fleet:vehicleStatus:edit']"
|
|
|
- :disabled="form.orderStatus <= 80"
|
|
|
+ :disabled="form.orderStatus == 80"
|
|
|
>保 存</el-button
|
|
|
>
|
|
|
<!-- <el-button type="warning" @click="submitRetreat">撤 回</el-button> -->
|
|
@@ -641,8 +633,11 @@ import {
|
|
|
removeFtmsorderbillscars,
|
|
|
driverSaveFtmsorderbillscars,
|
|
|
insertDriverFtmsorderbillscars,
|
|
|
- deleteList
|
|
|
+ deleteList,
|
|
|
+ changerequestTwo,
|
|
|
+ selectDriverFtmsorderbillscars
|
|
|
} from "@/api/fleet/ftmsorderbillscarstwo";
|
|
|
+
|
|
|
import {getBasicInformation} from "@/api/kaihe/basicdata/container";
|
|
|
import {listGoods} from "@/api/basicdata/goods";
|
|
|
import {listCorps} from "@/api/basicdata/corps";
|
|
@@ -708,6 +703,7 @@ export default {
|
|
|
showDialog: false,
|
|
|
billTypeList: [],
|
|
|
transTypeList: [],
|
|
|
+ disabledtwo:false,
|
|
|
transPropList: [],
|
|
|
goodsLossTypeList: [],
|
|
|
cntrIdList: [],
|
|
@@ -788,12 +784,15 @@ export default {
|
|
|
change(scope){
|
|
|
console.log(scope)
|
|
|
for (let item in this.formfeesList){
|
|
|
- if (scope.row.fId === this.formfeesList[item].fId) return this.$message({
|
|
|
- showClose: true,
|
|
|
- message: '已有相同单据',
|
|
|
- type: 'error'
|
|
|
- });
|
|
|
+ if (scope.row.fId === this.formfeesList[item].fId) {
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: '已有相同单据',
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
+ scope.row.fId = ''
|
|
|
this.formfeesList.push(scope.row)
|
|
|
},
|
|
|
// 新增附件上传
|
|
@@ -887,6 +886,27 @@ export default {
|
|
|
if (response.code == 200) {
|
|
|
this.msgSuccess("保存成功");
|
|
|
this.$parent.getList();
|
|
|
+ this.updateData()
|
|
|
+ // this.$parent.getSave(response);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ updateData(){
|
|
|
+ const data = { id: this.form.id, billStatus: 1060 };
|
|
|
+ selectDriverFtmsorderbillscars(data).then((response) => {
|
|
|
+ this.formfeesList = response.data.feesListModify;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ changerequest(scope){
|
|
|
+ // let formData = new window.FormData();
|
|
|
+ // formData.append("status", "6");
|
|
|
+ // formData.append("cars", JSON.stringify(this.form));
|
|
|
+ // formData.append("ftmsorderbillsfees", JSON.stringify(this.formfeesList));
|
|
|
+ changerequestTwo(scope.row.fId).then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.msgSuccess("请核成功");
|
|
|
+ this.$parent.getList();
|
|
|
+ this.updateData()
|
|
|
// this.$parent.getSave(response);
|
|
|
}
|
|
|
});
|
|
@@ -1341,11 +1361,12 @@ export default {
|
|
|
//修改
|
|
|
submitAllowChanges() {
|
|
|
console.log(this.form.orderStatus)
|
|
|
- if (this.form.orderStatus < 80) {
|
|
|
- this.$emit("fixDisabled", "false");
|
|
|
- this.msgSuccess("允许修改");
|
|
|
- } else {
|
|
|
+ if (this.form.orderStatus == 80) {
|
|
|
this.msgSuccess("不允许修改");
|
|
|
+ this.disabledtwo = true
|
|
|
+ } else {
|
|
|
+ this.msgSuccess("允许修改");
|
|
|
+ this.disabledtwo = false
|
|
|
}
|
|
|
},
|
|
|
driversubmitForm() {
|