md
This commit is contained in:
parent
fea7050433
commit
fa5ec4dc24
@ -163,7 +163,7 @@ export default {
|
||||
position: 'top-right',
|
||||
// type: 'success',
|
||||
customClass:'notify-success',
|
||||
duration: 0,
|
||||
// duration: 0,
|
||||
onClick: function () {
|
||||
//self.warnDetailByWarnid(messageBody.warnId); //自定义回调,message为传的参数
|
||||
// 点击跳转的页面
|
||||
|
||||
@ -75,6 +75,19 @@
|
||||
v-hasPermi="['emis:emisWaybillAjustApply:add']"
|
||||
>新增申请</el-button>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleReApply"
|
||||
v-hasPermi="['emis:emisWaybillAjustApply:add']"
|
||||
>再次申请</el-button>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -202,7 +215,7 @@
|
||||
</XdTable>
|
||||
|
||||
<el-dialog :title="titleForm" :visible.sync="openForm" width="100%" :destroy-on-close="true" v-dialogDrag append-to-body>
|
||||
<emisWaybillAjustApplyForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisWaybillAjustApplyForm>
|
||||
<emisWaybillAjustApplyForm :id="currentId" :isReApply="isReApply" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisWaybillAjustApplyForm>
|
||||
</el-dialog>
|
||||
|
||||
</XdPageContainer>
|
||||
@ -243,6 +256,7 @@ export default {
|
||||
currentId:null,
|
||||
openForm: false,
|
||||
titleForm: "",
|
||||
isReApply:false,
|
||||
|
||||
// 弹出展示层
|
||||
id:null,
|
||||
@ -334,19 +348,20 @@ export default {
|
||||
this.currentId=null;
|
||||
this.openForm= true;
|
||||
this.titleForm = "新增费用申请";
|
||||
// this.$router.push("/d24/expenseRecognitionManagemen/WaybillAdjustApply?action=adjust");
|
||||
},
|
||||
handleShowMoreInput(){
|
||||
this.moreInputVisible = !this.moreInputVisible;
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.currentId= row.id;
|
||||
/** 再次申请按钮操作 */
|
||||
handleReApply(row) {
|
||||
this.currentId= row.id||this.ids;
|
||||
this.isReApply=true;
|
||||
this.openForm = true;
|
||||
this.titleForm = "修改";
|
||||
this.titleForm = "再次申请";
|
||||
},
|
||||
handleView(row) {
|
||||
this.currentId= row.id || this.ids;
|
||||
this.isReApply=false;
|
||||
this.titleForm="查看费用申请";
|
||||
this.openForm=true;
|
||||
},
|
||||
|
||||
@ -1325,6 +1325,12 @@ export default {
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
disabled:{
|
||||
handler (newVa, oldValue) {
|
||||
console.log("=xxx1===>disabled==>",this.disabled);
|
||||
}
|
||||
|
||||
},
|
||||
oldValue: {
|
||||
handler (newValue, oldValue) {
|
||||
this.billDetail = this.oldValue;
|
||||
|
||||
@ -55,7 +55,11 @@ export default {
|
||||
name: "emisWaybillAjustApplyForm",
|
||||
props:{
|
||||
id:{
|
||||
type:Number
|
||||
type:[Number,Array]
|
||||
},
|
||||
isReApply:{
|
||||
type:[Boolean],
|
||||
default:false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -70,13 +74,13 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
isFormDisabled:true,
|
||||
isFormDisabled:null,
|
||||
|
||||
emisWaybillAjustApplyOptions: [],
|
||||
|
||||
ajustTypeItems:[],
|
||||
|
||||
isEditDisabled:true,
|
||||
isEditDisabled:null,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
|
||||
@ -111,6 +115,15 @@ export default {
|
||||
this.initData();
|
||||
},
|
||||
deep: true
|
||||
},
|
||||
"isReApply": {
|
||||
handler (newValue, oldValue) {
|
||||
if(newValue){
|
||||
this.isFormDisabled=false;
|
||||
}
|
||||
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@ -124,7 +137,7 @@ export default {
|
||||
if(this.id !=null) {
|
||||
this.loading = true;
|
||||
this.isFormDisabled=true;
|
||||
getEmisWaybillAjustApply(this.id).then(response => {
|
||||
getEmisWaybillAjustApply(this.id).then(async response => {
|
||||
this.form = response.data;
|
||||
this.form.jsonDataObj=JSON.parse(this.form.jsonData);
|
||||
console.log("===>this.form.jsonDataObj ==>",this.form.jsonDataObj);
|
||||
@ -132,6 +145,18 @@ export default {
|
||||
this.form.jsonDataObj.oldValue=Object.assign({},this.billDetail);
|
||||
this.form.jsonDataObj.newValue=Object.assign({},this.form.jsonDataObj.newValue);
|
||||
|
||||
// 再次申请
|
||||
console.log("===>this.isReApply ==>",this.isReApply);
|
||||
if(this.isReApply){
|
||||
|
||||
let res=await getWaybillDetail(this.form.billCode);
|
||||
this.billDetail=res.data;
|
||||
this.form.jsonDataObj.oldValue=deepClone(this.billDetail);
|
||||
|
||||
this.isFormDisabled=false;
|
||||
this.form.id=null;
|
||||
}
|
||||
|
||||
this.loading = false;
|
||||
});
|
||||
}else{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user