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