|
@@ -4,11 +4,7 @@
|
|
|
<li class="detailLi">
|
|
|
<span class="liName"> 定金编号 </span>
|
|
|
<div class="inputBox">
|
|
|
- <input
|
|
|
- placeholder="请输入"
|
|
|
- class="myIpt"
|
|
|
- v-model="form.serialNumber"
|
|
|
- />
|
|
|
+ <div class="myIpt">{{ form.serialNumber }}</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
<li class="detailLi">
|
|
@@ -261,7 +257,7 @@ export default {
|
|
|
this.$showToast("请选择收款时间");
|
|
|
return;
|
|
|
}
|
|
|
- if (this.status == 2) {
|
|
|
+ if (this.status == 2 || this.status == 3) {
|
|
|
this.editDj();
|
|
|
} else {
|
|
|
this.addDj();
|
|
@@ -274,7 +270,6 @@ export default {
|
|
|
url: e.imgUrl,
|
|
|
id: e.id,
|
|
|
data: e.id,
|
|
|
-
|
|
|
type: "image",
|
|
|
isImage: true,
|
|
|
};
|
|
@@ -282,6 +277,7 @@ export default {
|
|
|
|
|
|
let data = await addDj({
|
|
|
...this.form,
|
|
|
+
|
|
|
fileList: JSON.stringify(fileListStr),
|
|
|
});
|
|
|
if (data.code == 200) {
|
|
@@ -353,6 +349,9 @@ export default {
|
|
|
let form = { ...this.form };
|
|
|
this.form = {};
|
|
|
this.form = form;
|
|
|
+ if (this.status != 1) {
|
|
|
+ this.getDjById();
|
|
|
+ }
|
|
|
this.ParkFloorDiscControllerGetById();
|
|
|
},
|
|
|
async getCustomerInfoById() {
|
|
@@ -369,15 +368,14 @@ export default {
|
|
|
console.log(this.form.buyerName);
|
|
|
this.form.discId = data.discId;
|
|
|
this.getDjNumber();
|
|
|
- if (this.status == 2) {
|
|
|
- this.getDjById();
|
|
|
- }
|
|
|
+ console.log("this.status", this.status);
|
|
|
},
|
|
|
async getDjById() {
|
|
|
let data = await getDjById({ id: this.options.rowId });
|
|
|
this.form.receivedAmount = data.receivedAmount;
|
|
|
this.form.paymentMethod = data.paymentMethod;
|
|
|
this.form.collectionTime = data.collectionTime;
|
|
|
+ this.form.serialNumber = data.serialNumber;
|
|
|
this.form.remark = data.remark;
|
|
|
console.log(JSON.parse(data.fileList));
|
|
|
this.fileList = JSON.parse(data.fileList).map((e) => {
|
|
@@ -388,6 +386,9 @@ export default {
|
|
|
id: e.id,
|
|
|
};
|
|
|
});
|
|
|
+ let form = { ...this.form };
|
|
|
+ this.form = {};
|
|
|
+ this.form = form;
|
|
|
},
|
|
|
changeRemark(e) {
|
|
|
this.form.remark = e.detail;
|