|
@@ -52,17 +52,19 @@ export default {
|
|
|
...transaction({ transactionsfetch: 'fetch', transactionslist: 'query', transactionupdate: 'update' }),
|
|
|
...productpact({ transactionQuery: 'query', productpactFetch: 'findpact', productpactUpdate: 'update' }),
|
|
|
async searchInfo() {
|
|
|
+ console.log(this.id);
|
|
|
+
|
|
|
const res = await this.productpactFetch(this.id);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `form`, res.data);
|
|
|
}
|
|
|
},
|
|
|
async onSubmit({ data }) {
|
|
|
- const res = await this.productpactUpdate(this.form);
|
|
|
+ const res = await this.productpactUpdate(data);
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.form.status = '2';
|
|
|
- this.form.id = this.form.transaction_id;
|
|
|
- const arr = await this.transactionupdate(this.form);
|
|
|
+ data.status = '2';
|
|
|
+ data.id = data.transaction_id;
|
|
|
+ const arr = await this.transactionupdate(data);
|
|
|
if (this.$checkRes(arr)) {
|
|
|
this.$message({
|
|
|
message: '审核通过',
|