|
@@ -1924,10 +1924,16 @@ export default {
|
|
|
savePrice() {
|
|
|
this.$refs.targetForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.target.location = this.personal.location;
|
|
|
- this.target.bailorA = this.personal.bailorA;
|
|
|
- this.target.bailorB = this.personal.bailorB;
|
|
|
- let taskRecord = this.buildTaskRecordDTO(this.target);
|
|
|
+ let target = new Object();
|
|
|
+ target.id = this.target.id;
|
|
|
+ target.personalId = this.target.personalId;
|
|
|
+ target.price = this.target.price;
|
|
|
+ target.amount = this.target.amount;
|
|
|
+ target.acreage = this.target.acreage;
|
|
|
+ target.location = this.personal.location;
|
|
|
+ target.bailorA = this.personal.bailorA;
|
|
|
+ target.bailorB = this.personal.bailorB;
|
|
|
+ let taskRecord = this.buildTaskRecordDTO(target);
|
|
|
this.$api.personalTarget.price(taskRecord).then(res => {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
this.$notify({
|