|
@@ -42,7 +42,7 @@
|
|
|
v-model="form.loadportidName"
|
|
|
size="small"
|
|
|
style="width: 100%"
|
|
|
- :disabled="doNot"
|
|
|
+ :disabled="modify"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -50,7 +50,7 @@
|
|
|
<el-form-item label="目的港口" prop="destportidName">
|
|
|
<el-input
|
|
|
v-model="form.destportidName"
|
|
|
- :disabled="doNot"
|
|
|
+ :disabled="modify"
|
|
|
size="small"
|
|
|
style="width: 100%"
|
|
|
/>
|
|
@@ -159,7 +159,7 @@
|
|
|
<el-form-item label="船名" prop="vslidName">
|
|
|
<el-input
|
|
|
v-model="form.vslidName"
|
|
|
- :disabled="doNot"
|
|
|
+ :disabled="modify"
|
|
|
size="small"
|
|
|
style="width: 100%"
|
|
|
/>
|
|
@@ -170,7 +170,7 @@
|
|
|
<el-form-item label="航次" prop="voyidName">
|
|
|
<el-input
|
|
|
v-model="form.voyidName"
|
|
|
- :disabled="doNot"
|
|
|
+ :disabled="modify"
|
|
|
size="small"
|
|
|
style="width: 100%"
|
|
|
/>
|
|
@@ -180,7 +180,7 @@
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="备注" prop="remarks">
|
|
|
<el-input
|
|
|
- v-model="form.remarks"
|
|
|
+ v-model="form.remark"
|
|
|
:disabled="modify"
|
|
|
size="small"
|
|
|
style="width: 75%"
|
|
@@ -1260,15 +1260,25 @@
|
|
|
>费用请核
|
|
|
</el-button>
|
|
|
<el-button type="success" v-if="approVal" @click="addOrUpdateHand(form,'f_billstatus')">审 批</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="(form.fUpdeteStatus === 4 || form.fUpdeteStatus === 5 || form.fUpdeteStatus === 6 || form.fUpdeteStatus === 2) && (form.fSubmitUpdate == 2 || form.fSubmitUpdate == 4) && (form.fDeleteStatus === 2 || form.fDeleteStatus === 4) && approvalTwo"
|
|
|
+ @click="modifyApproval()"
|
|
|
+ >审批
|
|
|
+ </el-button>
|
|
|
<el-button type="danger" :disabled="disappear" v-if="form.moneyStatus === 4 && current == before"
|
|
|
@click="revokeTwo('f_billstatus')"
|
|
|
>撤销请核
|
|
|
</el-button>
|
|
|
<el-button type="primary"
|
|
|
- v-if="form.fBillstatus != 11 ||form.moneyStatus == null || form.moneyStatus != null && form.moneyStatus >= 4"
|
|
|
+ v-if="(form.fUpdeteStatus !== 4 && form.fUpdeteStatus !== 5 && form.fUpdeteStatus !== 6 && form.fUpdeteStatus !== 2) && (form.fBillstatus != 11 ||form.moneyStatus == null || form.moneyStatus != null && form.moneyStatus >= 4)"
|
|
|
@click="addOrUpdateHandle('f_billstatus')"
|
|
|
>查看审批
|
|
|
</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-if="(form.fUpdeteStatus === 4 || form.fUpdeteStatus === 5 || form.fUpdeteStatus === 6 || form.fUpdeteStatus === 2) && (form.fSubmitUpdate == 2 || form.fSubmitUpdate == 4) && (form.fDeleteStatus === 2 || form.fDeleteStatus === 4)"
|
|
|
+ @click="revisionApproval()"
|
|
|
+ >查看审批
|
|
|
+ </el-button>
|
|
|
<el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === true" @click="cancel">返回列表</el-button>
|
|
|
<el-button icon="el-icon-arrow-left" type="danger" v-if="cancelButton === false" @click="cancelTwo"
|
|
|
>返回首页
|
|
@@ -1543,6 +1553,7 @@ export default {
|
|
|
row: [],
|
|
|
res: [],
|
|
|
formList:{},
|
|
|
+ approvalTwo:false,
|
|
|
amountDr:null,
|
|
|
amountCr:null
|
|
|
}
|
|
@@ -1568,9 +1579,18 @@ export default {
|
|
|
fId: formDate.fId
|
|
|
}
|
|
|
this.approVal = false
|
|
|
+ }else if (this.$route.query.testing){
|
|
|
+ console.log(this.$route.query.testing)
|
|
|
+ formDate = {
|
|
|
+ fId:JSON.parse(this.$route.query.testing).billId
|
|
|
+ }
|
|
|
+ this.formList = formDate
|
|
|
+ this.approvalTwo = true
|
|
|
+ this.cancelButton = false
|
|
|
}
|
|
|
if (formDate) {
|
|
|
addmodify(formDate).then(response => {
|
|
|
+ console.log(response)
|
|
|
if(response.code == 200){
|
|
|
this.form = response.rows[0]
|
|
|
if (this.form.fMblno == null) {
|
|
@@ -2144,6 +2164,23 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ modifyApproval(){
|
|
|
+ this.addOrUpdateVisib = true
|
|
|
+ let list = JSON.parse(this.$route.query.testing)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ let actId = ''
|
|
|
+ console.log(list)
|
|
|
+ this.addOrUpdateVisible = true
|
|
|
+ if(list.refno4 == 'XGDD'){
|
|
|
+ actId = 471
|
|
|
+ }else if (list.refno4 == 'XGTJ'){
|
|
|
+ actId = 472
|
|
|
+ }else if(list.refno4 == 'DDSC'){
|
|
|
+ actId = 473
|
|
|
+ }
|
|
|
+ this.$refs.ApprovalComments.init(this.form.fId,status,actId,this.form.fMblno)
|
|
|
+ })
|
|
|
+ },
|
|
|
//首页审批跳转关闭返回首页
|
|
|
cancelTwo() {
|
|
|
this.open = false
|
|
@@ -2178,7 +2215,22 @@ export default {
|
|
|
this.open = false
|
|
|
this.cancelTwo()
|
|
|
},
|
|
|
-
|
|
|
+ revisionApproval(){
|
|
|
+ let list = JSON.parse(this.$route.query.testing)
|
|
|
+ let actId = ''
|
|
|
+ console.log(list)
|
|
|
+ this.addOrUpdateVisible = true
|
|
|
+ if(list.refno4 == 'XGDD'){
|
|
|
+ actId = 471
|
|
|
+ }else if (list.refno4 == 'XGTJ'){
|
|
|
+ actId = 472
|
|
|
+ }else if(list.refno4 == 'DDSC'){
|
|
|
+ actId = 473
|
|
|
+ }
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.addOrUpdate.init(this.form.fId,actId,list.fidStatus)
|
|
|
+ })
|
|
|
+ },
|
|
|
addOrUpdateHandle(status) {
|
|
|
this.addOrUpdateVisible = true
|
|
|
let id = '448'
|