|
|
|
@ -67,6 +67,10 @@ |
|
|
|
type="text" |
|
|
|
@click="orderDetails(scope.$index, scope.row)" |
|
|
|
>订单详情</el-button> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
@click="settlement(scope.$index, scope.row)" |
|
|
|
>结算订单</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -92,7 +96,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { orderList } from '../../../api/index'; |
|
|
|
import { orderList,settlement } from '../../../api/index'; |
|
|
|
import moment from 'moment' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
@ -159,6 +163,18 @@ export default { |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
settlement(index,row){ |
|
|
|
let data={batchcode:row.batchcode} |
|
|
|
settlement(data).then(res=>{ |
|
|
|
console.info(res) |
|
|
|
if (res.code==100) { |
|
|
|
this.$message.success('结算订单成功!'); |
|
|
|
this.getData(); |
|
|
|
}else{ |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
MisShow(){ |
|
|
|
this.editVisible=false |
|
|
|
}, |
|
|
|
|