|
@@ -648,10 +648,14 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button v-if="approvalProhibit" @click="immediateApproval('f_billstatus')"
|
|
|
+ <el-button
|
|
|
+ v-if="approvalProhibit"
|
|
|
+ @click="immediateApproval('f_billstatus')"
|
|
|
>审批</el-button
|
|
|
>
|
|
|
- <el-button v-if="form.fBillstatus > 2" @click="viewAudit('f_billstatus')"
|
|
|
+ <el-button
|
|
|
+ v-if="form.fBillstatus > 2"
|
|
|
+ @click="viewAudit('f_billstatus')"
|
|
|
>查看审批</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -940,7 +944,7 @@ export default {
|
|
|
immediateApproval(status) {
|
|
|
this.addOrUpdateVisib = true;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.ApprovalComments.init(this.approval.billId,status, 320);
|
|
|
+ this.$refs.ApprovalComments.init(this.approval.billId, status, 320);
|
|
|
});
|
|
|
},
|
|
|
adoPt() {
|
|
@@ -963,7 +967,11 @@ export default {
|
|
|
fCorpid: "", //结算单位ID
|
|
|
};
|
|
|
getAgreement(this.approval.billId).then((response) => {
|
|
|
- this.deptName = response.data.dept.deptName;
|
|
|
+ if (response.data.dept) {
|
|
|
+ this.deptName = response.data.dept.deptName
|
|
|
+ ? response.data.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
this.form = response.data.tWarehouseAgreement;
|
|
|
this.$set(this.form, "fEnddate", Date.parse(this.form.fEnddate));
|
|
|
this.$set(this.form, "fBegindate", Date.parse(this.form.fBegindate));
|
|
@@ -987,7 +995,7 @@ export default {
|
|
|
let id = "448";
|
|
|
let actId = "110";
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.addOrUpdate.init(this.form.fId, 320,status);
|
|
|
+ this.$refs.addOrUpdate.init(this.form.fId, 320, status);
|
|
|
});
|
|
|
},
|
|
|
returnData() {
|
|
@@ -1043,7 +1051,11 @@ export default {
|
|
|
"YYYY-MM-DD HH:mm:ss"
|
|
|
),
|
|
|
});
|
|
|
- this.deptName = response.dept.deptName;
|
|
|
+ if (response.dept) {
|
|
|
+ this.deptName = response.dept.deptName
|
|
|
+ ? response.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
this.form.fDeptid = response.dept.deptId;
|
|
|
this.agreementitemsList.createBy = response.user.userName;
|
|
|
});
|
|
@@ -1056,7 +1068,11 @@ export default {
|
|
|
this.approvalProhibit = false;
|
|
|
const fId = row.fId || this.ids;
|
|
|
getAgreement(fId).then((response) => {
|
|
|
- this.deptName = response.data.dept.deptName;
|
|
|
+ if (response.data.dept) {
|
|
|
+ this.deptName = response.data.dept.deptName
|
|
|
+ ? response.data.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
this.form = response.data.tWarehouseAgreement;
|
|
|
this.$set(this.form, "fTaskType", this.form.fTaskType + "");
|
|
|
this.$set(this.form, "fEnddate", Date.parse(this.form.fEnddate));
|
|
@@ -1091,7 +1107,11 @@ export default {
|
|
|
this.approvalProhibit = false;
|
|
|
const fId = row.fId || this.ids;
|
|
|
getAgreement(fId).then((response) => {
|
|
|
- this.deptName = response.data.dept.deptName;
|
|
|
+ if (response.data.dept) {
|
|
|
+ this.deptName = response.data.dept.deptName
|
|
|
+ ? response.data.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
this.form = response.data.tWarehouseAgreement;
|
|
|
this.$set(this.form, "fEnddate", Date.parse(this.form.fEnddate));
|
|
|
this.$set(this.form, "fBegindate", Date.parse(this.form.fBegindate));
|
|
@@ -1340,8 +1360,12 @@ export default {
|
|
|
fDc: "D",
|
|
|
};
|
|
|
queryUserVal().then((response) => {
|
|
|
- this.deptName = response.dept.deptName;
|
|
|
- this.form.fDeptid = response.dept.deptId;
|
|
|
+ if (response.dept) {
|
|
|
+ this.deptName = response.dept.deptName
|
|
|
+ ? response.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
+ this.form.fDeptid = response.dept.deptId ? response.dept.deptId : null;
|
|
|
});
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
@@ -1350,7 +1374,11 @@ export default {
|
|
|
console.log("111");
|
|
|
getAgreement(this.idCopy).then((response) => {
|
|
|
this.register();
|
|
|
- this.deptName = response.data.dept.deptName;
|
|
|
+ if (response.data.dept) {
|
|
|
+ this.deptName = response.data.dept.deptName
|
|
|
+ ? response.data.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
this.form = response.data.tWarehouseAgreement;
|
|
|
this.form.fId = null;
|
|
|
this.form.fBillstatus = "";
|
|
@@ -1385,7 +1413,11 @@ export default {
|
|
|
const fId = row.fId || this.ids;
|
|
|
getAgreement(fId).then((response) => {
|
|
|
this.register();
|
|
|
- this.deptName = response.data.dept.deptName;
|
|
|
+ if (response.data.dept) {
|
|
|
+ this.deptName = response.data.dept.deptName
|
|
|
+ ? response.data.dept.deptName
|
|
|
+ : null;
|
|
|
+ }
|
|
|
this.form = response.data.tWarehouseAgreement;
|
|
|
this.$set(this.form, "fTaskType", this.form.fTaskType + "");
|
|
|
this.$set(this.form, "fEnddate", Date.parse(this.form.fEnddate));
|